forked from zhurui/management
1 line
6.7 KiB
JSON
1 line
6.7 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\sys\\region.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\sys\\region.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\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//\nimport mixinViewModule from '@/mixins/view-module';\nimport AddOrUpdate from \"./region-add-or-update\";\nexport default {\n mixins: [mixinViewModule],\n data: function data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/sys/region/list',\n deleteURL: '/sys/region'\n }\n };\n },\n components: {\n AddOrUpdate: AddOrUpdate\n },\n methods: {\n load: function load(tree, treeNode, resolve) {\n var _this = this;\n\n this.$http.get(\"/sys/region/list?pid=\".concat(tree.id)).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n return _this.$message.error(res.msg);\n }\n\n resolve(res.data);\n }).catch(function () {});\n },\n // 新增 / 修改\n addOrUpdateHandle: function addOrUpdateHandle(id) {\n var _this2 = this;\n\n this.addOrUpdateVisible = true;\n this.$nextTick(function () {\n _this2.$refs.addOrUpdate.init(id);\n });\n }\n }\n};",{"version":3,"sources":["region.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA,OAAA,eAAA,MAAA,sBAAA;AACA,OAAA,WAAA;AACA,eAAA;AACA,EAAA,MAAA,EAAA,CAAA,eAAA,CADA;AAEA,EAAA,IAFA,kBAEA;AACA,WAAA;AACA,MAAA,sBAAA,EAAA;AACA,QAAA,cAAA,EAAA,kBADA;AAEA,QAAA,SAAA,EAAA;AAFA;AADA,KAAA;AAMA,GATA;AAUA,EAAA,UAAA,EAAA;AACA,IAAA,WAAA,EAAA;AADA,GAVA;AAaA,EAAA,OAAA,EAAA;AACA,IAAA,IADA,gBACA,IADA,EACA,QADA,EACA,OADA,EACA;AAAA;;AACA,WAAA,KAAA,CAAA,GAAA,gCAAA,IAAA,CAAA,EAAA,GAAA,IAAA,CAAA,gBAAA;AAAA,YAAA,GAAA,QAAA,IAAA;;AACA,YAAA,GAAA,CAAA,IAAA,KAAA,CAAA,EAAA;AACA,iBAAA,KAAA,CAAA,QAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AACA;;AACA,QAAA,OAAA,CAAA,GAAA,CAAA,IAAA,CAAA;AACA,OALA,EAKA,KALA,CAKA,YAAA,CAAA,CALA;AAMA,KARA;AASA;AACA,IAAA,iBAVA,6BAUA,EAVA,EAUA;AAAA;;AACA,WAAA,kBAAA,GAAA,IAAA;AACA,WAAA,SAAA,CAAA,YAAA;AACA,QAAA,MAAA,CAAA,KAAA,CAAA,WAAA,CAAA,IAAA,CAAA,EAAA;AACA,OAFA;AAGA;AAfA;AAbA,CAAA","sourcesContent":["<template>\n <el-card shadow=\"never\" class=\"aui-card--fill\">\n <div class=\"mod-sys__region\">\n <el-form :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\">\n <el-form-item>\n <el-button v-if=\"$hasPermission('sys:region:save')\" type=\"primary\" @click=\"addOrUpdateHandle()\">{{ $t('add') }}</el-button>\n </el-form-item>\n </el-form>\n <el-table\n v-loading=\"dataListLoading\"\n :data=\"dataList\"\n row-key=\"id\"\n border\n lazy\n :load=\"load\"\n style=\"width: 100%\"\n :tree-props=\"{children: 'children', hasChildren: 'hasChildren'}\">\n <el-table-column prop=\"name\" :label=\"$t('region.name')\" header-align=\"center\" min-width=\"180\">\n <template slot-scope=\"scope\">\n {{ scope.row.name }}\n </template>\n </el-table-column>\n <el-table-column prop=\"id\" :label=\"$t('region.id')\" header-align=\"center\" min-width=\"180\">\n <template slot-scope=\"scope\">\n {{ scope.row.id }}\n </template>\n </el-table-column>\n <el-table-column prop=\"treeLevel\" :label=\"$t('region.type')\" header-align=\"center\" min-width=\"150\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.treeLevel === 1\">{{ $t('region.province') }}</span>\n <span v-else-if=\"scope.row.treeLevel === 2\">{{ $t('region.city') }}</span>\n <span v-else>{{ $t('region.county') }}</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"sort\" :label=\"$t('region.sort')\" header-align=\"center\" align=\"center\" min-width=\"150\"></el-table-column>\n <el-table-column prop=\"updateDate\" :label=\"$t('region.updateDate')\" header-align=\"center\" align=\"center\" min-width=\"150\"></el-table-column>\n <el-table-column :label=\"$t('handle')\" fixed=\"right\" header-align=\"center\" align=\"center\" width=\"150\">\n <template slot-scope=\"scope\">\n <el-button v-if=\"$hasPermission('sys:region:update')\" type=\"text\" size=\"small\" @click=\"addOrUpdateHandle(scope.row.id)\">{{ $t('update') }}</el-button>\n <el-button v-if=\"$hasPermission('sys:region:delete')\" type=\"text\" size=\"small\" @click=\"deleteHandle(scope.row.id,true)\">{{ $t('delete') }}</el-button>\n </template>\n </el-table-column>\n </el-table>\n <!-- 弹窗, 新增 / 修改 -->\n <add-or-update v-if=\"addOrUpdateVisible\" ref=\"addOrUpdate\" @refreshDataList=\"getDataList\"></add-or-update>\n </div>\n </el-card>\n</template>\n\n<script>\nimport mixinViewModule from '@/mixins/view-module'\nimport AddOrUpdate from './region-add-or-update'\nexport default {\n mixins: [mixinViewModule],\n data () {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/sys/region/list',\n deleteURL: '/sys/region'\n }\n }\n },\n components: {\n AddOrUpdate\n },\n methods: {\n load (tree, treeNode, resolve) {\n this.$http.get(`/sys/region/list?pid=${tree.id}`).then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n resolve(res.data)\n }).catch(() => {})\n },\n // 新增 / 修改\n addOrUpdateHandle (id) {\n this.addOrUpdateVisible = true\n this.$nextTick(() => {\n this.$refs.addOrUpdate.init(id)\n })\n }\n }\n}\n</script>\n"],"sourceRoot":"src/views/modules/sys"}]} |