cb4d43f36e47b0801396135f4363d84d.json 22 KB

1
  1. {"remainingRequest":"C:\\Users\\Administrator\\Desktop\\最新\\supervision-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\Administrator\\Desktop\\最新\\supervision-ui\\src\\views\\system\\config\\index.vue?vue&type=style&index=0&id=4d0d62fb&scoped=true&lang=css&","dependencies":[{"path":"C:\\Users\\Administrator\\Desktop\\最新\\supervision-ui\\src\\views\\system\\config\\index.vue","mtime":1647228900894},{"path":"C:\\Users\\Administrator\\Desktop\\最新\\supervision-ui\\node_modules\\css-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\Administrator\\Desktop\\最新\\supervision-ui\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"C:\\Users\\Administrator\\Desktop\\最新\\supervision-ui\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"C:\\Users\\Administrator\\Desktop\\最新\\supervision-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\Administrator\\Desktop\\最新\\supervision-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoK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["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2cA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/views/system/config","sourcesContent":["<template>\r\n <div class=\"app-container\">\r\n <el-form\r\n :model=\"queryParams\"\r\n ref=\"queryForm\"\r\n :inline=\"true\"\r\n v-show=\"showSearch\"\r\n label-width=\"68px\"\r\n >\r\n <el-form-item label=\"参数名称\" prop=\"configName\">\r\n <el-input\r\n v-model=\"queryParams.configName\"\r\n placeholder=\"请输入参数名称\"\r\n clearable\r\n size=\"small\"\r\n style=\"width: 240px\"\r\n @keyup.enter.native=\"handleQuery\"\r\n />\r\n </el-form-item>\r\n <el-form-item label=\"参数键名\" prop=\"configKey\">\r\n <el-input\r\n v-model=\"queryParams.configKey\"\r\n placeholder=\"请输入参数键名\"\r\n clearable\r\n size=\"small\"\r\n style=\"width: 240px\"\r\n @keyup.enter.native=\"handleQuery\"\r\n />\r\n </el-form-item>\r\n <el-form-item label=\"系统内置\" prop=\"configType\">\r\n <el-select\r\n v-model=\"queryParams.configType\"\r\n placeholder=\"系统内置\"\r\n clearable\r\n size=\"small\"\r\n >\r\n <el-option\r\n v-for=\"dict in dict.type.sys_yes_no\"\r\n :key=\"dict.value\"\r\n :label=\"dict.label\"\r\n :value=\"dict.value\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"创建时间\">\r\n <el-date-picker\r\n v-model=\"dateRange\"\r\n size=\"small\"\r\n style=\"\r\n width: 200px;\r\n height: 36px;\r\n background: #00365f;\r\n border: 1px solid white;\r\n \"\r\n value-format=\"yyyy-MM-dd\"\r\n type=\"daterange\"\r\n range-separator=\"-\"\r\n start-placeholder=\"开始日期\"\r\n end-placeholder=\"结束日期\"\r\n ></el-date-picker>\r\n </el-form-item>\r\n <el-form-item>\r\n <el-button\r\n icon=\"el-icon-search\"\r\n size=\"btn\"\r\n @click=\"handleQuery\"\r\n >搜索</el-button\r\n >\r\n <el-button\r\n icon=\"el-icon-refresh\"\r\n size=\"btr\"\r\n @click=\"resetQuery\"\r\n >重置</el-button\r\n >\r\n </el-form-item>\r\n </el-form>\r\n\r\n <el-row :gutter=\"10\" class=\"mb8\">\r\n <el-col :span=\"1.5\">\r\n <el-button\r\n type=\"primary\"\r\n plain\r\n icon=\"el-icon-plus\"\r\n size=\"mini\"\r\n @click=\"handleAdd\"\r\n v-hasPermi=\"['system:config:add']\"\r\n >新增</el-button\r\n >\r\n </el-col>\r\n <el-col :span=\"1.5\">\r\n <el-button\r\n type=\"success\"\r\n plain\r\n icon=\"el-icon-edit\"\r\n size=\"mini\"\r\n :disabled=\"single\"\r\n @click=\"handleUpdate\"\r\n v-hasPermi=\"['system:config:edit']\"\r\n >修改</el-button\r\n >\r\n </el-col>\r\n <el-col :span=\"1.5\">\r\n <el-button\r\n type=\"danger\"\r\n plain\r\n icon=\"el-icon-delete\"\r\n size=\"mini\"\r\n :disabled=\"multiple\"\r\n @click=\"handleDelete\"\r\n v-hasPermi=\"['system:config:remove']\"\r\n >删除</el-button\r\n >\r\n </el-col>\r\n <el-col :span=\"1.5\">\r\n <el-button\r\n type=\"warning\"\r\n plain\r\n icon=\"el-icon-download\"\r\n size=\"mini\"\r\n :loading=\"exportLoading\"\r\n @click=\"handleExport\"\r\n v-hasPermi=\"['system:config:export']\"\r\n >导出</el-button\r\n >\r\n </el-col>\r\n <el-col :span=\"1.5\">\r\n <el-button\r\n type=\"danger\"\r\n plain\r\n icon=\"el-icon-refresh\"\r\n size=\"mini\"\r\n @click=\"handleRefreshCache\"\r\n v-hasPermi=\"['system:config:remove']\"\r\n >刷新</el-button\r\n >\r\n </el-col>\r\n <right-toolbar\r\n :showSearch.sync=\"showSearch\"\r\n @queryTable=\"getList\"\r\n ></right-toolbar>\r\n </el-row>\r\n\r\n <el-table\r\n v-loading=\"loading\"\r\n :data=\"configList\"\r\n @selection-change=\"handleSelectionChange\"\r\n :header-cell-style=\"{ background: '#003C69', color: 'white' }\"\r\n >\r\n <el-table-column type=\"selection\" width=\"55\" align=\"center\" />\r\n <el-table-column label=\"参数主键\" align=\"center\" prop=\"configId\" />\r\n <el-table-column\r\n label=\"参数名称\"\r\n align=\"center\"\r\n prop=\"configName\"\r\n :show-overflow-tooltip=\"true\"\r\n />\r\n <el-table-column\r\n label=\"参数键名\"\r\n align=\"center\"\r\n prop=\"configKey\"\r\n :show-overflow-tooltip=\"true\"\r\n />\r\n <el-table-column label=\"参数键值\" align=\"center\" prop=\"configValue\" />\r\n <el-table-column label=\"系统内置\" align=\"center\" prop=\"configType\">\r\n <template slot-scope=\"scope\">\r\n <dict-tag\r\n :options=\"dict.type.sys_yes_no\"\r\n :value=\"scope.row.configType\"\r\n />\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n label=\"备注\"\r\n align=\"center\"\r\n prop=\"remark\"\r\n :show-overflow-tooltip=\"true\"\r\n />\r\n <el-table-column\r\n label=\"创建时间\"\r\n align=\"center\"\r\n prop=\"createTime\"\r\n width=\"180\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span>{{ parseTime(scope.row.createTime) }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n label=\"操作\"\r\n align=\"center\"\r\n class-name=\"small-padding fixed-width\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <el-button\r\n size=\"btu\"\r\n type=\"text\"\r\n @click=\"handleUpdate(scope.row)\"\r\n v-hasPermi=\"['system:config:edit']\"\r\n ><span class=\"edit\">修改</span></el-button\r\n >\r\n <el-button\r\n size=\"btd\"\r\n type=\"text\"\r\n @click=\"handleDelete(scope.row)\"\r\n v-hasPermi=\"['system:config:remove']\"\r\n ><span class=\"delete\">删除</span></el-button\r\n >\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n\r\n <pagination\r\n v-show=\"total > 0\"\r\n :total=\"total\"\r\n :page.sync=\"queryParams.pageNum\"\r\n :limit.sync=\"queryParams.pageSize\"\r\n @pagination=\"getList\"\r\n />\r\n\r\n <!-- 添加或修改参数配置对话框 -->\r\n <el-dialog\r\n :title=\"title\"\r\n :visible.sync=\"open\"\r\n width=\"700px\"\r\n append-to-body\r\n >\r\n <div class=\"jiben\">基本信息</div>\r\n\r\n <el-form\r\n ref=\"form\"\r\n :model=\"form\"\r\n :rules=\"rules\"\r\n label-width=\"80px\"\r\n :inline=\"true\"\r\n >\r\n <el-form-item label=\"参数名称\" prop=\"configName\">\r\n <el-input v-model=\"form.configName\" placeholder=\"请输入参数名称\" />\r\n </el-form-item>\r\n <el-form-item label=\"参数键名\" prop=\"configKey\">\r\n <el-input v-model=\"form.configKey\" placeholder=\"请输入参数键名\" />\r\n </el-form-item>\r\n <el-form-item label=\"参数键值\" prop=\"configValue\">\r\n <el-input v-model=\"form.configValue\" placeholder=\"请输入参数键值\" />\r\n </el-form-item>\r\n <el-form-item>\r\n </el-form-item>\r\n <el-form-item label=\"系统内置\" prop=\"configType\">\r\n <el-radio-group v-model=\"form.configType\">\r\n <el-radio\r\n v-for=\"dict in dict.type.sys_yes_no\"\r\n :key=\"dict.value\"\r\n :label=\"dict.value\"\r\n >{{ dict.label }}</el-radio\r\n >\r\n </el-radio-group>\r\n </el-form-item>\r\n <div class=\"jiben\">备注</div>\r\n <el-form-item label=\"\" prop=\"remark\" class=\"textareas\" style=\"width: 100%\">\r\n <el-input\r\n v-model=\"form.remark\"\r\n type=\"textarea\"\r\n placeholder=\"请输入内容\"\r\n />\r\n </el-form-item>\r\n </el-form>\r\n <div slot=\"footer\" class=\"dialog-footer\">\r\n <el-button type=\"primary\" @click=\"submitForm\">确 定</el-button>\r\n <el-button @click=\"cancel\">取 消</el-button>\r\n </div>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport {\r\n listConfig,\r\n getConfig,\r\n delConfig,\r\n addConfig,\r\n updateConfig,\r\n exportConfig,\r\n refreshCache,\r\n} from \"@/api/system/config\";\r\n\r\nexport default {\r\n name: \"Config\",\r\n dicts: [\"sys_yes_no\"],\r\n data() {\r\n return {\r\n // 遮罩层\r\n loading: true,\r\n // 导出遮罩层\r\n exportLoading: false,\r\n // 选中数组\r\n ids: [],\r\n // 非单个禁用\r\n single: true,\r\n // 非多个禁用\r\n multiple: true,\r\n // 显示搜索条件\r\n showSearch: true,\r\n // 总条数\r\n total: 0,\r\n // 参数表格数据\r\n configList: [],\r\n // 弹出层标题\r\n title: \"\",\r\n // 是否显示弹出层\r\n open: false,\r\n // 日期范围\r\n dateRange: [],\r\n // 查询参数\r\n queryParams: {\r\n pageNum: 1,\r\n pageSize: 10,\r\n configName: undefined,\r\n configKey: undefined,\r\n configType: undefined,\r\n },\r\n // 表单参数\r\n form: {},\r\n // 表单校验\r\n rules: {\r\n configName: [\r\n { required: true, message: \"参数名称不能为空\", trigger: \"blur\" },\r\n ],\r\n configKey: [\r\n { required: true, message: \"参数键名不能为空\", trigger: \"blur\" },\r\n ],\r\n configValue: [\r\n { required: true, message: \"参数键值不能为空\", trigger: \"blur\" },\r\n ],\r\n },\r\n };\r\n },\r\n created() {\r\n this.getList();\r\n },\r\n methods: {\r\n /** 查询参数列表 */\r\n getList() {\r\n this.loading = true;\r\n listConfig(this.addDateRange(this.queryParams, this.dateRange)).then(\r\n (response) => {\r\n this.configList = response.rows;\r\n this.total = response.total;\r\n this.loading = false;\r\n }\r\n );\r\n },\r\n // 取消按钮\r\n cancel() {\r\n this.open = false;\r\n this.reset();\r\n },\r\n // 表单重置\r\n reset() {\r\n this.form = {\r\n configId: undefined,\r\n configName: undefined,\r\n configKey: undefined,\r\n configValue: undefined,\r\n configType: \"Y\",\r\n remark: undefined,\r\n };\r\n this.resetForm(\"form\");\r\n },\r\n /** 搜索按钮操作 */\r\n handleQuery() {\r\n this.queryParams.pageNum = 1;\r\n this.getList();\r\n },\r\n /** 重置按钮操作 */\r\n resetQuery() {\r\n this.dateRange = [];\r\n this.resetForm(\"queryForm\");\r\n this.handleQuery();\r\n },\r\n /** 新增按钮操作 */\r\n handleAdd() {\r\n this.reset();\r\n this.open = true;\r\n this.title = \"添加参数\";\r\n },\r\n // 多选框选中数据\r\n handleSelectionChange(selection) {\r\n this.ids = selection.map((item) => item.configId);\r\n this.single = selection.length != 1;\r\n this.multiple = !selection.length;\r\n },\r\n /** 修改按钮操作 */\r\n handleUpdate(row) {\r\n this.reset();\r\n const configId = row.configId || this.ids;\r\n getConfig(configId).then((response) => {\r\n this.form = response.data;\r\n this.open = true;\r\n this.title = \"修改参数\";\r\n });\r\n },\r\n /** 提交按钮 */\r\n submitForm: function () {\r\n this.$refs[\"form\"].validate((valid) => {\r\n if (valid) {\r\n if (this.form.configId != undefined) {\r\n updateConfig(this.form).then((response) => {\r\n this.$modal.msgSuccess(\"修改成功\");\r\n this.open = false;\r\n this.getList();\r\n });\r\n } else {\r\n addConfig(this.form).then((response) => {\r\n this.$modal.msgSuccess(\"新增成功\");\r\n this.open = false;\r\n this.getList();\r\n });\r\n }\r\n }\r\n });\r\n },\r\n /** 删除按钮操作 */\r\n handleDelete(row) {\r\n const configIds = row.configId || this.ids;\r\n this.$modal\r\n .confirm('是否确认删除参数编号为\"' + configIds + '\"的数据项?')\r\n .then(function () {\r\n return delConfig(configIds);\r\n })\r\n .then(() => {\r\n this.getList();\r\n this.$modal.msgSuccess(\"删除成功\");\r\n })\r\n .catch(() => {});\r\n },\r\n /** 导出按钮操作 */\r\n handleExport() {\r\n const queryParams = this.queryParams;\r\n this.$modal\r\n .confirm(\"是否确认导出所有参数数据项?\")\r\n .then(() => {\r\n this.exportLoading = true;\r\n return exportConfig(queryParams);\r\n })\r\n .then((response) => {\r\n this.$download.name(response.msg);\r\n this.exportLoading = false;\r\n })\r\n .catch(() => {});\r\n },\r\n /** 刷新缓存按钮操作 */\r\n handleRefreshCache() {\r\n refreshCache().then(() => {\r\n this.$modal.msgSuccess(\"刷新成功\");\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n<style scoped>\r\n/* 对话框背景颜色 */\r\n::v-deep .el-dialog {\r\n background: #004d86 !important;\r\n}\r\n::v-deep .el-textarea__inner {\r\n width: 700px;\r\n height: 104px;\r\n margin: auto !important;\r\n}\r\n::v-deep .el-dialog__header {\r\n border-bottom: 1px solid #718a9d;\r\n}\r\n::v-deep .el-dialog__title {\r\n color: #fff;\r\n font: 18px;\r\n}\r\n::v-deep .el-dialog__headerbtn .el-dialog__close {\r\n color: #fff;\r\n}\r\n::v-deep .el-form-item__label {\r\n font: 16px;\r\n color: #fff;\r\n width: 100px !important;\r\n}\r\n::v-deep .el-input__inner {\r\n /* width: 200px !important;\r\n height: 36px; */\r\n background: transparent;\r\n color: #fff;\r\n}\r\n/* 单位框背景颜色 */\r\n::v-deep .vue-treeselect__control {\r\n background: #004d86 !important;\r\n}\r\n/* 基本信息背景 */\r\n.jiben {\r\n width: 660px;\r\n height: 32px;\r\n background-image: url(../../../images/小标题底.png);\r\n margin-bottom: 25px;\r\n color: #fff;\r\n padding-left: 16px;\r\n line-height: 32px;\r\n}\r\n/*调整表单间距 */\r\n::v-deep .el-form-item__content {\r\n width: 200px;\r\n}\r\n.contents {\r\n padding: 0px 40px !important;\r\n}\r\n/* 时间选择 */\r\n::v-deep .el-input--small .el-input__inner {\r\n width: 200px;\r\n height: 36px;\r\n line-height: 36px;\r\n}\r\n.el-date-editor.el-input {\r\n width: 200px;\r\n height: 36px;\r\n line-height: 36px;\r\n}\r\n::v-deep .el-date-editor.el-input .el-input__inner {\r\n height: 36px;\r\n line-height: 36px;\r\n}\r\n/* 单位框背景颜色 */\r\n::v-deep .vue-treeselect__control {\r\n background: #004d86 !important;\r\n color: #fff;\r\n}\r\n/* 备注输入框 */\r\n.textareas ::v-deep .el-form-item__content {\r\n width: 100%;\r\n}\r\n/* 日期背景颜色 */\r\n::v-deep .el-date-editor .el-range-input {\r\n background: #00365f;\r\n}\r\n::v-deep .el-textarea__inner {\r\n width: 660px;\r\n height: 104px;\r\n margin: auto !important;\r\n}\r\n/* 状态 */\r\n.el-radio {\r\n color: rgb(204, 198, 198);\r\n}\r\n/* 分页按钮 */\r\n::v-deep .el-pagination.is-background .el-pager li {\r\n background-color: #004d86;\r\n color: #fff;\r\n}\r\n::v-deep .el-pagination.is-background .btn-next {\r\n background-color: #004d86;\r\n color: #fff;\r\n}\r\n::v-deep .el-pagination.is-background .btn-prev,\r\n.el-pagination.is-background .btn-next,\r\n.el-pagination.is-background .el-pager li {\r\n background: #004d86 !important;\r\n color: #fff !important;\r\n}\r\n</style>\r\n"]}]}