{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\jurisdiction\\dict\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\jurisdiction\\dict\\index.vue","mtime":1737610069429},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport Paging from \"@/views/Public/paging.vue\";\nimport Popup from \"@/views/estate/examine/dialog/popup.vue\";\nimport { GetDict, updDict, addDict, delDict } from \"@/api/getdata\";\nexport default {\n components: {\n Paging: Paging,\n Popup: Popup\n },\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n options: [] /**拜访部门 */,\n\n /**select */\n details: {},\n dialogTableVisible: false,\n tipTitle: \"\",\n ruleForm: {\n description: \"\",\n createTime: \"\"\n },\n ruleForm1: {\n dataType: \"\",\n dataValue: \"\",\n description: \"\",\n dataCode: \"\"\n },\n clickType: 0,\n // 1 删除 2 保存 \n validation: false,\n completeTitle: \"\",\n nav: \"\",\n rules: {\n name: [{\n required: true,\n message: \"请输入描述内容\",\n trigger: \"blur\"\n }],\n dataType: [{\n required: true,\n message: \"请输入数据类型\",\n trigger: \"blur\"\n }, {\n validator: function validator(rule, value, callback) {\n var reg = /^[0-9]*$/;\n if (reg.test(value)) {\n callback(new Error(\"请输入非数字!\"));\n } else {\n callback();\n }\n }\n }],\n dataCode: [{\n required: true,\n message: \"请输入编号\",\n trigger: \"blur\"\n }, {\n validator: function validator(rule, value, callback) {\n var reg = /^[0-9]*$/;\n if (reg.test(value)) {\n callback();\n } else {\n callback(new Error(\"请输入数字!\"));\n }\n }\n }],\n dataValue: [{\n required: true,\n message: \"请输入数据值\",\n trigger: \"blur\"\n }],\n description: [{\n required: true,\n message: \"请输入数据值\",\n trigger: \"blur\"\n }]\n },\n tableCols: [{\n type: \"normal\",\n is_show: true,\n prop: \"id\",\n label: \"序号\",\n align: \"center\",\n minWidth: \"40\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"40\",\n prop: \"dataType\",\n label: \"数据类型\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"40\",\n prop: \"dataCode\",\n label: \"编号\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"40\",\n prop: \"dataValue\",\n label: \"数据值\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"80\",\n prop: \"description\",\n label: \"描述\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"60\",\n prop: \"gmtCreate\",\n label: \"创建时间\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"option\",\n label: \"操作\",\n align: \"center\"\n }],\n tableData: [],\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n }\n };\n },\n mounted: function mounted() {\n this.createLoad();\n this.getDate();\n },\n methods: {\n createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = \"加载中...\";\n },\n clearLoad: function clearLoad() {\n this.loading = false;\n this.loadingMsg = \"\";\n },\n search: function search() {\n this.page.limit = 1;\n this.createLoad();\n this.getDate();\n },\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getDate();\n },\n cancal: function cancal(formName) {\n this.dialogTableVisible = false;\n },\n //管理\n manageChange: function manageChange(row, type) {\n if (type == 1) {\n this.tipTitle = \"添加\";\n this.dialogTableVisible = true;\n this.clickType = 3;\n } else if (type == 2) {\n this.row = row;\n this.ruleForm1 = {\n dataType: row.dataType,\n dataValue: row.dataValue,\n dataCode: row.dataCode,\n description: row.description\n };\n this.tipTitle = \"编辑\";\n this.dialogTableVisible = true;\n this.clickType = 2; //\n }\n },\n closeDialog: function closeDialog() {\n this.ruleForm1 = {};\n this.$refs.ruleForm1.resetFields();\n },\n //保存\n submitForm: function submitForm(formName) {\n var _this = this;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n // this.validation = true;\n // this.nav = \"确认修改该字典设置?\";\n // this.completeTitle = \"修改\";\n if (_this.clickType == 2) {\n // 编辑\n var Content = {\n id: _this.row.id,\n dataCode: _this.ruleForm1.dataCode,\n dataValue: _this.ruleForm1.dataValue,\n dataType: _this.ruleForm1.dataType,\n description: _this.ruleForm1.description\n };\n console.log(Content, \"---编辑\");\n updDict(Content).then(function (res) {\n console.log(res, 169);\n if (res.returnCode == \"1\") {\n _this.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this.getDate();\n _this.dialogTableVisible = false;\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n } else if (_this.clickType == \"3\") {\n // 添加\n var _Content = {\n // id: this.row.id,\n dataCode: _this.ruleForm1.dataCode,\n dataValue: _this.ruleForm1.dataValue,\n dataType: _this.ruleForm1.dataType,\n description: _this.ruleForm1.description\n };\n // console.log(Content,\"----添加\")\n addDict(_Content).then(function (res) {\n // console.log(res, 169);\n if (res.returnCode == \"1\") {\n _this.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this.getDate();\n _this.dialogTableVisible = false;\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n }\n }\n });\n },\n /**删除 */delChange: function delChange(id) {\n var _this2 = this;\n this.$alert('确认进行删除嘛?', '确认', {\n confirmButtonText: '确定',\n callback: function callback(action) {\n if (action == \"confirm\") {\n _this2.createLoad();\n var Content = {\n id: _this2.row.id\n };\n // console.log(Content,\"---删除\")\n delDict(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.getDate();\n _this2.dialogTableVisible = false;\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(\"error\");\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n });\n }\n }\n });\n // this.clickType = 1;\n // this.nav = \"确认进行删除嘛?\";\n // this.validation = true;\n // this.row = {\n // id:id\n // };\n },\n closeEnd: function closeEnd() {\n var _this3 = this;\n this.validation = false;\n if (this.clickType == 1) {\n // 删除\n this.createLoad();\n var Content = {\n id: this.row.id\n };\n // console.log(Content,\"---删除\")\n delDict(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.getDate();\n _this3.dialogTableVisible = false;\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(\"error\");\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n });\n }\n },\n //跳转到\n navToHoliday: function navToHoliday() {\n this.$router.push({\n name: \"Holiday\"\n });\n // window.localStorage.setItem('make',JSON.stringify(row))\n },\n getDate: function getDate() {\n var _this4 = this;\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: {\n startTime: this.ruleForm.createTime ? this.ruleForm.createTime[0] : \"\",\n endTime: this.ruleForm.createTime ? this.ruleForm.createTime[1] : \"\",\n description: this.ruleForm.description\n }\n };\n console.log(Content, 340);\n GetDict(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this4.clearLoad();\n console.log(res.returnData.data, 888);\n _this4.tableData = res.returnData.data;\n _this4.page.total = res.returnData.total;\n _this4.page.limit = res.returnData.currentPage;\n if (_this4.page.total == 0) {\n _this4.$message({\n message: \"当前无数据\",\n type: \"success\"\n });\n } else {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n }\n } else {\n _this4.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\n });\n }\n }\n};",null]}