1 line
8.0 KiB
JSON
1 line
8.0 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\\roleManage\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\jurisdiction\\roleManage\\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":1740463332762},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":1740463332584},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1740463332762},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":1740463340941}],"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 _paging = _interopRequireDefault(require(\"@/views/Public/paging.vue\"));\nvar _getdata = require(\"@/api/getdata\");\nvar _utils = require(\"@/utils\");\nvar _ticketpop = _interopRequireDefault(require(\"./popup/ticketpop.vue\"));\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n dataList: [],\n validation: false,\n formInline: {\n roleName: \"\",\n roleCode: \"\",\n roleType: \"\"\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n tableData: [],\n isflag: false /**用于设置弹窗 */,\n num: 3\n };\n },\n components: {\n Paging: _paging.default,\n Ticketopop: _ticketpop.default\n },\n mounted: function mounted() {\n this.createLoad();\n if (this.$route.params.index) {\n this.currentChanges(this.$route.params.index);\n } else {\n this.getlist();\n }\n this.getMenu();\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 // 分页\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getlist();\n },\n getMenu: function getMenu() {\n var _this = this;\n var Content = {};\n (0, _getdata.menuList)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this.clearLoad();\n if (res.returnData.length == 0) {\n _this.$message({\n message: \"当前无数据\",\n type: \"success\"\n });\n } else {\n _this.dataList = (0, _utils.treeDataTranslate)(res.returnData, 'id');\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 getlist: function getlist() {\n var _this2 = this;\n this.createLoad();\n var aa = {\n roleName: this.formInline.roleName,\n roleCode: this.formInline.roleCode,\n roleType: this.formInline.roleType\n };\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: aa\n };\n (0, _getdata.Rolelist)(Content).then(function (res) {\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 _this2.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 onSubmit: function onSubmit() {\n console.log(this.formInline);\n this.page.limit = 1;\n this.createLoad();\n this.getlist();\n },\n newAdd: function newAdd() {\n var data = {\n id: 0,\n roleCode: '',\n roleName: '',\n roleType: '',\n isDeleted: 'N'\n };\n this.row = data;\n this.isflag = true;\n },\n del: function del(id) {\n var _this3 = this;\n this.$alert(\"确认进行删除嘛?\", \"确认\", {\n confirmButtonText: \"确定\",\n callback: function callback(action) {\n if (action == \"confirm\") {\n _this3.createLoad();\n var Content = {\n id: id\n };\n (0, _getdata.DeleteRole)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.getlist();\n _this3.dialogTableVisible = false;\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 }\n });\n },\n editUser: function editUser(data) {\n // this.row = data; \n this.row = Object.assign({}, data);\n this.isflag = true;\n },\n closeDialog: function closeDialog() {\n this.isflag = false;\n this.row = {};\n },\n // 提交\n submit: function submit(e) {\n var _this4 = this;\n this.createLoad();\n if (e.id == 0) {\n e.creator = 'admin';\n e.modifier = 'admin';\n (0, _getdata.AddRole)(e).then(function (res) {\n if (res.returnCode == '1') {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this4.isflag = false;\n _this4.getlist();\n _this4.row = {};\n } else {\n _this4.clearLoad();\n _this4.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n _this4.clearLoad();\n });\n } else {\n e.modifier = 'admin';\n (0, _getdata.UpdateRole)(e).then(function (res) {\n if (res.returnCode == '1') {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this4.isflag = false;\n _this4.getlist();\n _this4.row = {};\n } else {\n _this4.clearLoad();\n _this4.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n _this4.clearLoad();\n });\n }\n }\n }\n};",null]} |