1 line
15 KiB
JSON
1 line
15 KiB
JSON
{"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\\property\\card\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\property\\card\\index.vue","mtime":1740461746782},{"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\\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":["\"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//\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//\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//\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 return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n fileList: [],\n validation: false,\n completeTitle: \"删除\",\n nav: \"是否删除?\",\n // food_name: \"\",\n formInline: {\n value1: '',\n title: \"\",\n userName: '',\n timeStart: '',\n checkStatus: '',\n timeEnd: '',\n type: \"\",\n state: \"\"\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n downloadLoading: false,\n tableData: [],\n cardTypeList: []\n };\n },\n mounted: function mounted() {\n this.timeDefaultShow = new Date();\n this.createLoad();\n if (this.$route.params.index) {\n this.currentChanges(this.$route.params.index);\n } else {\n this.getlist();\n }\n this.getCardTypeList();\n },\n methods: {\n getCardTypeList: function getCardTypeList() {\n var _this = this;\n (0, _getdata.getCardType)({}).then(function (res) {\n if (res.returnCode == \"1\") {\n _this.cardTypeList = res.returnData;\n // console.log(this.cardTypeList)\n }\n }).catch(function (err) {\n // console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n },\n //详情 \n toDetail: function toDetail(v) {\n this.$router.push({\n path: '/cardDetail',\n query: {\n // url的参数, 类似get请求的传参\n row: JSON.stringify(v)\n }\n });\n },\n upload: function upload(row) {\n (0, _getdata.Own)().then(function (res) {\n if (res.returnCode === \"1\") {\n var id = row.ID;\n var userName = \"\";\n var state = \"\";\n var type = \"\";\n var startTime = \"\";\n var endTime = \"\";\n var template = \"\";\n var checkStatus = \"\";\n if (row.CARD_TYPE.indexOf('施工') > -1) {\n template = 'template';\n }\n if (row.CARD_TYPE.indexOf('临时') > -1) {\n template = 'template1';\n }\n if (row.CARD_TYPE.indexOf('分部') > -1) {\n template = 'template2';\n }\n var str = \"userName=\" + userName + \"&state=\" + state + \"&type=\" + type + \"&startTime=\" + startTime + \"&endTime=\" + endTime + \"&checkStatus=\" + checkStatus + \"&template=\" + template + \"&id=\" + id;\n // let url = \"http://192.168.43.122:8080/greenH5/greenWebmodul/rest/greenAppLogStat/exportByExcelLog?\" + str;\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/greenCard/exportByExcel?\" + str;\n window.location.href = url;\n }\n });\n },\n exportHandle: function exportHandle(template) {\n var _this2 = this;\n (0, _getdata.Own)().then(function (res) {\n if (res.returnCode === \"1\") {\n var userName = _this2.formInline.userName.trim() ? _this2.formInline.userName.trim() : \"\";\n var state = _this2.formInline.state.trim() ? _this2.formInline.state.trim() : \"\";\n var type = _this2.formInline.type.trim() ? _this2.formInline.type.trim() : \"\";\n var startTime = _this2.formInline.value1 ? _this2.formInline.value1[0] : \"\";\n var endTime = _this2.formInline.value1 ? _this2.formInline.value1[1] : \"\";\n var checkStatus = _this2.formInline.checkStatus ? _this2.formInline.checkStatus : \"\";\n var str = \"userName=\" + userName + \"&state=\" + state + \"&type=\" + type + \"&startTime=\" + startTime + \"&endTime=\" + endTime + \"&template=\" + template + \"&checkStatus=\" + checkStatus + \"&id=\";\n // let url = \"http://192.168.43.122:8080/greenH5/greenWebmodul/rest/greenAppLogStat/exportByExcelLog?\" + str;\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/greenCard/exportByExcel?\" + str;\n window.location.href = url;\n }\n });\n },\n uploadCard: function uploadCard(row) {\n (0, _getdata.Own)().then(function (res) {\n if (res.returnCode === \"1\") {\n var id = row.ID;\n var userName = \"\";\n var state = \"\";\n var type = \"\";\n var startTime = \"\";\n var endTime = \"\";\n var checkStatus = \"\";\n var str = \"userName=\" + userName + \"&state=\" + state + \"&type=\" + type + \"&startTime=\" + startTime + \"&endTime=\" + endTime + \"&checkStatus=\" + checkStatus + \"&id=\" + id;\n // let url = \"http://192.168.43.122:8080/greenH5/greenWebmodul/rest/greenAppLogStat/exportByExcelLog?\" + str;\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/greenCard/exportByDoc?\" + str;\n window.location.href = url;\n }\n });\n },\n exportCard: function exportCard() {\n var _this3 = this;\n (0, _getdata.Own)().then(function (res) {\n if (res.returnCode === \"1\") {\n var userName = _this3.formInline.userName.trim() ? _this3.formInline.userName.trim() : \"\";\n var state = _this3.formInline.state.trim() ? _this3.formInline.state.trim() : \"\";\n var type = _this3.formInline.type.trim() ? _this3.formInline.type.trim() : \"\";\n var startTime = _this3.formInline.value1 ? _this3.formInline.value1[0] : \"\";\n var endTime = _this3.formInline.value1 ? _this3.formInline.value1[1] : \"\";\n var checkStatus = _this3.formInline.checkStatus ? _this3.formInline.checkStatus : \"\";\n var str = \"userName=\" + userName + \"&state=\" + state + \"&type=\" + type + \"&startTime=\" + startTime + \"&endTime=\" + endTime + \"&checkStatus=\" + checkStatus + \"&id=\";\n // let url = \"http://192.168.43.122:8080/greenH5/greenWebmodul/rest/greenAppLogStat/exportByExcelLog?\" + str;\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/greenCard/exportByDoc?\" + str;\n window.location.href = url;\n }\n });\n },\n syncImages: function syncImages() {\n var _this4 = this;\n this.loading = true;\n this.loadingMsg = \"同步中,请稍后...\";\n var Content = {};\n (0, _getdata.synchronousWebImage)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this4.clearLoad();\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 view: function view(row) {\n row.til = \"查看\";\n row.view = true;\n // console.log(row, row);\n var id = 1;\n this.$router.push({\n path: \"addtravelCheck\",\n query: {\n rowdata: row,\n index: this.page.limit,\n id: id\n }\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 _this5 = this;\n var limit = this.page.limit == \"0\" || this.page.limit == \"undefined\" ? 1 : this.page.limit;\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n userName: this.formInline.userName.trim(),\n type: this.formInline.type,\n cardType: this.formInline.state,\n checkStatus: this.formInline.checkStatus,\n startTime: this.formInline.value1 ? this.formInline.value1[0] : '',\n endTime: this.formInline.value1 ? this.formInline.value1[1] : '',\n pageNum: limit,\n pageSize: this.page.sizePage\n };\n console.log(Content);\n (0, _getdata.greenCardList)(Content).then(function (res) {\n console.log(res);\n // console.log(res,212)\n if (res.returnCode == \"1\") {\n _this5.clearLoad();\n console.log(res.returnData);\n _this5.tableData = res.returnData.data;\n console.log(_this5.tableData);\n _this5.page.total = res.returnData.total;\n _this5.page.limit = res.returnData.currentPage;\n // this.tableData.id = res.returnData.data.id\n } else {\n _this5.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this5.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this5.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: \"addtravelHealth\",\n query: {\n til: \"编辑\",\n rowdata: row,\n index: this.page.limit,\n id: id\n }\n });\n window.localStorage.setItem(\"healthmsgRowdata\", JSON.stringify(row));\n window.localStorage.setItem(\"healthmsgIndex\", this.page.limit);\n },\n closeDialogDel: function closeDialogDel(val) {\n var _this6 = this;\n if (val == \"1\") {\n this.createLoad();\n var Content = {\n id: this.row.UUID\n };\n (0, _getdata.deleteTravelCheck)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this6.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this6.page.limit = 1;\n _this6.getlist();\n } else {\n _this6.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this6.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(\"error\");\n setTimeout(function () {\n _this6.clearLoad();\n }, 300);\n });\n }\n this.validation = false;\n setTimeout(function () {\n _this6.clearLoad();\n }, 300);\n },\n handleModifyStatus: function handleModifyStatus(row) {\n this.row = row;\n this.validation = true;\n // console.log(index, row,3)\n },\n handleClick: function handleClick(row) {\n // console.log(row);\n },\n handleHealthmsg: function handleHealthmsg() {\n var id = 1;\n this.$router.push({\n path: \"/addtravelCheck\",\n query: {\n til: \"添加\",\n id: id\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]} |