486d9a4d542a1bc37a82d12e68f2748e.json 11 KB

1
  1. {"remainingRequest":"D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\front\\item\\zyAdmin\\src\\pages\\system\\codeDataDictionary\\dataList.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\front\\item\\zyAdmin\\src\\pages\\system\\codeDataDictionary\\dataList.vue","mtime":1761614939068},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1761614927801},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\babel-loader\\lib\\index.js","mtime":1761614927320},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1761614927801},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\index.js","mtime":1761614937402}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:DQppbXBvcnQgeyBtYXBTdGF0ZSB9IGZyb20gJ3Z1ZXgnOw0KaW1wb3J0IHsgZ2V0RGF0YURpY3Rpb25hcnlJbmZvTGlzdCwgZ2V0RGF0YURpY3Rpb25hcnlJbmZvIH0gZnJvbSAnQC9hcGkvc3lzdGVtQ29kZUdlbmVyYXRpb24nOw0KDQpleHBvcnQgZGVmYXVsdCB7DQogIG5hbWU6ICd1c2VyX2xldmVsJywNCiAgZGF0YSgpIHsNCiAgICByZXR1cm4gew0KICAgICAgZ3JpZDogew0KICAgICAgICB4bDogNywNCiAgICAgICAgbGc6IDcsDQogICAgICAgIG1kOiAxMiwNCiAgICAgICAgc206IDI0LA0KICAgICAgICB4czogMjQsDQogICAgICB9LA0KICAgICAgbG9hZGluZzogZmFsc2UsDQogICAgICBmcm9tOiB7DQogICAgICAgIG5hbWU6ICcnLA0KICAgICAgICBwYWdlOiAxLA0KICAgICAgICBsaW1pdDogMTUsDQogICAgICB9LA0KICAgICAgZGljdGlvbmFyeUxpc3Q6IFtdLA0KICAgICAgb3B0aW9uc01vZGFsOi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rpb25hcnlJbmZvKHRoaXMuJHJvdXRlLnF1ZXJ5LmlkLCBpZCwgMCkpDQogICAgICAgIC50aGVuKChyZXMpID0+IHsNCiAgICAgICAgICB0aGlzLmdldENydWREYXRhRGljdGlvbmFyeSgpOw0KICAgICAgICB9KQ0KICAgICAgICAuY2F0Y2goKGVycikgPT4ge30pOw0KICAgIH0sDQogICAgZ2V0Q3J1ZERhdGFEaWN0aW9uYXJ5KCkgew0KICAgICAgZ2V0RGF0YURpY3Rpb25hcnlJbmZvTGlzdCh0aGlzLmZyb20pLnRoZW4oKHJlcykgPT4gew0KICAgICAgICB0aGlzLmRpY3Rpb25hcnlMaXN0ID0gcmVzLmRhdGEubGlzdDsNCiAgICAgICAgdGhpcy50b3RhbCA9IHJlcy5kYXRhLmNvdW50Ow0KICAgICAgfSk7DQogICAgfSwNCiAgICAvLyDliKDpmaQNCiAgICBkZWwocm93LCB0aXQsIG51bSkgew0KICAgICAgbGV0IGRlbGZyb21EYXRhID0gew0KICAgICAgICB0aXRsZTogdGl0LA0KICAgICAgICBudW06IG51bSwNCiAgICAgICAgdXJsOiBgc3lzdGVtL2NydWQvZGF0YV9kaWN0aW9uYXJ5L2luZm9fZGVsLyR7cm93LmlkfWAsDQogICAgICAgIG1ldGhvZDogJ2RlbGV0ZScsDQogICAgICAgIGlkczogJycsDQogICAgICB9Ow0KICAgICAgdGhpcy4kbW9kYWxTdXJlKGRlbGZyb21EYXRhKQ0KICAgICAgICAudGhlbigocmVzKSA9PiB7DQogICAgICAgICAgdGhpcy4kbWVzc2FnZS5zdWNjZXNzKHJlcy5tc2cpOw0KICAgICAgICAgIHRoaXMuZ2V0Q3J1ZERhdGFEaWN0aW9uYXJ5KCk7DQogICAgICAgIH0pDQogICAgICAgIC5jYXRjaCgocmVzKSA9PiB7DQogICAgICAgICAgdGhpcy4kbWVzc2FnZS5lcnJvcihyZXMubXNnKTsNCiAgICAgICAgfSk7DQogICAgfSwNCiAgICAvLyDmt7vliqANCiAgICBhZGQoKSB7DQogICAgICB0aGlzLiRtb2RhbEZvcm0oZ2V0RGF0YURpY3Rpb25hcnlJbmZvKHRoaXMuJHJvdXRlLnF1ZXJ5LmlkLCAwLCAwKSkNCiAgICAgICAgLnRoZW4oKHJlcykgPT4gew0KICAgICAgICAgIHRoaXMuZ2V0Q3J1ZERhdGFEaWN0aW9uYXJ5KCk7DQogICAgICAgIH0pDQogICAgICAgIC5jYXRjaCgoZXJyKSA9PiB7fSk7DQogICAgfSwNCiAgICAvLyDooajmoLzmkJzntKINCiAgICBzZWFyY2hzKCkgew0KICAgICAgdGhpcy5mcm9tLnBhZ2UgPSAxOw0KICAgICAgdGhpcy5nZXRDcnVkRGF0YURpY3Rpb25hcnkoKTsNCiAgICB9LA0KICAgIGRhdGFPcHRpb25zKGlkKSB7DQogICAgICB0aGlzLiRyb3V0ZXIucHVzaCh7DQogICAgICAgIHBhdGg6IHRoaXMuJHJvdXRlUHJvU3RyICsgJy9zeXN0ZW0vY29kZV9kYXRhX2RpY3Rpb25hcnlfZGF0YWxpc3QnLA0KICAgICAgICBxdWVyeTogeyBpZDogaWQgfSwNCiAgICAgIH0pOw0KICAgIH0sDQogIH0sDQp9Ow0K"},{"version":3,"sources":["dataList.vue"],"names":[],"mappings":";AAgEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"dataList.vue","sourceRoot":"src/pages/system/codeDataDictionary","sourcesContent":["<template>\r\n <div>\r\n <div class=\"i-layout-page-header header-title\">\r\n <div class=\"fl_header\">\r\n <el-button\r\n class=\"btn-back\"\r\n icon=\"el-icon-arrow-left\"\r\n size=\"small\"\r\n type=\"text\"\r\n v-db-click\r\n @click=\"$router.go(-1)\"\r\n >返回</el-button\r\n >\r\n <el-divider direction=\"vertical\"></el-divider>\r\n <span class=\"ivu-page-header-title\">{{ $route.meta.title }}</span>\r\n </div>\r\n </div>\r\n <el-card :bordered=\"false\" shadow=\"never\" class=\"ivu-mt mt16\">\r\n <el-button v-auth=\"['system-crud-data_dictionary']\" type=\"primary\" v-db-click @click=\"add\"\r\n >添加数据字典</el-button\r\n >\r\n <el-table\r\n :data=\"dictionaryList\"\r\n ref=\"table\"\r\n class=\"mt14\"\r\n v-loading=\"loading\"\r\n highlight-current-row\r\n no-userFrom-text=\"暂无数据\"\r\n no-filtered-userFrom-text=\"暂无筛选结果\"\r\n row-key=\"id\"\r\n :tree-props=\"{ children: 'children', hasChildren: 'hasChildren' }\"\r\n >\r\n <el-table-column label=\"ID\" min-width=\"80\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.id }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column prop=\"name\" label=\"字典名称\" min-width=\"100\"> </el-table-column>\r\n <el-table-column prop=\"value\" label=\"字典数据\" min-width=\"100\"> </el-table-column>\r\n <el-table-column prop=\"sort\" label=\"排序\" min-width=\"100\"> </el-table-column>\r\n <el-table-column prop=\"add_time\" label=\"添加时间\" min-width=\"200\"> </el-table-column>\r\n <el-table-column fixed=\"right\" label=\"操作\" width=\"200\">\r\n <template slot-scope=\"scope\">\r\n <a v-db-click @click=\"addSub(scope.row.id)\">添加下级</a>\r\n <el-divider direction=\"vertical\"></el-divider>\r\n <a v-db-click @click=\"eidtOptions(scope.row.id)\">编辑</a>\r\n <el-divider direction=\"vertical\"></el-divider>\r\n <a v-db-click @click=\"del(scope.row, '删除', scope.$index)\">删除</a>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <div class=\"acea-row row-right page\">\r\n <pagination\r\n v-if=\"total\"\r\n :total=\"total\"\r\n :page.sync=\"from.page\"\r\n :limit.sync=\"from.limit\"\r\n @pagination=\"getCrudDataDictionary\"\r\n />\r\n </div>\r\n </el-card>\r\n </div>\r\n</template>\r\n<script>\r\nimport { mapState } from 'vuex';\r\nimport { getDataDictionaryInfoList, getDataDictionaryInfo } from '@/api/systemCodeGeneration';\r\n\r\nexport default {\r\n name: 'user_level',\r\n data() {\r\n return {\r\n grid: {\r\n xl: 7,\r\n lg: 7,\r\n md: 12,\r\n sm: 24,\r\n xs: 24,\r\n },\r\n loading: false,\r\n from: {\r\n name: '',\r\n page: 1,\r\n limit: 15,\r\n },\r\n dictionaryList: [],\r\n optionsModal: false,\r\n dictionaryName: '',\r\n optionsList: [],\r\n levelLists: [],\r\n total: 0,\r\n FromData: null,\r\n imgName: '',\r\n visible: false,\r\n titleType: 'level',\r\n dictionaryId: 0,\r\n };\r\n },\r\n created() {\r\n this.from.id = this.$route.query.id;\r\n this.getCrudDataDictionary();\r\n },\r\n computed: {\r\n ...mapState('media', ['isMobile']),\r\n labelWidth() {\r\n return this.isMobile ? undefined : '80px';\r\n },\r\n labelPosition() {\r\n return this.isMobile ? 'top' : 'right';\r\n },\r\n },\r\n methods: {\r\n addSub(pid) {\r\n this.$modalForm(getDataDictionaryInfo(this.$route.query.id, 0, pid))\r\n .then((res) => {\r\n this.getCrudDataDictionary();\r\n })\r\n .catch((err) => {});\r\n },\r\n eidtOptions(id) {\r\n this.$modalForm(getDataDictionaryInfo(this.$route.query.id, id, 0))\r\n .then((res) => {\r\n this.getCrudDataDictionary();\r\n })\r\n .catch((err) => {});\r\n },\r\n getCrudDataDictionary() {\r\n getDataDictionaryInfoList(this.from).then((res) => {\r\n this.dictionaryList = res.data.list;\r\n this.total = res.data.count;\r\n });\r\n },\r\n // 删除\r\n del(row, tit, num) {\r\n let delfromData = {\r\n title: tit,\r\n num: num,\r\n url: `system/crud/data_dictionary/info_del/${row.id}`,\r\n method: 'delete',\r\n ids: '',\r\n };\r\n this.$modalSure(delfromData)\r\n .then((res) => {\r\n this.$message.success(res.msg);\r\n this.getCrudDataDictionary();\r\n })\r\n .catch((res) => {\r\n this.$message.error(res.msg);\r\n });\r\n },\r\n // 添加\r\n add() {\r\n this.$modalForm(getDataDictionaryInfo(this.$route.query.id, 0, 0))\r\n .then((res) => {\r\n this.getCrudDataDictionary();\r\n })\r\n .catch((err) => {});\r\n },\r\n // 表格搜索\r\n searchs() {\r\n this.from.page = 1;\r\n this.getCrudDataDictionary();\r\n },\r\n dataOptions(id) {\r\n this.$router.push({\r\n path: this.$routeProStr + '/system/code_data_dictionary_datalist',\r\n query: { id: id },\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.options-list {\r\n .item {\r\n display: flex;\r\n align-items: center;\r\n .add {\r\n font-size: 18px;\r\n cursor: pointer;\r\n margin-right: 5px;\r\n // color: #2d8cf0;\r\n }\r\n .delete {\r\n font-size: 18px;\r\n cursor: pointer;\r\n color: #fb0144;\r\n }\r\n }\r\n}\r\n</style>\r\n"]}]}