Commit 8a4c8d85 by 史敦盼

按钮size统一

1 parent 696da117
...@@ -18,7 +18,13 @@ ...@@ -18,7 +18,13 @@
</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
type="primary"
icon="el-icon-document-add"
plain
@click="fnAdd"
>新建</el-button
>
</template> </template>
<!-- 表格插槽 --> <!-- 表格插槽 -->
<template #tableWrap> <template #tableWrap>
...@@ -29,12 +35,22 @@ ...@@ -29,12 +35,22 @@
id-key="elementId" id-key="elementId"
> >
<template #indexLevel="{ data }"> <template #indexLevel="{ data }">
<el-button v-if="data.row.indexLevel" class="detailBtn" size="medium" @click="detailBtn( data.row)">指标清单</el-button > <el-button
<span v-else>{{data.row.indexLevel}}</span> v-if="data.row.indexLevel"
class="detailBtn"
@click="detailBtn(data.row)"
>指标清单</el-button
>
<span v-else>{{ data.row.indexLevel }}</span>
</template> </template>
<template #supervName="{ data }"> <template #supervName="{ data }">
<el-button v-if="data.row.supervName" class="detailBtn" size="medium" @click="supervNameDetailBtn( data.row)">{{data.row.supervName}}</el-button > <el-button
<span v-else>{{data.row.supervName}}</span> v-if="data.row.supervName"
class="detailBtn"
@click="supervNameDetailBtn(data.row)"
>{{ data.row.supervName }}</el-button
>
<span v-else>{{ data.row.supervName }}</span>
</template> </template>
</table-config> </table-config>
</template> </template>
...@@ -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,14 +76,17 @@ ...@@ -55,14 +76,17 @@
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() {
...@@ -75,7 +99,7 @@ name: 'architectureInspectionAnalysis', ...@@ -75,7 +99,7 @@ name: 'architectureInspectionAnalysis',
placeholder: '请输入内容', // elementui组件属性 placeholder: '请输入内容', // elementui组件属性
}, },
] ]
}else{ } else {
return [ return [
{ {
label: '项目名称', // label文字 label: '项目名称', // label文字
...@@ -87,20 +111,26 @@ name: 'architectureInspectionAnalysis', ...@@ -87,20 +111,26 @@ name: 'architectureInspectionAnalysis',
} }
}, },
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', {
label: '状态',
prop: 'state',
width: '120px',
collectionType: 'stateCode', collectionType: 'stateCode',
options: stateCode,}, options: stateCode,
},
{ {
label: '操作', type: 'operation', width: '200px', label: '操作',
type: 'operation',
width: '200px',
actionButtons: [ actionButtons: [
{ {
title: '发布', title: '发布',
...@@ -125,23 +155,33 @@ name: 'architectureInspectionAnalysis', ...@@ -125,23 +155,33 @@ name: 'architectureInspectionAnalysis',
}, },
}, },
] ]
}else{ } else {
return [ return [
{ label: '序号', type: 'index', width: '80px' }, { label: '序号', type: 'index', width: '80px' },
{ label: '项目编码', prop: 'prjCode', }, { label: '项目编码', prop: 'prjCode' },
{ label: '项目名称', prop: 'prjName', }, { label: '项目名称', prop: 'prjName' },
{ label: '承建单位', prop: 'buildOrg', }, { label: '承建单位', prop: 'buildOrg' },
{ label: '督查编码', prop: 'supervId', }, { label: '督查编码', prop: 'supervId' },
{ label: '督查方案名称', prop: 'supervName', __slotName: 'supervName',}, {
label: '督查方案名称',
prop: 'supervName',
__slotName: 'supervName',
},
// { label: '指标清单', prop: 'zhibiaoqingdan', __slotName: 'zhibiaoqingdan'}, // { label: '指标清单', prop: 'zhibiaoqingdan', __slotName: 'zhibiaoqingdan'},
{ label: '项目评分', prop: 'prjScore', }, { label: '项目评分', prop: 'prjScore' },
{ label: '评审意见', prop: 'opinion', }, { label: '评审意见', prop: 'opinion' },
{ label: '评审时间', prop: 'opinionTime', }, { label: '评审时间', prop: 'opinionTime' },
{ label: '状态', prop: 'state', width: '120px', {
label: '状态',
prop: 'state',
width: '120px',
collectionType: 'stateCode', collectionType: 'stateCode',
options: stateCode,}, options: stateCode,
},
{ {
label: '操作', type: 'operation', width: '200px', label: '操作',
type: 'operation',
width: '200px',
actionButtons: [ actionButtons: [
{ {
title: '发布', title: '发布',
...@@ -169,14 +209,14 @@ name: 'architectureInspectionAnalysis', ...@@ -169,14 +209,14 @@ name: 'architectureInspectionAnalysis',
} }
}, },
}, },
data(){ data() {
return { return {
query: { query: {
url: architectureInspectionAnalysis, url: architectureInspectionAnalysis,
method: 'post', method: 'post',
queryParam: { queryParam: {
prjName: '', prjName: '',
indexLevel: "1" indexLevel: '1',
}, },
}, },
rowData: {}, rowData: {},
...@@ -190,7 +230,7 @@ name: 'architectureInspectionAnalysis', ...@@ -190,7 +230,7 @@ name: 'architectureInspectionAnalysis',
detailTitle: '', detailTitle: '',
rowData: {}, rowData: {},
detailPrjCode: '', detailPrjCode: '',
visibleDetail: false visibleDetail: false,
} }
}, },
methods: { methods: {
...@@ -199,9 +239,9 @@ name: 'architectureInspectionAnalysis', ...@@ -199,9 +239,9 @@ name: 'architectureInspectionAnalysis',
...this.query.queryParam, ...this.query.queryParam,
// ...data, // ...data,
} }
if(data){ if (data) {
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
}else{ } else {
this.$refs.Detail.search() this.$refs.Detail.search()
} }
}, },
...@@ -230,8 +270,10 @@ name: 'architectureInspectionAnalysis', ...@@ -230,8 +270,10 @@ name: 'architectureInspectionAnalysis',
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
if(this.activeName == '1'){ if (this.activeName == '1') {
this.$postRequest('/supervIndex/fb', {supervCode: row.supervCode}).then(res => { this.$postRequest('/supervIndex/fb', {
supervCode: row.supervCode,
}).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success('发布成功') this.$message.success('发布成功')
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
...@@ -239,8 +281,8 @@ name: 'architectureInspectionAnalysis', ...@@ -239,8 +281,8 @@ name: 'architectureInspectionAnalysis',
this.$message.error(res.msg) this.$message.error(res.msg)
} }
}) })
}else{ } else {
this.$postRequest('/supervAnalysis/fb', {...row}).then(res => { this.$postRequest('/supervAnalysis/fb', { ...row }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success('发布成功') this.$message.success('发布成功')
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
...@@ -259,7 +301,9 @@ name: 'architectureInspectionAnalysis', ...@@ -259,7 +301,9 @@ name: 'architectureInspectionAnalysis',
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
this.$postRequest('/supervIndex/del', {supervCode: row.supervCode}).then(res => { this.$postRequest('/supervIndex/del', {
supervCode: row.supervCode,
}).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success('删除成功') this.$message.success('删除成功')
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
...@@ -271,9 +315,9 @@ name: 'architectureInspectionAnalysis', ...@@ -271,9 +315,9 @@ name: 'architectureInspectionAnalysis',
.catch(() => {}) .catch(() => {})
}, },
handleClick(tab, event) { handleClick(tab, event) {
if(tab.name == '1'){ if (tab.name == '1') {
this.query.url = architectureInspectionAnalysis this.query.url = architectureInspectionAnalysis
}else{ } else {
this.query.url = selectSupervAnalysis this.query.url = selectSupervAnalysis
} }
this.querySearch() this.querySearch()
...@@ -287,34 +331,34 @@ name: 'architectureInspectionAnalysis', ...@@ -287,34 +331,34 @@ name: 'architectureInspectionAnalysis',
fnEdit(row, detailtitle) { fnEdit(row, detailtitle) {
this.rowData = row this.rowData = row
this.visible = true this.visible = true
if(detailtitle == '指标清单'){ if (detailtitle == '指标清单') {
this.dialogTitle = '编辑督查指标' this.dialogTitle = '编辑督查指标'
this.rowData.tab = 'one' this.rowData.tab = 'one'
}else{ } else {
this.dialogTitle = '编辑督查指标' this.dialogTitle = '编辑督查指标'
this.rowData.tab = 'two' this.rowData.tab = 'two'
} }
}, },
// 督查清单 详情 // 督查清单 详情
detailBtn(v){ detailBtn(v) {
this.detailTitle = '' this.detailTitle = ''
this.visibleDetail = true this.visibleDetail = true
this.detailTitle = '指标清单' // tab1 this.detailTitle = '指标清单' // tab1
this.detailPrjCode = v.supervCode this.detailPrjCode = v.supervCode
}, },
// 督查名称 详情 // 督查名称 详情
supervNameDetailBtn(v){ supervNameDetailBtn(v) {
this.detailTitle = '' this.detailTitle = ''
this.visibleDetail = true this.visibleDetail = true
this.detailTitle = '督查名称' // tab2 this.detailTitle = '督查名称' // tab2
this.detailPrjCode = v.supervId 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;
......
...@@ -14,11 +14,21 @@ ...@@ -14,11 +14,21 @@
</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
type="primary"
icon="el-icon-document-add"
plain
@click="fnAdd"
>添加</el-button
>
</template> </template>
<!-- 表格插槽 --> <!-- 表格插槽 -->
<template #tableWrap> <template #tableWrap>
...@@ -34,7 +44,8 @@ ...@@ -34,7 +44,8 @@
<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 = {
...@@ -194,27 +211,29 @@ export default { ...@@ -194,27 +211,29 @@ export 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>
......
...@@ -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>
...@@ -25,11 +41,17 @@ ...@@ -25,11 +41,17 @@
: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,
} }
}, },
...@@ -188,7 +211,7 @@ export default { ...@@ -188,7 +211,7 @@ export default {
...row, ...row,
state: 2, state: 2,
} }
this.$postRequest('/collect/fb', {...row}).then(res => { this.$postRequest('/collect/fb', { ...row }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success('发布成功') this.$message.success('发布成功')
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
...@@ -197,8 +220,7 @@ export default { ...@@ -197,8 +220,7 @@ export default {
} }
}) })
}) })
.catch(() => { .catch(() => {})
})
}, },
fnDel(row) { fnDel(row) {
this.$confirm('是否确认删除?', '提示', { this.$confirm('是否确认删除?', '提示', {
...@@ -211,17 +233,18 @@ export default { ...@@ -211,17 +233,18 @@ export default {
...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>
......
...@@ -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,16 +60,31 @@ ...@@ -60,16 +60,31 @@
<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>
...@@ -77,8 +92,8 @@ ...@@ -77,8 +92,8 @@
<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>
...@@ -114,8 +113,8 @@ ...@@ -114,8 +113,8 @@
<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
......
...@@ -38,15 +38,18 @@ ...@@ -38,15 +38,18 @@
: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"
class="detailBtn"
@click="fnEdit(data.row, true)"
>{{ data.row.prjName }}</el-button
>
<span v-else>{{ data.row.prjName }}</span>
</template> </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
} }
}, },
......
...@@ -11,11 +11,21 @@ ...@@ -11,11 +11,21 @@
<list-page> <list-page>
<!-- 查询表单插槽 --> <!-- 查询表单插槽 -->
<template #formWrap> <template #formWrap>
<SearchForm ref="searchForm" @onSearch="querySearch" :form-options="formOptions" /> <SearchForm
ref="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>
...@@ -25,7 +35,7 @@ ...@@ -25,7 +35,7 @@
:query="query" :query="query"
:columns="columns" :columns="columns"
id-key="elementId" id-key="elementId"
:hasPagination='false' :hasPagination="false"
> >
</table-config> </table-config>
</template> </template>
...@@ -37,7 +47,7 @@ ...@@ -37,7 +47,7 @@
:visible.sync="addVisible" :visible.sync="addVisible"
:row-data="addRowData" :row-data="addRowData"
:title="dialogTitle" :title="dialogTitle"
:dictId='rowData.id' :dictId="rowData.id"
/> />
</div> </div>
</template> </template>
...@@ -87,12 +97,17 @@ export default { ...@@ -87,12 +97,17 @@ export default {
columns() { columns() {
return [ return [
{ label: '序号', type: 'index', width: '80px' }, { label: '序号', type: 'index', width: '80px' },
{ label: '字典描述', prop: 'label'}, { label: '字典描述', prop: 'label' },
{ label: '字典值', prop: 'value', width: '150px',}, { label: '字典值', prop: 'value', width: '150px' },
{ label: '等级', prop: 'grade', width: '150px' }, { label: '等级', prop: 'grade', width: '150px' },
{ label: '排序', prop: 'sort', width: '80px' }, { label: '排序', prop: 'sort', width: '80px' },
{ label: '启用状态', prop: 'flag', width: '120px', collectionType: 'flag', {
options: flag, }, label: '启用状态',
prop: 'flag',
width: '120px',
collectionType: 'flag',
options: flag,
},
{ label: '描述', prop: 'remark' }, { label: '描述', prop: 'remark' },
{ {
label: '操作', label: '操作',
...@@ -145,7 +160,7 @@ export default { ...@@ -145,7 +160,7 @@ export default {
}, },
}, },
}, },
data(){ data() {
return { return {
query: { query: {
url: dictionaryMaintenanceSearch, url: dictionaryMaintenanceSearch,
...@@ -191,14 +206,16 @@ export default { ...@@ -191,14 +206,16 @@ export default {
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
this.$postRequestShared('/dictDetail/phyDel', {id: row.id}).then(res => { this.$postRequestShared('/dictDetail/phyDel', { 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(() => {})
}, },
...@@ -207,7 +224,7 @@ export default { ...@@ -207,7 +224,7 @@ export default {
this.addRowData = row this.addRowData = row
this.addVisible = true this.addVisible = true
}, },
fnEnable(row){ fnEnable(row) {
let title = row.flag ? '启用' : '禁用' let title = row.flag ? '启用' : '禁用'
this.$confirm('是否确认?' + title, '提示', { this.$confirm('是否确认?' + title, '提示', {
confirmButtonText: '确认', confirmButtonText: '确认',
...@@ -215,14 +232,16 @@ export default { ...@@ -215,14 +232,16 @@ export default {
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
this.$postRequestShared('/dictDetail/delete', {id: row.id}).then(res => { this.$postRequestShared('/dictDetail/delete', { id: row.id }).then(
(res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success(title + '成功') this.$message.success(title + '成功')
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
} else { } else {
this.$message.error(title + '失败') this.$message.error(title + '失败')
} }
}) },
)
}) })
.catch(() => {}) .catch(() => {})
}, },
...@@ -232,15 +251,15 @@ export default { ...@@ -232,15 +251,15 @@ export default {
this.$refs.searchForm.onReset() this.$refs.searchForm.onReset()
}) })
this.query.queryParam.dictId = this.rowData.id 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;
} }
} }
......
...@@ -7,7 +7,13 @@ ...@@ -7,7 +7,13 @@
</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>
...@@ -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>
...@@ -70,12 +80,17 @@ export default { ...@@ -70,12 +80,17 @@ export default {
columns() { columns() {
return [ return [
{ label: '序号', type: 'index', width: '80px' }, { label: '序号', type: 'index', width: '80px' },
{ label: '字典名称', prop: 'name', minWidth: '150px',}, { label: '字典名称', prop: 'name', minWidth: '150px' },
{ label: '字典标识', prop: 'typeValue', minWidth: '150px',}, { label: '字典标识', prop: 'typeValue', minWidth: '150px' },
{ label: '描述', prop: 'remark', minWidth: '150px' }, { label: '描述', prop: 'remark', minWidth: '150px' },
{ label: '排序', prop: 'sort', width: '80px' }, { label: '排序', prop: 'sort', width: '80px' },
{ label: '启用状态', prop: 'delFlag', width: '120px', collectionType: 'delFlag', {
options: delFlag, }, label: '启用状态',
prop: 'delFlag',
width: '120px',
collectionType: 'delFlag',
options: delFlag,
},
{ label: '创建日期', prop: 'createTime', width: '120px' }, { label: '创建日期', prop: 'createTime', width: '120px' },
// { label: '创建人', prop: 'createMan', }, // { label: '创建人', prop: 'createMan', },
// { label: '最终修改时间', prop: 'lastUpdateTime', }, // { label: '最终修改时间', prop: 'lastUpdateTime', },
...@@ -130,12 +145,12 @@ export default { ...@@ -130,12 +145,12 @@ export default {
] ]
}, },
}, },
data(){ data() {
return { return {
query: { query: {
url: dictionarySearch, url: dictionarySearch,
method: 'post', method: 'post',
queryParam: { }, queryParam: {},
}, },
visible: false, // 新增 修改 visible: false, // 新增 修改
rowData: {}, rowData: {},
...@@ -180,14 +195,16 @@ export default { ...@@ -180,14 +195,16 @@ export default {
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
this.$postRequestShared('/dict/phyDel', {id: row.id}).then(res => { this.$postRequestShared('/dict/phyDel', { 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(() => {})
}, },
...@@ -196,11 +213,11 @@ export default { ...@@ -196,11 +213,11 @@ export default {
this.rowData = row this.rowData = row
this.visible = true this.visible = true
}, },
fnMaintenance(row){ fnMaintenance(row) {
this.maintenanceVisible = true this.maintenanceVisible = true
this.rowData = row this.rowData = row
}, },
fnDisabled(row){ fnDisabled(row) {
let title = row.delFlag == 1 ? '启用' : '禁用' let title = row.delFlag == 1 ? '启用' : '禁用'
this.$confirm(`是否确认${title}?`, '提示', { this.$confirm(`是否确认${title}?`, '提示', {
confirmButtonText: '确认', confirmButtonText: '确认',
...@@ -208,23 +225,21 @@ export default { ...@@ -208,23 +225,21 @@ export default {
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
this.$postRequestShared('/dict/delete', {id: row.id}).then(res => { this.$postRequestShared('/dict/delete', { id: row.id }).then(
(res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success( title + '成功') this.$message.success(title + '成功')
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
} else { } else {
this.$message.error(title + '失败') this.$message.error(title + '失败')
} }
}) },
)
}) })
.catch(() => {}) .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) => {
......
...@@ -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,14 +3,13 @@ ...@@ -3,14 +3,13 @@
<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>
...@@ -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,19 +3,17 @@ ...@@ -3,19 +3,17 @@
<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>
...@@ -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!