1 line
6.2 KiB
JSON
1 line
6.2 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\\accountnumber\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\jurisdiction\\accountnumber\\index.vue","mtime":1737610069427},{"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\nimport moment from \"moment\";\nimport Addaccount from \"../popup/addAccount.vue\";\nimport Mergeaccount from \"../popup/mergeAccount.vue\";\nimport Paging from \"@/views/Public/paging.vue\";\nimport { accList } from \"@/api/getdata\";\nexport default {\n components: {\n Paging: Paging,\n Addaccount: Addaccount,\n Mergeaccount: Mergeaccount\n },\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n roleType: \"account\",\n roleId: \"\",\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n row: {},\n typeTitle: \"\",\n manageFlag: false,\n addFlag: false,\n tableData: [\n // {\n // code: \"1001\",\n // name: \"施工管理员\",\n // Founder: \"上帝\",\n // date: \"2016-05-02\"\n // },\n // {\n // code: \"1002\",\n // name: \"餐券管理员\",\n // Founder: \"adxxmin\",\n // date: \"2016-05-02\"\n // },\n // {\n // code: \"1003\",\n // name: \"员工管理员\",\n // Founder: \"adxxmin\",\n // date: \"2016-05-02\"\n // }\n ]\n };\n },\n mounted: function mounted() {\n // console.log(moment,50)\n this.createLoad();\n this.getlist();\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 currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getlist();\n },\n /**删除 */delAccount: function delAccount(id) {\n this.createLoad();\n this.page.limit = 1;\n this.getlist();\n console.log(\"删除\");\n },\n closeDialogE: function closeDialogE() {\n this.manageFlag = false;\n },\n closeDialog: function closeDialog() {\n this.addFlag = false;\n },\n closeaccount: function closeaccount(val) {\n this.addFlag = false;\n // console.log(val,88)\n },\n //管理\n manageChange: function manageChange(row) {\n this.row = row;\n this.manageFlag = true;\n this.roleId = row.role_id;\n },\n toManage: function toManage(row) {\n var onurl = window.location.href.indexOf(\"role\") !== -1 ? \"APP角色管理\" : \"审批权限管理\";\n this.$router.push({\n name: \"Manage\",\n query: {\n row: JSON.stringify(row),\n // 先转字符串 到子页面解析,否则 在子页面 刷新 该数据就会丢失\n onurl: onurl\n }\n });\n },\n //添加\n addChange: function addChange(row) {\n this.row = row;\n this.typeTitle = \"添加\";\n this.addFlag = true;\n },\n changeInfo: function changeInfo(row) {\n this.typeTitle = \"修改\";\n this.addFlag = true;\n this.row = row;\n },\n dateFormat: function dateFormat(row, column) {\n var date = row[column.property];\n if (date == undefined) {\n return \"\";\n }\n return moment(date).format(\"YYYY-MM-DD HH:mm:ss\");\n },\n formatDate: function formatDate(now) {\n var year = now.getFullYear();\n var month = now.getMonth() + 1;\n var date = now.getDate();\n var hour = now.getHours();\n var minute = now.getMinutes();\n var second = now.getSeconds();\n return year + \"-\" + month + \"-\" + date + \" \" + hour + \":\" + minute + \":\" + second;\n },\n getlist: function getlist() {\n var _this = this;\n accList().then(function (res) {\n // console.log(res);\n if (res.returnCode == \"1\") {\n _this.clearLoad();\n // console.log(res)\n _this.tableData = res.returnData;\n // console.log(res.returnData, 888 )\n // this.page.total = res.returnData.total;\n // this.page.limit = res.returnData.currentPage;\n // if (this.page.total == 0) {\n // this.$message({\n // message: \"当前无数据\",\n // type: \"success\"\n // });\n // } else {\n _this.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n // }\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n }\n }\n};",null]} |