Commit 6fb5fd86 by xiehao

fix:修改了建设单位

1 parent d9d79fc5
......@@ -14,7 +14,7 @@
</template>
<!-- 查询表单插槽 -->
<template #formWrap>
<SearchForm @onSearch="querySearch" :form-options="formOptions" />
<SearchForm @onSearch="querySearch" :form-options="formOptions"/>
</template>
<!-- 中部操作按钮 -->
<template #operationWrap v-if="activeName == '1'">
......@@ -23,7 +23,8 @@
icon="el-icon-document-add"
plain
@click="fnAdd"
>新建</el-button
>新建
</el-button
>
</template>
<!-- 表格插槽 -->
......@@ -39,7 +40,8 @@
v-if="data.row.indexLevel"
class="detailBtn"
@click="detailBtn(data.row)"
>指标清单</el-button
>指标清单
</el-button
>
<span v-else>{{ data.row.indexLevel }}</span>
</template>
......@@ -48,7 +50,8 @@
v-if="data.row.supervName"
class="detailBtn"
@click="supervNameDetailBtn(data.row)"
>{{ data.row.supervName }}</el-button
>{{ data.row.supervName }}
</el-button
>
<span v-else>{{ data.row.supervName }}</span>
</template>
......@@ -76,18 +79,17 @@
import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue'
import TableConfig from '@/views/collectDataConfiguration/TableConfig.vue'
import {
architectureInspectionAnalysis,
selectSupervAnalysis,
} from '@/api/architectureInspection'
import { stateCode } from '@/utils/architectureInspectionDis'
import {architectureInspectionAnalysis, selectSupervAnalysis,} from '@/api/architectureInspection'
import {stateCode} from '@/utils/architectureInspectionDis'
import Add from './Add.vue'
import Detail from './Detail.vue'
import {getDictTypeOptions} from "@/utils";
import {getDeptOption, getOrgOption} from "@/api";
export default {
name: 'architectureInspectionAnalysis',
components: { ListPage, SearchForm, TableConfig, Add, Detail },
components: {ListPage, SearchForm, TableConfig, Add, Detail},
computed: {
formOptions() {
if (this.activeName === '1') {
......@@ -113,13 +115,13 @@ export default {
columns() {
if (this.activeName === '1') {
return [
{ label: '序号', type: 'index', width: '80px' },
{ label: '督查方案名称', prop: 'supervName' },
{ label: '督查编码', prop: 'supervCode' },
{ label: '指标名称', prop: 'indexName' },
{ label: '指标清单', prop: 'indexLevel', __slotName: 'indexLevel' },
{ label: '指标权重', prop: 'weight' },
{ label: '创建时间', prop: 'createTime' },
{label: '序号', type: 'index', width: '80px'},
{label: '督查方案名称', prop: 'supervName'},
{label: '督查编码', prop: 'supervCode'},
{label: '指标名称', prop: 'indexName'},
{label: '指标清单', prop: 'indexLevel', __slotName: 'indexLevel'},
{label: '指标权重', prop: 'weight'},
{label: '创建时间', prop: 'createTime'},
{
label: '状态',
prop: 'state',
......@@ -157,20 +159,26 @@ export default {
]
} else {
return [
{ label: '序号', type: 'index', width: '80px' },
{ label: '项目编码', prop: 'prjCode' },
{ label: '项目名称', prop: 'prjName' },
{ label: '承建单位', prop: 'buildOrg' },
{ label: '督查编码', prop: 'supervId' },
{label: '序号', type: 'index', width: '80px'},
{label: '项目编码', prop: 'prjCode'},
{label: '项目名称', prop: 'prjName'},
{
label: '承建单位',
prop: 'buildOrg',
options: this.sysBuildOrgOptions,
collectionType: true,
width: '300px',
},
{label: '督查编码', prop: 'supervId'},
{
label: '督查方案名称',
prop: 'supervName',
__slotName: 'supervName',
},
// { label: '指标清单', prop: 'zhibiaoqingdan', __slotName: 'zhibiaoqingdan'},
{ label: '项目评分', prop: 'prjScore' },
{ label: '评审意见', prop: 'opinion' },
{ label: '评审时间', prop: 'opinionTime' },
{label: '项目评分', prop: 'prjScore'},
{label: '评审意见', prop: 'opinion'},
{label: '评审时间', prop: 'opinionTime'},
{
label: '状态',
prop: 'state',
......@@ -222,8 +230,8 @@ export default {
rowData: {},
activeName: '1',
tabOptions: [
{ label: '督查指标模型管理', name: '1' },
{ label: '架构督查分析', name: '2' },
{label: '督查指标模型管理', name: '1'},
{label: '架构督查分析', name: '2'},
],
visible: false,
dialogTitle: '',
......@@ -231,9 +239,18 @@ export default {
rowData: {},
detailPrjCode: '',
visibleDetail: false,
sysBuildOrgOptions: [],
}
},
created() {
this.getDicts()
},
methods: {
getDicts() {
getDictTypeOptions('build_company').then((res) => {
this.sysBuildOrgOptions = res
})
},
querySearch(data = true) {
this.query.queryParam = {
...this.query.queryParam,
......@@ -282,7 +299,7 @@ export default {
}
})
} else {
this.$postRequest('/supervAnalysis/fb', { ...row }).then((res) => {
this.$postRequest('/supervAnalysis/fb', {...row}).then((res) => {
if (res.code === 200) {
this.$message.success('发布成功')
this.$refs.searchTable.queryData()
......@@ -292,7 +309,8 @@ export default {
})
}
})
.catch(() => {})
.catch(() => {
})
},
fnDel(row) {
this.$confirm('是否确认删除?', '提示', {
......@@ -302,7 +320,7 @@ export default {
})
.then(() => {
this.$postRequest('/supervIndex/del', {
supervCode: row.supervCode,
id: row.id,
}).then((res) => {
if (res.code === 200) {
this.$message.success('删除成功')
......@@ -312,7 +330,8 @@ export default {
}
})
})
.catch(() => {})
.catch(() => {
})
},
handleClick(tab, event) {
if (tab.name == '1') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!