Commit 849bde7e by xiehao

fix:修复了系统删除无效

1 parent cfb32572
...@@ -561,6 +561,10 @@ export function addasystemInfoManageTable(params) { ...@@ -561,6 +561,10 @@ export function addasystemInfoManageTable(params) {
export function editDeleteSystemInfoManageTable(params) { export function editDeleteSystemInfoManageTable(params) {
return post(EADC_ARRCHITECTURE + '/app-info/upd', params) return post(EADC_ARRCHITECTURE + '/app-info/upd', params)
} }
// 系统信息管理,删除
export function deleteSystemInfoManageTable(params) {
return post(EADC_ARRCHITECTURE + '/app-info/dPrj', params)
}
// 项目信息管理,表格 // 项目信息管理,表格
export function queryProjectInfoManageTable(params) { export function queryProjectInfoManageTable(params) {
return post(EADC_ARRCHITECTURE + '/prj-info/', params) return post(EADC_ARRCHITECTURE + '/prj-info/', params)
......
...@@ -171,21 +171,8 @@ ...@@ -171,21 +171,8 @@
" "
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="projectManager" label="项目经理" align="center"/>
prop="projectManager" <el-table-column prop="createTime" label="创建时间" align="center"/>
label="项目经理"
align="center"
></el-table-column>
<el-table-column
prop="createMan"
label="创建人"
align="center"
></el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
align="center"
></el-table-column>
<el-table-column label="操作" width="260" align="center"> <el-table-column label="操作" width="260" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div <div
...@@ -339,7 +326,7 @@ import { ...@@ -339,7 +326,7 @@ import {
addasystemInfoManageTable, addasystemInfoManageTable,
editDeleteSystemInfoManageTable, editDeleteSystemInfoManageTable,
getDeptOption, getDeptOption,
getOrgOption getOrgOption, deleteSystemInfoManageTable
} from '@/api/index.js' } from '@/api/index.js'
import { MessageBox, Message } from 'element-ui' import { MessageBox, Message } from 'element-ui'
import { getDictTypeOptions } from '@/utils' import { getDictTypeOptions } from '@/utils'
...@@ -483,33 +470,30 @@ export default { ...@@ -483,33 +470,30 @@ export default {
customClass: 'messageClass', customClass: 'messageClass',
confirmButtonClass: 'confirmClass', confirmButtonClass: 'confirmClass',
type: 'warning', type: 'warning',
}) }).then(() => {
.then(() => { const params = {
const params = { ids: [row.appId]
appId: row.appId, }
delFlag: 1, deleteSystemInfoManageTable(params).then((res) => {
if (res.code == 200) {
this.get_table()
Message({
type: 'success',
message: '删除成功!',
})
} else {
Message({
type: 'error',
message: res.msg,
})
} }
editDeleteSystemInfoManageTable(params).then((res) => {
if (res.code == 200) {
this.get_table()
Message({
type: 'success',
message: '删除成功!',
})
} else {
Message({
type: 'error',
message: res.msg,
})
}
})
}) })
.catch(() => { }).catch(() => {
Message({ Message({
type: 'info', type: 'info',
message: '已取消', message: '已取消',
})
}) })
})
}, },
openAddDialog() { openAddDialog() {
//打开新建系统窗口 //打开新建系统窗口
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!