From 05d7977822e6106777f54f4db231514179eff538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com> Date: Mon, 14 Nov 2022 17:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=9F=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modular/main/DJYTenantParam.js | 12 +++ src/router/generator-routers.js | 14 +++- src/views/main/Customer/index.vue | 3 + src/views/main/DJYTenantParam/addItemForm.vue | 76 ++++++++++++++--- .../main/DJYTenantParam/editItemForm.vue | 84 +++++++++++++++---- src/views/main/DJYTenantParam/indexItem.vue | 65 ++++++++++++-- .../main/DJYTenantParam/itemEditForm.vue | 17 ++-- 7 files changed, 229 insertions(+), 42 deletions(-) diff --git a/src/api/modular/main/DJYTenantParam.js b/src/api/modular/main/DJYTenantParam.js index dce7d07..8c1e32c 100644 --- a/src/api/modular/main/DJYTenantParam.js +++ b/src/api/modular/main/DJYTenantParam.js @@ -153,3 +153,15 @@ export function DJYTenantParamDeleteParamItem(parameter) { params: parameter }) } +/** + * 分页查询租户 + * + * @author Myshipping + */ +export function SysTenantPage(parameter) { + return axios({ + url: '/sysTenant/page', + method: 'get', + params: parameter + }) +} diff --git a/src/router/generator-routers.js b/src/router/generator-routers.js index 111d71d..c04e0eb 100644 --- a/src/router/generator-routers.js +++ b/src/router/generator-routers.js @@ -25,7 +25,8 @@ const constantRouterComponents = { OrderList: () => import('@/views/Booking/OrderList/index'), // 默认首页 Console: () => import('@/views/system/index/welcome'), - BookingDetail: () => import('@/views/main/BookingLedger/detail') + BookingDetail: () => import('@/views/main/BookingLedger/detail'), + CustomerInformationManagementAdd: () => import('@/views/main/Customer/addForm') } // 前端未找到页面路由(固定不用改)、原来为 /404 @@ -164,6 +165,17 @@ const booking = [ show: false }, component: 'BookingDetail' + }, + { + name: 'CustomerInformationManagementAdd', + path: '/CustomerInformationManagementAdd', + pid: 0, + id: 10031, + meta: { + title: '新增客户', + show: false + }, + component: 'CustomerInformationManagementAdd' } ] diff --git a/src/views/main/Customer/index.vue b/src/views/main/Customer/index.vue index e6317e4..b8aa899 100644 --- a/src/views/main/Customer/index.vue +++ b/src/views/main/Customer/index.vue @@ -361,6 +361,9 @@ export default { this.activeKey = activeKey }, TabsAdd() { + // CustomerInformationManagementAdd + // this.$router.push({ name: 'CustomerInformationManagementAdd' }) + // this.$router.push({ name: 'CustomerInformationManagementAdd', query: { type: this.carrierRadio } }) let activeKey = this.panes.length + 1 this.panes.push({ title: '新增客户', diff --git a/src/views/main/DJYTenantParam/addItemForm.vue b/src/views/main/DJYTenantParam/addItemForm.vue index 04d2d93..ba6b5e0 100644 --- a/src/views/main/DJYTenantParam/addItemForm.vue +++ b/src/views/main/DJYTenantParam/addItemForm.vue @@ -10,28 +10,60 @@ + + + + + {{ item.name }} + + + + - + {{ item.paraCode }} - + + + + {{ item.itemName }} + + - - + + @@ -42,18 +74,23 @@