hz-zhhq-web/node_modules/.cache/babel-loader/afd90624c3d0684c7edba895f9e...

1 line
5.8 KiB
JSON

{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\epidemic\\travelCheck\\addtravelCheck\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\epidemic\\travelCheck\\addtravelCheck\\index.vue","mtime":1737610069415},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\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//引入font.css \nimport \"../../../../assets/custom-theme/font.css\";\nimport { updateTravelCheck, addTravelCheck } from \"@/api/getdata\";\nimport Popup from \"@/views/estate/examine/dialog/popup.vue\";\nexport default {\n components: {\n Popup: Popup\n },\n data: function data() {\n return {\n indexCall: this.$route.query.index ? this.$route.query.index : window.localStorage.getItem(\"healthmsgIndex\"),\n validation: false,\n completeTitle: \"\",\n nav: \"\",\n dialogImageUrl: \"\",\n dialogVisible: false,\n view: false,\n ruleForm: {\n title: \"\",\n subTitle: \"\"\n },\n aa: \"\",\n til: \"添加\",\n id: \"\",\n rules: {\n title: [{\n required: true,\n message: \"请输入标题\",\n trigger: \"blur\"\n }],\n subTitle: [{\n required: true,\n message: \"请输入副标题\",\n trigger: \"blur\"\n }]\n }\n };\n },\n created: function created() {},\n mounted: function mounted() {\n var author = \"\";\n var data = typeof this.$route.query.rowdata == \"string\" ? JSON.parse(window.localStorage.getItem(\"healthmsgRowdata\")) : this.$route.query.rowdata;\n this.ruleForm.title = data ? data.TITLE : \"\";\n this.ruleForm.subTitle = data ? data.SUBTITLE : \"\";\n this.til = data ? data.til : \"添加\";\n this.id = data ? data.UUID : \"\";\n //仅适用查看\n this.view = data ? data.view : false;\n\n //默认新增时加载富文本框\n if (!data) {\n this.ruleForm.type = '2';\n }\n },\n methods: {\n /**返回上一级 */comeBack: function comeBack() {\n this.$router.push({\n path: \"travelCheck\",\n params: {\n index: this.indexCall\n }\n });\n },\n submitForm: function submitForm(formName) {\n var _this = this;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n if (_this.til == \"编辑\") {\n _this.validation = true;\n _this.completeTitle = \"编辑\";\n _this.nav = \"是否编辑?\";\n } else {\n _this.validation = true;\n _this.completeTitle = \"添加\";\n _this.nav = \"是否添加?\";\n }\n }\n });\n },\n closeDialogDel: function closeDialogDel(val) {\n var _this2 = this;\n console.log(val);\n if (val == \"2\") {\n var Content = {\n id: this.id,\n title: this.ruleForm.title,\n subTitle: this.ruleForm.subTitle\n };\n updateTravelCheck(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.$router.push({\n path: \"travelCheck\",\n params: {\n index: _this2.indexCall\n }\n });\n // this.$router.go(-1);\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n } else if (val == \"3\") {\n var _Content = {\n title: this.ruleForm.title,\n subTitle: this.ruleForm.subTitle\n };\n addTravelCheck(_Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n if (_this2.completeTitle == \"添加\") {\n _this2.$router.push({\n path: \"travelCheck\",\n params: {\n index: 1\n }\n });\n //this.$router.go(-1);\n }\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n }\n // this.$refs[\"ruleForm\"].resetFields();\n this.validation = false;\n },\n resetForm: function resetForm(formName) {\n if (!this.view) {\n this.$refs[formName].resetFields();\n }\n this.$router.push({\n path: \"travelCheck\",\n params: {\n index: this.indexCall\n }\n });\n if (!this.view) {\n this.$message({\n message: \"取消成功\",\n type: \"success\",\n duration: 800\n });\n }\n }\n }\n};",null]}