{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyPlan\\components\\CmgtSaftyAppraisalFormDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyPlan\\components\\CmgtSaftyAppraisalFormDialog.vue","mtime":1686644562585},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 CmgtSaftyAppraisalApi from '@/views/Manage/saftyPlan/api/CmgtSaftyAppraisalApi';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nimport CommonApi from '@/views/Manage/CommonApi.js';\nimport CmgtSaftyTargetApi from '@/views/Manage/saftyPlan/api/CmgtSaftyTargetApi';\nimport { mapState } from 'vuex';\nexport default {\n name: 'CmgtSaftyAppraisalFormDialog',\n props: {},\n components: {},\n data: function data() {\n return {\n title: '新增',\n CommonApi: CommonApi,\n showFormDia: false,\n loading: false,\n activeCollapseNames: ['1'],\n activeTabChildName: '0',\n TargetList: [],\n deptIdSelectOptions: [],\n targetIdSelectOptions: [],\n planTaskIdSelectOptions: [],\n userIdSelectOptions: [],\n appraisalUserSelectOptions: [],\n newParams: {\n pageBean: {\n pageSize: -1,\n page: 1\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'target_is_check_',\n relation: 'AND',\n value: '是'\n }]\n },\n params: {\n targetId: null,\n checkYear: null,\n assessor: null,\n assessorContent: null,\n assessorDate: null,\n detail: []\n },\n rules: {\n deptId: [{\n required: true,\n message: '所属部门不能为空',\n trigger: 'blur'\n }],\n userId: [{\n required: true,\n message: '责任人不能为空',\n trigger: 'blur'\n }]\n }\n };\n },\n computed: mapState({\n header: function header(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n }\n }),\n created: function created() {\n this.getTarget(); // CommonApi.loadSelectOptions({\n // \tname: 'cmgtSaftySelectOptions.getOrgs'\n // }, res => {\n // \tthis.deptIdSelectOptions = res\n // })\n // CommonApi.loadSelectOptions({\n // \tname: 'cmgtSaftySelectOptions.getCmgtSaftyTargets'\n // }, res => {\n // \tthis.targetIdSelectOptions = res\n // })\n // CommonApi.loadSelectOptions({\n // \tname: 'cmgtSaftySelectOptions.getCmgtDutyPlanTasks'\n // }, res => {\n // \tthis.planTaskIdSelectOptions = res\n // })\n // CommonApi.loadSelectOptions({\n // \tname: 'cmgtSaftySelectOptions.getUsers'\n // }, res => {\n // \tthis.userIdSelectOptions = res\n // })\n // CommonApi.loadSelectOptions({\n // \tname: 'cmgtSaftySelectOptions.getUsers'\n // }, res => {\n // \tthis.appraisalUserSelectOptions = res\n // })\n },\n methods: {\n itemScoreChange: function itemScoreChange(val) {\n console.log(val);\n },\n attachmentHandleFileDelete: function attachmentHandleFileDelete(f) {\n this.params.attachmentFileList = this.params.attachmentFileList.filter(function (item) {\n return item.fileId !== f.fileId;\n });\n },\n attachmentUploadSuccess: function attachmentUploadSuccess(res, file, fileList) {\n if (res.success) {\n this.params.attachmentFileList.push({\n name: res.fileName,\n fileId: res.fileId\n });\n } else {\n this.$message.error('上传文件失败!');\n }\n },\n attachmentBeforeUpload: function attachmentBeforeUpload(file) {\n var isLt1M = file.size / 1024 / 1024 < 100;\n\n if (!isLt1M) {\n this.$message.error('上传文件不能超过 100MB!');\n }\n\n return isLt1M;\n },\n add: function add() {\n this.title = '新增';\n this.resetForm();\n this.showFormDia = true;\n },\n //获取工作目标\n getTarget: function getTarget() {\n var _this = this;\n\n CmgtSaftyTargetApi.loadCmgtSaftyTarget(this.newParams, function (res) {\n if (res) {\n _this.TargetList = res.rows;\n }\n });\n },\n handleTarget: function handleTarget(item) {\n var _this2 = this;\n\n var arr = this.TargetList.filter(function (e) {\n return e.id == item;\n });\n this.params.checkYear = arr[0].targetYear;\n this.params.detail = [];\n console.log(arr[0].detail);\n arr[0].detail.forEach(function (e) {\n _this2.params.detail.push({\n itemId: e.id,\n itemName: e.kpiName,\n itemScore: '',\n itemStand: e.kpiStandard\n });\n }); // this.params.planName = arr[0].name\n // this.params.saftyClass = arr[0].saftyClass\n // this.params.planDescription = arr[0].memo\n // this.params.planComplet = arr[0].content\n // this.params.according = arr[0].according\n },\n resetForm: function resetForm() {\n this.params = {\n targetId: null,\n checkYear: null,\n assessor: null,\n assessorContent: null,\n assessorDate: null,\n detail: []\n };\n },\n handleClose: function handleClose() {\n this.resetForm();\n this.showFormDia = false;\n },\n handleSave: function handleSave() {\n var _this3 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n var method;\n\n if (!_this3.params.id) {\n // 新增\n method = CmgtSaftyAppraisalApi.addCmgtSaftyAppraisal;\n } else {\n // 修改\n method = CmgtSaftyAppraisalApi.editCmgtSaftyAppraisal;\n }\n\n _this3.loading = true;\n method(_this3.params, function (res) {\n _this3.loading = false;\n\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: _this3.title + '成功',\n duration: 2000\n }); //this.$emit('loadData')\n\n\n _this3.$parent.loadData();\n\n _this3.handleClose();\n } else {\n _this3.$message.warning(res.message);\n }\n });\n }\n });\n },\n Update: function Update(row) {\n var _this4 = this;\n\n this.title = '修改';\n this.showFormDia = true;\n CmgtSaftyAppraisalApi.getItemById(row.id, function (res) {\n _this4.params = res;\n }); // this.params = row\n },\n addTable: function addTable() {\n this.params.detail.push({}); // this.$refs.singleTable.setCurrentRow(this.tableData[this.tableData.length - 1])\n },\n delTable: function delTable(index, row) {\n this.params.detail.splice(index, 1);\n }\n }\n};",null]}