Commit 0ab3a26b by xiehao

fix:删除了试用范围

1 parent e0e9fa25
...@@ -12,15 +12,15 @@ ...@@ -12,15 +12,15 @@
<list-page> <list-page>
<!-- 查询表单插槽 --> <!-- 查询表单插槽 -->
<template #formWrap> <template #formWrap>
<SearchForm @onSearch="querySearch" :form-options="formOptions" /> <SearchForm @onSearch="querySearch" :form-options="formOptions"/>
</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>
...@@ -32,9 +32,10 @@ ...@@ -32,9 +32,10 @@
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 '@/components/TableConfig.vue' import TableConfig from '@/components/TableConfig.vue'
import { updReportManage, delReportManage } from '@/api/index.js' import {queryArchitectureFollowExamine} from '@/api/interface'
import { queryArchitectureFollowExamine } from '@/api/interface' import {buildType} from '@/utils/dictionary'
import { buildType } from '@/utils/dictionary' import {getDictTypeOptions} from "@/utils";
export default { export default {
name: 'architectureFollowExamine', name: 'architectureFollowExamine',
components: { components: {
...@@ -54,6 +55,7 @@ export default { ...@@ -54,6 +55,7 @@ export default {
rowData: {}, rowData: {},
dialogTitle: '', dialogTitle: '',
approvalVisible: false, approvalVisible: false,
sysBuildOrgOptions: []
} }
}, },
computed: { computed: {
...@@ -77,7 +79,7 @@ export default { ...@@ -77,7 +79,7 @@ export default {
}, },
columns() { columns() {
return [ return [
{ label: '序号', type: 'index', width: '80px' }, {label: '序号', type: 'index', width: '80px'},
{ {
label: '系统名称', label: '系统名称',
prop: 'appName', prop: 'appName',
...@@ -91,21 +93,20 @@ export default { ...@@ -91,21 +93,20 @@ export default {
}, },
{ {
label: '项目名称', label: '项目名称',
prop: 'projectName', prop: 'prjName',
}, },
{ {
label: '承建单位', label: '承建单位',
prop: 'buildOrgName', prop: 'buildOrg',
options: this.sysBuildOrgOptions,
collectionType: true,
width: '300px',
}, },
{ {
label: '项目经理', label: '项目经理',
prop: 'projectManager', prop: 'projectManager',
}, },
{ {
label: '创建人',
prop: 'createMan',
},
{
label: '创建时间', label: '创建时间',
prop: 'createTime', prop: 'createTime',
}, },
...@@ -129,7 +130,9 @@ export default { ...@@ -129,7 +130,9 @@ export default {
] ]
}, },
}, },
created() {}, created() {
this.getDicts()
},
methods: { methods: {
querySearch(data) { querySearch(data) {
this.query.queryParam = { this.query.queryParam = {
...@@ -138,6 +141,11 @@ export default { ...@@ -138,6 +141,11 @@ export default {
} }
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
}, },
getDicts() {
getDictTypeOptions('build_company').then((res) => {
this.sysBuildOrgOptions = res
})
},
/** /**
* @description: 操作按钮 * @description: 操作按钮
* @param {Object} row 当前操作行数据 * @param {Object} row 当前操作行数据
......
<template> <template>
<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"
> >
<el-form :inline="true" id="addForm" ref="addForm" :model="formInfo" label-width="auto" style="text-align: left;"> <el-form :inline="true" id="addForm" ref="addForm" :model="formInfo" label-width="auto" style="text-align: left;">
<el-form-item label="政策名称" prop="policyName"> <el-form-item label="政策名称" prop="policyName">
<el-input v-model="formInfo.policyName" size="small" placeholder="请输入内容" > </el-input> <el-input v-model="formInfo.policyName" size="small" placeholder="请输入内容"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="" prop=""> <el-form-item label="" prop="">
<el-button type="primary" @click="querySearch" size="mini" >查询</el-button > <el-button type="primary" @click="querySearch" size="mini">查询</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<table-config <table-config
ref="searchTable" ref="searchTable"
:query="query" :query="query"
:columns="columns" :columns="columns"
id-key="elementId" id-key="elementId"
@selection-change="selectionChange" @selection-change="selectionChange"
> >
</table-config> </table-config>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="handleSubmit" size="mini" >保 存</el-button > <el-button type="primary" @click="handleSubmit" size="mini">保 存</el-button>
<el-button @click="handleClose()" size="mini">取 消</el-button> <el-button @click="handleClose()" size="mini">取 消</el-button>
</span> </span>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import TableConfig from '@/views/collectDataConfiguration/TableConfig.vue' import TableConfig from '@/views/collectDataConfiguration/TableConfig.vue'
import { artPolicyExamineAdd } from '@/api/architectureInspection' import {artPolicyExamineAdd} from '@/api/architectureInspection'
import {getDictTypeOptions} from "@/utils";
export default { export default {
components: { TableConfig }, components: {TableConfig},
props: { props: {
title: { title: {
type: String, type: String,
default: '', default: '',
},
prjCodeDetail: {
type: String,
default: '',
},
visible: {
type: Boolean,
default: false,
},
}, },
computed: { prjCodeDetail: {
columns() { type: String,
let arr = [ default: '',
{ type: 'selection',prop: 'selection', width: '55px' },
{ 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', },
]
return arr
},
showDialog: {
get() {
return this.visible
},
set(value) {
this.$emit('update:visible', value)
},
}
}, },
data(){ visible: {
return { type: Boolean,
formInfo: { default: false,
policyName: '',
},
query: {
url: artPolicyExamineAdd,
method: 'post',
queryParam: {
policyName: '',
state: '1'
},
},
selectId: '',
}
}, },
methods: { },
querySearch(data) { computed: {
this.query.queryParam = { columns() {
...this.query.queryParam, let arr = [
...data, {type: 'selection', prop: 'selection', width: '55px'},
} {label: '序号', type: 'index', width: '80px'},
this.query.queryParam.policyName = this.forEach.policyName {label: '政策名称', prop: 'policyName', width: '100px'},
{label: '政策描述', prop: 'policyContent',},
this.$refs.searchTable.queryData() {
}, label: '适用范围',
selectionChange(data) { prop: 'scope',
let idArr = [] options: this.sysBuildOrgOptions,
data.forEach(item => { collectionType: true,
idArr.push(item.policyCode) width: '300px',
})
this.selectId = idArr.join(',')
},
handleSubmit(){
const loading = this.$loading({
lock: true,
text: '保存中',
spinner: 'el-icon-loading',
})
this.$postRequest('/klTechPolicyCheck/ad/', {policyCode: this.selectId, state: '1'}).then(res => {
if (res.code === 200) {
loading.close()
this.$message.success('保存成功')
this.handleClose()
this.$emit('querySearch')
}
})
},
handleClose() {
this.showDialog = false
}, },
async handleOpen() { {label: '发布部门', prop: 'deptName',},
this.$nextTick(() => { {label: '级别', prop: 'level',},
this.$refs.searchTable.clearSelection() {label: '启用时间', prop: 'startTime',},
}) {label: '创建时间', prop: 'createTime',},
]
return arr
},
showDialog: {
get() {
return this.visible
},
set(value) {
this.$emit('update:visible', value)
},
}
},
data() {
return {
formInfo: {
policyName: '',
},
query: {
url: artPolicyExamineAdd,
method: 'post',
queryParam: {
policyName: '',
state: '1'
}, },
},
selectId: '',
sysBuildOrgOptions: [],
} }
},
created() {
this.getDicts();
},
methods: {
getDicts() {
getDictTypeOptions('tech_policy_scope').then((res) => {
this.sysBuildOrgOptions = res
})
},
querySearch(data) {
this.query.queryParam = {
...this.query.queryParam,
...data,
}
this.query.queryParam.policyName = this.forEach.policyName
this.$refs.searchTable.queryData()
},
selectionChange(data) {
let idArr = []
data.forEach(item => {
idArr.push(item.policyCode)
})
this.selectId = idArr.join(',')
},
handleSubmit() {
const loading = this.$loading({
lock: true,
text: '保存中',
spinner: 'el-icon-loading',
})
this.$postRequest('/klTechPolicyCheck/ad/', {policyCode: this.selectId, state: '1'}).then(res => {
if (res.code === 200) {
loading.close()
this.$message.success('保存成功')
this.handleClose()
this.$emit('querySearch')
}
})
},
handleClose() {
this.showDialog = false
},
async handleOpen() {
this.$nextTick(() => {
this.$refs.searchTable.clearSelection()
})
},
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/elementui.scss'; @import '@/styles/elementui.scss';
::v-deep .el-dialog__body{
height: 58vh; ::v-deep .el-dialog__body {
height: 58vh;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!