hz-zhhq-web/node_modules/.cache/babel-loader/59e8bcfa682fb23f16c61ddc012...

1 line
7.5 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"remainingRequest":"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\\seekmedical\\settime\\settime.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\seekmedical\\settime\\settime.vue","mtime":1737610069448},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1740463332762},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":1740463332584},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1740463332762},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":1740463340941}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireDefault = require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _paging = _interopRequireDefault(require(\"@/views/Public/paging.vue\"));\nvar _getdata = require(\"@/api/getdata\");\nvar _popup = _interopRequireDefault(require(\"@/views/estate/examine/dialog/popup.vue\"));\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = exports.default = {\n components: {\n Paging: _paging.default,\n Popup: _popup.default\n },\n data: function data() {\n var titleVa = function titleVa(rule, value, callback) {\n var reg = /[`~!@#$%^&*_\\-+=<>?:\"{}|,./;'\\\\[\\]·~@#¥%……&*——\\-+={}|《》?:“”【】、;‘’,。、]/g;\n if (!reg.test(value)) {\n callback();\n } else {\n callback(new Error(\"不支持输入@#¥%……...等特殊字符 \"));\n }\n };\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n fileList: [],\n validation: false,\n completeTitle: \"删除\",\n nav: \"是否删除?\",\n til: \"添加\",\n days: [],\n ruleForm: {\n project_time: \"\",\n project_num: \"\",\n project_id: '',\n id: ''\n },\n parentdata: [],\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n downloadLoading: false,\n rules: {\n project_name: [{\n required: true,\n message: \"请输入分项名称\",\n trigger: \"blur\"\n }, {\n validator: titleVa,\n trigger: \"blur\"\n }],\n parent_id: [{\n required: true,\n message: \"请选择项目\",\n trigger: \"blur\"\n }]\n },\n rowdata: '',\n index: ''\n };\n },\n mounted: function mounted() {\n var data = this.$route.query;\n this.ruleForm.project_id = data ? data.id : \"\";\n this.rowdata = data.rowdata;\n this.index = data.index;\n var row = data.rowdata_;\n this.ruleForm.project_time = row ? row.project_time : '';\n this.ruleForm.project_num = row ? row.project_num : '';\n this.ruleForm.id = row ? row.id : '';\n this.til = row ? row.til : \"添加\";\n\n // this.getparentdata();\n },\n methods: {\n /**返回上一级 */comeBack: function comeBack() {\n var id = 0;\n this.$router.push({\n path: \"setSeekMedicalTimeIndex\",\n query: {\n index: this.indexCall,\n id: id,\n rowdata: this.rowdata\n }\n });\n },\n resetForm: function resetForm(formName) {\n if (!this.view) {\n this.$refs[formName].resetFields();\n }\n this.$router.push({\n path: \"setSeekMedicalTimeIndex\",\n query: {\n index: this.indexCall,\n id: 0,\n rowdata: this.rowdata\n }\n });\n this.$message({\n message: \"取消成功\",\n type: \"success\",\n duration: 800\n });\n },\n submitForm: function submitForm(formName, idx) {\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 // this.ruleForm.status = idx\n },\n closeDialogDel: function closeDialogDel(val) {\n var _this2 = this;\n if (val == \"2\") {\n var Content = {\n id: this.ruleForm.id,\n project_id: this.ruleForm.project_id,\n project_time: this.ruleForm.project_time,\n project_num: this.ruleForm.project_num\n };\n (0, _getdata.modifySeekMedicalTime)(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: \"setSeekMedicalTimeIndex\",\n query: {\n index: _this2.indexCall,\n id: Content.project_id,\n rowdata: _this2.rowdata\n }\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 } else if (val == \"3\") {\n var _Content = {\n project_id: this.ruleForm.project_id,\n project_time: this.ruleForm.project_time,\n project_num: this.ruleForm.project_num\n };\n (0, _getdata.createSeekMedicalTime)(_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: \"setSeekMedicalTimeIndex\",\n query: {\n index: _this2.indexCall,\n id: _Content.project_id,\n rowdata: _this2.rowdata\n }\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 mouseoverSpan: function mouseoverSpan(e) {\n if (e.target.scrollWidth > e.target.offsetWidth) {\n e.target.setAttribute(\"class\", \"cell-box span-overflow\");\n }\n },\n bs64: function bs64(_bs) {\n var reader = new FileReader();\n reader.readAsDataURL(_bs);\n return new Promise(function (resolve) {\n reader.onload = function (e) {\n resolve(e.target.result);\n };\n });\n },\n formatJson: function formatJson(filterVal, jsonData) {\n return jsonData.map(function (v) {\n return filterVal.map(function (j) {\n if (j === \"timestamp\") {\n return parseTime(v[j]);\n } else {\n return v[j];\n }\n });\n });\n }\n }\n};",null]}