{"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\\saftyTraining\\components\\CmgtSaftyTrainingRecordDetailFormDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyTraining\\components\\CmgtSaftyTrainingRecordDetailFormDialog.vue","mtime":1686644562601},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 CmgtSaftyTrainingRecordDetailApi from '@/views/Manage/saftyTraining/api/CmgtSaftyTrainingRecordDetailApi';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nimport CommonApi from '@/views/Manage/CommonApi.js';\nimport { mapState } from 'vuex';\nexport default {\n name: 'CmgtSaftyTrainingRecordDetailFormDialog',\n components: {},\n props: {},\n data: function data() {\n return {\n title: '新增',\n CommonApi: CommonApi,\n showFormDia: false,\n loading: false,\n activeCollapseNames: ['1'],\n activeTabChildName: '0',\n trainingIdSelectOptions: [],\n params: {\n trainingId: null,\n trainee: null,\n score: null,\n feedback: null,\n memo: null\n },\n rules: {}\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 var _this = this;\n\n CommonApi.loadSelectOptions({\n name: 'cmgtSaftySelectOptions.getCmgtSaftyTrainingRecords'\n }, function (res) {\n _this.trainingIdSelectOptions = res;\n });\n },\n methods: {\n add: function add() {\n this.title = '新增';\n this.resetForm();\n this.showFormDia = true;\n },\n resetForm: function resetForm() {\n this.params = {\n trainingId: null,\n trainee: null,\n score: null,\n feedback: null,\n memo: null\n };\n },\n handleClose: function handleClose() {\n this.resetForm();\n this.showFormDia = false;\n },\n handleSave: function handleSave() {\n var _this2 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n var method;\n\n if (!_this2.params.id) {\n // 新增\n method = CmgtSaftyTrainingRecordDetailApi.addCmgtSaftyTrainingRecordDetail;\n } else {\n // 修改\n method = CmgtSaftyTrainingRecordDetailApi.editCmgtSaftyTrainingRecordDetail;\n }\n\n _this2.loading = true;\n method(_this2.params, function (res) {\n _this2.loading = false;\n\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: _this2.title + '成功',\n duration: 2000\n }); // this.$emit('loadData')\n\n\n _this2.$parent.loadData();\n\n _this2.handleClose();\n } else {\n _this2.$message.warning(res.message);\n }\n });\n }\n });\n },\n Update: function Update(row) {\n this.title = '修改';\n this.showFormDia = true;\n this.params = row;\n }\n }\n};",null]}