From 979ed4731c4cfa135e0b46e8495ecc288c69fc07 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Wed, 26 Apr 2023 10:26:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?2023-04-26=20=E9=A1=B9=E7=9B=AE=E8=A1=8C?= =?UTF-8?q?=E4=B8=9A=20=E9=A1=B9=E7=9B=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervise-crm-ui/src/api/dataDict/datadict.js | 110 +++++++- .../src/router/modules/codemenu.js | 25 +- .../src/views/dataDict/dictCommon.vue | 248 ------------------ .../src/views/dataDict/dictMap.vue | 155 ----------- supervise-crm-ui/src/views/dataDict/index.vue | 200 -------------- .../src/views/industry/industryAdd.vue | 174 ++++++++++++ .../src/views/industry/industryInfo.vue | 228 ++++++++++++++++ .../src/views/projectType/projectTypeAdd.vue | 174 ++++++++++++ .../src/views/projectType/projectTypeInfo.vue | 225 ++++++++++++++++ 9 files changed, 929 insertions(+), 610 deletions(-) delete mode 100644 supervise-crm-ui/src/views/dataDict/dictCommon.vue delete mode 100644 supervise-crm-ui/src/views/dataDict/dictMap.vue delete mode 100644 supervise-crm-ui/src/views/dataDict/index.vue create mode 100644 supervise-crm-ui/src/views/industry/industryAdd.vue create mode 100644 supervise-crm-ui/src/views/industry/industryInfo.vue create mode 100644 supervise-crm-ui/src/views/projectType/projectTypeAdd.vue create mode 100644 supervise-crm-ui/src/views/projectType/projectTypeInfo.vue diff --git a/supervise-crm-ui/src/api/dataDict/datadict.js b/supervise-crm-ui/src/api/dataDict/datadict.js index eb0ff4d7..8a3ed191 100644 --- a/supervise-crm-ui/src/api/dataDict/datadict.js +++ b/supervise-crm-ui/src/api/dataDict/datadict.js @@ -2,4 +2,112 @@ import request from '@/utils/request' export default { -} \ No newline at end of file + // 行业品类 分类列表 + industryListPage: function(params) { + return request({ + baseURL: '/api/crm', + url: '/v1/industrydictionary/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 行业品类 通过sid删除一条或多条记录 + industryDelBySids: function(sid) { + return request({ + baseURL: '/api/crm', + url: '/v1/industrydictionary/delete/' + sid, + method: 'delete' + }) + }, + // 行业品类 保存行业品类 + saveindustry: function(params) { + return request({ + baseURL: '/api/crm', + url: '/v1/industrydictionary/save', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 行业品类 修改行业品类 + updateindustry: function(params) { + return request({ + baseURL: '/api/crm', + url: '/v1/industrydictionary/update', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 行业品类 通过sid查询一条记录 + industryFetchBySid: function(sid) { + return request({ + baseURL: '/api/crm', + url: '/v1/industrydictionary/getIndustryBySid/' + sid + }) + }, + + + + // 类别维护 类别列表 + classListPage: function(params) { + return request({ + baseURL: '/api/crm', + url: '/v1/projtypedictionary/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 类别维护 通过sid删除一条或多条记录 + classDelBySids: function(sid) { + return request({ + baseURL: '/api/crm', + url: '/v1/projtypedictionary/delete/' + sid, + method: 'delete' + }) + }, + // 类别维护 保存行业品类 + saveClass: function(params) { + return request({ + baseURL: '/api/crm', + url: '/v1/projtypedictionary/save', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 类别维护 修改行业品类 + updateClass: function(params) { + return request({ + baseURL: '/api/crm', + url: '/v1/projtypedictionary/update', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 类别维护 通过sid查询一条记录 + classFetchBySid: function(sid) { + return request({ + baseURL: '/api/crm', + url: '/v1/projtypedictionary/getProjTypeBySid/' + sid + }) + }, + +} diff --git a/supervise-crm-ui/src/router/modules/codemenu.js b/supervise-crm-ui/src/router/modules/codemenu.js index ee0b7406..392453b8 100644 --- a/supervise-crm-ui/src/router/modules/codemenu.js +++ b/supervise-crm-ui/src/router/modules/codemenu.js @@ -41,15 +41,28 @@ const codemenu = [{ } }] },{ - path: 'dataDict', + path: 'industry', component: Layout, - redirect: '/dataDict', + redirect: '/industry', children: [{ - path: '/dataDict/index', - component: () => import('@/views/dataDict/index.vue'), - name: 'index', + path: '/industry/industryInfo', + component: () => import('@/views/industry/industryInfo.vue'), + name: 'industryInfo', + meta: { + title: '项目行业', + noCache: true + } + }] +},{ + path: 'projectType', + component: Layout, + redirect: '/projectType', + children: [{ + path: '/projectType/projectTypeInfo', + component: () => import('@/views/projectType/projectTypeInfo.vue'), + name: 'projectTypeInfo', meta: { - title: '数据字典', + title: '项目类型', noCache: true } }] diff --git a/supervise-crm-ui/src/views/dataDict/dictCommon.vue b/supervise-crm-ui/src/views/dataDict/dictCommon.vue deleted file mode 100644 index 23a2f973..00000000 --- a/supervise-crm-ui/src/views/dataDict/dictCommon.vue +++ /dev/null @@ -1,248 +0,0 @@ - - - - - diff --git a/supervise-crm-ui/src/views/dataDict/dictMap.vue b/supervise-crm-ui/src/views/dataDict/dictMap.vue deleted file mode 100644 index 57392d21..00000000 --- a/supervise-crm-ui/src/views/dataDict/dictMap.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/supervise-crm-ui/src/views/dataDict/index.vue b/supervise-crm-ui/src/views/dataDict/index.vue deleted file mode 100644 index 182c0993..00000000 --- a/supervise-crm-ui/src/views/dataDict/index.vue +++ /dev/null @@ -1,200 +0,0 @@ - - - - - diff --git a/supervise-crm-ui/src/views/industry/industryAdd.vue b/supervise-crm-ui/src/views/industry/industryAdd.vue new file mode 100644 index 00000000..0df6459c --- /dev/null +++ b/supervise-crm-ui/src/views/industry/industryAdd.vue @@ -0,0 +1,174 @@ + + + + \ No newline at end of file diff --git a/supervise-crm-ui/src/views/industry/industryInfo.vue b/supervise-crm-ui/src/views/industry/industryInfo.vue new file mode 100644 index 00000000..34ee3c58 --- /dev/null +++ b/supervise-crm-ui/src/views/industry/industryInfo.vue @@ -0,0 +1,228 @@ + + + + diff --git a/supervise-crm-ui/src/views/projectType/projectTypeAdd.vue b/supervise-crm-ui/src/views/projectType/projectTypeAdd.vue new file mode 100644 index 00000000..331c9b4e --- /dev/null +++ b/supervise-crm-ui/src/views/projectType/projectTypeAdd.vue @@ -0,0 +1,174 @@ + + + + \ No newline at end of file diff --git a/supervise-crm-ui/src/views/projectType/projectTypeInfo.vue b/supervise-crm-ui/src/views/projectType/projectTypeInfo.vue new file mode 100644 index 00000000..692f403b --- /dev/null +++ b/supervise-crm-ui/src/views/projectType/projectTypeInfo.vue @@ -0,0 +1,225 @@ + + + + \ No newline at end of file From 1188ec542ee188d7dc27a5f6fed2f00bd99eb3c7 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Wed, 26 Apr 2023 10:29:48 +0800 Subject: [PATCH 2/2] 111 --- supervise-crm-ui/src/api/dataDict/datadict.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supervise-crm-ui/src/api/dataDict/datadict.js b/supervise-crm-ui/src/api/dataDict/datadict.js index 8a3ed191..837d5ada 100644 --- a/supervise-crm-ui/src/api/dataDict/datadict.js +++ b/supervise-crm-ui/src/api/dataDict/datadict.js @@ -1,7 +1,8 @@ import request from '@/utils/request' export default { - + + // 行业品类 分类列表 industryListPage: function(params) { return request({