fix : 修复细节
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
<script setup lang="jsx">
|
||||
import Tag from '@/components/Tag.vue'
|
||||
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
||||
|
||||
const router = useRouter()
|
||||
const searchConfig = reactive([
|
||||
@@ -22,22 +23,16 @@ const searchConfig = reactive([
|
||||
{
|
||||
label: '征集类型',
|
||||
prop: 'collectType',
|
||||
component: 'el-input',
|
||||
component: shallowRef(fvSelect),
|
||||
props: {
|
||||
placeholder: '请输入名称查询',
|
||||
placeholder: '请选择征集类型',
|
||||
clearable: true,
|
||||
filterable: true,
|
||||
checkStrictly: true
|
||||
cacheKey: 'todo_type'
|
||||
}
|
||||
}
|
||||
])
|
||||
const tableIns = ref()
|
||||
const auths = {
|
||||
edit: ['admin:role:edit'],
|
||||
add: ['admin:role:add'],
|
||||
export: ['admin:role:export'],
|
||||
}
|
||||
|
||||
const tableConfig = reactive({
|
||||
columns: [
|
||||
{
|
||||
@@ -86,8 +81,8 @@ const tableConfig = reactive({
|
||||
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
|
||||
if (row.state === '3' || row.state === '2') {
|
||||
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
|
||||
btn.push({label: '删除', func: () => handleDel(row), type: 'danger'})
|
||||
}else if (row.state === '4'){
|
||||
btn.push({label: '删除', func: () => handleDelete(row), type: 'danger'})
|
||||
} else if (row.state === '4') {
|
||||
btn.push({label: '上报', func: () => handleReport(row), type: 'primary'})
|
||||
}
|
||||
return (
|
||||
@@ -111,8 +106,8 @@ const tableConfig = reactive({
|
||||
],
|
||||
api: '/workflow/mosr/requirement',
|
||||
btns: [
|
||||
{name: '新增', key: 'add', auth: auths.add, color: '#DED0B2'},
|
||||
{name: '导出', key: 'add', auth: auths.add, type: ''},
|
||||
{name: '新增', key: 'add', color: '#DED0B2'},
|
||||
{name: '导出', key: 'add', type: ''},
|
||||
],
|
||||
params: {}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user