1 line
7.7 KiB
JSON
1 line
7.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\\dict-data.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\sys\\dict-data.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//\n//\n//\n//\n//\n//\nimport mixinViewModule from '@/mixins/view-module';\nimport AddOrUpdate from \"./dict-data-add-or-update\";\nexport default {\n mixins: [mixinViewModule],\n data: function data() {\n return {\n mixinViewModuleOptions: {\n createdIsNeed: false,\n getDataListURL: '/sys/dict/data/page',\n getDataListIsPage: true,\n deleteURL: '/sys/dict/data',\n deleteIsBatch: true\n },\n dataForm: {\n dictTypeId: '0',\n dictLabel: '',\n dictValue: ''\n }\n };\n },\n components: {\n AddOrUpdate: AddOrUpdate\n },\n created: function created() {\n this.dataForm.dictTypeId = this.$route.params.dictTypeId || '0';\n this.getDataList();\n },\n methods: {\n // 新增 / 修改\n addOrUpdateHandle: function addOrUpdateHandle(id) {\n var _this = this;\n\n this.addOrUpdateVisible = true;\n this.$nextTick(function () {\n _this.$refs.addOrUpdate.dataForm.id = id;\n _this.$refs.addOrUpdate.dataForm.dictTypeId = _this.dataForm.dictTypeId;\n\n _this.$refs.addOrUpdate.init();\n });\n }\n }\n};",{"version":3,"sources":["dict-data.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,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,aAAA,EAAA,KADA;AAEA,QAAA,cAAA,EAAA,qBAFA;AAGA,QAAA,iBAAA,EAAA,IAHA;AAIA,QAAA,SAAA,EAAA,gBAJA;AAKA,QAAA,aAAA,EAAA;AALA,OADA;AAQA,MAAA,QAAA,EAAA;AACA,QAAA,UAAA,EAAA,GADA;AAEA,QAAA,SAAA,EAAA,EAFA;AAGA,QAAA,SAAA,EAAA;AAHA;AARA,KAAA;AAcA,GAjBA;AAkBA,EAAA,UAAA,EAAA;AACA,IAAA,WAAA,EAAA;AADA,GAlBA;AAqBA,EAAA,OArBA,qBAqBA;AACA,SAAA,QAAA,CAAA,UAAA,GAAA,KAAA,MAAA,CAAA,MAAA,CAAA,UAAA,IAAA,GAAA;AACA,SAAA,WAAA;AACA,GAxBA;AAyBA,EAAA,OAAA,EAAA;AACA;AACA,IAAA,iBAFA,6BAEA,EAFA,EAEA;AAAA;;AACA,WAAA,kBAAA,GAAA,IAAA;AACA,WAAA,SAAA,CAAA,YAAA;AACA,QAAA,KAAA,CAAA,KAAA,CAAA,WAAA,CAAA,QAAA,CAAA,EAAA,GAAA,EAAA;AACA,QAAA,KAAA,CAAA,KAAA,CAAA,WAAA,CAAA,QAAA,CAAA,UAAA,GAAA,KAAA,CAAA,QAAA,CAAA,UAAA;;AACA,QAAA,KAAA,CAAA,KAAA,CAAA,WAAA,CAAA,IAAA;AACA,OAJA;AAKA;AATA;AAzBA,CAAA","sourcesContent":["<template>\n <el-card shadow=\"never\" class=\"aui-card--fill\">\n <div class=\"mod-sys__dict\">\n <el-form :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\">\n <el-form-item>\n <el-input v-model=\"dataForm.dictValue\" :placeholder=\"$t('dict.dictValue')\" clearable></el-input>\n </el-form-item>\n <el-form-item>\n <el-input v-model=\"dataForm.dictLabel\" :placeholder=\"$t('dict.dictLabel')\" clearable></el-input>\n </el-form-item>\n <el-form-item>\n <el-button @click=\"getDataList()\">{{ $t('query') }}</el-button>\n </el-form-item>\n <el-form-item>\n <el-button v-if=\"$hasPermission('sys:dict:save')\" type=\"primary\" @click=\"addOrUpdateHandle()\">{{ $t('add') }}</el-button>\n </el-form-item>\n <el-form-item>\n <el-button v-if=\"$hasPermission('sys:dict:delete')\" type=\"danger\" @click=\"deleteHandle()\">{{ $t('deleteBatch') }}</el-button>\n </el-form-item>\n </el-form>\n <el-table\n v-loading=\"dataListLoading\"\n :data=\"dataList\"\n border\n @selection-change=\"dataListSelectionChangeHandle\"\n @sort-change=\"dataListSortChangeHandle\"\n style=\"width: 100%;\">\n <el-table-column type=\"selection\" header-align=\"center\" align=\"center\" width=\"50\"></el-table-column>\n <el-table-column prop=\"dictValue\" :label=\"$t('dict.dictValue')\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"dictLabel\" :label=\"$t('dict.dictLabel')\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"sort\" :label=\"$t('dict.sort')\" sortable=\"custom\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"remark\" :label=\"$t('dict.remark')\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"createDate\" :label=\"$t('dict.createDate')\" sortable=\"custom\" header-align=\"center\" align=\"center\" width=\"180\"></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:dict:update')\" type=\"text\" size=\"small\" @click=\"addOrUpdateHandle(scope.row.id)\">{{ $t('update') }}</el-button>\n <el-button v-if=\"$hasPermission('sys:dict: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 <el-pagination\n :current-page=\"page\"\n :page-sizes=\"[10, 20, 50, 100]\"\n :page-size=\"limit\"\n :total=\"total\"\n layout=\"total, sizes, prev, pager, next, jumper\"\n @size-change=\"pageSizeChangeHandle\"\n @current-change=\"pageCurrentChangeHandle\">\n </el-pagination>\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 './dict-data-add-or-update'\nexport default {\n mixins: [mixinViewModule],\n data () {\n return {\n mixinViewModuleOptions: {\n createdIsNeed: false,\n getDataListURL: '/sys/dict/data/page',\n getDataListIsPage: true,\n deleteURL: '/sys/dict/data',\n deleteIsBatch: true\n },\n dataForm: {\n dictTypeId: '0',\n dictLabel: '',\n dictValue: ''\n }\n }\n },\n components: {\n AddOrUpdate\n },\n created () {\n this.dataForm.dictTypeId = this.$route.params.dictTypeId || '0'\n this.getDataList()\n },\n methods: {\n // 新增 / 修改\n addOrUpdateHandle (id) {\n this.addOrUpdateVisible = true\n this.$nextTick(() => {\n this.$refs.addOrUpdate.dataForm.id = id\n this.$refs.addOrUpdate.dataForm.dictTypeId = this.dataForm.dictTypeId\n this.$refs.addOrUpdate.init()\n })\n }\n }\n}\n</script>\n"],"sourceRoot":"src/views/modules/sys"}]} |