fix : 修改需求征集状态权限
This commit is contained in:
@@ -82,3 +82,9 @@ export const deleteDemand = (id) => {
|
|||||||
method: "delete"
|
method: "delete"
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
export const getRequirementStatePerm = () => {
|
||||||
|
return request({
|
||||||
|
url: '/workflow/mosr/requirement/prem/state',
|
||||||
|
method: "get"
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|||||||
@@ -1,5 +1,45 @@
|
|||||||
<template>
|
<template>
|
||||||
<fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>
|
<el-form ref="formRef" :model="selectForm" class="search-form" :rules="rules" style="margin-top: 18px;">
|
||||||
|
<el-row gutter="20">
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item prop="requirementName" label="征集名称">
|
||||||
|
<el-input v-model="selectForm.requirementName" placeholder="请输入征集名称" clearable/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5" :offset="1">
|
||||||
|
<el-form-item prop="collectType" label="征集类型">
|
||||||
|
<el-select v-model="selectForm.collectType" placeholder="请选择征集类型" clearable filterable>
|
||||||
|
<el-option
|
||||||
|
v-for="item in cacheStore.getDict('collect_type')"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5" :offset="1">
|
||||||
|
<el-form-item prop="state" label="状态">
|
||||||
|
<el-select v-model="selectForm.state" placeholder="请选择状态" clearable filterable>
|
||||||
|
<el-option
|
||||||
|
v-for="item in stateOption"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
|
<el-form-item>
|
||||||
|
<el-button color="#DED0B2" @click="getList">搜索</el-button>
|
||||||
|
<el-button @click="handleReset">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<!-- <fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>-->
|
||||||
|
|
||||||
<fvTable ref="tableIns" :tableConfig="tableConfig" @headBtnClick="headBtnClick">
|
<fvTable ref="tableIns" :tableConfig="tableConfig" @headBtnClick="headBtnClick">
|
||||||
<template #empty>
|
<template #empty>
|
||||||
<el-empty description="暂无数据"/>
|
<el-empty description="暂无数据"/>
|
||||||
@@ -11,9 +51,12 @@
|
|||||||
import {useAuthStore} from '@/stores/userstore.js'
|
import {useAuthStore} from '@/stores/userstore.js'
|
||||||
import Tag from '@/components/Tag.vue'
|
import Tag from '@/components/Tag.vue'
|
||||||
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
||||||
import { ElNotification} from "element-plus";
|
import {ElNotification} from "element-plus";
|
||||||
import {deleteDemand} from "@/api/project-demand";
|
import {deleteDemand} from "@/api/project-demand";
|
||||||
|
import {useCacheStore} from '@/stores/cache.js'
|
||||||
|
import {getRequirementStatePerm} from "@/api/project-demand";
|
||||||
|
|
||||||
|
const cacheStore = useCacheStore()
|
||||||
const authStore = useAuthStore()
|
const authStore = useAuthStore()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const searchConfig = reactive([
|
const searchConfig = reactive([
|
||||||
@@ -50,7 +93,10 @@ const searchConfig = reactive([
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
const selectForm = ref({})
|
||||||
const tableIns = ref()
|
const tableIns = ref()
|
||||||
|
const formRef = ref()
|
||||||
|
const stateOption = ref([])
|
||||||
const userInfo = ref(authStore.userinfo)
|
const userInfo = ref(authStore.userinfo)
|
||||||
const auths = {
|
const auths = {
|
||||||
edit: ['mosr:requirement:resubmit'],
|
edit: ['mosr:requirement:resubmit'],
|
||||||
@@ -80,7 +126,7 @@ const tableConfig = reactive({
|
|||||||
label: '征集公司',
|
label: '征集公司',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
// currentRender: ({row, index}) => (
|
// currentRender: ({row, index}) => (
|
||||||
// <div style={{width: '300px', textOverflow: 'ellipsis',textAlign:'center'}}>{row.companyName}</div>)
|
// <div style={{width: '300px', textOverflow: 'ellipsis',textAlign:'center'}}>{row.companyName}</div>)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'approveName',
|
prop: 'approveName',
|
||||||
@@ -109,7 +155,7 @@ const tableConfig = reactive({
|
|||||||
prop: 'oper',
|
prop: 'oper',
|
||||||
label: '操作',
|
label: '操作',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
fixed:'right',
|
fixed: 'right',
|
||||||
showOverflowTooltip: false,
|
showOverflowTooltip: false,
|
||||||
currentRender: ({row, index}) => {
|
currentRender: ({row, index}) => {
|
||||||
let btn = []
|
let btn = []
|
||||||
@@ -150,12 +196,26 @@ const tableConfig = reactive({
|
|||||||
],
|
],
|
||||||
api: '/workflow/mosr/requirement',
|
api: '/workflow/mosr/requirement',
|
||||||
btns: [
|
btns: [
|
||||||
{name: '新增', key: 'add', color: '#DED0B2',auth: auths.add},
|
{name: '新增', key: 'add', color: '#DED0B2', auth: auths.add},
|
||||||
// {name: '导出', key: 'export', type: ''},
|
// {name: '导出', key: 'export', type: ''},
|
||||||
],
|
],
|
||||||
params: {}
|
params: {}
|
||||||
})
|
})
|
||||||
|
const getStatePerm = () => {
|
||||||
|
getRequirementStatePerm().then(res => {
|
||||||
|
stateOption.value=res.data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
getStatePerm()
|
||||||
|
//重置功能
|
||||||
|
const handleReset = () => {
|
||||||
|
formRef.value.resetFields()
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
const getList = () => {
|
||||||
|
tableConfig.params = {...selectForm.value}
|
||||||
|
tableIns.value.refresh()
|
||||||
|
}
|
||||||
const search = (val) => {
|
const search = (val) => {
|
||||||
tableConfig.params = {...val}
|
tableConfig.params = {...val}
|
||||||
tableIns.value.refresh()
|
tableIns.value.refresh()
|
||||||
|
|||||||
Reference in New Issue
Block a user