1 line
9.9 KiB
JSON
1 line
9.9 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\\seekmedical\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\seekmedical\\index.vue","mtime":1737610069447},{"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":["import _createForOfIteratorHelper from \"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js\";\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//\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 Paging from \"@/views/Public/paging.vue\";\nimport { seekmedicalList, getparentdata as _getparentdata, deleteSeekMedicalInfo } from \"@/api/getdata\";\nimport Popup from \"@/views/estate/examine/dialog/popup.vue\";\nexport default {\n components: {\n Paging: Paging,\n Popup: Popup\n },\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n fileList: [],\n validation: false,\n completeTitle: \"删除\",\n nav: \"是否删除?\",\n // food_name: \"\",\n\n formInline: {\n project_name: \"\",\n parent_id: \"\"\n },\n parentdata: [],\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n downloadLoading: false,\n tableData: []\n };\n },\n mounted: function mounted() {\n this.createLoad();\n this.getparentdata();\n if (this.$route.params.index) {\n this.currentChanges(this.$route.params.index);\n } else {\n this.getlist();\n }\n },\n methods: {\n formatter: function formatter(row, column) {\n var parent_id = row.parent_id;\n if (parent_id === 0) {\n return '';\n }\n var project_day = row.project_day || [];\n if (project_day.length === 0) {\n return '无限制';\n }\n var values = [];\n var _iterator = _createForOfIteratorHelper(project_day),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var day = _step.value;\n switch (day) {\n case '0':\n values.push('周日');\n break;\n case '1':\n values.push('周一');\n break;\n case '2':\n values.push('周二');\n break;\n case '3':\n values.push('周三');\n break;\n case '4':\n values.push('周四');\n break;\n case '5':\n values.push('周五');\n break;\n case '6':\n values.push('周六');\n break;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return values.join(',');\n },\n getparentdata: function getparentdata() {\n var _this = this;\n _getparentdata().then(function (res) {\n if (res.returnCode == \"1\") {\n _this.parentdata = res.returnData.data;\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\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 createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = \"加载中...\";\n },\n clearLoad: function clearLoad() {\n this.loading = false;\n this.loadingMsg = \"\";\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 // 分页\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getlist();\n },\n getlist: function getlist() {\n var _this2 = this;\n var aa = {\n project_name: this.formInline.project_name.trim(),\n parent_id: this.formInline.parent_id\n };\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: aa\n };\n seekmedicalList(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.clearLoad();\n _this2.tableData = res.returnData.data;\n _this2.page.total = res.returnData.total;\n _this2.page.limit = res.returnData.currentPage;\n _this2.tableData.id = res.returnData.data.id;\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n });\n },\n handleAvatarSuccess: function handleAvatarSuccess(aa, bb) {\n // console.log(aa, bb, 888);\n },\n onError: function onError() {},\n onSuccess: function onSuccess() {},\n onSubmit: function onSubmit() {\n // console.log(this.formInline);\n this.page.limit = 1;\n this.createLoad();\n this.getlist();\n },\n handleUpdate: function handleUpdate(row, index) {\n row.til = \"编辑\";\n // console.log(row, row);\n var id = 1;\n this.$router.push({\n path: \"addSeekMedicalDetail\",\n query: {\n til: \"编辑\",\n rowdata: row,\n index: this.page.limit,\n id: id\n }\n });\n window.localStorage.setItem(\"seekmedicalInfoRowdata\", JSON.stringify(row));\n window.localStorage.setItem(\"seekmedicalInfoIndex\", this.page.limit);\n },\n setTime: function setTime(row, index) {\n row.til = row.project_name + \"设置就诊时间\";\n var id = 1;\n this.$router.push({\n path: \"setSeekMedicalTimeIndex\",\n query: {\n rowdata: row,\n index: this.page.limit,\n id: id\n }\n });\n },\n closeDialogDel: function closeDialogDel(val) {\n var _this3 = this;\n if (val == \"1\") {\n this.createLoad();\n var Content = {\n id: this.row.id\n };\n deleteSeekMedicalInfo(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.page.limit = 1;\n _this3.getlist();\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(\"error\");\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n });\n }\n this.validation = false;\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n },\n handleModifyStatus: function handleModifyStatus(row) {\n this.row = row;\n this.validation = true;\n },\n handleClick: function handleClick(row) {\n // console.log(row);\n },\n addSeekMedicalInfo: function addSeekMedicalInfo() {\n var id = 1;\n this.$router.push({\n path: \"/addSeekMedicalDetail\",\n query: {\n til: \"添加\",\n id: id\n }\n });\n window.localStorage.setItem(\"seekmedicalInfoIndex\", this.page.limit);\n },\n handleCommit: function handleCommit(row) {\n var _this4 = this;\n updateActiveInfostatus(row).then(function (res) {\n if (res.returnCode == \"1\") {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this4.getlist();\n } else {\n _this4.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(\"error\");\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\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]} |