From f4665a681ae69a217286b193355b5c7ec0345e1b Mon Sep 17 00:00:00 2001 From: PQZ Date: Thu, 8 Aug 2024 11:41:02 +0800 Subject: [PATCH 1/3] 1 --- src/api/base/cont/index.js | 53 ++++++ src/views/base/cont/form/ContTempForm.vue | 130 +++++++++++++ src/views/base/cont/index.vue | 175 ++++++++++++++++++ .../base/customer/components/CorpCustomer.vue | 2 +- .../customer/components/PrivateCustomer.vue | 2 +- .../base/customer/components/TodoCustomer.vue | 2 +- 6 files changed, 361 insertions(+), 3 deletions(-) create mode 100644 src/api/base/cont/index.js create mode 100644 src/views/base/cont/form/ContTempForm.vue create mode 100644 src/views/base/cont/index.vue diff --git a/src/api/base/cont/index.js b/src/api/base/cont/index.js new file mode 100644 index 0000000..a208702 --- /dev/null +++ b/src/api/base/cont/index.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 创建合同模板 +export function createContTemp(data) { + return request({ + url: '/base/cont-temp/create', + method: 'post', + data: data + }) +} + +// 更新合同模板 +export function updateContTemp(data) { + return request({ + url: '/base/cont-temp/update', + method: 'put', + data: data + }) +} + +// 删除合同模板 +export function deleteContTemp(id) { + return request({ + url: '/base/cont-temp/delete?id=' + id, + method: 'delete' + }) +} + +// 获得合同模板 +export function getContTemp(id) { + return request({ + url: '/base/cont-temp/get?id=' + id, + method: 'get' + }) +} + +// 获得合同模板分页 +export function getContTempPage(params) { + return request({ + url: '/base/cont-temp/page', + method: 'get', + params + }) +} +// 导出合同模板 Excel +export function exportContTempExcel(params) { + return request({ + url: '/base/cont-temp/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} \ No newline at end of file diff --git a/src/views/base/cont/form/ContTempForm.vue b/src/views/base/cont/form/ContTempForm.vue new file mode 100644 index 0000000..ac611c6 --- /dev/null +++ b/src/views/base/cont/form/ContTempForm.vue @@ -0,0 +1,130 @@ + + + \ No newline at end of file diff --git a/src/views/base/cont/index.vue b/src/views/base/cont/index.vue new file mode 100644 index 0000000..1434059 --- /dev/null +++ b/src/views/base/cont/index.vue @@ -0,0 +1,175 @@ + + + diff --git a/src/views/base/customer/components/CorpCustomer.vue b/src/views/base/customer/components/CorpCustomer.vue index 4349140..19086bc 100644 --- a/src/views/base/customer/components/CorpCustomer.vue +++ b/src/views/base/customer/components/CorpCustomer.vue @@ -45,7 +45,7 @@ size="mini" style="width: 100%"> - + diff --git a/src/views/base/customer/components/PrivateCustomer.vue b/src/views/base/customer/components/PrivateCustomer.vue index f573ed0..281aae3 100644 --- a/src/views/base/customer/components/PrivateCustomer.vue +++ b/src/views/base/customer/components/PrivateCustomer.vue @@ -40,7 +40,7 @@ - + diff --git a/src/views/base/customer/components/TodoCustomer.vue b/src/views/base/customer/components/TodoCustomer.vue index 26d1c35..a7bf372 100644 --- a/src/views/base/customer/components/TodoCustomer.vue +++ b/src/views/base/customer/components/TodoCustomer.vue @@ -35,7 +35,7 @@ - + From 18c84d27caa78a3b0dd2e14418119f31f786e68a Mon Sep 17 00:00:00 2001 From: PQZ Date: Thu, 8 Aug 2024 17:35:27 +0800 Subject: [PATCH 2/3] 1 --- src/components/DocAlert/index.vue | 10 +- src/utils/dict.js | 6 + src/views/base/cont/form/ContTempForm.vue | 277 ++++++++++-------- src/views/base/cont/index.vue | 133 +++++---- .../base/customer/components/CorpCustomer.vue | 5 - .../customer/components/PrivateCustomer.vue | 5 - .../base/customer/components/TodoCustomer.vue | 5 - 7 files changed, 238 insertions(+), 203 deletions(-) diff --git a/src/components/DocAlert/index.vue b/src/components/DocAlert/index.vue index 5692989..637de4a 100644 --- a/src/components/DocAlert/index.vue +++ b/src/components/DocAlert/index.vue @@ -1,9 +1,9 @@ \ No newline at end of file + + + diff --git a/src/views/base/cont/index.vue b/src/views/base/cont/index.vue index 1434059..75a5d4c 100644 --- a/src/views/base/cont/index.vue +++ b/src/views/base/cont/index.vue @@ -2,31 +2,20 @@
- - - - - - - - - - - - - - - - - + + + - - + + + + 搜索 @@ -38,24 +27,36 @@ 新增 + v-hasPermi="['base:cont-temp:create']">新增 + - 导出 + 导出 + - + - - - - - - - - - + + + + + + + + + + + + diff --git a/src/views/base/customer/components/CorpCustomer.vue b/src/views/base/customer/components/CorpCustomer.vue index 19086bc..1599615 100644 --- a/src/views/base/customer/components/CorpCustomer.vue +++ b/src/views/base/customer/components/CorpCustomer.vue @@ -12,11 +12,6 @@ - - - - - 搜索 重置 diff --git a/src/views/base/customer/components/PrivateCustomer.vue b/src/views/base/customer/components/PrivateCustomer.vue index 281aae3..0ee1367 100644 --- a/src/views/base/customer/components/PrivateCustomer.vue +++ b/src/views/base/customer/components/PrivateCustomer.vue @@ -12,11 +12,6 @@ - - - - - 搜索 重置 diff --git a/src/views/base/customer/components/TodoCustomer.vue b/src/views/base/customer/components/TodoCustomer.vue index a7bf372..593f102 100644 --- a/src/views/base/customer/components/TodoCustomer.vue +++ b/src/views/base/customer/components/TodoCustomer.vue @@ -12,11 +12,6 @@ - - - - - 搜索 重置 From 40cd85f233f5077c6d5d411cd5c57fecec4f02de Mon Sep 17 00:00:00 2001 From: PQZ Date: Thu, 8 Aug 2024 20:01:17 +0800 Subject: [PATCH 3/3] 1 --- src/views/report/goview/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/report/goview/index.vue b/src/views/report/goview/index.vue index 5cbce7f..0bf8e20 100644 --- a/src/views/report/goview/index.vue +++ b/src/views/report/goview/index.vue @@ -11,7 +11,7 @@ export default { components: { iFrame }, data() { return { - url: 'http://127.0.0.1:3000', + url: 'http://192.168.1.17:3000', }; }, };