1 line
7.1 KiB
JSON
1 line
7.1 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\\jurisdiction\\roleManagement\\userDevices.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\jurisdiction\\roleManagement\\userDevices.vue","mtime":1737610069432},{"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\nimport Paging from \"@/views/Public/paging.vue\";\nimport { getHkUserList, addHkUser, updateRentData, delHkUser, importLifeFile, 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 loading: false,\n //初始化loading\n loadingMsg: \"\",\n dataRow: '',\n addPopup: false,\n rules: {\n staffNo: [{\n required: true,\n message: \"请输入员工号\",\n trigger: \"blur\"\n }]\n },\n ruleForm: {\n staffNo: ''\n },\n delRow: {},\n popupBtn: \"3\",\n completeTitle: \"\",\n nav: \"\",\n fileList: [],\n validation: false,\n formInline: {\n value1: ''\n // unit: \"\",\n // kinds: \"\"\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.createLoad();\n this.dataRow = this.$route.query.dataRow;\n console.log(this.dataRow);\n this.getlist();\n },\n methods: {\n addRecord: function addRecord() {\n this.addPopup = true;\n this.ruleForm = {\n staffNo: ''\n };\n },\n submitForm: function submitForm(formName) {\n var _this = this;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n _this.validation = true;\n _this.nav = \"确认新增?\";\n _this.completeTitle = \"新增\";\n _this.btn = \"3\";\n }\n });\n },\n del: function del(row) {\n this.delRow = row;\n this.validation = true;\n this.nav = \"确认删除?\";\n this.completeTitle = \"删除\";\n this.btn = \"1\";\n },\n cancal: function cancal(formName) {\n this.getlist();\n this.addPopup = false;\n },\n closeEnd: function closeEnd(val) {\n var _this2 = this;\n this.validation = false;\n if (val == \"1\") {\n this.createLoad();\n var Content = {\n staffNo: this.delRow.staffNo\n };\n delHkUser(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.page.limit = 1;\n _this2.getlist();\n _this2.addPopup = false;\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(\"error\");\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n });\n } else if (val == \"3\") {\n var _Content = {\n id: this.dataRow.id,\n staffNo: this.ruleForm.staffNo\n };\n addHkUser(_Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.getlist();\n _this2.addPopup = false;\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 },\n /**返回上一级 */comeBack: function comeBack() {\n this.$router.push({\n name: \"jurisdiction-roleManagement-roleManagement\",\n params: {\n index: this.indexCall\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 // 分页\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getlist();\n },\n getlist: function getlist() {\n var _this3 = 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 id: this.dataRow.id,\n pageNum: limit,\n pageSize: this.page.sizePage\n };\n getHkUserList(Content).then(function (res) {\n // console.log(res,212)\n if (res.returnCode == \"1\") {\n _this3.clearLoad();\n _this3.tableData = res.returnData.data;\n console.log(_this3.tableData);\n _this3.page.total = res.returnData.total;\n _this3.page.limit = res.returnData.currentPage;\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 onSubmit: function onSubmit() {\n this.page.limit = 1;\n this.createLoad();\n this.getlist();\n }\n }\n};",null]} |