Commit 0ab3a26b by xiehao

fix:删除了试用范围

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