1 line
7.8 KiB
JSON
1 line
7.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\\property\\questionnaire\\hasRelease\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\property\\questionnaire\\hasRelease\\index.vue","mtime":1737610069443},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { getQuestionnaireList, exportHealthyClock, Own, delQuestionnaireList, relraseQuestionnaire } 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 formInline: {\n value1: '',\n title: \"\",\n // userName: '',\n timeStart: '',\n timeEnd: '',\n type: \"\",\n cate: \"\"\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n downloadLoading: false,\n tableData: [],\n stateList: [{\n key: '0',\n value: '待发布'\n }, {\n key: '1',\n value: '进行中'\n }, {\n key: '2',\n value: '已完成'\n }]\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 },\n methods: {\n //新增跳转\n addQuestion: function addQuestion() {\n var id = 1;\n this.$router.push({\n path: \"/addQuestion\",\n query: {\n til: \"添加问卷\",\n id: id\n // houseType:JSON.stringify(this.houseType),\n // status: JSON.stringify(this.status),\n // device: JSON.stringify(this.device),\n // model: JSON.stringify(this.model),\n }\n });\n window.localStorage.setItem(\"pageIndex\", this.page.limit);\n },\n handleView: function handleView(row, index) {\n row.til = \"查看\";\n // console.log(row, row);\n var id = 1;\n this.$router.push({\n path: \"questionEcharts\",\n query: {\n rowdata: row,\n index: this.page.limit,\n til: \"结果统计\"\n // id: id\n }\n });\n window.localStorage.setItem(\"healthmsgRowdata\", JSON.stringify(row));\n window.localStorage.setItem(\"healthmsgIndex\", this.page.limit);\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: \"/addQuestion\",\n query: {\n rowdata: row,\n index: this.page.limit,\n id: id\n }\n });\n },\n //日期选择\n change: function change(v) {\n console.log(v);\n },\n //导出\n exportHandel: function exportHandel() {\n var _this = this;\n Own().then(function (res) {\n if (res.returnCode === \"1\") {\n var title = _this.formInline.title ? _this.formInline.title : \"\";\n var startTime = _this.formInline.value1[0] ? _this.formInline.value1[0] : \"\";\n var endTime = _this.formInline.value1[1] ? _this.formInline.value1[1] : \"\";\n var str = \"startTime=\" + startTime + \"&endTime=\" + endTime + '&title=' + title + '&type=1';\n // let url = \"http://192.168.43.122:8080/greenH5/greenWebmodul/rest/greenQuestionnaire/exportByExcel?\" + str;\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/greenQuestionnaire/exportByExcel?\" + str;\n console.log(url, 241);\n window.location.href = url;\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 // loading加载\n createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = \"加载中...\";\n },\n // loading加载\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 //获取列表\n getlist: function getlist() {\n var _this2 = this;\n var Content = {\n type: '1',\n title: this.formInline.title.trim(),\n startTime: this.formInline.value1 ? this.formInline.value1[0] : '',\n endTime: this.formInline.value1 ? this.formInline.value1[1] : '',\n pageNum: this.page.limit == 0 ? 1 : this.page.limit,\n pageSize: this.page.sizePage\n };\n // console.log(Content)\n getQuestionnaireList(Content).then(function (res) {\n console.log(res);\n if (res.returnCode == \"1\") {\n _this2.clearLoad();\n _this2.tableData = res.returnData.data;\n console.log(_this2.tableData);\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 onSubmit: function onSubmit() {\n // console.log(this.formInline);\n this.page.limit = 1;\n this.createLoad();\n this.getlist();\n }\n }\n};",null]} |