Commit 8a4c8d85 by 史敦盼

按钮size统一

1 parent 696da117
...@@ -12,32 +12,48 @@ ...@@ -12,32 +12,48 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</template> </template>
<!-- 查询表单插槽 --> <!-- 查询表单插槽 -->
<template #formWrap> <template #formWrap>
<SearchForm @onSearch="querySearch" :form-options="formOptions" /> <SearchForm @onSearch="querySearch" :form-options="formOptions" />
</template> </template>
<!-- 中部操作按钮 --> <!-- 中部操作按钮 -->
<template #operationWrap v-if="activeName == '1'"> <template #operationWrap v-if="activeName == '1'">
<el-button type="primary" icon="el-icon-document-add" size="medium" plain @click="fnAdd" >新建</el-button > <el-button
</template> type="primary"
<!-- 表格插槽 --> icon="el-icon-document-add"
<template #tableWrap> plain
<table-config @click="fnAdd"
ref="searchTable" >新建</el-button
:query="query" >
:columns="columns" </template>
id-key="elementId" <!-- 表格插槽 -->
<template #tableWrap>
<table-config
ref="searchTable"
:query="query"
:columns="columns"
id-key="elementId"
>
<template #indexLevel="{ data }">
<el-button
v-if="data.row.indexLevel"
class="detailBtn"
@click="detailBtn(data.row)"
>指标清单</el-button
>
<span v-else>{{ data.row.indexLevel }}</span>
</template>
<template #supervName="{ data }">
<el-button
v-if="data.row.supervName"
class="detailBtn"
@click="supervNameDetailBtn(data.row)"
>{{ data.row.supervName }}</el-button
> >
<template #indexLevel="{ data }"> <span v-else>{{ data.row.supervName }}</span>
<el-button v-if="data.row.indexLevel" class="detailBtn" size="medium" @click="detailBtn( data.row)">指标清单</el-button > </template>
<span v-else>{{data.row.indexLevel}}</span> </table-config>
</template> </template>
<template #supervName="{ data }">
<el-button v-if="data.row.supervName" class="detailBtn" size="medium" @click="supervNameDetailBtn( data.row)">{{data.row.supervName}}</el-button >
<span v-else>{{data.row.supervName}}</span>
</template>
</table-config>
</template>
</list-page> </list-page>
<!-- 新增弹窗 --> <!-- 新增弹窗 -->
<Add <Add
...@@ -46,8 +62,13 @@ ...@@ -46,8 +62,13 @@
:row-data="rowData" :row-data="rowData"
:title="dialogTitle" :title="dialogTitle"
></Add> ></Add>
<Detail ref="Detail" :prjCodeDetail='detailPrjCode' :title="detailTitle" :visible.sync="visibleDetail" @editClick='fnEdit'/> <Detail
ref="Detail"
:prjCodeDetail="detailPrjCode"
:title="detailTitle"
:visible.sync="visibleDetail"
@editClick="fnEdit"
/>
</div> </div>
</template> </template>
...@@ -55,272 +76,295 @@ ...@@ -55,272 +76,295 @@
import ListPage from '@/components/ListPage.vue' import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue' import SearchForm from '@/components/SearchForm.vue'
import TableConfig from '@/views/collectDataConfiguration/TableConfig.vue' import TableConfig from '@/views/collectDataConfiguration/TableConfig.vue'
import { architectureInspectionAnalysis, selectSupervAnalysis } from '@/api/architectureInspection' import {
architectureInspectionAnalysis,
selectSupervAnalysis,
} from '@/api/architectureInspection'
import { stateCode } from '@/utils/architectureInspectionDis' import { stateCode } from '@/utils/architectureInspectionDis'
import Add from './Add.vue' import Add from './Add.vue'
import Detail from './Detail.vue' import Detail from './Detail.vue'
export default { export default {
name: 'architectureInspectionAnalysis', name: 'architectureInspectionAnalysis',
components: { ListPage, SearchForm, TableConfig, Add, Detail }, components: { ListPage, SearchForm, TableConfig, Add, Detail },
computed: { computed: {
formOptions() { formOptions() {
if (this.activeName === '1') { if (this.activeName === '1') {
return [ return [
{ {
label: '督查方案名称', // label文字 label: '督查方案名称', // label文字
prop: 'prjName', // 字段名 prop: 'prjName', // 字段名
element: 'el-input', // 指定elementui组件 element: 'el-input', // 指定elementui组件
placeholder: '请输入内容', // elementui组件属性 placeholder: '请输入内容', // elementui组件属性
}, },
] ]
}else{ } else {
return [ return [
{ {
label: '项目名称', // label文字 label: '项目名称', // label文字
prop: 'prjName', // 字段名 prop: 'prjName', // 字段名
element: 'el-input', // 指定elementui组件 element: 'el-input', // 指定elementui组件
placeholder: '请输入内容', // elementui组件属性 placeholder: '请输入内容', // elementui组件属性
}, },
] ]
} }
}, },
columns() { columns() {
if(this.activeName === '1'){ if (this.activeName === '1') {
return [ return [
{ label: '序号', type: 'index', width: '80px' }, { label: '序号', type: 'index', width: '80px' },
{ label: '督查方案名称', prop: 'supervName', }, { label: '督查方案名称', prop: 'supervName' },
{ label: '督查编码', prop: 'supervCode', }, { label: '督查编码', prop: 'supervCode' },
{ label: '指标名称', prop: 'indexName', }, { label: '指标名称', prop: 'indexName' },
{ label: '指标清单', prop: 'indexLevel', __slotName: 'indexLevel', }, { label: '指标清单', prop: 'indexLevel', __slotName: 'indexLevel' },
{ label: '指标权重', prop: 'weight', }, { label: '指标权重', prop: 'weight' },
{ label: '创建时间', prop: 'createTime', }, { label: '创建时间', prop: 'createTime' },
{ label: '状态', prop: 'state', width: '120px', {
collectionType: 'stateCode', label: '状态',
options: stateCode,}, prop: 'state',
width: '120px',
collectionType: 'stateCode',
options: stateCode,
},
{
label: '操作',
type: 'operation',
width: '200px',
actionButtons: [
{ {
label: '操作', type: 'operation', width: '200px', title: '发布',
actionButtons: [ type: 'primary',
{ size: 'mini',
title: '发布', plain: true,
type: 'primary', icon: 'el-icon-circle-check',
size: 'mini', disabledCallback: (row, title) => {
plain: true, return row.state == '1' ? true : false
icon: 'el-icon-circle-check',
disabledCallback: (row, title) => {
return row.state == '1' ? true : false
},
},
{
title: '删除',
type: 'danger',
size: 'mini',
plain: true,
icon: 'el-icon-delete',
},
],
callback: (row, title) => {
this.fnOperation(row, title)
}, },
}, },
]
}else{
return [
{ label: '序号', type: 'index', width: '80px' },
{ label: '项目编码', prop: 'prjCode', },
{ label: '项目名称', prop: 'prjName', },
{ label: '承建单位', prop: 'buildOrg', },
{ label: '督查编码', prop: 'supervId', },
{ label: '督查方案名称', prop: 'supervName', __slotName: 'supervName',},
// { label: '指标清单', prop: 'zhibiaoqingdan', __slotName: 'zhibiaoqingdan'},
{ label: '项目评分', prop: 'prjScore', },
{ label: '评审意见', prop: 'opinion', },
{ label: '评审时间', prop: 'opinionTime', },
{ label: '状态', prop: 'state', width: '120px',
collectionType: 'stateCode',
options: stateCode,},
{ {
label: '操作', type: 'operation', width: '200px', title: '删除',
actionButtons: [ type: 'danger',
{ size: 'mini',
title: '发布', plain: true,
type: 'primary', icon: 'el-icon-delete',
size: 'mini',
plain: true,
icon: 'el-icon-circle-check',
disabledCallback: (row, title) => {
return row.state == '1' ? true : false
},
},
// {
// title: '删除',
// type: 'danger',
// size: 'mini',
// plain: true,
// icon: 'el-icon-delete',
// },
],
callback: (row, title) => {
this.fnOperation(row, title)
},
}, },
] ],
} callback: (row, title) => {
}, this.fnOperation(row, title)
},
data(){
return {
query: {
url: architectureInspectionAnalysis,
method: 'post',
queryParam: {
prjName: '',
indexLevel: "1"
},
}, },
rowData: {}, },
activeName: '1', ]
tabOptions: [ } else {
{ label: '督查指标模型管理', name: '1' }, return [
{ label: '架构督查分析', name: '2' }, { label: '序号', type: 'index', width: '80px' },
{ label: '项目编码', prop: 'prjCode' },
{ label: '项目名称', prop: 'prjName' },
{ label: '承建单位', prop: 'buildOrg' },
{ label: '督查编码', prop: 'supervId' },
{
label: '督查方案名称',
prop: 'supervName',
__slotName: 'supervName',
},
// { label: '指标清单', prop: 'zhibiaoqingdan', __slotName: 'zhibiaoqingdan'},
{ label: '项目评分', prop: 'prjScore' },
{ label: '评审意见', prop: 'opinion' },
{ label: '评审时间', prop: 'opinionTime' },
{
label: '状态',
prop: 'state',
width: '120px',
collectionType: 'stateCode',
options: stateCode,
},
{
label: '操作',
type: 'operation',
width: '200px',
actionButtons: [
{
title: '发布',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-circle-check',
disabledCallback: (row, title) => {
return row.state == '1' ? true : false
},
},
// {
// title: '删除',
// type: 'danger',
// size: 'mini',
// plain: true,
// icon: 'el-icon-delete',
// },
], ],
visible: false, callback: (row, title) => {
dialogTitle: '', this.fnOperation(row, title)
detailTitle: '', },
rowData: {}, },
detailPrjCode: '', ]
visibleDetail: false }
}
}, },
methods: { },
querySearch(data = true) { data() {
this.query.queryParam = { return {
...this.query.queryParam, query: {
// ...data, url: architectureInspectionAnalysis,
} method: 'post',
if(data){ queryParam: {
this.$refs.searchTable.queryData() prjName: '',
}else{ indexLevel: '1',
this.$refs.Detail.search()
}
},
/**
* @description: 操作按钮
* @param {Object} row 当前操作行数据
* @param {String} title 当前操作按钮名称
* @author: pan
*/
fnOperation(row, title) {
switch (title) {
case '发布':
this.fnSubmit(row)
break
case '删除':
this.fnDel(row)
break
default:
break
}
}, },
fnSubmit(row) { },
this.$confirm('是否确认发布?', '提示', { rowData: {},
confirmButtonText: '确认', activeName: '1',
cancelButtonText: '取消', tabOptions: [
type: 'warning', { label: '督查指标模型管理', name: '1' },
}) { label: '架构督查分析', name: '2' },
.then(() => { ],
if(this.activeName == '1'){ visible: false,
this.$postRequest('/supervIndex/fb', {supervCode: row.supervCode}).then(res => { dialogTitle: '',
if (res.code === 200) { detailTitle: '',
this.$message.success('发布成功') rowData: {},
this.$refs.searchTable.queryData() detailPrjCode: '',
} else { visibleDetail: false,
this.$message.error(res.msg) }
} },
}) methods: {
}else{ querySearch(data = true) {
this.$postRequest('/supervAnalysis/fb', {...row}).then(res => { this.query.queryParam = {
if (res.code === 200) { ...this.query.queryParam,
this.$message.success('发布成功') // ...data,
this.$refs.searchTable.queryData() }
} else { if (data) {
this.$message.error(res.msg) this.$refs.searchTable.queryData()
} } else {
}) this.$refs.Detail.search()
}
},
/**
* @description: 操作按钮
* @param {Object} row 当前操作行数据
* @param {String} title 当前操作按钮名称
* @author: pan
*/
fnOperation(row, title) {
switch (title) {
case '发布':
this.fnSubmit(row)
break
case '删除':
this.fnDel(row)
break
default:
break
}
},
fnSubmit(row) {
this.$confirm('是否确认发布?', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
if (this.activeName == '1') {
this.$postRequest('/supervIndex/fb', {
supervCode: row.supervCode,
}).then((res) => {
if (res.code === 200) {
this.$message.success('发布成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
} }
}) })
.catch(() => {}) } else {
}, this.$postRequest('/supervAnalysis/fb', { ...row }).then((res) => {
fnDel(row) { if (res.code === 200) {
this.$confirm('是否确认删除?', '提示', { this.$message.success('发布成功')
confirmButtonText: '确认', this.$refs.searchTable.queryData()
cancelButtonText: '取消', } else {
type: 'warning', this.$message.error(res.msg)
}) }
.then(() => {
this.$postRequest('/supervIndex/del', {supervCode: row.supervCode}).then(res => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
})
}) })
.catch(() => {})
},
handleClick(tab, event) {
if(tab.name == '1'){
this.query.url = architectureInspectionAnalysis
}else{
this.query.url = selectSupervAnalysis
}
this.querySearch()
},
fnAdd() {
this.visible = true
this.rowData = {}
this.dialogTitle = '新增督查指标'
},
// 编辑
fnEdit(row, detailtitle) {
this.rowData = row
this.visible = true
if(detailtitle == '指标清单'){
this.dialogTitle = '编辑督查指标'
this.rowData.tab = 'one'
}else{
this.dialogTitle = '编辑督查指标'
this.rowData.tab = 'two'
} }
}, })
// 督查清单 详情 .catch(() => {})
detailBtn(v){ },
this.detailTitle = '' fnDel(row) {
this.visibleDetail = true this.$confirm('是否确认删除?', '提示', {
this.detailTitle = '指标清单' // tab1 confirmButtonText: '确认',
this.detailPrjCode = v.supervCode cancelButtonText: '取消',
}, type: 'warning',
// 督查名称 详情 })
supervNameDetailBtn(v){ .then(() => {
this.detailTitle = '' this.$postRequest('/supervIndex/del', {
this.visibleDetail = true supervCode: row.supervCode,
this.detailTitle = '督查名称' // tab2 }).then((res) => {
this.detailPrjCode = v.supervId if (res.code === 200) {
} this.$message.success('删除成功')
} this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
})
})
.catch(() => {})
},
handleClick(tab, event) {
if (tab.name == '1') {
this.query.url = architectureInspectionAnalysis
} else {
this.query.url = selectSupervAnalysis
}
this.querySearch()
},
fnAdd() {
this.visible = true
this.rowData = {}
this.dialogTitle = '新增督查指标'
},
// 编辑
fnEdit(row, detailtitle) {
this.rowData = row
this.visible = true
if (detailtitle == '指标清单') {
this.dialogTitle = '编辑督查指标'
this.rowData.tab = 'one'
} else {
this.dialogTitle = '编辑督查指标'
this.rowData.tab = 'two'
}
},
// 督查清单 详情
detailBtn(v) {
this.detailTitle = ''
this.visibleDetail = true
this.detailTitle = '指标清单' // tab1
this.detailPrjCode = v.supervCode
},
// 督查名称 详情
supervNameDetailBtn(v) {
this.detailTitle = ''
this.visibleDetail = true
this.detailTitle = '督查名称' // tab2
this.detailPrjCode = v.supervId
},
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.detailBtn{ .detailBtn {
border: none; border: none;
background: none; background: none;
color: #0d867f; color: #0d867f;
width: 100%; width: 100%;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
</style> </style>
\ No newline at end of file
...@@ -14,12 +14,22 @@ ...@@ -14,12 +14,22 @@
</template> </template>
<!-- 查询表单插槽 --> <!-- 查询表单插槽 -->
<template #formWrap> <template #formWrap>
<SearchForm ref="SearchForm" @onSearch="querySearch" :form-options="formOptions" /> <SearchForm
ref="SearchForm"
@onSearch="querySearch"
:form-options="formOptions"
/>
</template> </template>
<!-- 中部操作按钮 --> <!-- 中部操作按钮 -->
<template #operationWrap v-if="activeName == '1'"> <template #operationWrap v-if="activeName == '1'">
<el-button type="primary" icon="el-icon-document-add" size="medium" plain @click="fnAdd" >添加</el-button > <el-button
</template> type="primary"
icon="el-icon-document-add"
plain
@click="fnAdd"
>添加</el-button
>
</template>
<!-- 表格插槽 --> <!-- 表格插槽 -->
<template #tableWrap> <template #tableWrap>
<table-config <table-config
...@@ -31,10 +41,11 @@ ...@@ -31,10 +41,11 @@
</table-config> </table-config>
</template> </template>
</list-page> </list-page>
<AddTabelList <AddTabelList
@querySearch="querySearch" @querySearch="querySearch"
:visible.sync="visible" :visible.sync="visible"
:title="dialogTitle"/> :title="dialogTitle"
/>
</div> </div>
</template> </template>
...@@ -56,7 +67,9 @@ export default { ...@@ -56,7 +67,9 @@ export default {
method: 'post', method: 'post',
queryParam: {}, queryParam: {},
}, },
activeName: this.$route.query.activeName ? this.$route.query.activeName : '1', activeName: this.$route.query.activeName
? this.$route.query.activeName
: '1',
tabOptions: [ tabOptions: [
{ label: '技术政策', name: '1' }, { label: '技术政策', name: '1' },
{ label: '审查', name: '2' }, { label: '审查', name: '2' },
...@@ -67,7 +80,7 @@ export default { ...@@ -67,7 +80,7 @@ export default {
}, },
computed: { computed: {
formOptions() { formOptions() {
if(this.activeName == '2'){ if (this.activeName == '2') {
return [ return [
{ {
label: '项目名称', // label文字 label: '项目名称', // label文字
...@@ -76,7 +89,7 @@ export default { ...@@ -76,7 +89,7 @@ export default {
placeholder: '请输入内容', // elementui组件属性 placeholder: '请输入内容', // elementui组件属性
}, },
] ]
}else{ } else {
return [ return [
{ {
label: '政策名称', // label文字 label: '政策名称', // label文字
...@@ -88,7 +101,7 @@ export default { ...@@ -88,7 +101,7 @@ export default {
} }
}, },
columns() { columns() {
if(this.activeName == '2'){ if (this.activeName == '2') {
return [ return [
{ label: '序号', type: 'index', width: '80px' }, { label: '序号', type: 'index', width: '80px' },
{ label: '单位', prop: 'manageOrgId', width: '100px' }, { label: '单位', prop: 'manageOrgId', width: '100px' },
...@@ -102,7 +115,9 @@ export default { ...@@ -102,7 +115,9 @@ export default {
{ label: '创建人', prop: 'createMan', width: '100px' }, { label: '创建人', prop: 'createMan', width: '100px' },
{ label: '创建时间', prop: 'createTime', width: '100px' }, { label: '创建时间', prop: 'createTime', width: '100px' },
{ {
label: '操作', type: 'operation', width: '200px', label: '操作',
type: 'operation',
width: '200px',
actionButtons: [ actionButtons: [
{ {
title: '审查', title: '审查',
...@@ -117,19 +132,21 @@ export default { ...@@ -117,19 +132,21 @@ export default {
}, },
}, },
] ]
}else{ } else {
return [ return [
{ label: '序号', type: 'index', width: '80px' }, { label: '序号', type: 'index', width: '80px' },
{ label: '政策名称', prop: 'policyName', width: '100px' }, { label: '政策名称', prop: 'policyName', width: '100px' },
{ label: '政策描述', prop: 'policyContent', }, { label: '政策描述', prop: 'policyContent' },
{ label: '适用范围', prop: 'scope_', }, { label: '适用范围', prop: 'scope_' },
{ label: '发布部门', prop: 'deptName', }, { label: '发布部门', prop: 'deptName' },
{ label: '级别', prop: 'level_', }, { label: '级别', prop: 'level_' },
{ label: '启用时间', prop: 'startTime', }, { label: '启用时间', prop: 'startTime' },
{ label: '创建人', prop: 'createMan', }, { label: '创建人', prop: 'createMan' },
{ label: '创建时间', prop: 'createTime', }, { label: '创建时间', prop: 'createTime' },
{ {
label: '操作', type: 'operation', width: '200px', label: '操作',
type: 'operation',
width: '200px',
actionButtons: [ actionButtons: [
{ {
title: '删除', title: '删除',
...@@ -149,15 +166,15 @@ export default { ...@@ -149,15 +166,15 @@ export default {
}, },
methods: { methods: {
querySearch(data) { querySearch(data) {
if(this.activeName == '1'){ if (this.activeName == '1') {
this.query.url = artPolicyExamine this.query.url = artPolicyExamine
this.query.queryParam = { this.query.queryParam = {
policyName: undefined policyName: undefined,
} }
}else{ } else {
this.query.url = examineSearch this.query.url = examineSearch
this.query.queryParam = { this.query.queryParam = {
prjName: undefined prjName: undefined,
} }
} }
this.query.queryParam = { this.query.queryParam = {
...@@ -183,38 +200,40 @@ export default { ...@@ -183,38 +200,40 @@ export default {
* @author: pan * @author: pan
*/ */
fnOperation(row, title) { fnOperation(row, title) {
switch (title) { switch (title) {
case '审查': case '审查':
this.fnSubmit(row) this.fnSubmit(row)
break break
case '删除': case '删除':
this.fnDel(row) this.fnDel(row)
break break
default: default:
break break
} }
}, },
fnSubmit(row){ fnSubmit(row) {
this.$router.push('/main/examine') this.$router.push('/main/examine')
}, },
fnDel(row){ fnDel(row) {
this.$confirm('是否确认删除?', '提示', { this.$confirm('是否确认删除?', '提示', {
confirmButtonText: '确认', confirmButtonText: '确认',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
this.$postRequest('/klTechPolicyCheck/del/', {id: row.id}).then(res => { this.$postRequest('/klTechPolicyCheck/del/', { id: row.id }).then(
(res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success('删除成功') this.$message.success('删除成功')
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
} else { } else {
this.$message.error(res.msg) this.$message.error(res.msg)
} }
}) },
}) )
.catch(() => {}) })
} .catch(() => {})
},
}, },
} }
</script> </script>
......
...@@ -18,11 +18,14 @@ ...@@ -18,11 +18,14 @@
</div> </div>
<div class="right_container" v-if="isRelation"> <div class="right_container" v-if="isRelation">
<!-- 资产关系分类页面 --> <!-- 资产关系分类页面 -->
<RelationPage @relationData="changeRelationData" @linkTo="linkTo" /> <RelationPage @relationData="changeRelationData" @linkTo="linkTo" />
</div> </div>
<div class="right_container" v-else-if="isRelationChild"> <div class="right_container" v-else-if="isRelationChild">
<!-- 资产关系分类页面 --> <!-- 资产关系分类页面 -->
<RelationChildPage :relationChildAssetRelaId="relationChildAssetRelaId" :relation-data="relationData" /> <RelationChildPage
:relationChildAssetRelaId="relationChildAssetRelaId"
:relation-data="relationData"
/>
</div> </div>
<div class="right_container" v-else> <div class="right_container" v-else>
<div class="search_menu"> <div class="search_menu">
...@@ -108,21 +111,13 @@ ...@@ -108,21 +111,13 @@
<img class="btn_icon" src="@/assets/archi-ele-list/create.png" alt="" /> <img class="btn_icon" src="@/assets/archi-ele-list/create.png" alt="" />
<p>新建</p> <p>新建</p>
</div> --> </div> -->
<el-button <el-button @click="addItem" type="primary" icon="el-icon-document-add"
@click="addItem"
type="primary"
size="medium"
icon="el-icon-document-add"
>新建</el-button >新建</el-button
> >
<el-button <el-button type="primary" icon="el-icon-delete" @click="moreDelete"
type="primary"
size="medium"
icon="el-icon-delete"
@click="moreDelete"
>删除</el-button >删除</el-button
> >
<!-- <el-button type="primary" size="medium" icon="el-icon-plus">导入</el-button> --> <!-- <el-button type="primary" icon="el-icon-plus">导入</el-button> -->
<div class="import_btn" @click="importFile"> <div class="import_btn" @click="importFile">
<img <img
class="btn_icon" class="btn_icon"
...@@ -131,7 +126,7 @@ ...@@ -131,7 +126,7 @@
/> />
<p>导入</p> <p>导入</p>
</div> </div>
<!-- <el-button type="primary" size="medium" icon="el-icon-plus">导出</el-button> --> <!-- <el-button type="primary" icon="el-icon-plus">导出</el-button> -->
<!-- <div class="import_btn" @click="exportFile" style="margin-left: 0;"> <!-- <div class="import_btn" @click="exportFile" style="margin-left: 0;">
<img class="btn_icon" src="@/assets/tech-politics-fabric/export.png" alt="" /> <img class="btn_icon" src="@/assets/tech-politics-fabric/export.png" alt="" />
<p>导出</p> <p>导出</p>
...@@ -159,25 +154,25 @@ ...@@ -159,25 +154,25 @@
> >
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column <el-table-column
type="index" type="index"
:index="indexMethod" :index="indexMethod"
label="序号" label="序号"
width="60" width="60"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="assetName" prop="assetName"
label="资产名称" label="资产名称"
width="150" width="150"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="assetNumber" prop="assetNumber"
label="资产编号" label="资产编号"
width="140" width="140"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="eleName" prop="eleName"
...@@ -209,10 +204,10 @@ ...@@ -209,10 +204,10 @@
</el-table-column> </el-table-column>
<!-- <el-table-column prop="parentAssetName" label="上级资产名称" width="300" :show-overflow-tooltip="true" align="center"></el-table-column> --> <!-- <el-table-column prop="parentAssetName" label="上级资产名称" width="300" :show-overflow-tooltip="true" align="center"></el-table-column> -->
<el-table-column <el-table-column
prop="version" prop="version"
label="版本号" label="版本号"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="状态" label="状态"
...@@ -300,7 +295,7 @@ ...@@ -300,7 +295,7 @@
> >
</el-pagination> </el-pagination>
</div> </div>
<el-dialog <el-dialog
:title=" :title="
is_add_edit == 'add' is_add_edit == 'add'
...@@ -361,7 +356,10 @@ ...@@ -361,7 +356,10 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="上级元素:" v-if="ruleForm.let3 && preArcList.length"> <el-form-item
label="上级元素:"
v-if="ruleForm.let3 && preArcList.length"
>
<el-select <el-select
@change="handlePreEleChange" @change="handlePreEleChange"
:disabled="is_add_edit == 'view' ? true : false" :disabled="is_add_edit == 'view' ? true : false"
...@@ -411,12 +409,15 @@ ...@@ -411,12 +409,15 @@
children: 'children', children: 'children',
label: 'assetName', label: 'assetName',
value: 'assetId', value: 'assetId',
checkStrictly: true checkStrictly: true,
}" }"
@change="handleChange"></el-cascader> @change="handleChange"
></el-cascader>
</el-form-item> </el-form-item>
<div class="dialog_form_item3 m-b-20 flex-c"> <div class="dialog_form_item3 m-b-20 flex-c">
<div class="dialog_form_item_title"><span style="color: #F56C6C;">*</span>图标设置:</div> <div class="dialog_form_item_title">
<span style="color: #f56c6c">*</span>图标设置:
</div>
<div class="flex"> <div class="flex">
<img <img
:style="{ :style="{
...@@ -435,7 +436,8 @@ ...@@ -435,7 +436,8 @@
> >
<el-color-picker <el-color-picker
v-model="ruleForm.color" v-model="ruleForm.color"
:predefine="predefineColors"> :predefine="predefineColors"
>
</el-color-picker> </el-color-picker>
</div> </div>
</div> </div>
...@@ -527,9 +529,10 @@ ...@@ -527,9 +529,10 @@
children: 'children', children: 'children',
label: 'assetName', label: 'assetName',
value: 'assetId', value: 'assetId',
checkStrictly: true checkStrictly: true,
}" }"
@change="handleChange2"></el-cascader> @change="handleChange2"
></el-cascader>
<!-- <el-select clearable placeholder="请选择" v-model="ruleForm2.let1"> <!-- <el-select clearable placeholder="请选择" v-model="ruleForm2.let1">
<el-option :value="selectValue2" :label="selectLabel2"> <el-option :value="selectValue2" :label="selectLabel2">
<el-tree <el-tree
...@@ -599,7 +602,7 @@ import { ...@@ -599,7 +602,7 @@ import {
importZhiChanJiaGou, importZhiChanJiaGou,
queryGuanLianZiChanSelect, queryGuanLianZiChanSelect,
getPreArc, getPreArc,
getAssetCode getAssetCode,
} from '@/api/index.js' } from '@/api/index.js'
import { queryEleRelation } from '@/api/dataMapping' import { queryEleRelation } from '@/api/dataMapping'
import $ from 'jquery' import $ from 'jquery'
...@@ -611,7 +614,7 @@ export default { ...@@ -611,7 +614,7 @@ export default {
components: { components: {
ChooseSvg, ChooseSvg,
RelationPage, RelationPage,
RelationChildPage RelationChildPage,
}, },
watch: {}, watch: {},
data() { data() {
...@@ -638,11 +641,13 @@ export default { ...@@ -638,11 +641,13 @@ export default {
dynamicForm_: [], dynamicForm_: [],
preArc: '', preArc: '',
assetNumber: '', assetNumber: '',
parentAsset: [] parentAsset: [],
}, },
rules: { rules: {
let1: [{ required: true, message: '请输入资产名称', trigger: 'blur' }], let1: [{ required: true, message: '请输入资产名称', trigger: 'blur' }],
assetNumber: [{ required: true, message: '请输入资产编号', trigger: 'blur' }], assetNumber: [
{ required: true, message: '请输入资产编号', trigger: 'blur' },
],
let3: [ let3: [
{ required: true, message: '请选择所属元素', trigger: 'change' }, { required: true, message: '请选择所属元素', trigger: 'change' },
], ],
...@@ -699,7 +704,7 @@ export default { ...@@ -699,7 +704,7 @@ export default {
archiBelongId: null, archiBelongId: null,
archiType: null, archiType: null,
// archiAssetTypeId: null, // archiAssetTypeId: null,
treeSelectData: [{assetName: '无', assetId: '无'}], treeSelectData: [{ assetName: '无', assetId: '无' }],
disabled1: false, disabled1: false,
selectGraphSrc: '', selectGraphSrc: '',
selectGraphShape: '', selectGraphShape: '',
...@@ -716,14 +721,14 @@ export default { ...@@ -716,14 +721,14 @@ export default {
isRelation: false, isRelation: false,
isRelationChild: false, isRelationChild: false,
relationData: {}, relationData: {},
relationChildAssetRelaId: null relationChildAssetRelaId: null,
} }
}, },
created() { created() {
this.getDicts() this.getDicts()
queryEleRelation().then(res => { queryEleRelation().then((res) => {
if(res.code === 200) { if (res.code === 200) {
this.treeData[1].subList = res.data.records.map(v => { this.treeData[1].subList = res.data.records.map((v) => {
return { return {
...v, ...v,
viewId: v.assetRelaId + '_1', viewId: v.assetRelaId + '_1',
...@@ -741,14 +746,15 @@ export default { ...@@ -741,14 +746,15 @@ export default {
this.set_table_height() this.set_table_height()
}, },
methods: { methods: {
linkTo(data) {console.log('---', data) linkTo(data) {
console.log('---', data)
this.$refs.tree.setCurrentKey(data.assetRelaId + '_1') this.$refs.tree.setCurrentKey(data.assetRelaId + '_1')
this.relationChildAssetRelaId = data.assetRelaId this.relationChildAssetRelaId = data.assetRelaId
this.isRelationChild = true this.isRelationChild = true
this.isRelation = false this.isRelation = false
}, },
changeRelationData(data) { changeRelationData(data) {
this.treeData[1].subList = data.map(v => { this.treeData[1].subList = data.map((v) => {
return { return {
...v, ...v,
viewId: v.assetRelaId + '_1', viewId: v.assetRelaId + '_1',
...@@ -760,7 +766,7 @@ export default { ...@@ -760,7 +766,7 @@ export default {
return cellValue?.replace(/\]|\[|\/?]/g, '').replace('null', '') return cellValue?.replace(/\]|\[|\/?]/g, '').replace('null', '')
}, },
// 所属元素下拉 // 所属元素下拉
getArchiEleList(){ getArchiEleList() {
this.getZuJianLeiXingSelect(null).then((res) => { this.getZuJianLeiXingSelect(null).then((res) => {
this.zuJianLeiXingSelect = res this.zuJianLeiXingSelect = res
}) })
...@@ -779,7 +785,7 @@ export default { ...@@ -779,7 +785,7 @@ export default {
this.selectGraphShape = '' this.selectGraphShape = ''
this.addDialog = false this.addDialog = false
this.graphId = '' this.graphId = ''
this.treeSelectData = [{assetName: '无', assetId: '无'}] this.treeSelectData = [{ assetName: '无', assetId: '无' }]
this.preArcList = [] this.preArcList = []
}, },
getChooseSvg(svgInfo) { getChooseSvg(svgInfo) {
...@@ -907,7 +913,7 @@ export default { ...@@ -907,7 +913,7 @@ export default {
assetNumber: this.ruleForm.assetNumber, assetNumber: this.ruleForm.assetNumber,
graphId: this.graphId, graphId: this.graphId,
parentCode: this.selectedObject.assetCode, parentCode: this.selectedObject.assetCode,
parentAsset: this.ruleForm.parentAsset parentAsset: this.ruleForm.parentAsset,
} }
const requestParams = const requestParams =
this.is_add_edit == 'add' this.is_add_edit == 'add'
...@@ -1026,7 +1032,7 @@ export default { ...@@ -1026,7 +1032,7 @@ export default {
Number(svgTag.getAttribute('height').split('px')[0]) / 2 Number(svgTag.getAttribute('height').split('px')[0]) / 2
item['width'] = svgWidth + 'px' item['width'] = svgWidth + 'px'
item['height'] = svgHeight + 'px' item['height'] = svgHeight + 'px'
if(item.color) { if (item.color) {
if (path) { if (path) {
path.setAttribute('fill', item.color) path.setAttribute('fill', item.color)
} }
...@@ -1093,15 +1099,14 @@ export default { ...@@ -1093,15 +1099,14 @@ export default {
this.selectLabel = '' this.selectLabel = ''
this.selectValue = '' this.selectValue = ''
this.selectCode = '' this.selectCode = ''
this.ruleForm.parentAsset = [], ;(this.ruleForm.parentAsset = []), (this.ruleForm.color = '')
this.ruleForm.color = ''
this.ruleForm.assetNumber = '' this.ruleForm.assetNumber = ''
this.ruleForm.preArc = '' this.ruleForm.preArc = ''
}) })
}, },
viewItem(row) { viewItem(row) {
//查看架构 //查看架构
this.addDialog = true this.addDialog = true
this.is_add_edit = 'view' this.is_add_edit = 'view'
this.ruleForm.let1 = row.assetName this.ruleForm.let1 = row.assetName
...@@ -1109,13 +1114,13 @@ export default { ...@@ -1109,13 +1114,13 @@ export default {
this.ruleForm.let3 = row.archiEleId this.ruleForm.let3 = row.archiEleId
this.ruleForm.preArc = row.parentElement?.replace(/\]|\[|\/?]/g, '') this.ruleForm.preArc = row.parentElement?.replace(/\]|\[|\/?]/g, '')
this.getShangJiJieDianSelect(this.ruleForm.preArc) this.getShangJiJieDianSelect(this.ruleForm.preArc)
if(row.parentAsset != null){ if (row.parentAsset != null) {
this.ruleForm.parentAsset = row.parentAsset.split(',') this.ruleForm.parentAsset = row.parentAsset.split(',')
} }
this.ruleForm.assetNumber = row.assetNumber this.ruleForm.assetNumber = row.assetNumber
this.getZuJianLeiXingSelect(null).then((res) => { this.getZuJianLeiXingSelect(null).then((res) => {
this.zuJianLeiXingSelect = res this.zuJianLeiXingSelect = res
if(this.ruleForm.let3) { if (this.ruleForm.let3) {
this.zuJianLeiXingSelectChange(this.ruleForm.let3, true) this.zuJianLeiXingSelectChange(this.ruleForm.let3, true)
} }
}) })
...@@ -1148,7 +1153,7 @@ export default { ...@@ -1148,7 +1153,7 @@ export default {
if (fieldsValue && fieldsValue.length == 4) { if (fieldsValue && fieldsValue.length == 4) {
this.ruleForm.dynamicForm_ = [] this.ruleForm.dynamicForm_ = []
} else { } else {
if(!fieldsValue) return if (!fieldsValue) return
let fieldsValue_ = JSON.parse(fieldsValue) let fieldsValue_ = JSON.parse(fieldsValue)
console.log(3) console.log(3)
fieldsValue_.map((item) => { fieldsValue_.map((item) => {
...@@ -1171,7 +1176,6 @@ export default { ...@@ -1171,7 +1176,6 @@ export default {
this.ruleForm.preArc = row.parentElement?.replace(/\]|\[|\/?]/g, '') this.ruleForm.preArc = row.parentElement?.replace(/\]|\[|\/?]/g, '')
this.getShangJiJieDianSelect(this.ruleForm.preArc) this.getShangJiJieDianSelect(this.ruleForm.preArc)
this.ruleForm.parentAsset = row.parentAsset.split(', ') this.ruleForm.parentAsset = row.parentAsset.split(', ')
this.ruleForm.assetNumber = row.assetNumber this.ruleForm.assetNumber = row.assetNumber
this.ruleForm.let4 = row.sort this.ruleForm.let4 = row.sort
...@@ -1191,7 +1195,7 @@ export default { ...@@ -1191,7 +1195,7 @@ export default {
const currentItem = this.zuJianLeiXingSelect.find( const currentItem = this.zuJianLeiXingSelect.find(
(item) => item.elementId == this.ruleForm.let3, (item) => item.elementId == this.ruleForm.let3,
) )
if(this.ruleForm.let3) { if (this.ruleForm.let3) {
this.zuJianLeiXingSelectChange(this.ruleForm.let3, true) this.zuJianLeiXingSelectChange(this.ruleForm.let3, true)
} }
if (currentItem && currentItem.eaLevel == 1) { if (currentItem && currentItem.eaLevel == 1) {
...@@ -1219,7 +1223,7 @@ export default { ...@@ -1219,7 +1223,7 @@ export default {
if (fieldsValue && fieldsValue.length == 4) { if (fieldsValue && fieldsValue.length == 4) {
this.ruleForm.dynamicForm_ = [] this.ruleForm.dynamicForm_ = []
} else { } else {
if(!fieldsValue) return if (!fieldsValue) return
let fieldsValue_ = JSON.parse(fieldsValue) let fieldsValue_ = JSON.parse(fieldsValue)
fieldsValue_.map((item) => { fieldsValue_.map((item) => {
if (item.dictKey) { if (item.dictKey) {
...@@ -1235,17 +1239,20 @@ export default { ...@@ -1235,17 +1239,20 @@ export default {
handleChange(value) { handleChange(value) {
console.log('value', value) console.log('value', value)
this.selectedObject = {} this.selectedObject = {}
if(value[0] === '无') { if (value[0] === '无') {
this.ruleForm.let2 = value[0] this.ruleForm.let2 = value[0]
return this.assetNumberDis = false return (this.assetNumberDis = false)
} }
this.assetNumberDis = true this.assetNumberDis = true
// 当选中值变化时,更新绑定的对象 // 当选中值变化时,更新绑定的对象
if (value && value.length) { if (value && value.length) {
// 假设我们根据id来查询对象 // 假设我们根据id来查询对象
this.selectedObject = this.findObjectById(this.treeSelectData, value[value.length - 1]); this.selectedObject = this.findObjectById(
this.treeSelectData,
value[value.length - 1],
)
} else { } else {
this.selectedObject = null; this.selectedObject = null
} }
// this.selectValue = selectedObject.assetId // this.selectValue = selectedObject.assetId
// this.selectLabel = selectedObject.assetName // this.selectLabel = selectedObject.assetName
...@@ -1253,9 +1260,9 @@ export default { ...@@ -1253,9 +1260,9 @@ export default {
this.ruleForm.let2 = this.selectedObject.assetName this.ruleForm.let2 = this.selectedObject.assetName
getAssetCode({ getAssetCode({
archiType: this.archiType, archiType: this.archiType,
superiorAssetCode: this.selectedObject.assetNumber superiorAssetCode: this.selectedObject.assetNumber,
}).then(res => { }).then((res) => {
if(res.code === 200) { if (res.code === 200) {
this.selectCode = res.msg this.selectCode = res.msg
this.ruleForm.assetNumber = res.msg this.ruleForm.assetNumber = res.msg
this.$refs.form.clearValidate('let2') this.$refs.form.clearValidate('let2')
...@@ -1266,16 +1273,16 @@ export default { ...@@ -1266,16 +1273,16 @@ export default {
findObjectById(items, id) { findObjectById(items, id) {
for (let i = 0; i < items.length; i++) { for (let i = 0; i < items.length; i++) {
if (items[i].assetId === id) { if (items[i].assetId === id) {
return items[i]; return items[i]
} }
if (items[i].children) { if (items[i].children) {
const found = this.findObjectById(items[i].children, id); const found = this.findObjectById(items[i].children, id)
if (found) { if (found) {
return found; return found
} }
} }
} }
return null; return null
}, },
handleCheckChange(data, tree) { handleCheckChange(data, tree) {
//上级节点下拉树的勾选 //上级节点下拉树的勾选
...@@ -1291,9 +1298,9 @@ export default { ...@@ -1291,9 +1298,9 @@ export default {
let selectedObject = {} let selectedObject = {}
if (value && value.length) { if (value && value.length) {
// 假设我们根据id来查询对象 // 假设我们根据id来查询对象
selectedObject = this.findObjectById(this.treeSelectData, value[0]); selectedObject = this.findObjectById(this.treeSelectData, value[0])
} else { } else {
selectedObject = null; selectedObject = null
} }
console.log('value', value, selectedObject) console.log('value', value, selectedObject)
this.selectValue2 = selectedObject.assetId this.selectValue2 = selectedObject.assetId
...@@ -1311,7 +1318,8 @@ export default { ...@@ -1311,7 +1318,8 @@ export default {
this.$refs.treeSelect2.setCheckedKeys([]) // 删除所有选中节点 this.$refs.treeSelect2.setCheckedKeys([]) // 删除所有选中节点
this.$refs.treeSelect2.setCheckedNodes([data]) this.$refs.treeSelect2.setCheckedNodes([data])
}, },
loadTreeSelect(node, resolve) {console.log('node', node) loadTreeSelect(node, resolve) {
console.log('node', node)
//加载上级节点 //加载上级节点
if (node.level === 0) { if (node.level === 0) {
resolve([]) resolve([])
...@@ -1321,7 +1329,7 @@ export default { ...@@ -1321,7 +1329,7 @@ export default {
parentAssetId: node.data.assetId, parentAssetId: node.data.assetId,
archiAssetState: this.searchParams.archiAssetState, archiAssetState: this.searchParams.archiAssetState,
archiStage: this.searchParams.archiStage, archiStage: this.searchParams.archiStage,
// eleName: // eleName:
// archiAssetTypeId: this.archiAssetTypeId, // archiAssetTypeId: this.archiAssetTypeId,
} }
getQryByTree(params).then((res) => { getQryByTree(params).then((res) => {
...@@ -1333,13 +1341,13 @@ export default { ...@@ -1333,13 +1341,13 @@ export default {
}, },
getShangJiJieDianSelect(eleName) { getShangJiJieDianSelect(eleName) {
this.treeSelectData = [{assetName: '无', assetId: '无'}] this.treeSelectData = [{ assetName: '无', assetId: '无' }]
//上级节点下拉框值 //上级节点下拉框值
const params = { const params = {
archiType: this.archiType, archiType: this.archiType,
archiAssetState: this.searchParams.archiAssetState, archiAssetState: this.searchParams.archiAssetState,
archiStage: this.searchParams.archiStage, archiStage: this.searchParams.archiStage,
eleName eleName,
// parentAssetId: this.archiBelongId, // parentAssetId: this.archiBelongId,
// archiAssetTypeId: this.archiAssetTypeId, // archiAssetTypeId: this.archiAssetTypeId,
} }
...@@ -1367,22 +1375,21 @@ export default { ...@@ -1367,22 +1375,21 @@ export default {
}, },
// 获取上级元素 // 获取上级元素
getPreArc(item) { getPreArc(item) {
getPreArc({eleName: item?.elementName}).then(res => { getPreArc({ eleName: item?.elementName }).then((res) => {
if(res.code === 200) { if (res.code === 200) {
this.preArcList = res.data this.preArcList = res.data
if(!this.preArcList.length) { if (!this.preArcList.length) {
this.getShangJiJieDianSelect(item?.elementName) this.getShangJiJieDianSelect(item?.elementName)
} }
} }
}) })
}, },
handlePreEleChange(data) { handlePreEleChange(data) {
this.getShangJiJieDianSelect(data) this.getShangJiJieDianSelect(data)
}, },
zuJianLeiXingSelectChange(data, flag) { zuJianLeiXingSelectChange(data, flag) {
this.preArcList = [] this.preArcList = []
this.treeSelectData = [{assetName: '无', assetId: '无'}] this.treeSelectData = [{ assetName: '无', assetId: '无' }]
//所属元素选择后 //所属元素选择后
// console.log(data) // console.log(data)
// console.log(this.zuJianLeiXingSelect) // console.log(this.zuJianLeiXingSelect)
...@@ -1396,7 +1403,8 @@ export default { ...@@ -1396,7 +1403,8 @@ export default {
} else { } else {
this.disabled1 = false this.disabled1 = false
} }
if (data && !flag) {console.log('------') if (data && !flag) {
console.log('------')
const params = { const params = {
type: '1', type: '1',
typeId: data, typeId: data,
...@@ -1419,7 +1427,7 @@ export default { ...@@ -1419,7 +1427,7 @@ export default {
} }
}) })
} else { } else {
if(!flag) { if (!flag) {
this.ruleForm.dynamicForm_ = [] this.ruleForm.dynamicForm_ = []
} }
} }
...@@ -1531,7 +1539,8 @@ export default { ...@@ -1531,7 +1539,8 @@ export default {
}) })
inpEle.click() inpEle.click()
}, },
saveTemplateDialog() {console.log('this', this.ruleForm2) saveTemplateDialog() {
console.log('this', this.ruleForm2)
//下载模版 //下载模版
this.$refs.form2.validate((valid) => { this.$refs.form2.validate((valid) => {
if (valid) { if (valid) {
...@@ -1565,17 +1574,17 @@ export default { ...@@ -1565,17 +1574,17 @@ export default {
}, },
stopItem(row) { stopItem(row) {
this.$confirm(`是否确认停用?`, '提示', { this.$confirm(`是否确认停用?`, '提示', {
confirmButtonText: '确认', confirmButtonText: '确认',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
const params = { const params = {
assetId: row.assetId, assetId: row.assetId,
state: 0, state: 0,
archiType: this.archiType, archiType: this.archiType,
assetNumber: row.assetNumber, assetNumber: row.assetNumber,
archiBelongId: row.archiBelongId archiBelongId: row.archiBelongId,
} }
editZiChanJiaGouTable(params).then((res) => { editZiChanJiaGouTable(params).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -1591,8 +1600,8 @@ export default { ...@@ -1591,8 +1600,8 @@ export default {
}) })
} }
}) })
}) })
.catch(() => {}) .catch(() => {})
}, },
releaseItem(row) { releaseItem(row) {
//发布 //发布
...@@ -1680,10 +1689,11 @@ export default { ...@@ -1680,10 +1689,11 @@ export default {
treeClick(data, node, self) { treeClick(data, node, self) {
console.log(data, node, self) console.log(data, node, self)
this.isRelationChild = false this.isRelationChild = false
if(data.viewId === 99) { if (data.viewId === 99) {
this.isRelation = true this.isRelation = true
// this.isRelationChild = false // this.isRelationChild = false
} else if(data.viewId !==0 && data.eleRelaId) { console.log('child', data) } else if (data.viewId !== 0 && data.eleRelaId) {
console.log('child', data)
this.relationData = data this.relationData = data
this.isRelation = false this.isRelation = false
this.$nextTick(() => { this.$nextTick(() => {
......
...@@ -3,17 +3,33 @@ ...@@ -3,17 +3,33 @@
<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" 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>
<!-- 表格插槽 --> <!-- 表格插槽 -->
<template #tableWrap> <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 }"> <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> <span v-else>{{ data.row.supervisionStr }}</span>
</template> </template>
</table-config> </table-config>
...@@ -21,15 +37,21 @@ ...@@ -21,15 +37,21 @@
</list-page> </list-page>
<!-- 新增弹窗 --> <!-- 新增弹窗 -->
<Add <Add
@querySearch="querySearch" @querySearch="querySearch"
:visible.sync="visible" :visible.sync="visible"
:row-data="rowData" :row-data="rowData"
:title="dialogTitle" :title="dialogTitle"
@addList='addList' @addList="addList"
:edit='isEdit' :edit="isEdit"
></Add> ></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> </div>
</template> </template>
...@@ -38,14 +60,14 @@ import AddTabelList from './AddTabelList.vue' ...@@ -38,14 +60,14 @@ import AddTabelList from './AddTabelList.vue'
import ListPage from '@/components/ListPage.vue' import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue' import SearchForm from '@/components/SearchForm.vue'
import TableConfig from './TableConfig.vue' import TableConfig from './TableConfig.vue'
import {collectDataSearch} from '@/api/architectureInspection' import { collectDataSearch } from '@/api/architectureInspection'
import Add from './Add.vue' import Add from './Add.vue'
import Detail from './Detail.vue' import Detail from './Detail.vue'
import {materialTypeList, stateCode} from '@/utils/architectureInspectionDis' import { materialTypeList, stateCode } from '@/utils/architectureInspectionDis'
export default { export default {
name: 'collectDataConfiguration', name: 'collectDataConfiguration',
components: {ListPage, SearchForm, TableConfig, Add, AddTabelList, Detail}, components: { ListPage, SearchForm, TableConfig, Add, AddTabelList, Detail },
computed: { computed: {
formOptions() { formOptions() {
return [ return [
...@@ -59,16 +81,17 @@ export default { ...@@ -59,16 +81,17 @@ export default {
}, },
columns() { columns() {
return [ return [
{label: '序号', type: 'index', width: '80px'}, { label: '序号', type: 'index', width: '80px' },
{label: '督查方案名称', prop: 'supervName',}, { label: '督查方案名称', prop: 'supervName' },
{ {
label: '材料类型', prop: 'materialType', label: '材料类型',
prop: 'materialType',
collectionType: 'materialTypeList', collectionType: 'materialTypeList',
options: materialTypeList options: materialTypeList,
}, },
{label: '督查清单', prop: 'supervision', __slotName: 'supervision',}, { label: '督查清单', prop: 'supervision', __slotName: 'supervision' },
{label: '开始时间', prop: 'startTime', width: '120px'}, { label: '开始时间', prop: 'startTime', width: '120px' },
{label: '截止时间', prop: 'endTime', width: '120px'}, { label: '截止时间', prop: 'endTime', width: '120px' },
{ {
label: '状态', label: '状态',
prop: 'state', prop: 'state',
...@@ -76,7 +99,7 @@ export default { ...@@ -76,7 +99,7 @@ export default {
collectionType: 'stateCode', collectionType: 'stateCode',
options: stateCode, options: stateCode,
}, },
{label: '备注', prop: 'notes', width: '100px'}, { label: '备注', prop: 'notes', width: '100px' },
{ {
label: '操作', label: '操作',
type: 'operation', type: 'operation',
...@@ -126,7 +149,7 @@ export default { ...@@ -126,7 +149,7 @@ export default {
url: collectDataSearch, url: collectDataSearch,
method: 'post', method: 'post',
queryParam: { queryParam: {
supervName: '' supervName: '',
}, },
}, },
visible: false, visible: false,
...@@ -139,7 +162,7 @@ export default { ...@@ -139,7 +162,7 @@ export default {
detailTitle: '详情', detailTitle: '详情',
visibleDetail: false, visibleDetail: false,
detailPrjCode: '', detailPrjCode: '',
isEdit: false isEdit: false,
} }
}, },
...@@ -183,22 +206,21 @@ export default { ...@@ -183,22 +206,21 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
const params = { const params = {
...row, ...row,
state: 2, 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) { fnDel(row) {
this.$confirm('是否确认删除?', '提示', { this.$confirm('是否确认删除?', '提示', {
...@@ -206,22 +228,23 @@ export default { ...@@ -206,22 +228,23 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
const params = { const params = {
...row, ...row,
delFlag: 1, delFlag: 1,
} }
this.$postRequest('/collect/del', {supervId: row.supervId}).then(res => { this.$postRequest('/collect/del', { supervId: row.supervId }).then(
(res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success('删除成功') this.$message.success('删除成功')
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
} else { } else {
this.$message.error('删除失败') this.$message.error('删除失败')
} }
}) },
}) )
.catch(() => { })
}) .catch(() => {})
}, },
fnEdit(row) { fnEdit(row) {
this.dialogTitle = '收集资料配置' this.dialogTitle = '收集资料配置'
...@@ -248,7 +271,7 @@ export default { ...@@ -248,7 +271,7 @@ export default {
this.rowData.supervision = !!v ? Array.from(new Set(arr)).join(',') : id this.rowData.supervision = !!v ? Array.from(new Set(arr)).join(',') : id
// this.rowData.supervision = !!v ? v +','+id : id // this.rowData.supervision = !!v ? v +','+id : id
}, },
} },
} }
</script> </script>
...@@ -262,4 +285,4 @@ export default { ...@@ -262,4 +285,4 @@ export default {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
</style> </style>
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-03-21 20:58:31 * @Date: 2024-03-21 20:58:31
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-03-27 10:50:41 * @LastEditTime: 2024-06-24 10:21:23
--> -->
<template> <template>
<div class="searchTable"> <div class="searchTable">
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
<el-button <el-button
type="primary" type="primary"
icon="el-icon-document-add" icon="el-icon-document-add"
size="medium"
plain plain
@click="fnAdd()" @click="fnAdd()"
>新建</el-button >新建</el-button
...@@ -39,7 +38,6 @@ ...@@ -39,7 +38,6 @@
<el-button <el-button
type="primary" type="primary"
icon="el-icon-download" icon="el-icon-download"
size="medium"
plain plain
v-if="activeName === '1'" v-if="activeName === '1'"
>导出</el-button >导出</el-button
...@@ -59,12 +57,22 @@ ...@@ -59,12 +57,22 @@
<span>{{ handleFileName(data) }}</span> <span>{{ handleFileName(data) }}</span>
</template> </template>
<template #orgName="{ data }"> <template #orgName="{ data }">
<el-button v-if="data.row.orgName" class="detailBtn" size="medium" @click="fnEdit(data.row, true)">{{data.row.orgName}}</el-button > <el-button
<span v-else>{{data.row.orgName}}</span> 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>
<template #matterName="{ data }"> <template #matterName="{ data }">
<el-button v-if="data.row.matterName" class="detailBtn" size="medium" @click="fnEdit(data.row, true)">{{data.row.matterName}}</el-button > <el-button
<span v-else>{{data.row.matterName}}</span> 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> </template>
</table-config> </table-config>
</template> </template>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-03-21 20:58:31 * @Date: 2024-03-21 20:58:31
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-04-01 11:33:12 * @LastEditTime: 2024-06-24 10:22:42
--> -->
<template> <template>
<div class="searchTable"> <div class="searchTable">
...@@ -60,25 +60,40 @@ ...@@ -60,25 +60,40 @@
<span> {{ handlePercent(data) }}</span> <span> {{ handlePercent(data) }}</span>
</template> </template>
<template #manageOrgName="{ data }"> <template #manageOrgName="{ data }">
<el-button v-if="data.row.manageOrgName" class="detailBtn" size="medium" @click="fnDetail(data.row)">{{data.row.manageOrgName}}</el-button > <el-button
<span v-else>{{data.row.manageOrgName}}</span> 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>
<template #batName="{ data }"> <template #batName="{ data }">
<el-button v-if="data.row.batName" class="detailBtn" size="medium" @click="fnDetail(data.row)">{{data.row.batName}}</el-button > <el-button
<span v-else>{{data.row.batName}}</span> 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>
<template #assetName="{ data }"> <template #assetName="{ data }">
<el-button v-if="data.row.assetName" class="detailBtn" size="medium" @click="fnDetail(data.row)">{{data.row.assetName}}</el-button > <el-button
<span v-else>{{data.row.assetName}}</span> v-if="data.row.assetName"
class="detailBtn"
@click="fnDetail(data.row)"
>{{ data.row.assetName }}</el-button
>
<span v-else>{{ data.row.assetName }}</span>
</template> </template>
</table-config> </table-config>
</template> </template>
</list-page> </list-page>
<Detail <Detail
:visible.sync="visible" :visible.sync="visible"
:row-data="rowData" :row-data="rowData"
:activeName='activeName' :activeName="activeName"
:activeName2_1='activeName2_1' :activeName2_1="activeName2_1"
/> />
</div> </div>
</template> </template>
...@@ -138,7 +153,7 @@ export default { ...@@ -138,7 +153,7 @@ export default {
ListPage, ListPage,
SearchForm, SearchForm,
TableConfig, TableConfig,
Detail Detail,
}, },
computed: { computed: {
getCountType() { getCountType() {
...@@ -178,7 +193,11 @@ export default { ...@@ -178,7 +193,11 @@ export default {
if (this.activeName2_1 === '1') { if (this.activeName2_1 === '1') {
arr = [ arr = [
{ label: '序号', type: 'index', width: '80px' }, { label: '序号', type: 'index', width: '80px' },
{ label: '单位名称', prop: 'manageOrgName', __slotName: 'manageOrgName', }, {
label: '单位名称',
prop: 'manageOrgName',
__slotName: 'manageOrgName',
},
{ label: '概设需求数(个)', prop: 'needCount' }, { label: '概设需求数(个)', prop: 'needCount' },
{ label: '概设材料通过数(个)', prop: 'reviewPassCount' }, { label: '概设材料通过数(个)', prop: 'reviewPassCount' },
{ label: '概设通过比(%)', __slotName: 'percent' }, { label: '概设通过比(%)', __slotName: 'percent' },
...@@ -186,7 +205,7 @@ export default { ...@@ -186,7 +205,7 @@ export default {
} else { } else {
arr = [ arr = [
{ label: '序号', type: 'index', width: '80px' }, { label: '序号', type: 'index', width: '80px' },
{ label: '批次', prop: 'batName', __slotName: 'batName', }, { label: '批次', prop: 'batName', __slotName: 'batName' },
{ label: '项目需求数(个)', prop: 'needCount' }, { label: '项目需求数(个)', prop: 'needCount' },
{ label: '项目通过数(个)', prop: 'reviewPassCount' }, { label: '项目通过数(个)', prop: 'reviewPassCount' },
{ label: '项目通过比(%)', __slotName: 'percent' }, { label: '项目通过比(%)', __slotName: 'percent' },
...@@ -196,7 +215,7 @@ export default { ...@@ -196,7 +215,7 @@ export default {
arr = [ arr = [
{ type: 'selection', width: '55px' }, { type: 'selection', width: '55px' },
{ label: '序号', type: 'index', width: '80px' }, { label: '序号', type: 'index', width: '80px' },
{ label: '资产名称', prop: 'assetName', __slotName: 'assetName', }, { label: '资产名称', prop: 'assetName', __slotName: 'assetName' },
{ label: '资产类型(所属元素)', prop: 'eleName' }, { label: '资产类型(所属元素)', prop: 'eleName' },
{ {
label: '来源', label: '来源',
...@@ -233,7 +252,7 @@ export default { ...@@ -233,7 +252,7 @@ export default {
this.getElementTreeData() this.getElementTreeData()
}, },
methods: { methods: {
fnDetail(row){ fnDetail(row) {
this.rowData = row this.rowData = row
this.visible = true this.visible = true
}, },
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
v-if="activeName === '1'" v-if="activeName === '1'"
icon="el-icon-document-add" icon="el-icon-document-add"
type="primary" type="primary"
size="medium"
plain plain
@click="fnMaterialAnalysis()" @click="fnMaterialAnalysis()"
>材料解析</el-button >材料解析</el-button
...@@ -47,7 +46,6 @@ ...@@ -47,7 +46,6 @@
<el-button <el-button
icon="el-icon-document-add" icon="el-icon-document-add"
type="primary" type="primary"
size="medium"
plain plain
v-if="showBatchBtn" v-if="showBatchBtn"
@click="fnBatchExamine()" @click="fnBatchExamine()"
...@@ -56,7 +54,6 @@ ...@@ -56,7 +54,6 @@
<el-button <el-button
icon="el-icon-download" icon="el-icon-download"
type="primary" type="primary"
size="medium"
plain plain
v-if="activeName2 === '1'" v-if="activeName2 === '1'"
>导出报告</el-button >导出报告</el-button
...@@ -64,7 +61,6 @@ ...@@ -64,7 +61,6 @@
<el-button <el-button
icon="el-icon-download" icon="el-icon-download"
type="primary" type="primary"
size="medium"
plain plain
v-if="activeName2 === '4'" v-if="activeName2 === '4'"
>导出技术偏差分析表</el-button >导出技术偏差分析表</el-button
...@@ -72,7 +68,6 @@ ...@@ -72,7 +68,6 @@
<el-button <el-button
icon="el-icon-download" icon="el-icon-download"
type="primary" type="primary"
size="medium"
plain plain
v-if="activeName2 === '8'" v-if="activeName2 === '8'"
@click="handlExportRiskReport('重复建设风险报告', 1)" @click="handlExportRiskReport('重复建设风险报告', 1)"
...@@ -81,7 +76,6 @@ ...@@ -81,7 +76,6 @@
<el-button <el-button
icon="el-icon-download" icon="el-icon-download"
type="primary" type="primary"
size="medium"
plain plain
v-if="activeName2 === '9'" v-if="activeName2 === '9'"
@click="handlExportRiskReport('重复录入风险报告', 2)" @click="handlExportRiskReport('重复录入风险报告', 2)"
...@@ -99,8 +93,13 @@ ...@@ -99,8 +93,13 @@
id-key="elementId" id-key="elementId"
> >
<template #prjName="{ data }"> <template #prjName="{ data }">
<el-button v-if="data.row.prjName" class="detailBtn" size="medium" @click="fnDetail(data.row)">{{data.row.prjName}}</el-button > <el-button
<span v-else>{{data.row.prjName}}</span> v-if="data.row.prjName"
class="detailBtn"
@click="fnDetail(data.row)"
>{{ data.row.prjName }}</el-button
>
<span v-else>{{ data.row.prjName }}</span>
</template> </template>
</table-config> </table-config>
</template> </template>
...@@ -111,12 +110,12 @@ ...@@ -111,12 +110,12 @@
title="概设材料解析内容" title="概设材料解析内容"
:visible.sync="analysisContentVisible" :visible.sync="analysisContentVisible"
/> />
<Detail <Detail
:visible.sync="visible" :visible.sync="visible"
:row-data="rowData" :row-data="rowData"
:activeName='activeName' :activeName="activeName"
:activeName2='activeName2' :activeName2="activeName2"
/> />
</div> </div>
</template> </template>
...@@ -215,7 +214,7 @@ export default { ...@@ -215,7 +214,7 @@ export default {
SearchForm, SearchForm,
TableConfig, TableConfig,
AnalysisContent, AnalysisContent,
Detail Detail,
}, },
computed: { computed: {
formOptions() { formOptions() {
...@@ -465,7 +464,7 @@ export default { ...@@ -465,7 +464,7 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
fnDetail(row){ fnDetail(row) {
this.rowData = row this.rowData = row
this.visible = true this.visible = true
}, },
......
...@@ -47,9 +47,7 @@ ...@@ -47,9 +47,7 @@
</div> </div>
</div> </div>
<div class="flex"> <div class="flex">
<el-button type="primary" size="medium" @click="fnSave()" <el-button type="primary" @click="fnSave()">保存结果</el-button>
>保存结果</el-button
>
</div> </div>
</div> </div>
<el-input <el-input
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
<el-button <el-button
icon="el-icon-download" icon="el-icon-download"
type="primary" type="primary"
size="medium"
plain plain
v-if="item.requireName === '功能偏差'" v-if="item.requireName === '功能偏差'"
>导出技术偏差分析表</el-button >导出技术偏差分析表</el-button
...@@ -19,7 +18,6 @@ ...@@ -19,7 +18,6 @@
<el-button <el-button
icon="el-icon-download" icon="el-icon-download"
type="primary" type="primary"
size="medium"
plain plain
v-if="item.requireName === '功能重复风险'" v-if="item.requireName === '功能重复风险'"
>导出重复建设风险报告</el-button >导出重复建设风险报告</el-button
...@@ -27,7 +25,6 @@ ...@@ -27,7 +25,6 @@
<el-button <el-button
icon="el-icon-download" icon="el-icon-download"
type="primary" type="primary"
size="medium"
plain plain
v-if="item.requireName === '数据重复录入风险'" v-if="item.requireName === '数据重复录入风险'"
>导出重复录入风险报告</el-button >导出重复录入风险报告</el-button
......
...@@ -37,16 +37,19 @@ ...@@ -37,16 +37,19 @@
:columns="columns" :columns="columns"
:key="activeName" :key="activeName"
> >
<template #prjName="{ data }"> <template #prjName="{ data }">
<el-button v-if="data.row.prjName" class="detailBtn" size="medium" @click="fnEdit(data.row, true)">{{data.row.prjName}}</el-button > <el-button
<span v-else>{{data.row.prjName}}</span> v-if="data.row.prjName"
</template> class="detailBtn"
@click="fnEdit(data.row, true)"
>{{ data.row.prjName }}</el-button
>
<span v-else>{{ data.row.prjName }}</span>
</template>
</table-config> </table-config>
</template> </template>
</list-page> </list-page>
<Detail <Detail :visible.sync="detailVisible" :row-data="rowData" />
:visible.sync="detailVisible"
:row-data="rowData"/>
<!-- 新增弹窗 --> <!-- 新增弹窗 -->
<Add <Add
@querySearch="querySearch" @querySearch="querySearch"
...@@ -174,7 +177,7 @@ export default { ...@@ -174,7 +177,7 @@ export default {
{ type: 'selection', width: '55px' }, { type: 'selection', width: '55px' },
{ label: '序号', type: 'index', width: '80px' }, { label: '序号', type: 'index', width: '80px' },
{ label: '批次年度', prop: 'year' }, { label: '批次年度', prop: 'year' },
{ label: '批次名称', prop: 'batName', width: '200px', }, { label: '批次名称', prop: 'batName', width: '200px' },
{ {
label: '项目名称', label: '项目名称',
prop: 'prjName', prop: 'prjName',
...@@ -443,12 +446,12 @@ export default { ...@@ -443,12 +446,12 @@ export default {
}) })
.catch(() => {}) .catch(() => {})
}, },
fnEdit(row, isDetail=false) { fnEdit(row, isDetail = false) {
this.rowData = row this.rowData = row
if(this.activeName == '1'){ if (this.activeName == '1') {
this.dialogTitle = isDetail ? '详情' : '修改需求' this.dialogTitle = isDetail ? '详情' : '修改需求'
this.visible = true this.visible = true
}else{ } else {
this.detailVisible = true this.detailVisible = true
} }
}, },
......
<template> <template>
<div> <div>
<el-dialog <el-dialog
:title="'维护'" :title="'维护'"
:visible.sync="showDialog" :visible.sync="showDialog"
width="90%" width="90%"
@close="showDialog = false" @close="showDialog = false"
@open="handleOpen" @open="handleOpen"
> >
<div class="searchTable"> <div class="searchTable">
<list-page> <list-page>
<!-- 查询表单插槽 --> <!-- 查询表单插槽 -->
<template #formWrap> <template #formWrap>
<SearchForm ref="searchForm" @onSearch="querySearch" :form-options="formOptions" /> <SearchForm
</template> ref="searchForm"
<!-- 中部操作按钮 --> @onSearch="querySearch"
<template #operationWrap> :form-options="formOptions"
<el-button type="primary" icon="el-icon-document-add" size="medium" plain @click="fnAdd">新建</el-button > />
</template> </template>
<!-- 表格插槽 --> <!-- 中部操作按钮 -->
<template #tableWrap> <template #operationWrap>
<table-config <el-button
v-if="showDialog" type="primary"
ref="searchTable" icon="el-icon-document-add"
:query="query" plain
:columns="columns" @click="fnAdd"
id-key="elementId" >新建</el-button
:hasPagination='false' >
> </template>
</table-config> <!-- 表格插槽 -->
</template> <template #tableWrap>
</list-page> <table-config
</div> v-if="showDialog"
</el-dialog> ref="searchTable"
<AddMaintenance :query="query"
@querySearch="querySearch" :columns="columns"
:visible.sync="addVisible" id-key="elementId"
:row-data="addRowData" :hasPagination="false"
:title="dialogTitle" >
:dictId='rowData.id' </table-config>
/> </template>
</div> </list-page>
</div>
</el-dialog>
<AddMaintenance
@querySearch="querySearch"
:visible.sync="addVisible"
:row-data="addRowData"
:title="dialogTitle"
:dictId="rowData.id"
/>
</div>
</template> </template>
<script> <script>
...@@ -50,198 +60,207 @@ import { dictionaryMaintenanceSearch } from '@/api/architectureInspection' ...@@ -50,198 +60,207 @@ import { dictionaryMaintenanceSearch } from '@/api/architectureInspection'
import { flag } from '@/utils/architectureInspectionDis' import { flag } from '@/utils/architectureInspectionDis'
import AddMaintenance from './AddMaintenance.vue' import AddMaintenance from './AddMaintenance.vue'
export default { export default {
name: 'Maintenance', name: 'Maintenance',
components: { ListPage, SearchForm, TableConfig, AddMaintenance }, components: { ListPage, SearchForm, TableConfig, AddMaintenance },
props: { props: {
title: { title: {
type: String, type: String,
default: '', default: '',
}, },
visible: { visible: {
type: Boolean, type: Boolean,
default: false, default: false,
},
rowData: {
type: Object,
default: () => {},
},
},
computed: {
formOptions() {
return [
{
label: '字典描述', // label文字
prop: 'label', // 字段名
element: 'el-input', // 指定elementui组件
placeholder: '请输入内容', // elementui组件属性
}, },
rowData: { {
type: Object, label: '启用状态', // label文字
default: () => {}, prop: 'flag', // 字段名
element: 'el-select', // 指定elementui组件
placeholder: '请选择', // elementui组件属性
options: flag,
}, },
]
}, },
computed: { columns() {
formOptions() { return [
return [ { label: '序号', type: 'index', width: '80px' },
{ { label: '字典描述', prop: 'label' },
label: '字典描述', // label文字 { label: '字典值', prop: 'value', width: '150px' },
prop: 'label', // 字段名 { label: '等级', prop: 'grade', width: '150px' },
element: 'el-input', // 指定elementui组件 { label: '排序', prop: 'sort', width: '80px' },
placeholder: '请输入内容', // elementui组件属性 {
}, label: '启用状态',
{ prop: 'flag',
label: '启用状态', // label文字 width: '120px',
prop: 'flag', // 字段名 collectionType: 'flag',
element: 'el-select', // 指定elementui组件 options: flag,
placeholder: '请选择', // elementui组件属性
options: flag,
},
]
},
columns() {
return [
{ label: '序号', type: 'index', width: '80px' },
{ label: '字典描述', prop: 'label'},
{ label: '字典值', prop: 'value', width: '150px',},
{ label: '等级', prop: 'grade', width: '150px' },
{ label: '排序', prop: 'sort', width: '80px' },
{ label: '启用状态', prop: 'flag', width: '120px', collectionType: 'flag',
options: flag, },
{ label: '描述', prop: 'remark' },
{
label: '操作',
type: 'operation',
width: '360px',
actionButtons: [
{
title: '编辑',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-edit',
// disabledCallback: (row, title) => {
// return row.state == '1' ? true : false
// },
},
{
title: '',
titleChange: (row) => {
return row.flag == 0 ? '禁用' : '启用'
},
size: 'mini',
icon: 'el-icon-chat-dot-round',
type: 'primary',
plain: true,
// disabledCallback: (row, title) => {
// return row.state == '1' ? true : false
// },
},
{
title: '删除',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-delete',
},
],
callback: (row, title) => {
this.fnOperation(row, title)
},
},
]
}, },
showDialog: { { label: '描述', prop: 'remark' },
get() { {
return this.visible label: '操作',
type: 'operation',
width: '360px',
actionButtons: [
{
title: '编辑',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-edit',
// disabledCallback: (row, title) => {
// return row.state == '1' ? true : false
// },
},
{
title: '',
titleChange: (row) => {
return row.flag == 0 ? '禁用' : '启用'
},
size: 'mini',
icon: 'el-icon-chat-dot-round',
type: 'primary',
plain: true,
// disabledCallback: (row, title) => {
// return row.state == '1' ? true : false
// },
}, },
set(value) { {
this.$emit('update:visible', value) title: '删除',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-delete',
}, },
],
callback: (row, title) => {
this.fnOperation(row, title)
},
}, },
]
}, },
data(){ showDialog: {
return { get() {
query: { return this.visible
url: dictionaryMaintenanceSearch, },
method: 'post', set(value) {
queryParam: {}, this.$emit('update:visible', value)
}, },
addVisible: false,
addRowData: {},
dialogTitle: '',
}
}, },
methods: { },
querySearch(data) { data() {
this.query.queryParam = { return {
...this.query.queryParam, query: {
...data, url: dictionaryMaintenanceSearch,
} method: 'post',
this.$refs.searchTable.queryData() queryParam: {},
}, },
fnAdd() { addVisible: false,
this.addVisible = true addRowData: {},
this.addRowData = {} dialogTitle: '',
this.dialogTitle = '数据字典详情新建'
},
fnOperation(row, title) {
switch (title) {
case '编辑':
this.fnEdit(row)
break
case '删除':
this.fnDelete(row)
break
case 'titleChange':
this.fnEnable(row)
default:
break
}
},
fnDelete(row) {
this.$confirm(`是否确认删除?`, '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
this.$postRequestShared('/dictDetail/phyDel', {id: row.id}).then(res => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
})
})
.catch(() => {})
},
fnEdit(row) {
this.dialogTitle = '数据字典详情修改'
this.addRowData = row
this.addVisible = true
},
fnEnable(row){
let title = row.flag ? '启用' : '禁用'
this.$confirm('是否确认?' + title, '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
this.$postRequestShared('/dictDetail/delete', {id: row.id}).then(res => {
if (res.code === 200) {
this.$message.success(title + '成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(title + '失败')
}
})
})
.catch(() => {})
},
handleOpen() {
this.$nextTick(() => {
this.$refs.searchForm.addInitValue()
this.$refs.searchForm.onReset()
})
this.query.queryParam.dictId = this.rowData.id
}
} }
},
methods: {
querySearch(data) {
this.query.queryParam = {
...this.query.queryParam,
...data,
}
this.$refs.searchTable.queryData()
},
fnAdd() {
this.addVisible = true
this.addRowData = {}
this.dialogTitle = '数据字典详情新建'
},
fnOperation(row, title) {
switch (title) {
case '编辑':
this.fnEdit(row)
break
case '删除':
this.fnDelete(row)
break
case 'titleChange':
this.fnEnable(row)
default:
break
}
},
fnDelete(row) {
this.$confirm(`是否确认删除?`, '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
this.$postRequestShared('/dictDetail/phyDel', { id: row.id }).then(
(res) => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
},
)
})
.catch(() => {})
},
fnEdit(row) {
this.dialogTitle = '数据字典详情修改'
this.addRowData = row
this.addVisible = true
},
fnEnable(row) {
let title = row.flag ? '启用' : '禁用'
this.$confirm('是否确认?' + title, '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
this.$postRequestShared('/dictDetail/delete', { id: row.id }).then(
(res) => {
if (res.code === 200) {
this.$message.success(title + '成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(title + '失败')
}
},
)
})
.catch(() => {})
},
handleOpen() {
this.$nextTick(() => {
this.$refs.searchForm.addInitValue()
this.$refs.searchForm.onReset()
})
this.query.queryParam.dictId = this.rowData.id
},
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/elementui.scss'; @import '@/styles/elementui.scss';
::v-deep .searchTable{ ::v-deep .searchTable {
.tableConfig{ .tableConfig {
height: 32vh !important; height: 32vh !important;
} }
} }
</style> </style>
\ No newline at end of file
<template> <template>
<div class="searchTable"> <div class="searchTable">
<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" icon="el-icon-document-add" size="medium" plain @click="fnAdd">新建</el-button > <el-button
</template> type="primary"
<!-- 表格插槽 --> icon="el-icon-document-add"
<template #tableWrap> plain
<table-config @click="fnAdd"
ref="searchTable" >新建</el-button
:query="query" >
:columns="columns" </template>
id-key="elementId" <!-- 表格插槽 -->
> <template #tableWrap>
</table-config> <table-config
</template> ref="searchTable"
:query="query"
:columns="columns"
id-key="elementId"
>
</table-config>
</template>
</list-page> </list-page>
<Add <Add
@querySearch="querySearch" @querySearch="querySearch"
...@@ -27,7 +33,11 @@ ...@@ -27,7 +33,11 @@
:title="dialogTitle" :title="dialogTitle"
></Add> ></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"/> -->
<Maintenance :row-data="rowData" @querySearch="querySearch" :visible.sync="maintenanceVisible"/> <Maintenance
:row-data="rowData"
@querySearch="querySearch"
:visible.sync="maintenanceVisible"
/>
</div> </div>
</template> </template>
...@@ -41,190 +51,195 @@ import Add from './Add.vue' ...@@ -41,190 +51,195 @@ import Add from './Add.vue'
import Maintenance from './Maintenance.vue' import Maintenance from './Maintenance.vue'
export default { export default {
name: 'dictionaryManagement', name: 'dictionaryManagement',
components: { ListPage, SearchForm, TableConfig, Add, Maintenance }, components: { ListPage, SearchForm, TableConfig, Add, Maintenance },
computed: { computed: {
formOptions() { formOptions() {
return [ return [
{ {
label: '字典名称', // label文字 label: '字典名称', // label文字
prop: 'name', // 字段名 prop: 'name', // 字段名
element: 'el-input', // 指定elementui组件 element: 'el-input', // 指定elementui组件
placeholder: '请输入内容', // elementui组件属性 placeholder: '请输入内容', // elementui组件属性
},
{
label: '字典标识', // label文字
prop: 'typeValue', // 字段名
element: 'el-input', // 指定elementui组件
placeholder: '请输入内容', // elementui组件属性
},
{
label: '启用状态', // label文字
prop: 'delFlag', // 字段名
element: 'el-select', // 指定elementui组件
placeholder: '请选择', // elementui组件属性
options: delFlag,
},
]
},
columns() {
return [
{ label: '序号', type: 'index', width: '80px' },
{ label: '字典名称', prop: 'name', minWidth: '150px',},
{ label: '字典标识', prop: 'typeValue', minWidth: '150px',},
{ label: '描述', prop: 'remark', minWidth: '150px' },
{ label: '排序', prop: 'sort', width: '80px' },
{ label: '启用状态', prop: 'delFlag', width: '120px', collectionType: 'delFlag',
options: delFlag, },
{ label: '创建日期', prop: 'createTime', width: '120px' },
// { label: '创建人', prop: 'createMan', },
// { label: '最终修改时间', prop: 'lastUpdateTime', },
// { label: '最终修改人', prop: 'lastUpdateMan', },
{
label: '操作',
type: 'operation',
width: '360px',
actionButtons: [
{
title: '编辑',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-edit',
// disabledCallback: (row, title) => {
// return row.state == '1' ? true : false
// },
},
{
title: '维护',
size: 'mini',
type: 'primary',
plain: true,
icon: 'el-icon-data-analysis',
// disabledCallback: (row, title) => {
// return row.state == '1' ? true : false
// },
},
{
title: '',
titleChange: (row) => {
return row.delFlag == 0 ? '禁用' : '启用'
},
size: 'mini',
icon: 'el-icon-chat-dot-round',
type: 'primary',
plain: true,
},
{
title: '删除',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-delete',
},
],
callback: (row, title) => {
this.fnOperation(row, title)
},
},
]
},
},
data(){
return {
query: {
url: dictionarySearch,
method: 'post',
queryParam: { },
},
visible: false, // 新增 修改
rowData: {},
dialogTitle: '',
maintenanceVisible: false, // 维护
}
},
methods: {
querySearch(data) {
this.query.queryParam = {
...this.query.queryParam,
...data,
}
this.$refs.searchTable.queryData()
}, },
fnAdd() { {
this.visible = true label: '字典标识', // label文字
this.rowData = {} prop: 'typeValue', // 字段名
this.dialogTitle = '新建' element: 'el-input', // 指定elementui组件
placeholder: '请输入内容', // elementui组件属性
}, },
fnOperation(row, title) { {
switch (title) { label: '启用状态', // label文字
case '编辑': prop: 'delFlag', // 字段名
this.fnEdit(row) element: 'el-select', // 指定elementui组件
break placeholder: '请选择', // elementui组件属性
case '维护': options: delFlag,
this.fnMaintenance(row)
break
case '删除':
this.fnDelete(row)
break
case 'titleChange':
this.fnDisabled(row)
default:
break
}
}, },
fnDelete(row) { ]
this.$confirm(`是否确认删除?`, '提示', { },
confirmButtonText: '确认', columns() {
cancelButtonText: '取消', return [
type: 'warning', { label: '序号', type: 'index', width: '80px' },
}) { label: '字典名称', prop: 'name', minWidth: '150px' },
.then(() => { { label: '字典标识', prop: 'typeValue', minWidth: '150px' },
this.$postRequestShared('/dict/phyDel', {id: row.id}).then(res => { { label: '描述', prop: 'remark', minWidth: '150px' },
if (res.code === 200) { { label: '排序', prop: 'sort', width: '80px' },
this.$message.success('删除成功') {
this.$refs.searchTable.queryData() label: '启用状态',
} else { prop: 'delFlag',
this.$message.error(res.msg) width: '120px',
} collectionType: 'delFlag',
}) options: delFlag,
})
.catch(() => {})
},
fnEdit(row) {
this.dialogTitle = '修改'
this.rowData = row
this.visible = true
},
fnMaintenance(row){
this.maintenanceVisible = true
this.rowData = row
}, },
fnDisabled(row){ { label: '创建日期', prop: 'createTime', width: '120px' },
let title = row.delFlag == 1 ? '启用' : '禁用' // { label: '创建人', prop: 'createMan', },
this.$confirm(`是否确认${title}?`, '提示', { // { label: '最终修改时间', prop: 'lastUpdateTime', },
confirmButtonText: '确认', // { label: '最终修改人', prop: 'lastUpdateMan', },
cancelButtonText: '取消', {
type: 'warning', label: '操作',
}) type: 'operation',
.then(() => { width: '360px',
this.$postRequestShared('/dict/delete', {id: row.id}).then(res => { actionButtons: [
if (res.code === 200) { {
this.$message.success( title + '成功') title: '编辑',
this.$refs.searchTable.queryData() type: 'primary',
} else { size: 'mini',
this.$message.error(title + '失败') plain: true,
} icon: 'el-icon-edit',
}) // disabledCallback: (row, title) => {
}) // return row.state == '1' ? true : false
.catch(() => {}) // },
},
{
title: '维护',
size: 'mini',
type: 'primary',
plain: true,
icon: 'el-icon-data-analysis',
// disabledCallback: (row, title) => {
// return row.state == '1' ? true : false
// },
},
{
title: '',
titleChange: (row) => {
return row.delFlag == 0 ? '禁用' : '启用'
},
size: 'mini',
icon: 'el-icon-chat-dot-round',
type: 'primary',
plain: true,
},
{
title: '删除',
type: 'primary',
size: 'mini',
plain: true,
icon: 'el-icon-delete',
},
],
callback: (row, title) => {
this.fnOperation(row, title)
},
}, },
]
},
},
data() {
return {
query: {
url: dictionarySearch,
method: 'post',
queryParam: {},
},
visible: false, // 新增 修改
rowData: {},
dialogTitle: '',
maintenanceVisible: false, // 维护
} }
},
methods: {
querySearch(data) {
this.query.queryParam = {
...this.query.queryParam,
...data,
}
this.$refs.searchTable.queryData()
},
fnAdd() {
this.visible = true
this.rowData = {}
this.dialogTitle = '新建'
},
fnOperation(row, title) {
switch (title) {
case '编辑':
this.fnEdit(row)
break
case '维护':
this.fnMaintenance(row)
break
case '删除':
this.fnDelete(row)
break
case 'titleChange':
this.fnDisabled(row)
default:
break
}
},
fnDelete(row) {
this.$confirm(`是否确认删除?`, '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
this.$postRequestShared('/dict/phyDel', { id: row.id }).then(
(res) => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
},
)
})
.catch(() => {})
},
fnEdit(row) {
this.dialogTitle = '修改'
this.rowData = row
this.visible = true
},
fnMaintenance(row) {
this.maintenanceVisible = true
this.rowData = row
},
fnDisabled(row) {
let title = row.delFlag == 1 ? '启用' : '禁用'
this.$confirm(`是否确认${title}?`, '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
this.$postRequestShared('/dict/delete', { id: row.id }).then(
(res) => {
if (res.code === 200) {
this.$message.success(title + '成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(title + '失败')
}
},
)
})
.catch(() => {})
},
},
} }
</script> </script>
<style> <style></style>
</style>
\ No newline at end of file
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
<el-button <el-button
icon="el-icon-document-add" icon="el-icon-document-add"
type="primary" type="primary"
size="medium"
plain plain
@click="fnAdd()" @click="fnAdd()"
>新建</el-button >新建</el-button
......
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
<div class="search_btn"> <div class="search_btn">
<el-button <el-button
type="primary" type="primary"
size="medium"
icon="el-icon-document-add" icon="el-icon-document-add"
@click="operation('add', null)" @click="operation('add', null)"
>新建</el-button >新建</el-button
...@@ -423,8 +422,8 @@ export default { ...@@ -423,8 +422,8 @@ export default {
}, },
methods: { methods: {
// 状态 // 状态
getStateList(){ getStateList() {
query_jia_gou_ceng_ci_new({"typeValue": "sys_state"}).then(res => { query_jia_gou_ceng_ci_new({ typeValue: 'sys_state' }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.stateList = res.data this.stateList = res.data
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-04-16 15:09:52 * @Date: 2024-04-16 15:09:52
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-04-19 10:02:44 * @LastEditTime: 2024-06-24 10:24:52
--> -->
<template> <template>
<div class="searchTable"> <div class="searchTable">
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
<el-button <el-button
type="primary" type="primary"
icon="el-icon-document-add" icon="el-icon-document-add"
size="medium"
plain plain
@click="fnTopOperation('新增')" @click="fnTopOperation('新增')"
>新增</el-button >新增</el-button
...@@ -32,7 +31,6 @@ ...@@ -32,7 +31,6 @@
<el-button <el-button
type="primary" type="primary"
icon="el-icon-edit" icon="el-icon-edit"
size="medium"
plain plain
@click="fnTopOperation('编辑')" @click="fnTopOperation('编辑')"
>编辑</el-button >编辑</el-button
...@@ -40,7 +38,6 @@ ...@@ -40,7 +38,6 @@
<el-button <el-button
type="danger" type="danger"
icon="el-icon-delete" icon="el-icon-delete"
size="medium"
plain plain
@click="fnTopOperation('删除')" @click="fnTopOperation('删除')"
>删除</el-button >删除</el-button
...@@ -254,13 +251,13 @@ export default { ...@@ -254,13 +251,13 @@ export default {
}) })
.then(() => { .then(() => {
let [params, delApi] = [{}, null] let [params, delApi] = [{}, null]
if(row) { if (row) {
params = { params = {
orgId: row.orgId, orgId: row.orgId,
} }
delApi = delOrgTreeItem delApi = delOrgTreeItem
} else { } else {
params = this.selectRows.map(v => Number(v.orgId)) params = this.selectRows.map((v) => Number(v.orgId))
delApi = batchDeleteOrgTreeItem delApi = batchDeleteOrgTreeItem
} }
delApi(params).then((res) => { delApi(params).then((res) => {
......
...@@ -5,48 +5,58 @@ ...@@ -5,48 +5,58 @@
<div class="search_menu_item_container"> <div class="search_menu_item_container">
<div class="search_menu_item"> <div class="search_menu_item">
<span class="search_title">组织单位</span> <span class="search_title">组织单位</span>
<el-select v-model="searchParams.let1" placeholder="请选择" class="search_item" filterable> <el-select
v-model="searchParams.let1"
placeholder="请选择"
class="search_item"
filterable
>
<el-option <el-option
v-for="item in sysOrgOptions" v-for="item in sysOrgOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
/> />
</el-select> </el-select>
</div> </div>
<div class="search_menu_item"> <div class="search_menu_item">
<span class="search_title">业务部门</span> <span class="search_title">业务部门</span>
<el-select filterable v-model="searchParams.let2" placeholder="请选择" class="search_item"> <el-select
filterable
v-model="searchParams.let2"
placeholder="请选择"
class="search_item"
>
<el-option <el-option
v-for="item in sysDeptOptions" v-for="item in sysDeptOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
/> />
</el-select> </el-select>
</div> </div>
<div class="search_menu_item"> <div class="search_menu_item">
<span class="search_title">系统名称</span> <span class="search_title">系统名称</span>
<el-input <el-input
v-no-backslash v-no-backslash
v-model="searchParams.let3" v-model="searchParams.let3"
maxlength="100" maxlength="100"
placeholder="请输入内容" placeholder="请输入内容"
class="search_item" class="search_item"
></el-input> ></el-input>
</div> </div>
<div class="search_menu_item"> <div class="search_menu_item">
<span class="search_title">建设类型</span> <span class="search_title">建设类型</span>
<el-select <el-select
v-model="searchParams.let4" v-model="searchParams.let4"
placeholder="请选择" placeholder="请选择"
class="search_item" class="search_item"
> >
<el-option <el-option
v-for="item in jianSheLeiXingSelect" v-for="item in jianSheLeiXingSelect"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
></el-option> ></el-option>
</el-select> </el-select>
</div> </div>
...@@ -54,17 +64,17 @@ ...@@ -54,17 +64,17 @@
<div class="search_menu_btn_container"> <div class="search_menu_btn_container">
<div class="query_btn" @click="search_table"> <div class="query_btn" @click="search_table">
<img <img
class="btn_icon" class="btn_icon"
src="@/assets/archi-ele-list/search.png" src="@/assets/archi-ele-list/search.png"
alt="" alt=""
/> />
<p>查询</p> <p>查询</p>
</div> </div>
<div class="reset_btn" @click="reset"> <div class="reset_btn" @click="reset">
<img <img
class="btn_icon" class="btn_icon"
src="@/assets/archi-ele-list/reset.png" src="@/assets/archi-ele-list/reset.png"
alt="" alt=""
/> />
<p>重置</p> <p>重置</p>
</div> </div>
...@@ -72,55 +82,54 @@ ...@@ -72,55 +82,54 @@
</div> </div>
<div class="search_btn"> <div class="search_btn">
<el-button <el-button
type="primary" type="primary"
size="medium" icon="el-icon-document-add"
icon="el-icon-document-add" @click="operation('add', null)"
@click="operation('add', null)" >新建项目
>新建项目
</el-button> </el-button>
</div> </div>
<el-table <el-table
:height="tableHeight" :height="tableHeight"
v-loading="loading" v-loading="loading"
:data="tableData" :data="tableData"
stripe stripe
border border
> >
<el-table-column <el-table-column
type="index" type="index"
label="序号" label="序号"
width="80" width="80"
:index="indexMethod" :index="indexMethod"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="manageOrgId" prop="manageOrgId"
label="建设单位" label="建设单位"
align="center" align="center"
width="280" width="280"
show-overflow-tooltip show-overflow-tooltip
:formatter=" :formatter="
(row, column, cellValue, index) => (row, column, cellValue, index) =>
formatterDept(row, column, cellValue, index, 'sysOrgOptions') formatterDept(row, column, cellValue, index, 'sysOrgOptions')
" "
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="manageDeptId" prop="manageDeptId"
label="业务部门" label="业务部门"
show-overflow-tooltip show-overflow-tooltip
align="center" align="center"
width="280" width="280"
:formatter=" :formatter="
(row, column, cellValue, index) => (row, column, cellValue, index) =>
formatterDept(row, column, cellValue, index, 'sysDeptOptions') formatterDept(row, column, cellValue, index, 'sysDeptOptions')
" "
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="appName" prop="appName"
label="系统名称" label="系统名称"
align="center" align="center"
width="280" width="280"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column label="建设类型" align="center"> <el-table-column label="建设类型" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -129,16 +138,16 @@ ...@@ -129,16 +138,16 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="prjName" prop="prjName"
label="项目名称" label="项目名称"
align="center" align="center"
width="280" width="280"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
> >
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span class="prjName" @click="openDetail(row)">{{ <span class="prjName" @click="openDetail(row)">{{
row.prjName row.prjName
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="项目类型" align="center"> <el-table-column label="项目类型" align="center">
...@@ -147,50 +156,71 @@ ...@@ -147,50 +156,71 @@
<span v-else-if="scope.row.prjPlanClass == 2">续建</span> <span v-else-if="scope.row.prjPlanClass == 2">续建</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="buildOrg" label="承建单位" width="280" align="center"> <el-table-column
:show-overflow-tooltip="true"
prop="buildOrg"
label="承建单位"
width="280"
align="center"
>
<template v-slot="scope"> <template v-slot="scope">
<span>{{ scope.row.buildOrg | orgNameFilter(that) }}</span> <span>{{ scope.row.buildOrg | orgNameFilter(that) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="projAmount" label="项目金额(万元)" width="150" align="right"> <el-table-column
prop="projAmount"
label="项目金额(万元)"
width="150"
align="right"
>
<template v-slot="scope"> <template v-slot="scope">
<span style="font-weight: bold">{{ scope.row.projAmount | formatMoney }}</span> <span style="font-weight: bold">{{
scope.row.projAmount | formatMoney
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<!--项目启动日期--> <!--项目启动日期-->
<el-table-column prop="projectInitiationTime" label="项目启动日期" width="120" align="center"> <el-table-column
prop="projectInitiationTime"
label="项目启动日期"
width="120"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.projectInitiationTime }}</span> <span>{{ scope.row.projectInitiationTime }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="createTime" label="创建时间" width="120" align="center"/> <el-table-column
prop="createTime"
label="创建时间"
width="120"
align="center"
/>
<el-table-column label="操作" width="200" align="center"> <el-table-column label="操作" width="200" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div <div
style=" style="
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
" "
> >
<el-button <el-button
icon="el-icon-edit" icon="el-icon-edit"
type="primary" type="primary"
size="mini" size="mini"
@click="operation('edit', scope.row)" @click="operation('edit', scope.row)"
:disabled="scope.row.state == 1" :disabled="scope.row.state == 1"
>编辑 >编辑
</el-button </el-button>
>
<el-button <el-button
class="shanChu_btn" class="shanChu_btn"
icon="el-icon-delete" icon="el-icon-delete"
size="mini" size="mini"
@click="operation('delete', scope.row)" @click="operation('delete', scope.row)"
:disabled="scope.row.state == 1" :disabled="scope.row.state == 1"
>删除 >删除
</el-button </el-button>
>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -201,30 +231,30 @@ ...@@ -201,30 +231,30 @@
:total="50"> :total="50">
</el-pagination> --> </el-pagination> -->
<el-pagination <el-pagination
background background
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="pager.current" :current-page="pager.current"
:page-sizes="pager.sizes" :page-sizes="pager.sizes"
:page-size="pager.size" :page-size="pager.size"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="pager.total" :total="pager.total"
> >
</el-pagination> </el-pagination>
</div> </div>
<el-dialog <el-dialog
:title="is_add_edit == 'add' ? '新建系统' : '编辑系统'" :title="is_add_edit == 'add' ? '新建系统' : '编辑系统'"
:visible.sync="add_dialog" :visible.sync="add_dialog"
:center="false" :center="false"
:close-on-click-modal="false" :close-on-click-modal="false"
width="80%" width="80%"
@close="handleClose()" @close="handleClose()"
> >
<el-form <el-form
:model="ruleForm" :model="ruleForm"
ref="form" ref="form"
:rules="rules" :rules="rules"
style="display: flex; flex-wrap: wrap" style="display: flex; flex-wrap: wrap"
> >
<el-form-item label="关联系统:" prop="let1" style="width: 30%"> <el-form-item label="关联系统:" prop="let1" style="width: 30%">
<el-input v-model="ruleForm.let1" readonly> <el-input v-model="ruleForm.let1" readonly>
...@@ -234,33 +264,33 @@ ...@@ -234,33 +264,33 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="项目名称:" label="项目名称:"
prop="let2" prop="let2"
style="width: 30%; margin-left: 46px" style="width: 30%; margin-left: 46px"
> >
<el-input <el-input
v-no-backslash v-no-backslash
v-model="ruleForm.let2" v-model="ruleForm.let2"
maxlength="100" maxlength="100"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<!--项目金额-只可以输入金额,不能超过12位--> <!--项目金额-只可以输入金额,不能超过12位-->
<el-form-item label="项目金额(万元):" prop="let6" style="width: 30%"> <el-form-item label="项目金额(万元):" prop="let6" style="width: 30%">
<el-input <el-input
v-model="ruleForm.let6" v-model="ruleForm.let6"
maxlength="12" maxlength="12"
placeholder="请输入金额" placeholder="请输入金额"
@input="ruleForm.let6 = ruleForm.let6.replace(/[^\d.]/g,'')" @input="ruleForm.let6 = ruleForm.let6.replace(/[^\d.]/g, '')"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<!--项目启动时间--> <!--项目启动时间-->
<el-form-item label="项目启动时间:" prop="let7" style="width: 30%"> <el-form-item label="项目启动时间:" prop="let7" style="width: 30%">
<el-date-picker <el-date-picker
v-model="ruleForm.let7" v-model="ruleForm.let7"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
format="yyyy-MM-dd" format="yyyy-MM-dd"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="是否续建:" prop="let3" style="width: 30%"> <el-form-item label="是否续建:" prop="let3" style="width: 30%">
...@@ -270,9 +300,9 @@ ...@@ -270,9 +300,9 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="前期项目:" label="前期项目:"
prop="let4" prop="let4"
style="width: 29.5%; margin-left: 10px" style="width: 29.5%; margin-left: 10px"
> >
<el-input v-model="ruleForm.let4" readonly> <el-input v-model="ruleForm.let4" readonly>
<div slot="append" @click="operation('open_add_dialog3', null)"> <div slot="append" @click="operation('open_add_dialog3', null)">
...@@ -291,31 +321,31 @@ ...@@ -291,31 +321,31 @@
<div style="text-align: left; margin-left: 10px">项目资料:</div> <div style="text-align: left; margin-left: 10px">项目资料:</div>
<el-table :data="tableData4" stripe border> <el-table :data="tableData4" stripe border>
<el-table-column <el-table-column
type="index" type="index"
label="序号" label="序号"
width="80" width="80"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="label" prop="label"
label="资料类型" label="资料类型"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column label="资料名称" align="center"> <el-table-column label="资料名称" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
action="/eadc-shared-ability/oss/upload" action="/eadc-shared-ability/oss/upload"
ref="upload" ref="upload"
:on-remove=" :on-remove="
(file, fileList) => handleRemove(file, fileList, scope.row) (file, fileList) => handleRemove(file, fileList, scope.row)
" "
:on-success=" :on-success="
(res, file, fileList) => (res, file, fileList) =>
handleFileUploadSuccess(res, file, fileList, scope.row) handleFileUploadSuccess(res, file, fileList, scope.row)
" "
:limit="1" :limit="1"
:file-list="scope.row.fileList" :file-list="scope.row.fileList"
> >
<el-button size="small" type="primary">点击上传</el-button> <el-button size="small" type="primary">点击上传</el-button>
</el-upload> </el-upload>
...@@ -325,61 +355,75 @@ ...@@ -325,61 +355,75 @@
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button class="greenButton" @click="dialogOperation('save', null)" <el-button class="greenButton" @click="dialogOperation('save', null)"
>保存</el-button >保存</el-button
> >
<el-button @click="add_dialog = false">取消</el-button> <el-button @click="add_dialog = false">取消</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="选择系统" title="选择系统"
:visible.sync="add_dialog2" :visible.sync="add_dialog2"
:center="false" :center="false"
:close-on-click-modal="false" :close-on-click-modal="false"
width="80%" width="80%"
> >
<div class="search_menu" style="justify-content: center"> <div class="search_menu" style="justify-content: center">
<div class="search_menu_item_container"> <div class="search_menu_item_container">
<div class="search_menu_item" style="width: auto"> <div class="search_menu_item" style="width: auto">
<span class="search_title">组织单位</span> <span class="search_title">组织单位</span>
<el-select filterable v-model="searchParams2.let1" placeholder="请选择" class="search_item"> <el-select
filterable
v-model="searchParams2.let1"
placeholder="请选择"
class="search_item"
>
<el-option <el-option
v-for="item in sysOrgOptions" v-for="item in sysOrgOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
></el-option> ></el-option>
</el-select> </el-select>
</div> </div>
<div class="search_menu_item" style="width: auto"> <div class="search_menu_item" style="width: auto">
<span class="search_title">业务部门</span> <span class="search_title">业务部门</span>
<el-select filterable v-model="searchParams2.let2" placeholder="请选择" class="search_item"> <el-select
filterable
v-model="searchParams2.let2"
placeholder="请选择"
class="search_item"
>
<el-option <el-option
v-for="item in sysDeptOptions" v-for="item in sysDeptOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
></el-option> ></el-option>
</el-select> </el-select>
</div> </div>
<div class="search_menu_item" style="width: auto"> <div class="search_menu_item" style="width: auto">
<span class="search_title">系统名称</span> <span class="search_title">系统名称</span>
<el-input <el-input
v-no-backslash v-no-backslash
v-model="searchParams2.let3" v-model="searchParams2.let3"
maxlength="100" maxlength="100"
placeholder="请输入内容" placeholder="请输入内容"
class="search_item" class="search_item"
></el-input> ></el-input>
</div> </div>
<div class="search_menu_item" style="width: auto"> <div class="search_menu_item" style="width: auto">
<span class="search_title">建设类型</span> <span class="search_title">建设类型</span>
<el-select v-model="searchParams2.let4" placeholder="请选择" class="search_item"> <el-select
v-model="searchParams2.let4"
placeholder="请选择"
class="search_item"
>
<el-option <el-option
v-for="item in jianSheLeiXingSelect" v-for="item in jianSheLeiXingSelect"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
></el-option> ></el-option>
</el-select> </el-select>
</div> </div>
...@@ -387,53 +431,53 @@ ...@@ -387,53 +431,53 @@
<div class="search_menu_btn_container"> <div class="search_menu_btn_container">
<div class="query_btn" @click="search_table2"> <div class="query_btn" @click="search_table2">
<img <img
class="btn_icon" class="btn_icon"
src="@/assets/archi-ele-list/search.png" src="@/assets/archi-ele-list/search.png"
alt="" alt=""
/> />
<p>查询</p> <p>查询</p>
</div> </div>
<div class="reset_btn" @click="reset2"> <div class="reset_btn" @click="reset2">
<img <img
class="btn_icon" class="btn_icon"
src="@/assets/archi-ele-list/reset.png" src="@/assets/archi-ele-list/reset.png"
alt="" alt=""
/> />
<p>重置</p> <p>重置</p>
</div> </div>
</div> </div>
</div> </div>
<el-table <el-table
height="300" height="300"
v-loading="loading2" v-loading="loading2"
@selection-change="select_table_rows" @selection-change="select_table_rows"
:data="tableData2" :data="tableData2"
stripe stripe
border border
> >
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column <el-table-column
type="index" type="index"
label="序号" label="序号"
width="80" width="80"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="manageOrgId_" prop="manageOrgId_"
label="组织单位" label="组织单位"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="manageDeptId_" prop="manageDeptId_"
label="业务部门" label="业务部门"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="appName" prop="appName"
label="系统名称" label="系统名称"
align="center" align="center"
width="200" width="200"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column label="建设类型" align="center"> <el-table-column label="建设类型" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -447,92 +491,102 @@ ...@@ -447,92 +491,102 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="projectManager" prop="projectManager"
label="项目经理" label="项目经理"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="创建时间" label="创建时间"
align="center" align="center"
></el-table-column> ></el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
background background
@size-change="handleSizeChange2" @size-change="handleSizeChange2"
@current-change="handleCurrentChange2" @current-change="handleCurrentChange2"
:current-page="pager2.current" :current-page="pager2.current"
:page-sizes="pager2.sizes" :page-sizes="pager2.sizes"
:page-size="pager2.size" :page-size="pager2.size"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="pager2.total" :total="pager2.total"
> >
</el-pagination> </el-pagination>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button <el-button
class="greenButton" class="greenButton"
@click="dialogOperation('selectSystem', null)" @click="dialogOperation('selectSystem', null)"
>确定</el-button >确定</el-button
> >
<el-button @click="dialogOperation('cancelSelectSystem', null)" <el-button @click="dialogOperation('cancelSelectSystem', null)"
>取消</el-button >取消</el-button
> >
</span> </span>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="选择项目" title="选择项目"
:visible.sync="add_dialog3" :visible.sync="add_dialog3"
:center="false" :center="false"
:close-on-click-modal="false" :close-on-click-modal="false"
width="80%" width="80%"
> >
<div class="search_menu" style="justify-content: center"> <div class="search_menu" style="justify-content: center">
<div class="search_menu_item_container"> <div class="search_menu_item_container">
<div class="search_menu_item" style="width: auto"> <div class="search_menu_item" style="width: auto">
<span class="search_title">组织单位</span> <span class="search_title">组织单位</span>
<el-select filterable v-model="searchParams3.let1" placeholder="请选择" class="search_item"> <el-select
filterable
v-model="searchParams3.let1"
placeholder="请选择"
class="search_item"
>
<el-option <el-option
v-for="item in sysOrgOptions" v-for="item in sysOrgOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
/> />
</el-select> </el-select>
</div> </div>
<div class="search_menu_item" style="width: auto"> <div class="search_menu_item" style="width: auto">
<span class="search_title">业务部门</span> <span class="search_title">业务部门</span>
<el-select filterable v-model="searchParams2.let2" placeholder="请选择" class="search_item"> <el-select
filterable
v-model="searchParams2.let2"
placeholder="请选择"
class="search_item"
>
<el-option <el-option
v-for="item in sysDeptOptions" v-for="item in sysDeptOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
/> />
</el-select> </el-select>
</div> </div>
<div class="search_menu_item" style="width: auto"> <div class="search_menu_item" style="width: auto">
<span class="search_title">项目名称</span> <span class="search_title">项目名称</span>
<el-input <el-input
v-no-backslash v-no-backslash
v-model="searchParams.let3" v-model="searchParams.let3"
maxlength="100" maxlength="100"
placeholder="请输入内容" placeholder="请输入内容"
class="search_item" class="search_item"
></el-input> ></el-input>
</div> </div>
<div class="search_menu_item" style="width: auto"> <div class="search_menu_item" style="width: auto">
<span class="search_title">建设类型</span> <span class="search_title">建设类型</span>
<el-select <el-select
v-model="searchParams3.let4" v-model="searchParams3.let4"
placeholder="请选择" placeholder="请选择"
class="search_item" class="search_item"
> >
<el-option <el-option
v-for="item in jianSheLeiXingSelect" v-for="item in jianSheLeiXingSelect"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
></el-option> ></el-option>
</el-select> </el-select>
</div> </div>
...@@ -540,53 +594,53 @@ ...@@ -540,53 +594,53 @@
<div class="search_menu_btn_container"> <div class="search_menu_btn_container">
<div class="query_btn" @click="search_table3"> <div class="query_btn" @click="search_table3">
<img <img
class="btn_icon" class="btn_icon"
src="@/assets/archi-ele-list/search.png" src="@/assets/archi-ele-list/search.png"
alt="" alt=""
/> />
<p>查询</p> <p>查询</p>
</div> </div>
<div class="reset_btn" @click="reset3"> <div class="reset_btn" @click="reset3">
<img <img
class="btn_icon" class="btn_icon"
src="@/assets/archi-ele-list/reset.png" src="@/assets/archi-ele-list/reset.png"
alt="" alt=""
/> />
<p>重置</p> <p>重置</p>
</div> </div>
</div> </div>
</div> </div>
<el-table <el-table
height="300" height="300"
v-loading="loading3" v-loading="loading3"
@selection-change="select_table_row3" @selection-change="select_table_row3"
:data="tableData3" :data="tableData3"
stripe stripe
border border
> >
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column <el-table-column
type="index" type="index"
label="序号" label="序号"
width="80" width="80"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="manageOrgId_" prop="manageOrgId_"
label="组织单位" label="组织单位"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="manageDeptId_" prop="manageDeptId_"
label="业务部门" label="业务部门"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="appName" prop="appName"
label="系统名称" label="系统名称"
align="center" align="center"
width="200" width="200"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column label="建设类型" align="center"> <el-table-column label="建设类型" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -595,11 +649,11 @@ ...@@ -595,11 +649,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="prjName" prop="prjName"
label="项目名称" label="项目名称"
align="center" align="center"
width="200" width="200"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column label="是否续建" align="center"> <el-table-column label="是否续建" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -607,7 +661,12 @@ ...@@ -607,7 +661,12 @@
<span v-else></span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="buildOrg" label="承建单位" align="center"> <el-table-column
:show-overflow-tooltip="true"
prop="buildOrg"
label="承建单位"
align="center"
>
<template v-slot="scope"> <template v-slot="scope">
<span>{{ scope.row.buildOrg | orgNameFilter(that) }}</span> <span>{{ scope.row.buildOrg | orgNameFilter(that) }}</span>
</template> </template>
...@@ -618,61 +677,61 @@ ...@@ -618,61 +677,61 @@
<!-- align="center"--> <!-- align="center"-->
<!--&gt;</el-table-column>--> <!--&gt;</el-table-column>-->
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="创建时间" label="创建时间"
align="center" align="center"
></el-table-column> ></el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
background background
@size-change="handleSizeChange3" @size-change="handleSizeChange3"
@current-change="handleCurrentChange3" @current-change="handleCurrentChange3"
:current-page="pager3.current" :current-page="pager3.current"
:page-sizes="pager3.sizes" :page-sizes="pager3.sizes"
:page-size="pager3.size" :page-size="pager3.size"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="pager3.total" :total="pager3.total"
> >
</el-pagination> </el-pagination>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button <el-button
class="greenButton" class="greenButton"
@click="dialogOperation('selectProject', null)" @click="dialogOperation('selectProject', null)"
>确定</el-button >确定</el-button
> >
<el-button @click="dialogOperation('cancelSelectProject', null)" <el-button @click="dialogOperation('cancelSelectProject', null)"
>取消</el-button >取消</el-button
> >
</span> </span>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="选择报告" title="选择报告"
:visible.sync="add_dialog4" :visible.sync="add_dialog4"
:center="false" :center="false"
:close-on-click-modal="false" :close-on-click-modal="false"
width="80%" width="80%"
> >
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button <el-button
class="greenButton" class="greenButton"
@click="dialogOperation('selectReport', null)" @click="dialogOperation('selectReport', null)"
>确定</el-button >确定</el-button
> >
<el-button @click="dialogOperation('cancelSelectReport', null)" <el-button @click="dialogOperation('cancelSelectReport', null)"
>取消</el-button >取消</el-button
> >
</span> </span>
</el-dialog> </el-dialog>
<!-- 项目信息详情 --> <!-- 项目信息详情 -->
<ProjectDetail <ProjectDetail
:sysOrgOptions="sysOrgOptions" :sysOrgOptions="sysOrgOptions"
:sysDeptOptions="sysDeptOptions" :sysDeptOptions="sysDeptOptions"
:buildTypeOptins="jianSheLeiXingSelect" :buildTypeOptins="jianSheLeiXingSelect"
:optTypeOptions="chengJianDeptSelect" :optTypeOptions="chengJianDeptSelect"
:row-data="rowData" :row-data="rowData"
:visible.sync="projectDetailVisible" :visible.sync="projectDetailVisible"
/> />
</div> </div>
</template> </template>
...@@ -688,15 +747,15 @@ import { ...@@ -688,15 +747,15 @@ import {
getOrgOption, getOrgOption,
getPrjInfoDetail, getPrjInfoDetail,
queryProjectInfoManageTable, queryProjectInfoManageTable,
querysystemInfoManageTable querysystemInfoManageTable,
} from '@/api/index.js' } from '@/api/index.js'
import {Message, MessageBox} from 'element-ui' import { Message, MessageBox } from 'element-ui'
import $ from 'jquery' import $ from 'jquery'
import {getDictTypeOptions} from '@/utils' import { getDictTypeOptions } from '@/utils'
export default { export default {
name: 'projectInfoManage', name: 'projectInfoManage',
components: {ProjectDetail}, components: { ProjectDetail },
data() { data() {
return { return {
add_dialog2: false, add_dialog2: false,
...@@ -712,10 +771,10 @@ export default { ...@@ -712,10 +771,10 @@ export default {
let7: null, let7: null,
}, },
rules: { rules: {
let1: [{required: true, message: '请选择关联系统', trigger: 'blur'}], let1: [{ required: true, message: '请选择关联系统', trigger: 'blur' }],
let2: [{required: true, message: '请输入项目名称', trigger: 'blur'}], let2: [{ required: true, message: '请输入项目名称', trigger: 'blur' }],
let3: [ let3: [
{required: true, message: '请选择是否续建', trigger: 'change'}, { required: true, message: '请选择是否续建', trigger: 'change' },
], ],
}, },
add_dialog: false, add_dialog: false,
...@@ -781,24 +840,27 @@ export default { ...@@ -781,24 +840,27 @@ export default {
projectDetailVisible: false, projectDetailVisible: false,
sysOrgOptions: [], sysOrgOptions: [],
sysDeptOptions: [], sysDeptOptions: [],
that: this that: this,
} }
}, },
created() { created() {},
},
filters: { filters: {
formatMoney(value) { formatMoney(value) {
if (!value && value !== 0) return ''; if (!value && value !== 0) return ''
return new Intl.NumberFormat('zh-CN', {style: 'currency', currency: 'CNY', minimumFractionDigits: 2, maximumFractionDigits: 2}).format(value); return new Intl.NumberFormat('zh-CN', {
style: 'currency',
currency: 'CNY',
minimumFractionDigits: 2,
maximumFractionDigits: 2,
}).format(value)
}, },
orgNameFilter(orgId, that) { orgNameFilter(orgId, that) {
const org = that.chengJianDeptSelect?.find(item => item.value == orgId); const org = that.chengJianDeptSelect?.find((item) => item.value == orgId)
return org ? org.label : ""; return org ? org.label : ''
} },
}, },
async mounted() { async mounted() {
this.chengJianDeptSelect = await this.getChengJianDeptSelect(); this.chengJianDeptSelect = await this.getChengJianDeptSelect()
window.addEventListener('resize', () => { window.addEventListener('resize', () => {
this.set_table_height() this.set_table_height()
}) })
...@@ -828,22 +890,22 @@ export default { ...@@ -828,22 +890,22 @@ export default {
} }
}) })
}) })
getDeptOption().then(res => { getDeptOption().then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.sysDeptOptions = res.data.map(v => { this.sysDeptOptions = res.data.map((v) => {
return { return {
label: v.orgName, label: v.orgName,
value: v.orgId value: v.orgId,
} }
}) })
} }
}) })
getOrgOption().then(res => { getOrgOption().then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.sysOrgOptions = res.data.map(v => { this.sysOrgOptions = res.data.map((v) => {
return { return {
label: v.orgName, label: v.orgName,
value: v.orgId value: v.orgId,
} }
}) })
} }
...@@ -953,30 +1015,32 @@ export default { ...@@ -953,30 +1015,32 @@ export default {
customClass: 'messageClass', customClass: 'messageClass',
confirmButtonClass: 'confirmClass', confirmButtonClass: 'confirmClass',
type: 'warning', type: 'warning',
}).then(() => { })
const params = { .then(() => {
ids: [row.prjId] const params = {
} ids: [row.prjId],
deleteProjectInfoManageTable(params).then((res) => {
if (res.code == 200) {
this.get_table()
Message({
type: 'success',
message: '删除成功!',
})
} else {
Message({
type: 'error',
message: res.msg,
})
} }
deleteProjectInfoManageTable(params).then((res) => {
if (res.code == 200) {
this.get_table()
Message({
type: 'success',
message: '删除成功!',
})
} else {
Message({
type: 'error',
message: res.msg,
})
}
})
}) })
}).catch(() => { .catch(() => {
Message({ Message({
type: 'info', type: 'info',
message: '已取消', message: '已取消',
})
}) })
})
}, },
addItem() { addItem() {
//新建项目 //新建项目
...@@ -1124,12 +1188,18 @@ export default { ...@@ -1124,12 +1188,18 @@ export default {
queryProjectInfoManageTable(params).then((res) => { queryProjectInfoManageTable(params).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.loading3 = false this.loading3 = false
res.data.records.map(item => { res.data.records.map((item) => {
const resultItem1 = this.sysOrgOptions.filter(item2 => item2.value == item.manageOrgId); const resultItem1 = this.sysOrgOptions.filter(
const resultItem2 = this.sysDeptOptions.filter(item2 => item2.value == item.manageDeptId); (item2) => item2.value == item.manageOrgId,
)
const resultItem2 = this.sysDeptOptions.filter(
(item2) => item2.value == item.manageDeptId,
)
item.manageOrgId_ = resultItem1.length > 0 ? resultItem1[0].label : null; item.manageOrgId_ =
item.manageDeptId_ = resultItem2.length > 0 ? resultItem2[0].label : null; resultItem1.length > 0 ? resultItem1[0].label : null
item.manageDeptId_ =
resultItem2.length > 0 ? resultItem2[0].label : null
}) })
this.tableData3 = res.data.records this.tableData3 = res.data.records
this.pager3.current = res.data.current this.pager3.current = res.data.current
...@@ -1165,15 +1235,15 @@ export default { ...@@ -1165,15 +1235,15 @@ export default {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
let agoPrjCode, let agoPrjCode,
agoPrjId, agoPrjId,
agoPrjName, agoPrjName,
appCode, appCode,
appId, appId,
appName, appName,
buildOrg, buildOrg,
buildType, buildType,
manageDeptId, manageDeptId,
manageOrgId manageOrgId
if (this.ruleForm.let3 == 2) { if (this.ruleForm.let3 == 2) {
if (this.selectRow3.length == 0) { if (this.selectRow3.length == 0) {
Message({ Message({
...@@ -1226,9 +1296,9 @@ export default { ...@@ -1226,9 +1296,9 @@ export default {
filesValue, filesValue,
} }
const requestParams = const requestParams =
this.is_add_edit == 'add' this.is_add_edit == 'add'
? params ? params
: {...params, prjId: this.prjId} : { ...params, prjId: this.prjId }
if (this.is_add_edit == 'add') { if (this.is_add_edit == 'add') {
addProjectManageTable(requestParams).then((res) => { addProjectManageTable(requestParams).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -1308,11 +1378,17 @@ export default { ...@@ -1308,11 +1378,17 @@ export default {
querysystemInfoManageTable(params).then((res) => { querysystemInfoManageTable(params).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.loading2 = false this.loading2 = false
res.data.records.map(item => { res.data.records.map((item) => {
const resultItem1 = this.sysOrgOptions.filter(item2 => item2.value == item.manageOrgId); const resultItem1 = this.sysOrgOptions.filter(
const resultItem2 = this.sysDeptOptions.filter(item2 => item2.value == item.manageDeptId); (item2) => item2.value == item.manageOrgId,
item.manageOrgId_ = resultItem1.length > 0 ? resultItem1[0].label : null; )
item.manageDeptId_ = resultItem2.length > 0 ? resultItem2[0].label : null; const resultItem2 = this.sysDeptOptions.filter(
(item2) => item2.value == item.manageDeptId,
)
item.manageOrgId_ =
resultItem1.length > 0 ? resultItem1[0].label : null
item.manageDeptId_ =
resultItem2.length > 0 ? resultItem2[0].label : null
}) })
this.tableData2 = res.data.records this.tableData2 = res.data.records
this.pager2.current = res.data.current this.pager2.current = res.data.current
...@@ -1372,11 +1448,11 @@ export default { ...@@ -1372,11 +1448,11 @@ export default {
const search_menu_height = $('.search_menu').height() const search_menu_height = $('.search_menu').height()
const search_btn_height = $('.search_btn').outerHeight(true) const search_btn_height = $('.search_btn').outerHeight(true)
this.tableHeight = this.tableHeight =
table_container_height - table_container_height -
search_menu_height - search_menu_height -
search_btn_height - search_btn_height -
90 + 90 +
'px' 'px'
}, },
search_table() { search_table() {
//搜索 //搜索
......
...@@ -63,18 +63,10 @@ ...@@ -63,18 +63,10 @@
</div> </div>
</div> </div>
<div class="search_btn"> <div class="search_btn">
<el-button <el-button type="primary" icon="el-icon-document-add" @click="add"
type="primary"
size="medium"
icon="el-icon-document-add"
@click="add"
>新建</el-button >新建</el-button
> >
<el-button <el-button type="primary" icon="el-icon-delete" @click="moreDelete"
type="primary"
size="medium"
icon="el-icon-delete"
@click="moreDelete"
>删除</el-button >删除</el-button
> >
</div> </div>
......
...@@ -3,23 +3,22 @@ ...@@ -3,23 +3,22 @@
<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" 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>
...@@ -32,10 +31,10 @@ import ListPage from '@/components/ListPage.vue' ...@@ -32,10 +31,10 @@ 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 {getDeptOption, getOrgOption} 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',
...@@ -68,7 +67,7 @@ export default { ...@@ -68,7 +67,7 @@ export default {
element: 'el-select', // 指定elementui组件 element: 'el-select', // 指定elementui组件
placeholder: '请选择', // elementui组件属性 placeholder: '请选择', // elementui组件属性
options: this.sysOrgOptions, options: this.sysOrgOptions,
filterable: true filterable: true,
}, },
{ {
label: '业务部门', // label文字 label: '业务部门', // label文字
...@@ -76,7 +75,7 @@ export default { ...@@ -76,7 +75,7 @@ export default {
element: 'el-select', // 指定elementui组件 element: 'el-select', // 指定elementui组件
placeholder: '请选择', // elementui组件属性 placeholder: '请选择', // elementui组件属性
options: this.sysDeptOptions, options: this.sysDeptOptions,
filterable: true filterable: true,
}, },
{ {
label: '系统名称', // label文字 label: '系统名称', // label文字
...@@ -95,8 +94,8 @@ export default { ...@@ -95,8 +94,8 @@ 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: 'manageOrgName', prop: 'manageOrgName',
...@@ -107,14 +106,14 @@ export default { ...@@ -107,14 +106,14 @@ export default {
prop: 'manageDeptName', prop: 'manageDeptName',
width: '300px', width: '300px',
}, },
{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',
...@@ -132,7 +131,7 @@ export default { ...@@ -132,7 +131,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)
}, },
...@@ -141,7 +140,7 @@ export default { ...@@ -141,7 +140,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)
}, },
...@@ -150,7 +149,7 @@ export default { ...@@ -150,7 +149,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)
}, },
...@@ -159,7 +158,7 @@ export default { ...@@ -159,7 +158,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)
}, },
...@@ -168,7 +167,7 @@ export default { ...@@ -168,7 +167,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)
}, },
...@@ -177,7 +176,7 @@ export default { ...@@ -177,7 +176,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)
}, },
...@@ -235,7 +234,7 @@ export default { ...@@ -235,7 +234,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,27 +3,25 @@ ...@@ -3,27 +3,25 @@
<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" 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>
...@@ -36,10 +34,10 @@ import ListPage from '@/components/ListPage.vue' ...@@ -36,10 +34,10 @@ 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 {getDeptOption, getOrgOption} from '@/api/index' import { getDeptOption, getOrgOption } from '@/api/index'
import {completionStatus, prjPlanClass} 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',
...@@ -71,7 +69,7 @@ export default { ...@@ -71,7 +69,7 @@ export default {
element: 'el-select', // 指定elementui组件 element: 'el-select', // 指定elementui组件
placeholder: '请选择', // elementui组件属性 placeholder: '请选择', // elementui组件属性
options: this.sysOrgOptions, options: this.sysOrgOptions,
filterable: true filterable: true,
}, },
{ {
label: '业务部门', // label文字 label: '业务部门', // label文字
...@@ -79,7 +77,7 @@ export default { ...@@ -79,7 +77,7 @@ export default {
element: 'el-select', // 指定elementui组件 element: 'el-select', // 指定elementui组件
placeholder: '请选择', // elementui组件属性 placeholder: '请选择', // elementui组件属性
options: this.sysDeptOptions, options: this.sysDeptOptions,
filterable: true filterable: true,
}, },
{ {
label: '系统名称', // label文字 label: '系统名称', // label文字
...@@ -100,8 +98,8 @@ export default { ...@@ -100,8 +98,8 @@ 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: 'manageOrgName', prop: 'manageOrgName',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!