hz-zhhq-web/node_modules/.cache/babel-loader/609870d68774d2a7d2ab4a10c66...

1 line
5.5 KiB
JSON

{"remainingRequest":"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\\role\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\jurisdiction\\role\\index.vue","mtime":1737610069431},{"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\\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":["\"use strict\";\n\nvar _interopRequireDefault = require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _moment = _interopRequireDefault(require(\"moment\"));\nvar _addAccount = _interopRequireDefault(require(\"../popup/addAccount.vue\"));\nvar _mergeAccount = _interopRequireDefault(require(\"../popup/mergeAccount.vue\"));\nvar _getdata = require(\"@/api/getdata\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = exports.default = {\n components: {\n Addaccount: _addAccount.default,\n Mergeaccount: _mergeAccount.default\n },\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n roleType: \"role\",\n roleId: \"\",\n row: {},\n typeTitle: '',\n manageFlag: false,\n addFlag: false,\n tableData: [],\n roleSelectProp: []\n };\n },\n mounted: function mounted() {\n this.createLoad();\n this.getlist();\n // this.getselect();\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 (0, _getdata.roleSelectList)().then(function (res) {\n if (res.returnCode == \"1\") {\n _this.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this.roleSelectProp = res.returnData;\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 /**删除 */delAccount: function delAccount(id) {\n if (id) {\n this.createLoad();\n this.getlist();\n }\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 this.createLoad();\n this.getlist();\n },\n //管理\n manageChange: function manageChange(row) {\n this.row = row;\n this.manageFlag = true;\n this.roleId = row.role_id;\n // this.roleType = 'role';\n },\n //添加\n addChange: function addChange(row) {\n this.typeTitle = '添加';\n this.addFlag = true;\n this.row = row;\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 (0, _moment.default)(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 _this2 = this;\n (0, _getdata.roleList)().then(function (res) {\n // console.log(res);\n if (res.returnCode == \"1\") {\n // console.log(res)\n _this2.clearLoad();\n _this2.tableData = res.returnData;\n // this.page.total = res.returnData.total;\n // if (this.page.total == 0) {\n // this.$message({\n // message: \"当前无数据\",\n // type: \"success\"\n // });\n // } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n // }\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};",null]}