{"remainingRequest":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\basicInfo\\components\\internationDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\basicInfo\\components\\internationDialog.vue","mtime":1676959627113},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.to-string\";\nimport _defineProperty from \"D:/jenkins/workspace/cqlt-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 dictUtils from '@/components/dict/DictSelectUtils.js';\nimport internationalSubject from '@/api/basicInfo/internationalSubject.js';\nexport default {\n name: 'internationDialog',\n data: function data() {\n var _parameter;\n\n return {\n visible: false,\n title: '新增',\n rules: {\n name: [{\n required: true,\n message: this.$t('international.tips') + this.$t('international.name'),\n trigger: 'blur'\n }],\n nameEn: [{\n required: true,\n message: this.$t('international.tips') + this.$t('international.nameEn'),\n trigger: 'blur'\n }],\n code: [{\n required: true,\n message: this.$t('international.tips') + this.$t('international.code'),\n trigger: 'blur'\n }]\n },\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n parameter: (_parameter = {\n name: \"\",\n nameEn: \"\",\n type: \"\",\n code: \"\",\n parentId: '',\n // level: \"\",\n correlation: ''\n }, _defineProperty(_parameter, \"type\", \"\"), _defineProperty(_parameter, \"unit\", \"\"), _defineProperty(_parameter, \"memo\", \"\"), _parameter),\n kmList: []\n };\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n edit: function edit(val) {\n var _this = this;\n\n this.title = this.$t('common.edit');\n this.visible = true;\n internationalSubject.detailId(val, function (res) {\n if (res) {\n _this.parameter = res;\n _this.parameter.level = _this.parameter.level.toString();\n }\n });\n },\n add: function add(val) {\n this.parameter.parentId = val;\n this.title = this.$t('common.add');\n this.visible = true;\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n var _this$parameter;\n\n this.visible = false;\n this.title = \"\";\n this.parameter = (_this$parameter = {\n name: \"\",\n nameEn: \"\",\n type: \"\",\n parentId: \"\",\n code: \"\",\n level: \"\"\n }, _defineProperty(_this$parameter, \"type\", \"\"), _defineProperty(_this$parameter, \"unit\", \"\"), _defineProperty(_this$parameter, \"memo\", \"\"), _this$parameter);\n },\n // 保存\n handleSave: function handleSave() {\n var _this2 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this2.title === '添加' || _this2.title === \"add\") {\n internationalSubject.addData(_this2.parameter, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: _this2.$t('international.success'),\n duration: 2000\n });\n\n _this2.$emit('getData');\n\n _this2.handleClose();\n }\n });\n } else if (_this2.title === '编辑' || _this2.title === \"edit\") {\n internationalSubject.editData(_this2.parameter, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: _this2.$t('international.success'),\n duration: 2000\n });\n\n _this2.$emit('getData');\n\n _this2.handleClose();\n }\n });\n }\n }\n });\n }\n }\n};",null]}