fix : 修复页面细节功能及附件上传组件
This commit is contained in:
@@ -121,12 +121,12 @@ const tableConfig = reactive({
|
||||
align: 'center',
|
||||
showOverflowTooltip: false,
|
||||
currentRender: ({row, index}) => {
|
||||
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
|
||||
if (row.state === '3') {
|
||||
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
|
||||
} else if (row.state === '0') {
|
||||
btn.push({label: '上报', func: () => handleAdd(row), type: 'primary'})
|
||||
}
|
||||
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'},{label: '编辑', func: () => handleEdit(row), type: 'primary'},{label: '上报', func: () => handleAdd(row), type: 'primary'}]
|
||||
// if (row.state === '3') {
|
||||
// btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
|
||||
// } else if (row.state === '0') {
|
||||
// btn.push({label: '上报', func: () => handleAdd(row), type: 'primary'})
|
||||
// }
|
||||
return (
|
||||
<div style={{width: '100%'}}>
|
||||
{
|
||||
@@ -165,18 +165,22 @@ const search = (val) => {
|
||||
tableIns.value.refresh()
|
||||
}
|
||||
|
||||
const headBtnClick = (key) => {
|
||||
switch (key) {
|
||||
case 'add':
|
||||
handleAdd()
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
const handleAdd = () => {
|
||||
const handleAdd = (row) => {
|
||||
router.push({
|
||||
name: 'Summary/add',
|
||||
query: {}
|
||||
query: {
|
||||
isAdd: 1,
|
||||
id:row.requirementId
|
||||
}
|
||||
})
|
||||
}
|
||||
const handleEdit = (row) => {
|
||||
router.push({
|
||||
name: 'Summary/edit',
|
||||
query: {
|
||||
id:row.requirementId,
|
||||
projectId:row.projectId
|
||||
}
|
||||
})
|
||||
}
|
||||
const handleDetail = (row) => {
|
||||
|
||||
Reference in New Issue
Block a user