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

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\\tripstat\\statInfo.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\tripstat\\statInfo.vue","mtime":1737610069451},{"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\nimport Paging from \"@/views/Public/paging.vue\";\nimport { StatInfo, YyList, GetBmList, Own } 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 iscontinue: true,\n iscontinue2: false,\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n statusText: [\"待审核\", \"已同意\", \"已拒绝\", \"待本人确认\", \"已取消\"],\n validation: false,\n completeTitle: \"\",\n btns: 3,\n nav: \"\",\n options: [{\n name: \"全部\"\n }] /**拜访部门 */,\n formInline: {\n time: [],\n departmentName: \"\",\n type: \"\"\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n tableData: []\n };\n },\n mounted: function mounted() {\n this.formInline.time = [this.timeDefault(), this.timeDefault()];\n this.getbmlist();\n this.createLoad();\n this.getDate();\n },\n methods: {\n timeDefault: function timeDefault() {\n var date = new Date();\n var month = date.getMonth() + 1;\n if (month < 10) {\n month = \"0\" + month;\n }\n var s1 = date.getFullYear() + \"-\" + month + \"-\" + date.getDate();\n return s1;\n },\n changeDept: function changeDept() {\n console.log(666, this.formInline.departmentName);\n },\n onOut: function onOut() {\n var _this = this;\n Own().then(function (res) {\n if (res.returnCode === \"1\") {\n var a = _this.formInline.time ? _this.formInline.time[0] : \"\";\n var b = _this.formInline.time ? _this.formInline.time[1] : \"\";\n var type = _this.formInline.type;\n var str = \"beginDate=\" + a + \"&endDate=\" + b + \"&departmentName=\" + _this.formInline.departmentName + \"&type=\" + type;\n // let url = \"http://127.0.0.1:8082/greenH5/greenWebmodul/rest/greenVisitorStatistics/exportStatInfoByExcel?\" + str;\n var url = \"/greenH5/greenWebmodul/rest/greenVisitorStatistics/exportStatInfoByExcel?\" + str;\n console.log(url, 241);\n window.location.href = url;\n }\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 getbmlist: function getbmlist() {\n var _this2 = this;\n GetBmList().then(function (res) {\n if (res.returnCode == \"1\") {\n // console.log(554,res.returnData)\n _this2.options = _this2.options.concat(res.returnData);\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 closeEnd: function closeEnd() {\n this.validation = false;\n },\n onSubmit: function onSubmit() {\n var chinese = /^[\\u4e00-\\u9fa5]+$/;\n var englist = /^[a-zA-Z]+$/;\n this.iscontinue = false;\n this.iscontinue2 = false;\n // console.log(chinese.test(this.formInline.visitedPersonName))\n if (chinese.test(this.formInline.visitedPersonName) || englist.test(this.formInline.visitedPersonName) || this.formInline.visitedPersonName == \"\") {\n this.iscontinue = true;\n }\n if (chinese.test(this.formInline.visitorName) || englist.test(this.formInline.visitorName) || this.formInline.visitorName == \"\") {\n this.iscontinue2 = true;\n }\n if (!this.iscontinue || !this.iscontinue2) {\n this.validation = true;\n this.completeTitle = \"警告\";\n this.btns = 2;\n this.nav = \"姓名格式只支持输入全中或全英文!\";\n } else {\n // iscontinue = false;\n // this.validation = false;\n this.page.limit = 1;\n this.createLoad();\n this.getDate();\n }\n },\n // 分页\n currentChanges: function currentChanges(val) {\n this.page.limit = val;\n this.createLoad();\n this.getDate();\n },\n getDate: function getDate() {\n var _this3 = this;\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: {\n beginDate: this.formInline.time ? this.formInline.time[0] : \"\",\n endDate: this.formInline.time ? this.formInline.time[1] : \"\",\n departmentName: this.formInline.departmentName == \"全部\" ? \"\" : this.formInline.departmentName,\n type: this.formInline.type\n }\n };\n console.log(Content, \"Content\");\n StatInfo(Content).then(function (res) {\n console.log(res, 3391);\n if (res.returnCode == \"1\") {\n _this3.clearLoad();\n _this3.tableData = res.returnData.data;\n _this3.page.total = res.returnData.total;\n _this3.page.limit = res.returnData.currentPage;\n if (_this3.tableData.length == 0) {\n _this3.$message({\n message: \"当前无数据\",\n type: \"success\"\n });\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n }\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(err);\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n });\n },\n handleClick: function handleClick(index, row) {\n // this.validation = true;\n this.$router.push({\n // path: `/approve/visitor/details/${id}` ,\n path: \"detailsk\",\n query: {\n id: row.id\n }\n });\n },\n closeDialog: function closeDialog() {\n this.ruleForm = {};\n this.$refs.ruleForm.resetFields();\n }\n }\n};",null]}