Commit f32b365c by xiehao

fix:选择系统后重置筛选条件

1 parent daf5e126
...@@ -3,22 +3,23 @@ ...@@ -3,22 +3,23 @@
<list-page> <list-page>
<!-- 查询表单插槽 --> <!-- 查询表单插槽 -->
<template #formWrap> <template #formWrap>
<SearchForm @onSearch="querySearch" :form-options="formOptions" /> <SearchForm @onSearch="querySearch" :form-options="formOptions"/>
</template> </template>
<!-- 中部操作按钮 --> <!-- 中部操作按钮 -->
<template #operationWrap> <template #operationWrap>
<el-button type="primary" size="medium" plain @click="toDetails" <el-button type="primary" size="medium" plain @click="toDetails"
>架构政策审查</el-button >架构政策审查
</el-button
> >
</template> </template>
<!-- 表格插槽 --> <!-- 表格插槽 -->
<template #tableWrap> <template #tableWrap>
<table-config <table-config
ref="searchTable" ref="searchTable"
@selection-change="selectionChange" @selection-change="selectionChange"
:query="query" :query="query"
:columns="columns" :columns="columns"
id-key="elementId" id-key="elementId"
> >
</table-config> </table-config>
</template> </template>
...@@ -31,10 +32,11 @@ import ListPage from '@/components/ListPage.vue' ...@@ -31,10 +32,11 @@ import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue' import SearchForm from '@/components/SearchForm.vue'
import TableConfig from '@/components/TableConfig.vue' import TableConfig from '@/components/TableConfig.vue'
import { queryAppArchiControlRequirements } from '@/api/interface' import {queryAppArchiControlRequirements} from '@/api/interface'
import { getOrgOption, getDeptOption } from '@/api/index' import {getDeptOption, getOrgOption} from '@/api/index'
import { prjPlanClass } from '@/utils/dictionary' import {prjPlanClass} from '@/utils/dictionary'
import { getDictTypeOptions } from '@/utils' import {getDictTypeOptions} from '@/utils'
export default { export default {
name: 'batchPlanManagement', name: 'batchPlanManagement',
components: { components: {
...@@ -93,30 +95,26 @@ export default { ...@@ -93,30 +95,26 @@ export default {
}, },
columns() { columns() {
return [ return [
{ type: 'selection', width: '55px' }, {type: 'selection', width: '55px'},
{ label: '序号', type: 'index', width: '80px' }, {label: '序号', type: 'index', width: '80px'},
{ {
label: '建设单位', label: '建设单位',
prop: 'manageOrgId', prop: 'manageOrgName',
options: this.sysOrgOptions,
collectionType: true,
width: '120px', width: '120px',
}, },
{ {
label: '业务部门', label: '业务部门',
prop: 'manageDeptId', prop: 'manageDeptName',
options: this.sysDeptOptions,
collectionType: true,
width: '120px', width: '120px',
}, },
{ label: '系统名称', width: '280px', prop: 'appName' }, {label: '系统名称', width: '280px', prop: 'appName'},
{ {
label: '建设类型', label: '建设类型',
prop: 'buildType', prop: 'buildType',
options: this.buildTypeOptions, options: this.buildTypeOptions,
collectionType: 'build_type', collectionType: 'build_type',
}, },
{ label: '项目名称', width: '295px', prop: 'prjName' }, {label: '项目名称', width: '295px', prop: 'prjName'},
{ {
label: '是否续建', label: '是否续建',
prop: 'prjPlanClass', prop: 'prjPlanClass',
...@@ -134,7 +132,7 @@ export default { ...@@ -134,7 +132,7 @@ export default {
label: '运安符合性审查', label: '运安符合性审查',
prop: 'version3', prop: 'version3',
type: 'operation', type: 'operation',
actionButtons: [{ title: '查看', type: 'text' }], actionButtons: [{title: '查看', type: 'text'}],
callback: (row, title) => { callback: (row, title) => {
this.fnToDetailsTab('1', row.prjId) this.fnToDetailsTab('1', row.prjId)
}, },
...@@ -143,7 +141,7 @@ export default { ...@@ -143,7 +141,7 @@ export default {
label: '功能满足审查', label: '功能满足审查',
prop: 'version4', prop: 'version4',
type: 'operation', type: 'operation',
actionButtons: [{ title: '查看', type: 'text' }], actionButtons: [{title: '查看', type: 'text'}],
callback: (row, title) => { callback: (row, title) => {
this.fnToDetailsTab('2', row.prjId) this.fnToDetailsTab('2', row.prjId)
}, },
...@@ -152,7 +150,7 @@ export default { ...@@ -152,7 +150,7 @@ export default {
label: '运行可靠性审查', label: '运行可靠性审查',
prop: 'version5', prop: 'version5',
type: 'operation', type: 'operation',
actionButtons: [{ title: '查看', type: 'text' }], actionButtons: [{title: '查看', type: 'text'}],
callback: (row, title) => { callback: (row, title) => {
this.fnToDetailsTab('3', row.prjId) this.fnToDetailsTab('3', row.prjId)
}, },
...@@ -161,7 +159,7 @@ export default { ...@@ -161,7 +159,7 @@ export default {
label: '系统实用性审查', label: '系统实用性审查',
prop: 'version6', prop: 'version6',
type: 'operation', type: 'operation',
actionButtons: [{ title: '查看', type: 'text' }], actionButtons: [{title: '查看', type: 'text'}],
callback: (row, title) => { callback: (row, title) => {
this.fnToDetailsTab('4', row.prjId) this.fnToDetailsTab('4', row.prjId)
}, },
...@@ -170,7 +168,7 @@ export default { ...@@ -170,7 +168,7 @@ export default {
label: '系统安全性审查', label: '系统安全性审查',
prop: 'version8', prop: 'version8',
type: 'operation', type: 'operation',
actionButtons: [{ title: '查看', type: 'text' }], actionButtons: [{title: '查看', type: 'text'}],
callback: (row, title) => { callback: (row, title) => {
this.fnToDetailsTab('5', row.prjId) this.fnToDetailsTab('5', row.prjId)
}, },
...@@ -179,7 +177,7 @@ export default { ...@@ -179,7 +177,7 @@ export default {
label: '资源复用性审查', label: '资源复用性审查',
prop: 'version7', prop: 'version7',
type: 'operation', type: 'operation',
actionButtons: [{ title: '查看', type: 'text' }], actionButtons: [{title: '查看', type: 'text'}],
callback: (row, title) => { callback: (row, title) => {
this.fnToDetailsTab('6', row.prjId) this.fnToDetailsTab('6', row.prjId)
}, },
...@@ -215,7 +213,7 @@ export default { ...@@ -215,7 +213,7 @@ export default {
}) })
} }
}) })
getDictTypeOptions('sys_build_org').then((res) => { getDictTypeOptions('build_company').then((res) => {
this.sysBuildOrgOptions = res this.sysBuildOrgOptions = res
}) })
}, },
...@@ -237,7 +235,7 @@ export default { ...@@ -237,7 +235,7 @@ export default {
if (this.selectRows.length > 1) { if (this.selectRows.length > 1) {
return this.$message.warning('只能选择一条数据') return this.$message.warning('只能选择一条数据')
} }
const { name, prjId } = this.selectRows[0] const {name, prjId} = this.selectRows[0]
this.$router.push({ this.$router.push({
path: '/main/reviewArchiPoliticeCheckDetails', path: '/main/reviewArchiPoliticeCheckDetails',
query: { query: {
......
...@@ -3,26 +3,27 @@ ...@@ -3,26 +3,27 @@
<list-page> <list-page>
<!-- 查询表单插槽 --> <!-- 查询表单插槽 -->
<template #formWrap> <template #formWrap>
<SearchForm @onSearch="querySearch" :form-options="formOptions" /> <SearchForm @onSearch="querySearch" :form-options="formOptions"/>
</template> </template>
<!-- 中部操作按钮 --> <!-- 中部操作按钮 -->
<template #operationWrap> <template #operationWrap>
<el-button <el-button
icon="el-icon-document-add" icon="el-icon-document-add"
type="primary" type="primary"
size="medium" size="medium"
plain plain
@click="toDetails()" @click="toDetails()"
>评审情况(概要设计)</el-button >评审情况(概要设计)
</el-button
> >
</template> </template>
<!-- 表格插槽 --> <!-- 表格插槽 -->
<template #tableWrap> <template #tableWrap>
<table-config <table-config
ref="searchTable" ref="searchTable"
@selection-change="selectionChange" @selection-change="selectionChange"
:query="query" :query="query"
:columns="columns" :columns="columns"
> >
</table-config> </table-config>
</template> </template>
...@@ -35,10 +36,11 @@ import ListPage from '@/components/ListPage.vue' ...@@ -35,10 +36,11 @@ import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue' import SearchForm from '@/components/SearchForm.vue'
import TableConfig from '@/components/TableConfig.vue' import TableConfig from '@/components/TableConfig.vue'
import { queryPrelDesInspecte } from '@/api/interface' import {queryPrelDesInspecte} from '@/api/interface'
import { getOrgOption, getDeptOption } from '@/api/index' import {getDeptOption, getOrgOption} from '@/api/index'
import { prjPlanClass, completionStatus } from '@/utils/dictionary' import {completionStatus, prjPlanClass} from '@/utils/dictionary'
import { getDictTypeOptions } from '@/utils' import {getDictTypeOptions} from '@/utils'
export default { export default {
name: 'reviewSituation', name: 'reviewSituation',
data() { data() {
...@@ -98,20 +100,16 @@ export default { ...@@ -98,20 +100,16 @@ export default {
}, },
columns() { columns() {
let arr = [ let arr = [
{ type: 'selection', width: '55px' }, {type: 'selection', width: '55px'},
{ label: '序号', type: 'index', width: '80px' }, {label: '序号', type: 'index', width: '80px'},
{ {
label: '建设单位', label: '建设单位',
prop: 'manageOrgId', prop: 'manageOrgName',
options: this.sysOrgOptions,
collectionType: true,
width: '120px', width: '120px',
}, },
{ {
label: '业务部门', label: '业务部门',
prop: 'manageDeptId', prop: 'manageDeptName',
options: this.sysDeptOptions,
collectionType: true,
width: '120px', width: '120px',
}, },
{ {
...@@ -216,7 +214,7 @@ export default { ...@@ -216,7 +214,7 @@ export default {
}) })
} }
}) })
getDictTypeOptions('sys_build_org').then((res) => { getDictTypeOptions('build_company').then((res) => {
this.sysBuildOrgOptions = res this.sysBuildOrgOptions = res
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!