1 line
11 KiB
JSON
1 line
11 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\\userControl\\userManagement.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\userControl\\userManagement.vue","mtime":1737610069452},{"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 \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { Isc, GetUserInfo, DelUser, getAllLevel2Dept, ResetPossword } 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 options: [],\n iscontinue: false,\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n fileList: [],\n validation: false,\n completeTitle: \"删除\",\n nav: \"是否删除?\",\n btn: 3,\n food_name: \"\",\n formInline: {\n name: \"\",\n loginID: \"\",\n phone: \"\",\n cardNumber: \"\",\n bm: \"\"\n },\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.getSelect();\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 createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = \"加载中...\";\n },\n clearLoad: function clearLoad() {\n this.loading = false;\n this.loadingMsg = \"\";\n },\n getSelect: function getSelect() {\n var _this = this;\n getAllLevel2Dept().then(function (res) {\n // console.log(res,46)\n if (res.returnCode == \"1\") {\n _this.options = res.returnData;\n // this.$message({\n // message: res.returnMsg,\n // type: \"success\"\n // });\n\n // this.$router.push({\n // name: \"Food\",\n // params: { index: this.indexCall }\n // });\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\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 // 分页\n currentChanges: function currentChanges(val) {\n // console.log(val,300)\n this.createLoad();\n this.page.limit = val;\n this.getlist();\n },\n getlist: function getlist() {\n var _this2 = this;\n var Content = {\n pageSize: 10,\n //数量 必传\n pageIndex: this.page.limit == \"0\" ? 1 : this.page.limit,\n //页码 必传\n realName: this.formInline.name,\n //姓名\n loginName: this.formInline.loginID,\n mobile: this.formInline.phone,\n mealNo: this.formInline.cardNumber,\n departmentId: this.formInline.bm\n };\n // console.log(Content, 186);\n\n GetUserInfo(Content).then(function (res) {\n console.log(res, 190);\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 // this.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 //导入\n handlePreview: function handlePreview() {\n this.formDate = new FormData();\n this.$refs.upload.clearFiles();\n\n // this.arrlist.map((val, ind) => {\n // var Lastindex = this.fileList[0].name.lastIndexOf('.');\n // if (this.fileList[0].name.slice(Lastindex) != '.xls' && this.fileList[0].name.slice(Lastindex) != '.xlsx') {\n // this.$message({\n // message: '请选择正确的Excel格式',\n // type: 'warning'\n // })\n // return false\n // }\n // })\n },\n toISCData: function toISCData() {\n var _this3 = this;\n this.createLoad();\n Isc().then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.getlist();\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(\"error\");\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n });\n },\n addUser: function addUser() {\n // row.til = \"添加\";\n\n this.$router.push({\n path: \"userCompile\",\n query: {\n title: 1,\n // rowdata: row,\n index: this.page.limit,\n id: 1\n }\n });\n window.localStorage.removeItem(\"userData\");\n // window.localStorage.setItem(\"userData\", JSON.stringify(row));\n window.localStorage.setItem(\"userIndex\", this.page.limit);\n },\n onSubmit: function onSubmit() {\n var chinese = /^[\\u4e00-\\u9fa5]+$/;\n var englist = /^[a-zA-Z]+$/;\n this.iscontinue = false;\n if (chinese.test(this.formInline.name) || englist.test(this.formInline.name) || this.formInline.name == \"\") {\n this.iscontinue = true;\n }\n if (!this.iscontinue) {\n this.validation = true;\n this.completeTitle = \"警告\";\n this.btn = 2;\n this.nav = \"姓名格式只支持输入全中或全英文!\";\n } else {\n this.page.limit = 1;\n this.createLoad();\n this.getlist();\n }\n\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\n this.$router.push({\n path: \"userCompile\",\n query: {\n til: \"编辑\",\n rowdata: row,\n index: this.page.limit,\n id: 1\n }\n });\n window.localStorage.setItem(\"userData\", JSON.stringify(row));\n window.localStorage.setItem(\"userIndex\", this.page.limit);\n },\n closeDialogDel: function closeDialogDel(val) {\n var _this4 = this;\n if (val == \"1\") {\n this.createLoad();\n var Content = {\n id: this.row.id\n };\n DelUser(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this4.page.limit = 1;\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 } else if (val == \"7\") {\n this.createLoad();\n var _Content = {\n id: this.row.id\n };\n ResetPossword(_Content).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 this.validation = false;\n // setTimeout(() => {\n // this.clearLoad();\n // }, 300);\n },\n handleModifyStatus: function handleModifyStatus(row) {\n this.row = row;\n this.validation = true;\n this.btn = 3;\n this.completeTitle = \"删除\";\n this.nav = \"是否删除?\";\n // console.log(index, row,3)\n },\n resetPossword: function resetPossword(row) {\n this.row = row;\n this.validation = true;\n this.btn = 3;\n this.completeTitle = \"重置密码\";\n this.nav = \"是否重置密码?\";\n // console.log(index, row,3)\n },\n handleClick: function handleClick(row) {\n // console.log(row);\n },\n handleFood: function handleFood() {\n var id = 1;\n this.$router.push({\n path: \"addfoodDetail\",\n query: {\n til: \"添加\",\n id: id\n }\n });\n window.localStorage.setItem(\"foodIndex\", this.page.limit);\n }\n }\n};",null]} |