技术监督台账管理功能

This commit is contained in:
cdf
2024-05-16 18:56:13 +08:00
parent bacf665b01
commit 02fc703a7e
4 changed files with 361 additions and 52 deletions

View File

@@ -1,35 +1,36 @@
<template>
<div>
<TableHeader ref="TableHeaderRef">
<template #select>
<el-form-item label="工程名称">
<el-input v-model="tableStore.table.params.searchValue" clearable></el-input>
<TableHeader ref='TableHeaderRef'>
<template #select>
<el-form-item label='工程名称'>
<el-input v-model='tableStore.table.params.searchValue' clearable></el-input>
</el-form-item>
<el-form-item label="所属地市">
<el-select v-model="tableStore.table.params.loadType" clearable placeholder="请选择所属地市">
<el-form-item label='所属地市'>
<el-select v-model='tableStore.table.params.loadType' clearable placeholder='请选择所属地市'>
<el-option
v-for="item in areaOptionList"
:key="item.id"
:label="item.name"
:value="item.id"
v-for='item in areaOptionList'
:key='item.id'
:label='item.name'
:value='item.id'
></el-option>
</el-select>
</el-form-item>
</template>
<template #operation>
<el-button icon="el-icon-Download" type="primary">导出</el-button>
</template>
</TableHeader>
<Table ref="tableRef" />
</div>
<template #operation>
<el-button icon='el-icon-Download' type='primary'>导出</el-button>
</template>
</TableHeader>
<Table ref='tableRef' />
</div>
</template>
<script setup lang="ts">
<script setup lang='ts'>
import { ref, onMounted, provide, nextTick } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import { useDictData } from '@/stores/dictData'
const dictData = useDictData()
const areaOptionList = dictData.getBasicData('jibei_area')
@@ -87,7 +88,7 @@ const tableStore = new TableStore({
icon: 'el-icon-EditPen',
render: 'basicButton',
click: row => {
toFangAn(row.id,"3")
toFangAn(row.id,1)
}
},
{
@@ -97,7 +98,8 @@ const tableStore = new TableStore({
icon: 'el-icon-EditPen',
render: 'basicButton',
click: row => {
toZhiLi(row.id)
toFangAn(row.id,2)
}
}
]
@@ -120,25 +122,26 @@ onMounted(() => {
})
/** 方案审查 */
const toFangAn = (id: any,activeName:String) => {
push({
name: 'programReview',
query: {
id: id,
activeName:"3"
}
})
const toFangAn = (id: any,type:Number) => {
if(type == 1){
push({
name: 'ProgramReview',
query: {
id: id
}
})
}else{
push({
name: 'projectTreat',
query: {
id: id
}
})
}
}
/** 治理工程 */
const toZhiLi = (instanceId: any) => {
push({
name: 'BpmProcessInstanceDetail',
query: {
id: instanceId
}
})
}
/**获取用户性质*/
const getUserTypeName = (userType: any) => {