diff --git a/api/index.js b/api/index.js index d466a93..aa61f9b 100644 --- a/api/index.js +++ b/api/index.js @@ -24,3 +24,6 @@ export * from './customer'; // 导入通用 API export * from './common'; + +// 导入审批相关 API +export * from './verify'; \ No newline at end of file diff --git a/api/verify.js b/api/verify.js new file mode 100644 index 0000000..03df4b3 --- /dev/null +++ b/api/verify.js @@ -0,0 +1,18 @@ +// 审批相关 API +export const getVerifyList = (params = {}) => { + return uni.$uv.http.get('/bst/verify/list', { + params: { + pageNum: 1, + pageSize: 20, + orderByColumn: 'createTime', + isAsc: 'descending', + bstType: 'UPDATE_TASK', + ...params + }, + custom: { + auth: true + } + }); +}; + + diff --git a/components/index/Workbench.vue b/components/index/Workbench.vue new file mode 100644 index 0000000..1763851 --- /dev/null +++ b/components/index/Workbench.vue @@ -0,0 +1,146 @@ + + + + + + + diff --git a/pages.json b/pages.json index 365678b..7e0b90f 100644 --- a/pages.json +++ b/pages.json @@ -15,6 +15,12 @@ } }, + { + "path": "pages/verify/list/index", + "style": { + "navigationBarTitleText": "审批管理" + } + }, { "path": "pages/login/index", "style": { diff --git a/pages/index/index.vue b/pages/index/index.vue index 83437c1..9dc64bb 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -14,6 +14,10 @@ + + + + @@ -69,6 +74,7 @@ import MessageContent from '@/components/index/MessageContent.vue'; import CustomerManagement from '@/components/customer/CustomerManagement.vue'; import My from '@/components/my/My.vue'; import RankingBoard from '@/components/index/RankingBoard.vue'; +import Workbench from '@/components/index/Workbench.vue'; // 顶部tabs选项 @@ -77,6 +83,7 @@ const topTabs = [ { name: '内容看板', value: 1 }, { name: '待办事项', value: 2 }, { name: '消息内容', value: 3 } + ]; // 默认显示内容看板 const topTabValue = ref(1); @@ -150,10 +157,11 @@ const admin_bst=ref(false); const rankingIndex = computed(() => 3); const customerManagementIndex = computed(() => 4); const myIndex = computed(() => 2); +const workIndex = computed(() => 1); // 判断是否显示顶部Tabs栏 const shouldShowTopTabs = computed(() => { - if (value.value === customerManagementIndex.value || value.value === myIndex.value) { + if (value.value === customerManagementIndex.value || value.value === myIndex.value||value.value === workIndex.value) { return false; } if (admin_bst.value && value.value === rankingIndex.value) { diff --git a/pages/verify/list/index.vue b/pages/verify/list/index.vue new file mode 100644 index 0000000..1cb03e7 --- /dev/null +++ b/pages/verify/list/index.vue @@ -0,0 +1,242 @@ + + + + + + +