Commit bee1d4bb by xiehao

fix:删除了试用范围

1 parent 0ab3a26b
......@@ -20,7 +20,7 @@ export const artPolicyExamine = EADC_ARRCHITECTURE + '/klTechPolicyCheck/'
export const artPolicyExamineAdd = EADC_KNOWLEDGE_POOL + '/kl-tech-policy/'
// 审查 查询
export const examineSearch = EADC_ARRCHITECTURE + '/prj-info/'
export const examineSearch = EADC_ARRCHITECTURE + '/klTechPolicyCheck/qu'
// 字典管理
export const dictionarySearch = EADC_SHARED_ABILITY + '/dict/'
......
......@@ -4,10 +4,10 @@
<template #tabWrap>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane
:label="item.label"
:name="item.name"
v-for="item in tabOptions"
:key="item.name"
:label="item.label"
:name="item.name"
v-for="item in tabOptions"
:key="item.name"
>
</el-tab-pane>
</el-tabs>
......@@ -15,36 +15,37 @@
<!-- 查询表单插槽 -->
<template #formWrap>
<SearchForm
ref="SearchForm"
@onSearch="querySearch"
:form-options="formOptions"
ref="SearchForm"
@onSearch="querySearch"
:form-options="formOptions"
/>
</template>
<!-- 中部操作按钮 -->
<template #operationWrap v-if="activeName == '1'">
<el-button
type="primary"
icon="el-icon-document-add"
plain
@click="fnAdd"
>添加</el-button
type="primary"
icon="el-icon-document-add"
plain
@click="fnAdd"
>添加
</el-button
>
</template>
<!-- 表格插槽 -->
<template #tableWrap>
<table-config
ref="searchTable"
:query="query"
:columns="columns"
id-key="elementId"
ref="searchTable"
:query="query"
:columns="columns"
id-key="elementId"
>
</table-config>
</template>
</list-page>
<AddTabelList
@querySearch="querySearch"
:visible.sync="visible"
:title="dialogTitle"
@querySearch="querySearch"
:visible.sync="visible"
:title="dialogTitle"
/>
</div>
</template>
......@@ -54,11 +55,13 @@ import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue'
import TableConfig from '@/views/collectDataConfiguration/TableConfig.vue'
import AddTabelList from './AddTabelList.vue'
import { artPolicyExamine, examineSearch } from '@/api/architectureInspection'
import {artPolicyExamine, examineSearch} from '@/api/architectureInspection'
import {getDictTypeOptions} from "@/utils";
import {buildType, prjPlanClass} from "@/utils/dictionary";
export default {
name: 'artPolicyExamine',
components: { ListPage, SearchForm, TableConfig, AddTabelList },
components: {ListPage, SearchForm, TableConfig, AddTabelList},
data() {
return {
selectRows: [],
......@@ -68,14 +71,15 @@ export default {
queryParam: {},
},
activeName: this.$route.query.activeName
? this.$route.query.activeName
: '1',
? this.$route.query.activeName
: '1',
tabOptions: [
{ label: '技术政策', name: '1' },
{ label: '审查', name: '2' },
{label: '技术政策', name: '1'},
{label: '审查', name: '2'},
],
visible: false,
dialogTitle: '',
sysBuildOrgOptions: []
}
},
computed: {
......@@ -103,17 +107,33 @@ export default {
columns() {
if (this.activeName == '2') {
return [
{ label: '序号', type: 'index', width: '80px' },
{ label: '单位', prop: 'manageOrgId', width: '100px' },
{ label: '部门', prop: 'manageDeptId', width: '100px' },
{ label: '系统名称', prop: 'appName' },
{ label: '建设类型', prop: 'buildType', width: '100px' },
{ label: '项目名称', prop: 'prjName' },
{ label: '项目类型', prop: 'prjPlanClass', width: '100px' },
{ label: '承建单位', prop: 'buildOrg', width: '100px' },
{ label: '项目经理', prop: 'projectManager', width: '100px' },
{ label: '创建人', prop: 'createMan', width: '100px' },
{ label: '创建时间', prop: 'createTime', width: '100px' },
{label: '序号', type: 'index', width: '80px'},
{label: '单位', prop: 'manageOrgName', width: '200px'},
{label: '部门', prop: 'manageDeptName', width: '200px'},
{label: '系统名称', prop: 'appName'},
{
label: '建设类型',
width: '100px',
prop: 'buildType',
options: buildType,
collectionType: 'buildType',
},
{label: '项目名称', prop: 'prjName'},
{
label: '是否续建',
prop: 'prjPlanClass',
options: prjPlanClass,
collectionType: 'prjPlanClass',
},
{
label: '承建单位',
prop: 'buildOrg',
options: this.sysBuildOrgOptions,
collectionType: true,
width: '300px',
},
{label: '项目经理', prop: 'projectManager', width: '100px'},
{label: '创建时间', prop: 'createTime', width: '100px'},
{
label: '操作',
type: 'operation',
......@@ -134,15 +154,20 @@ export default {
]
} else {
return [
{ label: '序号', type: 'index', width: '80px' },
{ label: '政策名称', prop: 'policyName', width: '100px' },
{ label: '政策描述', prop: 'policyContent' },
{ label: '适用范围', prop: 'scope_' },
{ label: '发布部门', prop: 'deptName' },
{ label: '级别', prop: 'level_' },
{ label: '启用时间', prop: 'startTime' },
{ label: '创建人', prop: 'createMan' },
{ label: '创建时间', prop: 'createTime' },
{label: '序号', type: 'index', width: '80px'},
{label: '政策名称', prop: 'policyName', width: '100px'},
{label: '政策描述', prop: 'policyContent'},
{
label: '适用范围',
prop: 'scope',
options: this.sysBuildOrgOptions,
collectionType: true,
width: '300px',
},
{label: '发布部门', prop: 'deptName'},
{label: '级别', prop: 'level'},
{label: '启用时间', prop: 'startTime'},
{label: '创建时间', prop: 'createTime'},
{
label: '操作',
type: 'operation',
......@@ -164,7 +189,18 @@ export default {
}
},
},
created() {
this.getDicts()
},
methods: {
getDicts() {
getDictTypeOptions('tech_policy_scope').then((res) => {
this.sysBuildOrgOptions = res
});
getDictTypeOptions('build_company').then((res) => {
this.sysBuildOrgOptions = res
})
},
querySearch(data) {
if (this.activeName == '1') {
this.query.url = artPolicyExamine
......@@ -220,19 +256,20 @@ export default {
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
this.$postRequest('/klTechPolicyCheck/del/', { id: row.id }).then(
(res) => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
},
)
})
.catch(() => {})
.then(() => {
this.$postRequest('/klTechPolicyCheck/del/', {id: row.id}).then(
(res) => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
} else {
this.$message.error(res.msg)
}
},
)
})
.catch(() => {
})
},
},
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!