1 line
5.7 KiB
JSON
1 line
5.7 KiB
JSON
|
{"remainingRequest":"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//\n\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",{"version":3,"sources":["region.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA;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":"region.vue","sourceRoot":"src/views/modules/sys","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-co
|