干扰源接入问题修改
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
<template>
|
||||
<div>
|
||||
<TableHeader ref='TableHeaderRef'>
|
||||
<div class="default-main">
|
||||
<!-- <TableHeader ref='TableHeaderRef'>
|
||||
<template #select>
|
||||
<el-form-item label='工程名称'>
|
||||
<el-input v-model='tableStore.table.params.searchValue' clearable></el-input>
|
||||
<el-input v-model='tableStore.table.params.projectName' clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label='所属地市'>
|
||||
<el-select v-model='tableStore.table.params.loadType' clearable placeholder='请选择所属地市'>
|
||||
<el-select v-model='tableStore.table.params.city' clearable placeholder='请选择所属地市'>
|
||||
<el-option
|
||||
v-for='item in areaOptionList'
|
||||
:key='item.id'
|
||||
:label='item.name'
|
||||
:value='item.id'
|
||||
:value='item.name'
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -21,16 +21,26 @@
|
||||
|
||||
<el-button style='margin-left: 50px' :icon='Back' @click='go(-1)'>返回</el-button>
|
||||
</template>
|
||||
</TableHeader>
|
||||
<Table ref='tableRef' />
|
||||
|
||||
|
||||
<addForm v-if='dialogVisible' ref='addForms' :id='bussId' :bussType='bussType' :title='titleButton' openType = 'detail' ></addForm>
|
||||
</TableHeader> -->
|
||||
<div class="header_btn">
|
||||
<el-button icon="" type="primary" @click="toGoNet()">{{ titleButton }}</el-button>
|
||||
<el-button style="margin-left: 50px" :icon="Back" @click="go(-1)">返回</el-button>
|
||||
</div>
|
||||
<Table ref="tableRef" />
|
||||
|
||||
<addForm
|
||||
v-if="dialogVisible"
|
||||
ref="addForms"
|
||||
:id="bussId"
|
||||
:bussType="bussType"
|
||||
:title="titleButton"
|
||||
openType="detail"
|
||||
@onSubmit="tableStore.index()"
|
||||
></addForm>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
<script setup lang="ts">
|
||||
defineOptions({
|
||||
name: 'ProgramReview'
|
||||
})
|
||||
@@ -40,10 +50,10 @@ 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'
|
||||
import addForm from './addForm.vue'
|
||||
import addForm from './addForm.vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { Back } from '@element-plus/icons-vue'
|
||||
const { go,currentRoute,push } = useRouter()
|
||||
const { go, currentRoute, push } = useRouter()
|
||||
|
||||
const dictData = useDictData()
|
||||
const areaOptionList = dictData.getBasicData('jibei_area')
|
||||
@@ -128,30 +138,32 @@ const tableStore = new TableStore({
|
||||
beforeSearchFun: () => {
|
||||
tableStore.table.params.userReportId = bussId.value
|
||||
tableStore.table.params.type = bussType.value
|
||||
tableStore.table.params.orgNo = tableStore.table.params.deptIndex
|
||||
tableStore.table.params.relationUserName = tableStore.table.params.userName
|
||||
}
|
||||
})
|
||||
tableStore.table.params.city = ''
|
||||
tableStore.table.params.projectName = ''
|
||||
|
||||
const dialogVisible = ref(false)
|
||||
const bussId = ref()
|
||||
bussId.value =currentRoute.value.query.id
|
||||
bussId.value = currentRoute.value.query.id
|
||||
|
||||
const bussType = ref()
|
||||
bussType.value =Number(currentRoute.value.query.type)
|
||||
bussType.value = Number(currentRoute.value.query.type)
|
||||
|
||||
const titleButton = ref()
|
||||
if(bussType.value === 0){
|
||||
titleButton.value='入网设计方案审查'
|
||||
}else{
|
||||
titleButton.value='治理工程验收'
|
||||
if (bussType.value === 0) {
|
||||
titleButton.value = '入网设计方案审查'
|
||||
} else {
|
||||
titleButton.value = '治理工程验收'
|
||||
}
|
||||
|
||||
provide('tableStore', tableStore)
|
||||
onMounted(() => {
|
||||
tableStore.index()
|
||||
|
||||
})
|
||||
|
||||
|
||||
/** 处理审批按钮 */
|
||||
const handleAudit = (instanceId: any) => {
|
||||
push({
|
||||
@@ -163,11 +175,11 @@ const handleAudit = (instanceId: any) => {
|
||||
}
|
||||
|
||||
const addForms = ref()
|
||||
const toGoNet=() => {
|
||||
const toGoNet = () => {
|
||||
dialogVisible.value = true
|
||||
setTimeout(() => {
|
||||
addForms.value.open()
|
||||
}, 0);
|
||||
}, 0)
|
||||
}
|
||||
|
||||
/**获取用户性质*/
|
||||
@@ -196,3 +208,14 @@ const getUserTypeName = (userType: any) => {
|
||||
return '新建电网工程'
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.header_btn {
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
display: flex;
|
||||
padding:13px 15px;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
border:1px solid #DDDFE6;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user