From 0eaa150db9775d0b25575e2bc2b9573663e4f2ae Mon Sep 17 00:00:00 2001 From: kilo Date: Wed, 10 May 2023 13:39:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=9F=E6=88=B7=E7=BC=96=E7=A0=81=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basic/basicTenantCode.js | 50 +++ src/option/basic/basicTenantCode.js | 74 ++++ src/views/basic/coderule/basicTenantCode.vue | 357 +++++++++++++++++++ 3 files changed, 481 insertions(+) create mode 100644 src/api/basic/basicTenantCode.js create mode 100644 src/option/basic/basicTenantCode.js create mode 100644 src/views/basic/coderule/basicTenantCode.vue diff --git a/src/api/basic/basicTenantCode.js b/src/api/basic/basicTenantCode.js new file mode 100644 index 00000000..0acf3719 --- /dev/null +++ b/src/api/basic/basicTenantCode.js @@ -0,0 +1,50 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/logpm-basic/TenantCode/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/logpm-basic/TenantCode/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/logpm-basic/TenantCode/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/logpm-basic/TenantCode/save', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/logpm-basic/TenantCode/update', + method: 'post', + data: row + }) +} + diff --git a/src/option/basic/basicTenantCode.js b/src/option/basic/basicTenantCode.js new file mode 100644 index 00000000..de3d040e --- /dev/null +++ b/src/option/basic/basicTenantCode.js @@ -0,0 +1,74 @@ +export default { + size: 'small', + expand: false, + index: true, + border: true, + selection: true, + column: [ + { + label: "主键", + prop: "id", + display: false, + hide: true, + }, + { + label: "租户号", + prop: "tenantId", + display: false, + hide: true, + }, + { + label: "创建人", + prop: "createUser", + display: false, + hide: true, + }, + { + label: "创建时间", + prop: "createTime", + display: false, + hide: true, + }, + { + label: "更新人", + prop: "updateUser", + display: false, + hide: true, + }, + { + label: "更新时间", + prop: "updateTime", + display: false, + hide: true, + }, + { + label: "状态", + prop: "status", + display: false, + hide: true, + }, + { + label: "是否已删除;1-未删除,2-已删除", + prop: "isDeleted", + display: false, + hide: true, + }, + { + label: "创建部门", + prop: "createDept", + display: false, + hide: true, + }, + { + label: "编码类型", + prop: "codeType", + }, + { + label: "展示类型", + prop: "showType", + }, + { + label: "编码", + prop: "code", + },] +} diff --git a/src/views/basic/coderule/basicTenantCode.vue b/src/views/basic/coderule/basicTenantCode.vue new file mode 100644 index 00000000..a0d72bc4 --- /dev/null +++ b/src/views/basic/coderule/basicTenantCode.vue @@ -0,0 +1,357 @@ + + + + +