{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\Comprehensive\\components\\examineSettingDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\Comprehensive\\components\\examineSettingDialog.vue","mtime":1704436517143},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\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\r\nimport examineSetting from '@/api/Comprehensive/examineSetting'\r\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\r\n\r\nexport default {\r\n props: {},\r\n name: 'examineSettingDialog',\r\n components: {},\r\n data() {\r\n return {\r\n visible: false,\r\n loading: false,\r\n rules: {\r\n standard: [\r\n {\r\n required: true,\r\n message: '请输入考核标准',\r\n trigger: 'change',\r\n },\r\n ],\r\n target: [\r\n {\r\n required: true,\r\n message: '请选择考核对象',\r\n trigger: 'change',\r\n },\r\n ],\r\n type: [\r\n {\r\n required: true,\r\n message: '请选择考核类型',\r\n trigger: 'change',\r\n },\r\n ],\r\n way: [\r\n {\r\n required: true,\r\n message: '请选择考核方式',\r\n tirgger: 'change',\r\n },\r\n ],\r\n },\r\n type: '新增',\r\n formData: {},\r\n btnLoading: false,\r\n khfsList: [], // 考核方式\r\n khdxList: [], // 考核对象\r\n khlxList: [], // 考核类型\r\n }\r\n },\r\n created() {\r\n this.khfsList = dictUtils.getDictItemsFromCache('khfs')\r\n this.khdxList = dictUtils.getDictItemsFromCache('khdx')\r\n },\r\n methods: {\r\n open(data) {\r\n this.formData = {\r\n target: null,\r\n type: null,\r\n standard: null,\r\n way: null,\r\n memo:null\r\n }\r\n this.visible = true\r\n this.type = '新增'\r\n },\r\n edit(id) {\r\n this.formData = {}\r\n this.visible = true\r\n this.type = '编辑'\r\n examineSetting.dataQueryById(id, (res) => {\r\n this.formData = res\r\n })\r\n },\r\n handleClose() {\r\n this.formData = {\r\n target: null,\r\n type: null,\r\n standard: null,\r\n way: null,\r\n memo:null\r\n }\r\n this.visible = false\r\n },\r\n resetForm(formName) {\r\n this.$refs.form.resetFields()\r\n },\r\n //保存\r\n handleSave() {\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n this.btnLoading = true\r\n let method\r\n if (this.type === '新增') {\r\n method = examineSetting.dataAdd\r\n } else {\r\n method = examineSetting.editQuery\r\n }\r\n method(this.formData, (response) => {\r\n if (response.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: this.type + '成功',\r\n duration: 2000,\r\n })\r\n this.handleClose()\r\n this.$emit('getData')\r\n } else {\r\n this.$message.warning(response.message)\r\n }\r\n this.btnLoading = false\r\n })\r\n } else {\r\n this.$notify({\r\n type: 'warning',\r\n message: '请完善表单信息!',\r\n duration: 2000,\r\n })\r\n }\r\n })\r\n },\r\n // 改变考核对象\r\n changeTarget(val) {\r\n this.khlxList = []\r\n this.formData.type = null\r\n this.khdxList.forEach((it) => {\r\n if (it.value === val && it.lowerDic) {\r\n this.khlxList = it.lowerDic.sjfl\r\n }\r\n })\r\n },\r\n },\r\n}\r\n",null]}