Commit 6b3cf932 by xiehao

fix:选择系统后重置筛选条件

1 parent a799dbcb
...@@ -711,6 +711,15 @@ export function addBatchPlan(params) { ...@@ -711,6 +711,15 @@ export function addBatchPlan(params) {
export function editBatchPlan(params) { export function editBatchPlan(params) {
return post(EADC_ARRCHITECTURE + '/bat-plan-info/upd', params) return post(EADC_ARRCHITECTURE + '/bat-plan-info/upd', params)
} }
// 审批批次计划
export function approveBatchPlan(params) {
return post(EADC_ARRCHITECTURE + '/bat-plan-info/ae', params)
}
// 提交批次计划
export function postBatchPlan(params) {
return post(EADC_ARRCHITECTURE + '/bat-plan-info/pt', params)
}
// 导出重复建设风险报告 // 导出重复建设风险报告
export function exportRiskReport(params) { export function exportRiskReport(params) {
return download(EADC_ARRCHITECTURE + '/prel-des-rvw/exportRiskReport', params) return download(EADC_ARRCHITECTURE + '/prel-des-rvw/exportRiskReport', params)
......
...@@ -8,15 +8,13 @@ ...@@ -8,15 +8,13 @@
size="medium" size="medium"
@click="operation('open_add_dialog1', null)" @click="operation('open_add_dialog1', null)"
>选择系统 >选择系统
</el-button </el-button>
>
<el-button <el-button
type="primary" type="primary"
size="medium" size="medium"
@click="operation('open_add_dialog2', null)" @click="operation('open_add_dialog2', null)"
>选择项目 >选择项目
</el-button </el-button>
>
<div <div
style="margin-left: 20px; margin-right: 20px" style="margin-left: 20px; margin-right: 20px"
v-if="showSelectTitle.title" v-if="showSelectTitle.title"
...@@ -33,8 +31,7 @@ ...@@ -33,8 +31,7 @@
size="medium" size="medium"
@click="operation('open_add_dialog4', null)" @click="operation('open_add_dialog4', null)"
>维护资产要素 >维护资产要素
</el-button </el-button>
>
</div> </div>
</el-card> </el-card>
<div class="archiAssetsManageContainer"> <div class="archiAssetsManageContainer">
...@@ -858,25 +855,25 @@ ...@@ -858,25 +855,25 @@
<script> <script>
import ChooseSvg from '@/views/busi-assets-list/ChooseSvg.vue' import ChooseSvg from '@/views/busi-assets-list/ChooseSvg.vue'
import { import {
querysystemInfoManageTable,
queryProjectInfoManageTable,
getDianXingAnLiSelectData,
queryZiChanJiaGouZuJianLeiXing,
getArchiViewManage,
getTotalZiChanJiaGouTable,
queryZuJianLeiXingBelongForm,
deleteSystemTable,
addSystemTable, addSystemTable,
editSystemTable,
archiIntelligenceSearchTreeNew, archiIntelligenceSearchTreeNew,
systemArchiSaveFactor, deleteSystemTable,
getQryByTree, editSystemTable,
getArchiViewManage,
getDeptOption, getDeptOption,
getDianXingAnLiSelectData,
getOrgOption, getOrgOption,
getPreArc, getPreArc,
getQryByTree,
getTotalZiChanJiaGouTable,
queryProjectInfoManageTable,
querysystemInfoManageTable,
queryZiChanJiaGouZuJianLeiXing,
queryZuJianLeiXingBelongForm,
systemArchiSaveFactor,
} from '@/api/index.js' } from '@/api/index.js'
import $ from 'jquery' import $ from 'jquery'
import {MessageBox, Message} from 'element-ui' import {Message, MessageBox} from 'element-ui'
import {getDictTypeOptions} from '@/utils' import {getDictTypeOptions} from '@/utils'
import {archiEleColor} from '@/config/index.js' import {archiEleColor} from '@/config/index.js'
......
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
<script> <script>
import Form from '@/components/Form.vue' import Form from '@/components/Form.vue'
import { addBatchPlan, editBatchPlan } from '@/api' import {addBatchPlan, editBatchPlan} from '@/api'
export default { export default {
props: { props: {
title: { title: {
...@@ -39,7 +40,8 @@ export default { ...@@ -39,7 +40,8 @@ export default {
}, },
rowData: { rowData: {
type: Object, type: Object,
default: () => {}, default: () => {
},
}, },
}, },
data() { data() {
...@@ -56,17 +58,17 @@ export default { ...@@ -56,17 +58,17 @@ export default {
prop: 'batName', // 字段名 prop: 'batName', // 字段名
element: 'el-input', // 指定elementui组件 element: 'el-input', // 指定elementui组件
placeholder: '请输入内容', // elementui组件属性 placeholder: '请输入内容', // elementui组件属性
rules: [{ required: true, trigger: 'blur', message: '不能为空' }], rules: [{required: true, trigger: 'blur', message: '不能为空'}],
readonly: this.title == '详情' ? true : false, readonly: this.title == '详情' ? true : false,
}, },
{ // {
label: '创建人', // label文字 // label: '创建人', // label文字
prop: 'createMan', // 字段名 // prop: 'createMan', // 字段名
element: 'el-input', // 指定elementui组件 // element: 'el-input', // 指定elementui组件
initValue: '', // 字段初始值 // initValue: '', // 字段初始值
// placeholder: '请输入内容', // elementui组件属性 // // placeholder: '请输入内容', // elementui组件属性
readonly: true, // readonly: true,
}, // },
{ {
label: '创建时间', // label文字 label: '创建时间', // label文字
prop: 'createTime', // 字段名 prop: 'createTime', // 字段名
...@@ -124,7 +126,8 @@ export default { ...@@ -124,7 +126,8 @@ export default {
} }
}, },
}, },
mounted() {}, mounted() {
},
methods: { methods: {
handleSubmit() { handleSubmit() {
this.$refs['addForm'].onValidate(() => { this.$refs['addForm'].onValidate(() => {
...@@ -141,12 +144,14 @@ export default { ...@@ -141,12 +144,14 @@ export default {
state: 1, state: 1,
} }
typeApi(params).then((res) => { typeApi(params).then((res) => {
if (res.code === 200) {
loading.close() loading.close()
if (res.code === 200) {
this.$message.success('保存成功') this.$message.success('保存成功')
this.showDialog = false this.showDialog = false
this.handleClose() this.handleClose()
this.$emit('querySearch') this.$emit('querySearch')
} else {
this.$message.error(res.msg)
} }
}) })
}) })
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<script> <script>
import Form from '@/components/Form.vue' import Form from '@/components/Form.vue'
import { editBatchPlan } from '@/api/index.js' import {approveBatchPlan, editBatchPlan} from '@/api/index.js'
export default { export default {
props: { props: {
title: { title: {
...@@ -92,9 +92,9 @@ export default { ...@@ -92,9 +92,9 @@ export default {
...formInfo, ...formInfo,
state: this.radio, state: this.radio,
} }
editBatchPlan(params).then((res) => { approveBatchPlan(params).then((res) => {
if (res.code === 200) {
loading.close() loading.close()
if (res.code === 200) {
this.$message.success('保存成功') this.$message.success('保存成功')
this.showDialog = false this.showDialog = false
this.handleClose() this.handleClose()
......
...@@ -56,7 +56,7 @@ import TableConfig from '@/components/TableConfig.vue' ...@@ -56,7 +56,7 @@ import TableConfig from '@/components/TableConfig.vue'
import Add from './Add.vue' import Add from './Add.vue'
import ApprovalDialog from './ApprovalDialog.vue' import ApprovalDialog from './ApprovalDialog.vue'
import { editBatchPlan } from '@/api/index.js' import {editBatchPlan, postBatchPlan} from '@/api/index.js'
import { batchPlanManagement } from '@/api/interface' import { batchPlanManagement } from '@/api/interface'
import { approvalStatusOptions } from '@/utils/dictionary' import { approvalStatusOptions } from '@/utils/dictionary'
export default { export default {
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
options: approvalStatusOptions, options: approvalStatusOptions,
}, },
{ label: '备注', width: '100px', prop: 'remark' }, { label: '备注', width: '100px', prop: 'remark' },
{ label: '创建人', prop: 'createMan' }, // { label: '创建人', prop: 'createMan' },
{ label: '创建时间', prop: 'createTime', width: '120px' }, { label: '创建时间', prop: 'createTime', width: '120px' },
{ {
label: '操作', label: '操作',
...@@ -214,13 +214,12 @@ export default { ...@@ -214,13 +214,12 @@ export default {
confirmButtonText: '确认', confirmButtonText: '确认',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
}) }).then(() => {
.then(() => {
const params = { const params = {
...row, ...row,
state: 2, state: 2,
} }
editBatchPlan(params).then((res) => { postBatchPlan(params).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success('提交成功') this.$message.success('提交成功')
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
...@@ -228,8 +227,9 @@ export default { ...@@ -228,8 +227,9 @@ export default {
this.$message.error(res.msg) this.$message.error(res.msg)
} }
}) })
}).catch(() => {
this.$message.info('已取消提交')
}) })
.catch(() => {})
}, },
fnDel(row) { fnDel(row) {
this.$confirm('是否确认删除?', '提示', { this.$confirm('是否确认删除?', '提示', {
...@@ -247,7 +247,7 @@ export default { ...@@ -247,7 +247,7 @@ export default {
this.$message.success('删除成功') this.$message.success('删除成功')
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
} else { } else {
this.$message.error('删除失败') this.$message.error(res.msg)
} }
}) })
}) })
......
...@@ -70,16 +70,16 @@ export default { ...@@ -70,16 +70,16 @@ export default {
columns() { columns() {
return [ return [
{ label: '序号', type: 'index', width: '80px' }, { label: '序号', type: 'index', width: '80px' },
{ label: '字典名称', prop: 'name', width: '150px',}, { label: '字典名称', prop: 'name', minWidth: '150px',},
{ label: '字典标识', prop: 'typeValue', width: '150px',}, { label: '字典标识', prop: 'typeValue', minWidth: '150px',},
{ label: '描述', prop: 'remark', width: '150px' }, { label: '描述', prop: 'remark', minWidth: '150px' },
{ label: '排序', prop: 'sort', width: '80px' }, { label: '排序', prop: 'sort', width: '80px' },
{ label: '启用状态', prop: 'delFlag', width: '120px', collectionType: 'delFlag', { label: '启用状态', prop: 'delFlag', width: '120px', collectionType: 'delFlag',
options: delFlag, }, options: delFlag, },
{ label: '创建日期', prop: 'createTime', width: '120px' }, { label: '创建日期', prop: 'createTime', width: '120px' },
{ label: '创建人', prop: 'createMan', }, // { label: '创建人', prop: 'createMan', },
{ label: '最终修改时间', prop: 'lastUpdateTime', }, // { label: '最终修改时间', prop: 'lastUpdateTime', },
{ label: '最终修改人', prop: 'lastUpdateMan', }, // { label: '最终修改人', prop: 'lastUpdateMan', },
{ {
label: '操作', label: '操作',
type: 'operation', type: 'operation',
......
...@@ -192,7 +192,6 @@ export default { ...@@ -192,7 +192,6 @@ export default {
mounted() {}, mounted() {},
methods: { methods: {
codeToName(code, options) { codeToName(code, options) {
console.log(code, options)
const obj = this[options]?.find((v) => v.value == code) || {} const obj = this[options]?.find((v) => v.value == code) || {}
return obj.label return obj.label
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!