Commit 8a4c8d85 by 史敦盼

按钮size统一

1 parent 696da117
......@@ -14,12 +14,22 @@
</template>
<!-- 查询表单插槽 -->
<template #formWrap>
<SearchForm ref="SearchForm" @onSearch="querySearch" :form-options="formOptions" />
<SearchForm
ref="SearchForm"
@onSearch="querySearch"
:form-options="formOptions"
/>
</template>
<!-- 中部操作按钮 -->
<template #operationWrap v-if="activeName == '1'">
<el-button type="primary" icon="el-icon-document-add" size="medium" plain @click="fnAdd" >添加</el-button >
</template>
<template #operationWrap v-if="activeName == '1'">
<el-button
type="primary"
icon="el-icon-document-add"
plain
@click="fnAdd"
>添加</el-button
>
</template>
<!-- 表格插槽 -->
<template #tableWrap>
<table-config
......@@ -31,10 +41,11 @@
</table-config>
</template>
</list-page>
<AddTabelList
<AddTabelList
@querySearch="querySearch"
:visible.sync="visible"
:title="dialogTitle"/>
:title="dialogTitle"
/>
</div>
</template>
......@@ -56,7 +67,9 @@ export default {
method: 'post',
queryParam: {},
},
activeName: this.$route.query.activeName ? this.$route.query.activeName : '1',
activeName: this.$route.query.activeName
? this.$route.query.activeName
: '1',
tabOptions: [
{ label: '技术政策', name: '1' },
{ label: '审查', name: '2' },
......@@ -67,7 +80,7 @@ export default {
},
computed: {
formOptions() {
if(this.activeName == '2'){
if (this.activeName == '2') {
return [
{
label: '项目名称', // label文字
......@@ -76,7 +89,7 @@ export default {
placeholder: '请输入内容', // elementui组件属性
},
]
}else{
} else {
return [
{
label: '政策名称', // label文字
......@@ -88,7 +101,7 @@ export default {
}
},
columns() {
if(this.activeName == '2'){
if (this.activeName == '2') {
return [
{ label: '序号', type: 'index', width: '80px' },
{ label: '单位', prop: 'manageOrgId', width: '100px' },
......@@ -102,7 +115,9 @@ export default {
{ label: '创建人', prop: 'createMan', width: '100px' },
{ label: '创建时间', prop: 'createTime', width: '100px' },
{
label: '操作', type: 'operation', width: '200px',
label: '操作',
type: 'operation',
width: '200px',
actionButtons: [
{
title: '审查',
......@@ -117,19 +132,21 @@ export default {
},
},
]
}else{
} else {
return [
{ label: '序号', type: 'index', width: '80px' },
{ label: '政策名称', prop: 'policyName', width: '100px' },
{ label: '政策描述', prop: 'policyContent', },
{ label: '适用范围', prop: 'scope_', },
{ label: '发布部门', prop: 'deptName', },
{ label: '级别', prop: 'level_', },
{ label: '启用时间', prop: 'startTime', },
{ label: '创建人', prop: 'createMan', },
{ label: '创建时间', prop: 'createTime', },
{ label: '政策描述', prop: 'policyContent' },
{ label: '适用范围', prop: 'scope_' },
{ label: '发布部门', prop: 'deptName' },
{ label: '级别', prop: 'level_' },
{ label: '启用时间', prop: 'startTime' },
{ label: '创建人', prop: 'createMan' },
{ label: '创建时间', prop: 'createTime' },
{
label: '操作', type: 'operation', width: '200px',
label: '操作',
type: 'operation',
width: '200px',
actionButtons: [
{
title: '删除',
......@@ -149,15 +166,15 @@ export default {
},
methods: {
querySearch(data) {
if(this.activeName == '1'){
if (this.activeName == '1') {
this.query.url = artPolicyExamine
this.query.queryParam = {
policyName: undefined
policyName: undefined,
}
}else{
} else {
this.query.url = examineSearch
this.query.queryParam = {
prjName: undefined
prjName: undefined,
}
}
this.query.queryParam = {
......@@ -183,38 +200,40 @@ export default {
* @author: pan
*/
fnOperation(row, title) {
switch (title) {
case '审查':
this.fnSubmit(row)
break
case '删除':
this.fnDel(row)
break
default:
break
}
switch (title) {
case '审查':
this.fnSubmit(row)
break
case '删除':
this.fnDel(row)
break
default:
break
}
},
fnSubmit(row){
fnSubmit(row) {
this.$router.push('/main/examine')
},
fnDel(row){
fnDel(row) {
this.$confirm('是否确认删除?', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
this.$postRequest('/klTechPolicyCheck/del/', {id: row.id}).then(res => {
.then(() => {
this.$postRequest('/klTechPolicyCheck/del/', { id: row.id }).then(
(res) => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
this.$message.error(res.msg)
}
})
})
.catch(() => {})
}
},
)
})
.catch(() => {})
},
},
}
</script>
......
......@@ -3,17 +3,33 @@
<list-page>
<!-- 查询表单插槽 -->
<template #formWrap>
<SearchForm @onSearch="querySearch" :form-options="formOptions"/>
<SearchForm @onSearch="querySearch" :form-options="formOptions" />
</template>
<!-- 中部操作按钮 -->
<template #operationWrap>
<el-button type="primary" icon="el-icon-document-add" size="medium" plain @click="fnAdd">新建</el-button>
<el-button
type="primary"
icon="el-icon-document-add"
plain
@click="fnAdd"
>新建</el-button
>
</template>
<!-- 表格插槽 -->
<template #tableWrap>
<table-config ref="searchTable" :query="query" :columns="columns" id-key="elementId">
<table-config
ref="searchTable"
:query="query"
:columns="columns"
id-key="elementId"
>
<template #supervision="{ data }">
<el-button v-if="data.row.supervisionStr" class="detailBtn" size="medium" @click="detailBtn(data.row)">{{ data.row.supervisionStr }}</el-button>
<el-button
v-if="data.row.supervisionStr"
class="detailBtn"
@click="detailBtn(data.row)"
>{{ data.row.supervisionStr }}</el-button
>
<span v-else>{{ data.row.supervisionStr }}</span>
</template>
</table-config>
......@@ -21,15 +37,21 @@
</list-page>
<!-- 新增弹窗 -->
<Add
@querySearch="querySearch"
:visible.sync="visible"
:row-data="rowData"
:title="dialogTitle"
@addList='addList'
:edit='isEdit'
@querySearch="querySearch"
:visible.sync="visible"
:row-data="rowData"
:title="dialogTitle"
@addList="addList"
:edit="isEdit"
></Add>
<!-- 详情 -->
<Detail ref="Detail" :prjCodeDetail='detailPrjCode' :visible.sync="visibleDetail" @selectTabel='selectTabel' :title="detailTitle"/>
<Detail
ref="Detail"
:prjCodeDetail="detailPrjCode"
:visible.sync="visibleDetail"
@selectTabel="selectTabel"
:title="detailTitle"
/>
</div>
</template>
......@@ -38,14 +60,14 @@ import AddTabelList from './AddTabelList.vue'
import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue'
import TableConfig from './TableConfig.vue'
import {collectDataSearch} from '@/api/architectureInspection'
import { collectDataSearch } from '@/api/architectureInspection'
import Add from './Add.vue'
import Detail from './Detail.vue'
import {materialTypeList, stateCode} from '@/utils/architectureInspectionDis'
import { materialTypeList, stateCode } from '@/utils/architectureInspectionDis'
export default {
name: 'collectDataConfiguration',
components: {ListPage, SearchForm, TableConfig, Add, AddTabelList, Detail},
components: { ListPage, SearchForm, TableConfig, Add, AddTabelList, Detail },
computed: {
formOptions() {
return [
......@@ -59,16 +81,17 @@ export default {
},
columns() {
return [
{label: '序号', type: 'index', width: '80px'},
{label: '督查方案名称', prop: 'supervName',},
{ label: '序号', type: 'index', width: '80px' },
{ label: '督查方案名称', prop: 'supervName' },
{
label: '材料类型', prop: 'materialType',
label: '材料类型',
prop: 'materialType',
collectionType: 'materialTypeList',
options: materialTypeList
options: materialTypeList,
},
{label: '督查清单', prop: 'supervision', __slotName: 'supervision',},
{label: '开始时间', prop: 'startTime', width: '120px'},
{label: '截止时间', prop: 'endTime', width: '120px'},
{ label: '督查清单', prop: 'supervision', __slotName: 'supervision' },
{ label: '开始时间', prop: 'startTime', width: '120px' },
{ label: '截止时间', prop: 'endTime', width: '120px' },
{
label: '状态',
prop: 'state',
......@@ -76,7 +99,7 @@ export default {
collectionType: 'stateCode',
options: stateCode,
},
{label: '备注', prop: 'notes', width: '100px'},
{ label: '备注', prop: 'notes', width: '100px' },
{
label: '操作',
type: 'operation',
......@@ -126,7 +149,7 @@ export default {
url: collectDataSearch,
method: 'post',
queryParam: {
supervName: ''
supervName: '',
},
},
visible: false,
......@@ -139,7 +162,7 @@ export default {
detailTitle: '详情',
visibleDetail: false,
detailPrjCode: '',
isEdit: false
isEdit: false,
}
},
......@@ -183,22 +206,21 @@ export default {
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
const params = {
...row,
state: 2,
.then(() => {
const params = {
...row,
state: 2,
}
this.$postRequest('/collect/fb', { ...row }).then((res) => {
if (res.code === 200) {
this.$message.success('发布成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
this.$postRequest('/collect/fb', {...row}).then(res => {
if (res.code === 200) {
this.$message.success('发布成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
})
})
.catch(() => {
})
})
.catch(() => {})
},
fnDel(row) {
this.$confirm('是否确认删除?', '提示', {
......@@ -206,22 +228,23 @@ export default {
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
const params = {
...row,
delFlag: 1,
}
this.$postRequest('/collect/del', {supervId: row.supervId}).then(res => {
.then(() => {
const params = {
...row,
delFlag: 1,
}
this.$postRequest('/collect/del', { supervId: row.supervId }).then(
(res) => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error('删除失败')
}
})
})
.catch(() => {
})
},
)
})
.catch(() => {})
},
fnEdit(row) {
this.dialogTitle = '收集资料配置'
......@@ -248,7 +271,7 @@ export default {
this.rowData.supervision = !!v ? Array.from(new Set(arr)).join(',') : id
// this.rowData.supervision = !!v ? v +','+id : id
},
}
},
}
</script>
......@@ -262,4 +285,4 @@ export default {
overflow: hidden;
text-overflow: ellipsis;
}
</style>
\ No newline at end of file
</style>
......@@ -4,7 +4,7 @@
* @Autor: pan
* @Date: 2024-03-21 20:58:31
* @LastEditors: pan
* @LastEditTime: 2024-03-27 10:50:41
* @LastEditTime: 2024-06-24 10:21:23
-->
<template>
<div class="searchTable">
......@@ -31,7 +31,6 @@
<el-button
type="primary"
icon="el-icon-document-add"
size="medium"
plain
@click="fnAdd()"
>新建</el-button
......@@ -39,7 +38,6 @@
<el-button
type="primary"
icon="el-icon-download"
size="medium"
plain
v-if="activeName === '1'"
>导出</el-button
......@@ -59,12 +57,22 @@
<span>{{ handleFileName(data) }}</span>
</template>
<template #orgName="{ data }">
<el-button v-if="data.row.orgName" class="detailBtn" size="medium" @click="fnEdit(data.row, true)">{{data.row.orgName}}</el-button >
<span v-else>{{data.row.orgName}}</span>
<el-button
v-if="data.row.orgName"
class="detailBtn"
@click="fnEdit(data.row, true)"
>{{ data.row.orgName }}</el-button
>
<span v-else>{{ data.row.orgName }}</span>
</template>
<template #matterName="{ data }">
<el-button v-if="data.row.matterName" class="detailBtn" size="medium" @click="fnEdit(data.row, true)">{{data.row.matterName}}</el-button >
<span v-else>{{data.row.matterName}}</span>
<el-button
v-if="data.row.matterName"
class="detailBtn"
@click="fnEdit(data.row, true)"
>{{ data.row.matterName }}</el-button
>
<span v-else>{{ data.row.matterName }}</span>
</template>
</table-config>
</template>
......
......@@ -4,7 +4,7 @@
* @Autor: pan
* @Date: 2024-03-21 20:58:31
* @LastEditors: pan
* @LastEditTime: 2024-04-01 11:33:12
* @LastEditTime: 2024-06-24 10:22:42
-->
<template>
<div class="searchTable">
......@@ -60,25 +60,40 @@
<span> {{ handlePercent(data) }}</span>
</template>
<template #manageOrgName="{ data }">
<el-button v-if="data.row.manageOrgName" class="detailBtn" size="medium" @click="fnDetail(data.row)">{{data.row.manageOrgName}}</el-button >
<span v-else>{{data.row.manageOrgName}}</span>
<el-button
v-if="data.row.manageOrgName"
class="detailBtn"
@click="fnDetail(data.row)"
>{{ data.row.manageOrgName }}</el-button
>
<span v-else>{{ data.row.manageOrgName }}</span>
</template>
<template #batName="{ data }">
<el-button v-if="data.row.batName" class="detailBtn" size="medium" @click="fnDetail(data.row)">{{data.row.batName}}</el-button >
<span v-else>{{data.row.batName}}</span>
<el-button
v-if="data.row.batName"
class="detailBtn"
@click="fnDetail(data.row)"
>{{ data.row.batName }}</el-button
>
<span v-else>{{ data.row.batName }}</span>
</template>
<template #assetName="{ data }">
<el-button v-if="data.row.assetName" class="detailBtn" size="medium" @click="fnDetail(data.row)">{{data.row.assetName}}</el-button >
<span v-else>{{data.row.assetName}}</span>
<el-button
v-if="data.row.assetName"
class="detailBtn"
@click="fnDetail(data.row)"
>{{ data.row.assetName }}</el-button
>
<span v-else>{{ data.row.assetName }}</span>
</template>
</table-config>
</template>
</list-page>
<Detail
<Detail
:visible.sync="visible"
:row-data="rowData"
:activeName='activeName'
:activeName2_1='activeName2_1'
:activeName="activeName"
:activeName2_1="activeName2_1"
/>
</div>
</template>
......@@ -138,7 +153,7 @@ export default {
ListPage,
SearchForm,
TableConfig,
Detail
Detail,
},
computed: {
getCountType() {
......@@ -178,7 +193,11 @@ export default {
if (this.activeName2_1 === '1') {
arr = [
{ label: '序号', type: 'index', width: '80px' },
{ label: '单位名称', prop: 'manageOrgName', __slotName: 'manageOrgName', },
{
label: '单位名称',
prop: 'manageOrgName',
__slotName: 'manageOrgName',
},
{ label: '概设需求数(个)', prop: 'needCount' },
{ label: '概设材料通过数(个)', prop: 'reviewPassCount' },
{ label: '概设通过比(%)', __slotName: 'percent' },
......@@ -186,7 +205,7 @@ export default {
} else {
arr = [
{ label: '序号', type: 'index', width: '80px' },
{ label: '批次', prop: 'batName', __slotName: 'batName', },
{ label: '批次', prop: 'batName', __slotName: 'batName' },
{ label: '项目需求数(个)', prop: 'needCount' },
{ label: '项目通过数(个)', prop: 'reviewPassCount' },
{ label: '项目通过比(%)', __slotName: 'percent' },
......@@ -196,7 +215,7 @@ export default {
arr = [
{ type: 'selection', width: '55px' },
{ label: '序号', type: 'index', width: '80px' },
{ label: '资产名称', prop: 'assetName', __slotName: 'assetName', },
{ label: '资产名称', prop: 'assetName', __slotName: 'assetName' },
{ label: '资产类型(所属元素)', prop: 'eleName' },
{
label: '来源',
......@@ -233,7 +252,7 @@ export default {
this.getElementTreeData()
},
methods: {
fnDetail(row){
fnDetail(row) {
this.rowData = row
this.visible = true
},
......
......@@ -38,7 +38,6 @@
v-if="activeName === '1'"
icon="el-icon-document-add"
type="primary"
size="medium"
plain
@click="fnMaterialAnalysis()"
>材料解析</el-button
......@@ -47,7 +46,6 @@
<el-button
icon="el-icon-document-add"
type="primary"
size="medium"
plain
v-if="showBatchBtn"
@click="fnBatchExamine()"
......@@ -56,7 +54,6 @@
<el-button
icon="el-icon-download"
type="primary"
size="medium"
plain
v-if="activeName2 === '1'"
>导出报告</el-button
......@@ -64,7 +61,6 @@
<el-button
icon="el-icon-download"
type="primary"
size="medium"
plain
v-if="activeName2 === '4'"
>导出技术偏差分析表</el-button
......@@ -72,7 +68,6 @@
<el-button
icon="el-icon-download"
type="primary"
size="medium"
plain
v-if="activeName2 === '8'"
@click="handlExportRiskReport('重复建设风险报告', 1)"
......@@ -81,7 +76,6 @@
<el-button
icon="el-icon-download"
type="primary"
size="medium"
plain
v-if="activeName2 === '9'"
@click="handlExportRiskReport('重复录入风险报告', 2)"
......@@ -99,8 +93,13 @@
id-key="elementId"
>
<template #prjName="{ data }">
<el-button v-if="data.row.prjName" class="detailBtn" size="medium" @click="fnDetail(data.row)">{{data.row.prjName}}</el-button >
<span v-else>{{data.row.prjName}}</span>
<el-button
v-if="data.row.prjName"
class="detailBtn"
@click="fnDetail(data.row)"
>{{ data.row.prjName }}</el-button
>
<span v-else>{{ data.row.prjName }}</span>
</template>
</table-config>
</template>
......@@ -111,12 +110,12 @@
title="概设材料解析内容"
:visible.sync="analysisContentVisible"
/>
<Detail
<Detail
:visible.sync="visible"
:row-data="rowData"
:activeName='activeName'
:activeName2='activeName2'
/>
:activeName="activeName"
:activeName2="activeName2"
/>
</div>
</template>
......@@ -215,7 +214,7 @@ export default {
SearchForm,
TableConfig,
AnalysisContent,
Detail
Detail,
},
computed: {
formOptions() {
......@@ -465,7 +464,7 @@ export default {
},
mounted() {},
methods: {
fnDetail(row){
fnDetail(row) {
this.rowData = row
this.visible = true
},
......
......@@ -47,9 +47,7 @@
</div>
</div>
<div class="flex">
<el-button type="primary" size="medium" @click="fnSave()"
>保存结果</el-button
>
<el-button type="primary" @click="fnSave()">保存结果</el-button>
</div>
</div>
<el-input
......
......@@ -11,7 +11,6 @@
<el-button
icon="el-icon-download"
type="primary"
size="medium"
plain
v-if="item.requireName === '功能偏差'"
>导出技术偏差分析表</el-button
......@@ -19,7 +18,6 @@
<el-button
icon="el-icon-download"
type="primary"
size="medium"
plain
v-if="item.requireName === '功能重复风险'"
>导出重复建设风险报告</el-button
......@@ -27,7 +25,6 @@
<el-button
icon="el-icon-download"
type="primary"
size="medium"
plain
v-if="item.requireName === '数据重复录入风险'"
>导出重复录入风险报告</el-button
......
......@@ -37,16 +37,19 @@
:columns="columns"
:key="activeName"
>
<template #prjName="{ data }">
<el-button v-if="data.row.prjName" class="detailBtn" size="medium" @click="fnEdit(data.row, true)">{{data.row.prjName}}</el-button >
<span v-else>{{data.row.prjName}}</span>
</template>
<template #prjName="{ data }">
<el-button
v-if="data.row.prjName"
class="detailBtn"
@click="fnEdit(data.row, true)"
>{{ data.row.prjName }}</el-button
>
<span v-else>{{ data.row.prjName }}</span>
</template>
</table-config>
</template>
</list-page>
<Detail
:visible.sync="detailVisible"
:row-data="rowData"/>
<Detail :visible.sync="detailVisible" :row-data="rowData" />
<!-- 新增弹窗 -->
<Add
@querySearch="querySearch"
......@@ -174,7 +177,7 @@ export default {
{ type: 'selection', width: '55px' },
{ label: '序号', type: 'index', width: '80px' },
{ label: '批次年度', prop: 'year' },
{ label: '批次名称', prop: 'batName', width: '200px', },
{ label: '批次名称', prop: 'batName', width: '200px' },
{
label: '项目名称',
prop: 'prjName',
......@@ -443,12 +446,12 @@ export default {
})
.catch(() => {})
},
fnEdit(row, isDetail=false) {
fnEdit(row, isDetail = false) {
this.rowData = row
if(this.activeName == '1'){
if (this.activeName == '1') {
this.dialogTitle = isDetail ? '详情' : '修改需求'
this.visible = true
}else{
} else {
this.detailVisible = true
}
},
......
......@@ -30,7 +30,6 @@
<el-button
icon="el-icon-document-add"
type="primary"
size="medium"
plain
@click="fnAdd()"
>新建</el-button
......
......@@ -49,7 +49,6 @@
<div class="search_btn">
<el-button
type="primary"
size="medium"
icon="el-icon-document-add"
@click="operation('add', null)"
>新建</el-button
......@@ -423,8 +422,8 @@ export default {
},
methods: {
// 状态
getStateList(){
query_jia_gou_ceng_ci_new({"typeValue": "sys_state"}).then(res => {
getStateList() {
query_jia_gou_ceng_ci_new({ typeValue: 'sys_state' }).then((res) => {
if (res.code == 200) {
this.stateList = res.data
}
......
......@@ -4,7 +4,7 @@
* @Autor: pan
* @Date: 2024-04-16 15:09:52
* @LastEditors: pan
* @LastEditTime: 2024-04-19 10:02:44
* @LastEditTime: 2024-06-24 10:24:52
-->
<template>
<div class="searchTable">
......@@ -24,7 +24,6 @@
<el-button
type="primary"
icon="el-icon-document-add"
size="medium"
plain
@click="fnTopOperation('新增')"
>新增</el-button
......@@ -32,7 +31,6 @@
<el-button
type="primary"
icon="el-icon-edit"
size="medium"
plain
@click="fnTopOperation('编辑')"
>编辑</el-button
......@@ -40,7 +38,6 @@
<el-button
type="danger"
icon="el-icon-delete"
size="medium"
plain
@click="fnTopOperation('删除')"
>删除</el-button
......@@ -254,13 +251,13 @@ export default {
})
.then(() => {
let [params, delApi] = [{}, null]
if(row) {
if (row) {
params = {
orgId: row.orgId,
}
delApi = delOrgTreeItem
} else {
params = this.selectRows.map(v => Number(v.orgId))
params = this.selectRows.map((v) => Number(v.orgId))
delApi = batchDeleteOrgTreeItem
}
delApi(params).then((res) => {
......
......@@ -63,18 +63,10 @@
</div>
</div>
<div class="search_btn">
<el-button
type="primary"
size="medium"
icon="el-icon-document-add"
@click="add"
<el-button type="primary" icon="el-icon-document-add" @click="add"
>新建</el-button
>
<el-button
type="primary"
size="medium"
icon="el-icon-delete"
@click="moreDelete"
<el-button type="primary" icon="el-icon-delete" @click="moreDelete"
>删除</el-button
>
</div>
......
......@@ -3,23 +3,22 @@
<list-page>
<!-- 查询表单插槽 -->
<template #formWrap>
<SearchForm @onSearch="querySearch" :form-options="formOptions"/>
<SearchForm @onSearch="querySearch" :form-options="formOptions" />
</template>
<!-- 中部操作按钮 -->
<template #operationWrap>
<el-button type="primary" size="medium" plain @click="toDetails"
>架构政策审查
</el-button
>
<el-button type="primary" plain @click="toDetails"
>架构政策审查
</el-button>
</template>
<!-- 表格插槽 -->
<template #tableWrap>
<table-config
ref="searchTable"
@selection-change="selectionChange"
:query="query"
:columns="columns"
id-key="elementId"
ref="searchTable"
@selection-change="selectionChange"
:query="query"
:columns="columns"
id-key="elementId"
>
</table-config>
</template>
......@@ -32,10 +31,10 @@ import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue'
import TableConfig from '@/components/TableConfig.vue'
import {queryAppArchiControlRequirements} from '@/api/interface'
import {getDeptOption, getOrgOption} from '@/api/index'
import {prjPlanClass} from '@/utils/dictionary'
import {getDictTypeOptions} from '@/utils'
import { queryAppArchiControlRequirements } from '@/api/interface'
import { getDeptOption, getOrgOption } from '@/api/index'
import { prjPlanClass } from '@/utils/dictionary'
import { getDictTypeOptions } from '@/utils'
export default {
name: 'batchPlanManagement',
......@@ -68,7 +67,7 @@ export default {
element: 'el-select', // 指定elementui组件
placeholder: '请选择', // elementui组件属性
options: this.sysOrgOptions,
filterable: true
filterable: true,
},
{
label: '业务部门', // label文字
......@@ -76,7 +75,7 @@ export default {
element: 'el-select', // 指定elementui组件
placeholder: '请选择', // elementui组件属性
options: this.sysDeptOptions,
filterable: true
filterable: true,
},
{
label: '系统名称', // label文字
......@@ -95,8 +94,8 @@ export default {
},
columns() {
return [
{type: 'selection', width: '55px'},
{label: '序号', type: 'index', width: '80px'},
{ type: 'selection', width: '55px' },
{ label: '序号', type: 'index', width: '80px' },
{
label: '建设单位',
prop: 'manageOrgName',
......@@ -107,14 +106,14 @@ export default {
prop: 'manageDeptName',
width: '300px',
},
{label: '系统名称', width: '280px', prop: 'appName'},
{ label: '系统名称', width: '280px', prop: 'appName' },
{
label: '建设类型',
prop: 'buildType',
options: this.buildTypeOptions,
collectionType: 'build_type',
},
{label: '项目名称', width: '295px', prop: 'prjName'},
{ label: '项目名称', width: '295px', prop: 'prjName' },
{
label: '是否续建',
prop: 'prjPlanClass',
......@@ -132,7 +131,7 @@ export default {
label: '运安符合性审查',
prop: 'version3',
type: 'operation',
actionButtons: [{title: '查看', type: 'text'}],
actionButtons: [{ title: '查看', type: 'text' }],
callback: (row, title) => {
this.fnToDetailsTab('1', row.prjId)
},
......@@ -141,7 +140,7 @@ export default {
label: '功能满足审查',
prop: 'version4',
type: 'operation',
actionButtons: [{title: '查看', type: 'text'}],
actionButtons: [{ title: '查看', type: 'text' }],
callback: (row, title) => {
this.fnToDetailsTab('2', row.prjId)
},
......@@ -150,7 +149,7 @@ export default {
label: '运行可靠性审查',
prop: 'version5',
type: 'operation',
actionButtons: [{title: '查看', type: 'text'}],
actionButtons: [{ title: '查看', type: 'text' }],
callback: (row, title) => {
this.fnToDetailsTab('3', row.prjId)
},
......@@ -159,7 +158,7 @@ export default {
label: '系统实用性审查',
prop: 'version6',
type: 'operation',
actionButtons: [{title: '查看', type: 'text'}],
actionButtons: [{ title: '查看', type: 'text' }],
callback: (row, title) => {
this.fnToDetailsTab('4', row.prjId)
},
......@@ -168,7 +167,7 @@ export default {
label: '系统安全性审查',
prop: 'version8',
type: 'operation',
actionButtons: [{title: '查看', type: 'text'}],
actionButtons: [{ title: '查看', type: 'text' }],
callback: (row, title) => {
this.fnToDetailsTab('5', row.prjId)
},
......@@ -177,7 +176,7 @@ export default {
label: '资源复用性审查',
prop: 'version7',
type: 'operation',
actionButtons: [{title: '查看', type: 'text'}],
actionButtons: [{ title: '查看', type: 'text' }],
callback: (row, title) => {
this.fnToDetailsTab('6', row.prjId)
},
......@@ -235,7 +234,7 @@ export default {
if (this.selectRows.length > 1) {
return this.$message.warning('只能选择一条数据')
}
const {name, prjId} = this.selectRows[0]
const { name, prjId } = this.selectRows[0]
this.$router.push({
path: '/main/reviewArchiPoliticeCheckDetails',
query: {
......
......@@ -3,27 +3,25 @@
<list-page>
<!-- 查询表单插槽 -->
<template #formWrap>
<SearchForm @onSearch="querySearch" :form-options="formOptions"/>
<SearchForm @onSearch="querySearch" :form-options="formOptions" />
</template>
<!-- 中部操作按钮 -->
<template #operationWrap>
<el-button
icon="el-icon-document-add"
type="primary"
size="medium"
plain
@click="toDetails()"
>评审情况(概要设计)
</el-button
>
icon="el-icon-document-add"
type="primary"
plain
@click="toDetails()"
>评审情况(概要设计)
</el-button>
</template>
<!-- 表格插槽 -->
<template #tableWrap>
<table-config
ref="searchTable"
@selection-change="selectionChange"
:query="query"
:columns="columns"
ref="searchTable"
@selection-change="selectionChange"
:query="query"
:columns="columns"
>
</table-config>
</template>
......@@ -36,10 +34,10 @@ import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue'
import TableConfig from '@/components/TableConfig.vue'
import {queryPrelDesInspecte} from '@/api/interface'
import {getDeptOption, getOrgOption} from '@/api/index'
import {completionStatus, prjPlanClass} from '@/utils/dictionary'
import {getDictTypeOptions} from '@/utils'
import { queryPrelDesInspecte } from '@/api/interface'
import { getDeptOption, getOrgOption } from '@/api/index'
import { completionStatus, prjPlanClass } from '@/utils/dictionary'
import { getDictTypeOptions } from '@/utils'
export default {
name: 'reviewSituation',
......@@ -71,7 +69,7 @@ export default {
element: 'el-select', // 指定elementui组件
placeholder: '请选择', // elementui组件属性
options: this.sysOrgOptions,
filterable: true
filterable: true,
},
{
label: '业务部门', // label文字
......@@ -79,7 +77,7 @@ export default {
element: 'el-select', // 指定elementui组件
placeholder: '请选择', // elementui组件属性
options: this.sysDeptOptions,
filterable: true
filterable: true,
},
{
label: '系统名称', // label文字
......@@ -100,8 +98,8 @@ export default {
},
columns() {
let arr = [
{type: 'selection', width: '55px'},
{label: '序号', type: 'index', width: '80px'},
{ type: 'selection', width: '55px' },
{ label: '序号', type: 'index', width: '80px' },
{
label: '建设单位',
prop: 'manageOrgName',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!