From 90de57698b9dd5ab463ef98503be4c3c1d6225b2 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Fri, 10 May 2024 00:28:40 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E9=9C=80=E6=B1=82=E5=BE=81=E9=9B=86?= =?UTF-8?q?=E6=96=B0=E5=A2=9E/=E7=BC=96=E8=BE=91/=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FileUpload.vue | 67 +++++++ .../projectdemand/demandcollection/add.vue | 166 ++++++++++++++++++ .../projectdemand/demandcollection/detail.vue | 119 +++++++++++++ .../projectdemand/demandcollection/index.vue | 45 ++++- 4 files changed, 389 insertions(+), 8 deletions(-) create mode 100644 src/components/FileUpload.vue create mode 100644 src/views/projectdemand/demandcollection/add.vue create mode 100644 src/views/projectdemand/demandcollection/detail.vue diff --git a/src/components/FileUpload.vue b/src/components/FileUpload.vue new file mode 100644 index 0000000..e4e2774 --- /dev/null +++ b/src/components/FileUpload.vue @@ -0,0 +1,67 @@ + + + 上传文件 + + + + + diff --git a/src/views/projectdemand/demandcollection/add.vue b/src/views/projectdemand/demandcollection/add.vue new file mode 100644 index 0000000..c141a85 --- /dev/null +++ b/src/views/projectdemand/demandcollection/add.vue @@ -0,0 +1,166 @@ + + + + + + + + + + 提交 + 返回 + + + + + + + diff --git a/src/views/projectdemand/demandcollection/detail.vue b/src/views/projectdemand/demandcollection/detail.vue new file mode 100644 index 0000000..5bb54d3 --- /dev/null +++ b/src/views/projectdemand/demandcollection/detail.vue @@ -0,0 +1,119 @@ + + + + + + + {{ item.title }}: + {{ item.text }} + + + + + {{ instructions }} + + + + + + + + + + + 驳回 + 同意 + + + + + + + diff --git a/src/views/projectdemand/demandcollection/index.vue b/src/views/projectdemand/demandcollection/index.vue index d7bc307..acf915e 100644 --- a/src/views/projectdemand/demandcollection/index.vue +++ b/src/views/projectdemand/demandcollection/index.vue @@ -62,7 +62,7 @@ const tableConfig = reactive({ label: '状态', align: 'center', showOverflowTooltip: false, - currentRender: ({row, index}) => () + currentRender: ({row, index}) => () }, { prop: 'oper', @@ -72,17 +72,19 @@ const tableConfig = reactive({ currentRender: ({row, index}) => { return ( - {}}>详情 - {}}>上报 + handleDetail(row)}>详情 + + handleEdit(row)}>编辑 + handleReport(row)}>上报 ) } } ], - api: '', + api: '/admin/role', btns: [ - {name: '新增', key: 'add', auth: auths.add, type: 'primary'}, - {name: '导出', key: 'add', auth: auths.add, type: 'primary'}, + {name: '新增', key: 'add', auth: auths.add, color: '#DED0B2'}, + {name: '导出', key: 'add', auth: auths.add, type: ''}, ], params: {} }) @@ -91,13 +93,40 @@ const search = (val) => { tableConfig.params = {...val} tableIns.value.refresh() } +const handleAdd = () => { + router.push({ + path: '/projectdemand/demandadd', + query: { + isAdd: 1 + } + }) +} +const handleEdit = (row) => { + router.push({ + path: '/projectdemand/demandedit', + query: { + id: row.roleId + } + }) +} +const handleDetail = (row) => { + router.push({ + path: '/projectdemand/demanddetail', + query: { + id: row.roleId + } + }) +} const headBtnClick = (key) => { switch (key) { case 'add': handleAdd() break; - case 'export': - handleExport() + case 'edit': + handleEdit() + break; + case 'detail': + handleDetail() break; } }