From a084d5041282dfa55e9c843a3b2b9223d5c528b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=97=9C=E8=A1=80=E9=BE=99=E5=B8=85?= <1493694146@qq.com> Date: Tue, 25 Jul 2023 18:33:08 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/routes.ts | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/src/router/routes.ts b/src/router/routes.ts index 86bafe6..ce4f2b9 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -4,11 +4,11 @@ * path: '/path' // 路由路径 * name:'router-name' // 设定路由的名字,一定要填写不然使用时会出现各种问题 * meta : { - title: 'title' // 设置该路由在侧边栏的名字 - icon: 'icon-name' // 设置该路由的图标 - activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。 - query: '{"id": 1}' // 访问路由的默认传递参数 - hidden: true // 当设置 true 的时候该路由不会在侧边栏出现 + title: 'title' // 设置该路由在侧边栏的名字 + icon: 'icon-name' // 设置该路由的图标 + activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。 + query: '{"id": 1}' // 访问路由的默认传递参数 + hidden: true // 当设置 true 的时候该路由不会在侧边栏出现 hideTab: true //当设置 true 的时候该路由不会在多标签tab栏出现 } */ @@ -45,15 +45,7 @@ export const constantRoutes: Array = [ meta: { title: "个人设置", }, - }, - { - path: "examined", - component: () => import("@/views/examined/examinedFlow.vue"), - name: Symbol(), - meta: { - title: "个人设置", - }, - }, + } ], }, // { From a9d15eb968668116f25c5af8b42f8d86c692a733 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Thu, 27 Jul 2023 13:34:39 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=97=A5=E7=A8=8B,=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/task.ts | 14 ++ src/views/task/dialog_index_man.vue | 83 ++++++++++ src/views/task/edit.vue | 243 ++++++++++++++++++++++++++++ src/views/task/index.vue | 161 ++++++++++++++++++ src/views/task/taskList.vue | 159 ++++++++++++++++++ 5 files changed, 660 insertions(+) create mode 100644 src/api/task.ts create mode 100644 src/views/task/dialog_index_man.vue create mode 100644 src/views/task/edit.vue create mode 100644 src/views/task/index.vue create mode 100644 src/views/task/taskList.vue diff --git a/src/api/task.ts b/src/api/task.ts new file mode 100644 index 0000000..b9b2fda --- /dev/null +++ b/src/api/task.ts @@ -0,0 +1,14 @@ +import request from "@/utils/request"; +//任务详情 +export function apiTaskView(params: any) { + return request.get({ url: "/task/view", params }); +} +//任务列表 +export function apiTaskIndex(params: any) { + return request.get({ url: "/task/index", params }); +} +//添加和修改 +export function apiTaskCreat(params: any) { + return request.post({ url: "/task/create", params }); +} + diff --git a/src/views/task/dialog_index_man.vue b/src/views/task/dialog_index_man.vue new file mode 100644 index 0000000..54a25f0 --- /dev/null +++ b/src/views/task/dialog_index_man.vue @@ -0,0 +1,83 @@ + + + diff --git a/src/views/task/edit.vue b/src/views/task/edit.vue new file mode 100644 index 0000000..df00433 --- /dev/null +++ b/src/views/task/edit.vue @@ -0,0 +1,243 @@ + + + diff --git a/src/views/task/index.vue b/src/views/task/index.vue new file mode 100644 index 0000000..35a688c --- /dev/null +++ b/src/views/task/index.vue @@ -0,0 +1,161 @@ + + + + + \ No newline at end of file diff --git a/src/views/task/taskList.vue b/src/views/task/taskList.vue new file mode 100644 index 0000000..77866d1 --- /dev/null +++ b/src/views/task/taskList.vue @@ -0,0 +1,159 @@ + + + + + + \ No newline at end of file From 852b66892415af2375109650d01645a744d68e71 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Mon, 31 Jul 2023 09:42:11 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/{index.vue => calendar.vue} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/views/task/{index.vue => calendar.vue} (100%) diff --git a/src/views/task/index.vue b/src/views/task/calendar.vue similarity index 100% rename from src/views/task/index.vue rename to src/views/task/calendar.vue From e5a8b7d6d4d7aafd107b26f446801fdd412dff96 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 31 Jul 2023 14:02:39 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=95=86=E6=9C=BA=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/category_business.ts | 26 ++++ src/api/perms/admin.ts | 4 + src/views/category_business/edit.vue | 175 ++++++++++++++++++++++++++ src/views/category_business/index.vue | 172 +++++++++++++++++++++++++ src/views/permission/admin/index.vue | 22 +++- 5 files changed, 398 insertions(+), 1 deletion(-) create mode 100644 src/api/category_business.ts create mode 100644 src/views/category_business/edit.vue create mode 100644 src/views/category_business/index.vue diff --git a/src/api/category_business.ts b/src/api/category_business.ts new file mode 100644 index 0000000..3ffcc57 --- /dev/null +++ b/src/api/category_business.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 商机分类表列表 +export function apiCategoryBusinessLists(params: any) { + return request.get({ url: '/category_business.category_business/lists', params }) +} + +// 添加商机分类表 +export function apiCategoryBusinessAdd(params: any) { + return request.post({ url: '/category_business.category_business/add', params }) +} + +// 编辑商机分类表 +export function apiCategoryBusinessEdit(params: any) { + return request.post({ url: '/category_business.category_business/edit', params }) +} + +// 删除商机分类表 +export function apiCategoryBusinessDelete(params: any) { + return request.post({ url: '/category_business.category_business/delete', params }) +} + +// 商机分类表详情 +export function apiCategoryBusinessDetail(params: any) { + return request.get({ url: '/category_business.category_business/detail', params }) +} \ No newline at end of file diff --git a/src/api/perms/admin.ts b/src/api/perms/admin.ts index 6f82a55..027b1c3 100644 --- a/src/api/perms/admin.ts +++ b/src/api/perms/admin.ts @@ -35,3 +35,7 @@ export function generateGontract(params: any) { export function sendMsgApi(params: any) { return request.get({ url: '/auth.admin/postsms', params }) } +// 废除合同 +export function abolition(params: any) { + return request.get({ url: '/auth.admin/abolition', params }) +} diff --git a/src/views/category_business/edit.vue b/src/views/category_business/edit.vue new file mode 100644 index 0000000..8ec1589 --- /dev/null +++ b/src/views/category_business/edit.vue @@ -0,0 +1,175 @@ + + + diff --git a/src/views/category_business/index.vue b/src/views/category_business/index.vue new file mode 100644 index 0000000..bb5ba81 --- /dev/null +++ b/src/views/category_business/index.vue @@ -0,0 +1,172 @@ + + + diff --git a/src/views/permission/admin/index.vue b/src/views/permission/admin/index.vue index 2759dec..3a2e3c0 100644 --- a/src/views/permission/admin/index.vue +++ b/src/views/permission/admin/index.vue @@ -118,6 +118,14 @@ @click="handleDelete(row.id)" >删除 + 废除合同 - - - - + + + + + + + + + + + + @@ -80,13 +123,24 @@ import { usePaging } from '@/hooks/usePaging' import { getRoutePath } from '@/router' import { getUserList } from '@/api/consumer' import { ClientMap } from '@/enums/appEnums' +import feedback from '@/utils/feedback' + const queryParams = reactive({ keyword: '', channel: '', create_time_start: '', create_time_end: '' }) - +// const handleDelete = async (id: number) => { +// await feedback.confirm('确定要删除?') +// await adminDelete({ id }) +// getLists() +// } +// const handleAbolition = async (id: number) => { +// await feedback.confirm('确定要废除合同?') +// await abolition({ id }) +// getLists() +// } const { pager, getLists, resetPage, resetParams } = usePaging({ fetchFun: getUserList, params: queryParams