{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\reportManagement\\BigScreen\\ClassificationManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\reportManagement\\BigScreen\\ClassificationManagement.vue","mtime":1675071993053},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport report from '@/api/report.js';\nimport { isDate } from 'moment';\nexport default {\n  name: 'table-code',\n  data: function data() {\n    var validatorFactror = function validatorFactror(rule, value, callback) {\n      // if (!Number(value)) {\n      //   return callback(new Error('只能输入数字'))\n      // }\n      var reg = /^[+-]?(0|([1-9]\\d*))(\\.\\d+)?$/g;\n\n      if (!reg.test(value)) {\n        callback(new Error('只能输入数字'));\n      }\n\n      callback();\n    };\n\n    return {\n      data: [],\n      pageResult: {\n        page: 1,\n        pageSize: 50,\n        total: 0\n      },\n      dialogVisible: false,\n      dialogVisibleEdit: false,\n      form: {\n        categoryKey: '',\n        categoryValue: '',\n        id: '',\n        isDele: '',\n        pkVal: '',\n        tenantId: ''\n      },\n      rules: {\n        categoryKey: [{\n          required: true,\n          message: '请输入模块名',\n          trigger: 'blur'\n        }],\n        categoryValue: [{\n          required: true,\n          message: '请输入模块值',\n          trigger: 'blur'\n        }, {\n          validator: validatorFactror\n        }]\n      }\n    };\n  },\n  mounted: function mounted() {},\n  methods: {\n    loadData: function loadData(param, cb) {\n      var _this = this;\n\n      report.getClassific(param).then(function (response) {\n        _this.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n        _this.data = response.rows;\n      }).finally(function () {\n        if (cb) {\n          cb();\n        }\n      });\n    },\n    //编辑\n    handelEdit: function handelEdit(data) {\n      this.dialogVisibleEdit = true;\n      this.form = data;\n      this.form.categoryKey = data.categoryKey;\n      this.form.categoryValue = data.categoryValue;\n      this.form.id = data.id;\n      this.form.isDele = data.isDele;\n    },\n    handelCancel: function handelCancel() {\n      this.form = {\n        categoryKey: '',\n        categoryValue: '',\n        id: '',\n        isDate: ''\n      };\n      this.dialogVisible = false;\n      this.dialogVisibleEdit = false;\n    },\n    handleClose: function handleClose(done) {\n      this.form = {\n        categoryKey: '',\n        categoryValue: '',\n        id: '',\n        isDate: ''\n      };\n      done();\n    },\n    //修改保存\n    handelSaveEdit: function handelSaveEdit() {\n      var _this2 = this;\n\n      this.$refs.form.validate(function (bool) {\n        if (bool) {\n          _this2.dialogVisibleEdit = false;\n          report.editSave({\n            categoryKey: _this2.form.categoryKey,\n            categoryValue: _this2.form.categoryValue,\n            id: _this2.form.id,\n            isDele: _this2.form.isDele\n          }).then(function (res) {\n            _this2.loadData();\n          });\n        } else {\n          _this2.$message.error('请重新检查输入值');\n        }\n      });\n    },\n    //添加\n    addSave: function addSave() {\n      this.dialogVisible = true;\n    },\n    //添加保存\n    handelSave: function handelSave() {\n      var _this3 = this;\n\n      this.$refs.form.validate(function (bool) {\n        if (bool) {\n          _this3.dialogVisible = false;\n          report.editSave({\n            categoryKey: _this3.form.categoryKey,\n            categoryValue: _this3.form.categoryValue\n          }).then(function (res) {\n            _this3.loadData();\n          });\n        } else {\n          _this3.$message.error('模块值必须为数字');\n        }\n      });\n    },\n    //删除\n    handelDelete: function handelDelete(id) {\n      var _this4 = this;\n\n      report.delClassific(id).then(function (res) {\n        _this4.loadData();\n      });\n    }\n  }\n};",null]}