{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\resIns\\components\\dsmlnsForm-dialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\resIns\\components\\dsmlnsForm-dialog.vue","mtime":1684458239465},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"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//\nimport dsmInsPosition from '@/api/resIns/dsmInsPosition.js';\nimport req from '@/request.js';\nexport default {\n name: 'deviceForm-dialog',\n props: {\n showFormDia: {\n type: Boolean,\n default: false\n },\n title: {\n type: String,\n default: ''\n },\n pId: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n stcds: [],\n gradeCodes: [],\n params: {\n structure: null,\n //巡检结构名称\n position: null,\n //巡检对象名称\n description: null //巡检对象要求描述\n\n },\n rules: {\n structure: [{\n required: true,\n message: '请输入巡检结构名称',\n trigger: 'blur'\n }],\n position: [{\n required: true,\n message: '请输入巡检对象名称',\n trigger: 'blur'\n }]\n }\n };\n },\n created: function created() {\n this.getDetailInfo();\n this.getList();\n this.getSysDict();\n },\n methods: {\n getList: function getList() {\n var _this = this;\n\n dsmInsPosition.getgqList({}, function (res) {\n _this.stcds = res.value;\n _this.params.stcd = _this.stcds[0].mpcd;\n });\n },\n changeCode: function changeCode(val) {\n var _this2 = this;\n\n this.gradeCodes.forEach(function (e) {\n if (e.value === val) {\n _this2.params.gradeName = e.name;\n }\n });\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var portal = window.context.portal;\n return new Promise(function (resolve, reject) {\n req.post(portal + '/sys/sysDictionary/v1/queryAllDictItems').then(function (response) {}, function (error) {\n reject(error);\n });\n });\n },\n // 根据ID查询\n getDetailInfo: function getDetailInfo() {\n var _this3 = this;\n\n if (this.title === '修改') {\n dsmInsPosition.detailId(this.pId, function (res) {\n _this3.params = res.value;\n\n _this3.$set(_this3.params);\n });\n } else {\n this.params = {\n structure: null,\n //巡检结构名称\n position: null,\n //巡检对象名称\n description: null //巡检对象要求描述\n\n };\n }\n },\n handleClose: function handleClose() {\n ;\n this.params = {\n isNoteMsg: null,\n gradeCode: null,\n gradeName: null,\n stcd: null,\n yjz: null,\n shhjz: null,\n lhjz: null,\n sejz: null,\n esjz: null\n }, this.$emit('closeFormDiao');\n },\n goInfo: function goInfo(e) {\n var _this4 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this4.title === '新增') {\n dsmInsPosition.addSave(_this4.params, function (response) {\n if (response.state) {\n _this4.$notify({\n type: 'success',\n message: '新增成功',\n duration: 2000 // offset: 80\n\n });\n\n _this4.$emit('closeFormDiao');\n\n _this4.$emit('refList');\n } else {}\n });\n }\n\n if (_this4.title === '修改') {\n dsmInsPosition.upData(_this4.params, function (response) {\n if (response.state) {\n _this4.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000 // offset: 80\n\n });\n\n _this4.$emit('closeFormDiao');\n\n _this4.$emit('refList');\n } else {}\n });\n }\n } else {\n return false;\n }\n });\n }\n }\n};",null]}