工具下载
常用网站
@@ -115,7 +119,7 @@ const tableConfig = reactive({
label: '类型',
align: 'center',
showOverflowTooltip: false,
- // currentRender: ({row, index}) => (
)
+ currentRender: ({row, index}) => ()
},
{
prop: 'createTime',
@@ -197,6 +201,12 @@ const headBtnClick = (key) => {
border-radius: 10px;
background-color: #ffffff;
+ .el-table__empty-block {
+ .el-empty {
+ padding: 10px 0;
+ }
+ }
+
.statistics {
width: 99%;
margin-bottom: 20px;
@@ -210,7 +220,7 @@ const headBtnClick = (key) => {
margin-top: 15px;
.block-right {
- margin-left: 40px;
+ margin-left: 15%;
display: flex;
flex-direction: column;
justify-content: center;
@@ -218,11 +228,13 @@ const headBtnClick = (key) => {
font-size: 17px;
> span:first-child {
+ white-space: nowrap;
color: #000000;
margin-bottom: 10px;
}
> span:last-child {
+ white-space: nowrap;
font-size: 20px;
font-weight: bold;
@@ -257,14 +269,14 @@ const headBtnClick = (key) => {
// }
//}
- .right-top, .right-down {
+ .right-top {
flex: 0.5;
padding: 15px;
border-radius: 10px;
background-color: #ffffff;
}
- .right-down,.right-top {
+ .right-top {
flex: 0.48;
> div:first-child {
@@ -273,10 +285,12 @@ const headBtnClick = (key) => {
align-items: center;
h3 {
+ white-space: nowrap;
margin-left: 15px;
}
> span {
+ white-space: nowrap;
color: #927648;
font-size: 14px;
}
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;
}
}