Commit bee1d4bb by xiehao

fix:删除了试用范围

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