1 |
- {"remainingRequest":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/src/views/system/monitor/components/upDateRoleDialog.vue?vue&type=script&lang=js","dependencies":[{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/src/views/system/monitor/components/upDateRoleDialog.vue","mtime":1708395041891},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/cache-loader/dist/cjs.js","mtime":1708395146433},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/babel-loader/lib/index.js","mtime":1708395147257},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/cache-loader/dist/cjs.js","mtime":1708395146433},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/vue-loader/lib/index.js","mtime":1708395147382}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmltcG9ydCB7IHRvR2VuZXJhdGVLZXkgfSBmcm9tICdAL2FwaS9tb25pdG9yJwpleHBvcnQgZGVmYXVsdCB7CiAgICBuYW1lOiAndXBkYXRlUm9sZURpYWxvZycsCiAgICBwcm9wczogewogICAgICAgIHVwZGF0ZVJvbGVEYXRhOiB7CiAgICAgICAgICAgIHR5cGU6IE9iamVjdCwKICAgICAgICAgICAgZGVmYXVsdDoge30KICAgICAgICB9CiAgICB9LAogICAgY3JlYXRlZCgpIHsKICAgIH0sCiAgICBkYXRhKCkgewogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIGNoZWNrQWxsOiBmYWxzZSwKICAgICAgICAgICAgZGVmYXVsdEV4cGFuZGVkOiBbXSwKICAgICAgICAgICAgbWV1blRyZWVEYXRhOiBbXSwKICAgICAgICAgICAgcnVsZXM6IHsKICAgICAgICAgICAgICAgIG1vbml0b3JTeXN0ZW1OYW1lOiBbeyByZXF1aXJlZDogdHJ1ZSwgbWVzc2FnZTogJ+ivt+i+k+WFpeebkea1i+ezu+e7n+WQjeensCcsIHRyaWdnZXI6ICdibHVyJyB9XSwKICAgICAgICAgICAgICAgIGNsaWVudFNlY3JldDogW3sgcmVxdWlyZWQ6IHRydWUsIG1lc3NhZ2U6ICfor7fovpPlhaXmraPlvI/njq/looPlr4bpkqUnLCB0cmlnZ2VyOiAnYmx1cicgfV0sCiAgICAgICAgICAgICAgICB0ZXN0U2VjcmV0OiBbeyByZXF1aXJlZDogdHJ1ZSwgbWVzc2FnZTogJ+ivt+i+k+WFpea1i+ivleeOr+Wig+WvhumSpScsIHRyaWdnZXI6ICdibHVyJyB9XSwKICAgICAgICAgICAgICAgIGNsaWVudElkOiBbeyByZXF1aXJlZDogdHJ1ZSwgbWVzc2FnZTogJ+ivt+i+k+WFpeebkea1i+ezu+e7n+e8lueggScsIHRyaWdnZXI6ICdibHVyJyB9XSwKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0sCiAgICBtZXRob2RzOiB7CiAgICAgICAgZ2VuZXJhdGVLZXlGb3JtYWwoKXsKICAgICAgICAgICAgdG9HZW5lcmF0ZUtleSgpLnRoZW4ocmVzPT57CiAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZVJvbGVEYXRhLmRhdGEuY2xpZW50U2VjcmV0PXJlcy5kYXRhCiAgICAgICAgICAgIH0pCiAgICAgICAgfSwKICAgICAgICBnZW5lcmF0ZUtleVRlc3QoKXsKICAgICAgICAgICAgdG9HZW5lcmF0ZUtleSgpLnRoZW4ocmVzPT57CiAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZVJvbGVEYXRhLmRhdGEudGVzdFNlY3JldD1yZXMuZGF0YQogICAgICAgICAgICB9KQogICAgICAgIH0sCiAgICAgICAgaGFuZGxlQ2hlY2tBbGxDaGFuZ2UodmFsKSB7CiAgICAgICAgICAgIGlmICh0aGlzLmNoZWNrQWxsKSB7CiAgICAgICAgICAgICAgICB0aGlzLiRyZWZzLnRyZWUuc2V0Q2hlY2tlZE5vZGVzKHRoaXMubWV1blRyZWVEYXRhKTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHRoaXMuJHJlZnMudHJlZS5zZXRDaGVja2VkS2V5cyhbXSk7CiAgICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgIHVwZGF0ZVJvbGUoKSB7CiAgICAgICAgICAgIHRoaXMuJHJlZnMucnVsZUZvcm0udmFsaWRhdGUodmFsaWQgPT4gewogICAgICAgICAgICAgICAgaWYgKHZhbGlkKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJGVtaXQoInVwZGF0ZVJvbGVCdG4iLCB0aGlzLnVwZGF0ZVJvbGVEYXRhLmRhdGEpCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pCiAgICAgICAgfSwKICAgICAgICBjYW5jZWwoKSB7CiAgICAgICAgICAgIHRoaXMudXBkYXRlUm9sZURhdGEuZGlhbG9nVmlzaWJsZSA9IGZhbHNlCiAgICAgICAgfSwKICAgICAgICBjbG9zZURpYWxvZygpIHsKICAgICAgICB9CgogICAgfQp9Cg=="},{"version":3,"sources":["upDateRoleDialog.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA;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;;AAEA;AACA","file":"upDateRoleDialog.vue","sourceRoot":"src/views/system/monitor/components","sourcesContent":["<template>\n <div class=\"updataRoleDialog\">\n <el-dialog width=\"836px\" center title=\"修改监测系统信息\" :visible.sync=\"updateRoleData.dialogVisible\">\n <el-form label-width=\"100px\" ref=\"ruleForm\" :rules=\"rules\" :model=\"updateRoleData.data\" label-position=\"top\">\n <el-row :gutter=\"24\">\n <el-col :span=\"12\">\n <el-form-item label=\"监测系统名称:\" prop=\"monitorSystemName\">\n <el-input v-model=\"updateRoleData.data.monitorSystemName\"></el-input>\n </el-form-item>\n </el-col>\n <el-col :span=\"12\">\n <el-form-item label=\"监测系统编码:\" prop=\"clientId\">\n <el-input v-model=\"updateRoleData.data.clientId\"></el-input>\n </el-form-item>\n </el-col>\n </el-row>\n <el-row :gutter=\"24\">\n <el-col :span=\"12\">\n <el-form-item label=\"正式环境密钥:\" prop=\"clientSecret\">\n <div class=\"\" style=\"display:flex\">\n <el-button class=\"changKerBtn\" @click=\"generateKeyFormal\">点击生成密钥</el-button>\n <el-input v-model=\"updateRoleData.data.clientSecret\" type=\"text\" disabled/>\n </div>\n </el-form-item>\n </el-col>\n <el-col :span=\"12\">\n <el-form-item label=\"测试环境密钥:\" prop=\"testSecret\">\n <div class=\"\" style=\"display:flex\">\n <el-button class=\"changKerBtn\" @click=\"generateKeyTest\">点击生成密钥</el-button>\n <el-input v-model=\"updateRoleData.data.testSecret\" type=\"text\" disabled/>\n </div>\n </el-form-item>\n </el-col>\n </el-row>\n <el-row :gutter=\"24\">\n <el-col :span=\"12\">\n <el-form-item label=\"报警信息生成机制:\" prop=\"alarmGenerate\">\n <el-input v-model=\"updateRoleData.data.alarmGenerate\" type=\"textarea\"/>\n </el-form-item>\n </el-col>\n <el-col :span=\"12\">\n <el-form-item label=\"报警解除机制:\" prop=\"alarmRelease\">\n <el-input v-model=\"updateRoleData.data.alarmRelease\" type=\"textarea\"/>\n </el-form-item>\n </el-col>\n </el-row>\n <el-row :gutter=\"24\">\n <el-col :span=\"12\">\n <el-form-item label=\"系统简介:\" prop=\"systemIntroduce\">\n <el-input v-model=\"updateRoleData.data.systemIntroduce\" type=\"textarea\"/>\n </el-form-item>\n </el-col>\n <el-col :span=\"12\">\n <el-form-item label=\"报警信息内容:\" prop=\"alarmContent\">\n <el-input v-model=\"updateRoleData.data.alarmContent\" type=\"textarea\"/>\n </el-form-item>\n </el-col>\n </el-row>\n <el-row :gutter=\"24\">\n <el-col :span=\"12\">\n <el-form-item label=\"备注:\" prop=\"remark\">\n <el-input v-model=\"updateRoleData.data.remark\" type=\"textarea\"/>\n </el-form-item>\n </el-col>\n <el-col :span=\"12\">\n <el-form-item label=\"报警对应的处理措施:\" prop=\"treateMeasure\">\n <el-input v-model=\"updateRoleData.data.treateMeasure\" type=\"textarea\"/>\n </el-form-item>\n </el-col>\n </el-row> \n </el-form>\n <span slot=\"footer\" class=\"dialog-footer\">\n <div class=\"search\" @click=\"updateRole\">保 存</div>\n <div class=\"reset\" @click=\"cancel()\">取 消</div>\n </span>\n </el-dialog>\n </div>\n</template>\n<script>\nimport { toGenerateKey } from '@/api/monitor'\nexport default {\n name: 'updateRoleDialog',\n props: {\n updateRoleData: {\n type: Object,\n default: {}\n }\n },\n created() {\n },\n data() {\n return {\n checkAll: false,\n defaultExpanded: [],\n meunTreeData: [],\n rules: {\n monitorSystemName: [{ required: true, message: '请输入监测系统名称', trigger: 'blur' }],\n clientSecret: [{ required: true, message: '请输入正式环境密钥', trigger: 'blur' }],\n testSecret: [{ required: true, message: '请输入测试环境密钥', trigger: 'blur' }],\n clientId: [{ required: true, message: '请输入监测系统编码', trigger: 'blur' }],\n }\n }\n },\n methods: {\n generateKeyFormal(){\n toGenerateKey().then(res=>{\n this.updateRoleData.data.clientSecret=res.data\n })\n },\n generateKeyTest(){\n toGenerateKey().then(res=>{\n this.updateRoleData.data.testSecret=res.data\n })\n },\n handleCheckAllChange(val) {\n if (this.checkAll) {\n this.$refs.tree.setCheckedNodes(this.meunTreeData);\n } else {\n this.$refs.tree.setCheckedKeys([]);\n }\n },\n updateRole() {\n this.$refs.ruleForm.validate(valid => {\n if (valid) {\n this.$emit(\"updateRoleBtn\", this.updateRoleData.data)\n }\n })\n },\n cancel() {\n this.updateRoleData.dialogVisible = false\n },\n closeDialog() {\n }\n\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n::v-deep .el-dialog__body{\n padding: 20px 95px !important;\n}\n.dialog-footer{ \n div { \n display: inline-block;\n width: 80px;\n height: 40px;\n border-radius: 2px;\n font-size: 14px;\n line-height: 40px;\n text-align: center;\n }\n\n div:hover {\n cursor: pointer;\n }\n .search {\n margin: 0 12px;\n background-color: #2766DD;\n color: #fff;\n }\n\n .search:hover {\n background-color: #4D85F4;\n }\n .reset {\n color: #333334;\n border: 1px solid #D7D7D7;\n }\n\n .reset:hover {\n color: #1F9FFF;\n border: 1px solid #1F9FFF;\n }\n}\n// 选中后radio文本的颜色\n::v-deep .el-radio__input.is-checked+.el-radio__label {\n color: #2766DD\n}\n\n/* radio选中后小圆点的颜色 */\n::v-deep .el-radio__input.is-checked .el-radio__inner {\n background: #2766DD !important;\n border-color: #2766DD !important;\n}\n.changKerBtn{\n margin: 0px 10px 15px 0;\n cursor: pointer;\n text-align: center;\n height: 39px;\n color: #fff;\n border-radius: 2px;\n border: 1px solid #ABC7FD;\n font-weight: 400;\n font-size: 14px;\n background-color: #2250C8;\n}\n</style>"]}]}
|