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