bug修改

fencang
anthonywj 3 years ago
parent e991f114d1
commit 168c7c8fc4

@ -443,15 +443,6 @@ export const asyncRouterMap = [
// {
// path: "systemPDFTemplate",
// component: systemPDFTemplate,
// name: "打印模板管理",
// icon: "",
// meta: {
// authRule: ["param/system_pdf_template"]
// }
// },
] ]
}, },

@ -326,6 +326,7 @@ export default {
mounted() { mounted() {
}, },
created() { created() {
this.getSyncConfig();
this.getList(); this.getList();
}, },
}; };

@ -24,7 +24,7 @@
</el-form> </el-form>
<el-table v-loading="loading" :data="list" style="width: 100%"> <el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="序号" type="index" width="120" fixed></el-table-column> <el-table-column label="序号" type="index" width="60" fixed></el-table-column>
<el-table-column label="业务单据类型名称" prop="name" fixed></el-table-column> <el-table-column label="业务单据类型名称" prop="name" fixed></el-table-column>
<el-table-column label="业务单据类型代码" prop="action" fixed></el-table-column> <el-table-column label="业务单据类型代码" prop="action" fixed></el-table-column>
<el-table-column label="第三方单据类型" prop="originAction" fixed></el-table-column> <el-table-column label="第三方单据类型" prop="originAction" fixed></el-table-column>

@ -240,6 +240,19 @@
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="10" class="el-col">
<div class="text item">
<div class="itemTag">
<span>备注:&nbsp;</span>
</div>
<el-input
style="width: 200px"
size="small"
splaceholder="请输入内容"
v-model="editQuery.remark"
></el-input>
</div>
</el-col>
</el-row> </el-row>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click.native="hideForm" size="small">取消</el-button> <el-button @click.native="hideForm" size="small">取消</el-button>

@ -1,131 +1,131 @@
<template> <template>
<div> <div>
<el-card> <el-card>
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini"> <el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input <el-input
v-model="filterQuery.name" v-model="filterQuery.name"
placeholder="业务类型" placeholder="业务类型"
style="width: 400px" style="width: 400px"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange"> <el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange">
<el-option <el-option
v-for="item in thirdSys" v-for="item in thirdSys"
:key="item.value" :key="item.value"
:label="item.thirdName" :label="item.thirdName"
:value="item.thirdId"> :value="item.thirdId">
<span style="float: left">{{ item.thirdName }}</span> <span style="float: left">{{ item.thirdName }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group style="margin-left: 10px;display:flex;"> <el-button-group style="margin-left: 10px;display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button> <el-button type="primary" icon="search" @click="search"></el-button>
<el-button type="primary" icon="search" @click="handleAddClick" <el-button type="primary" icon="search" @click="handleAddClick"
:disabled="!configParms.typeThird" :disabled="!configParms.typeThird"
>新增 >新增
</el-button </el-button
> >
<!-- <el-button type="primary" icon="search" @click="updateDownload"></el-button>--> <!-- <el-button type="primary" icon="search" @click="updateDownload"></el-button>-->
</el-button-group> </el-button-group>
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="list" style="width: 100%"> </el-form-item>
<el-table-column label="序号" type="index" width="55"></el-table-column> </el-form>
<el-table-column label="单据类型名称" prop="name"></el-table-column> <el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="单据类型代码" prop="action"></el-table-column> <el-table-column label="序号" type="index" width="55"></el-table-column>
<el-table-column label="第三方系统" prop="thirdSys"></el-table-column>
<el-table-column label="备注" prop="remark"></el-table-column>
<el-table-column label="操作" width="100" fixed="right">
<template slot-scope="scope">
<el-button
type="text"
size="small"
:disabled="!configParms.typeThird"
@click.native.stop="handleModifyClick(scope.row)"
>编辑
</el-button
>
<el-button
type="text"
size="small"
:disabled="!configParms.typeThird"
@click.native.stop="handleDeleteClick(scope.row)"
>删除
</el-button
>
</template>
</el-table-column>
</el-table>
<el-dialog <el-table-column label="单据类型名称" prop="name"></el-table-column>
title="新增第三方单据类型" <el-table-column label="单据类型代码" prop="action"></el-table-column>
:visible.sync="addDialogVisible" <el-table-column label="第三方系统" prop="thirdSys"></el-table-column>
width="70%" <el-table-column label="备注" prop="remark"></el-table-column>
:close-on-click-modal="false" <el-table-column label="操作" width="100" fixed="right">
:close-on-press-escape="false" <template slot-scope="scope">
v-if="addDialogVisible" <el-button
type="text"
size="small"
:disabled="!configParms.typeThird"
@click.native.stop="handleModifyClick(scope.row)"
>编辑
</el-button
> >
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <el-button
<div style="text-align: center"> type="text"
<el-button type="primary" size="small" icon="search" @click="onAddSubmit" size="small"
:disabled="!configParms.typeThird" :disabled="!configParms.typeThird"
>提交 @click.native.stop="handleDeleteClick(scope.row)"
</el-button >删除
> </el-button
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消
</el-button
>
</div>
</el-dialog>
<el-dialog
title="编辑第三方单据类型"
:visible.sync="modifyDialogVisible"
width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="modifyDialogVisible"
> >
<modifyDialog :inputQuery="inputQuery"></modifyDialog> </template>
<div style="text-align: center"> </el-table-column>
<el-button type="primary" size="small" icon="search" @click="onModifySubmit" </el-table>
:disabled="!configParms.typeThird"
>提交 <el-dialog
</el-button title="新增第三方单据类型"
> :visible.sync="addDialogVisible"
<el-button type="primary" size="small" icon="search" @click="cancelDialog" width="70%"
>取消 :close-on-click-modal="false"
</el-button :close-on-press-escape="false"
> v-if="addDialogVisible"
</div> >
</el-dialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
<el-pagination <div style="text-align: center">
:page-size="filterQuery.limit" <el-button type="primary" size="small" icon="search" @click="onAddSubmit"
@current-change="handleCurrentChange" :disabled="!configParms.typeThird"
layout="prev, pager, next" >提交
:total="total" </el-button
:current-page="filterQuery.page" >
></el-pagination> <el-button type="primary" size="small" icon="search" @click="cancelDialog"
</el-card> >取消
</div> </el-button
>
</div>
</el-dialog>
<el-dialog
title="编辑第三方单据类型"
:visible.sync="modifyDialogVisible"
width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="modifyDialogVisible"
>
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onModifySubmit"
:disabled="!configParms.typeThird"
>提交
</el-button
>
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消
</el-button
>
</div>
</el-dialog>
<el-pagination
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="filterQuery.page"
></el-pagination>
</el-card>
</div>
</template> </template>
<script> <script>
import { import {
getOriginBusType, getOriginBusType,
updateBussinessType, delBussinessType, updateBussinessType, delBussinessType,
insertBussinessType, downloadBussinessType insertBussinessType, downloadBussinessType
} from "../../api/basic/busOriginType"; } from "../../api/basic/busOriginType";
import modifyDialog from "./BussinessTypeThirdModify"; import modifyDialog from "./BussinessTypeThirdModify";
@ -134,239 +134,262 @@ import {getBasicThirdSys} from "@/api/basic/basicThirdSys";
import {findConfig} from "@/api/thrsys/spsSyncStatus"; import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default { export default {
data() { data() {
return { return {
filterQuery: { filterQuery: {
thirdSys: null, thirdSys: null,
name: "", name: "",
page: 1, page: 1,
limit: 20, limit: 20,
}, },
addDialogVisible: false, addDialogVisible: false,
modifyDialogVisible: false, modifyDialogVisible: false,
list: [], list: [],
inputQuery: { inputQuery: {
action: "", action: "",
name: "", name: "",
enable: "", enable: "",
remark: "", remark: "",
thirdSys: null, thirdSys: null,
thirdSysName: null, thirdSysName: null,
}, },
enableMap: { enableMap: {
true: "是", true: "是",
false: "否", false: "否",
}, },
thirdSys: [], thirdSys: [],
total: 0, total: 0,
multipleSelection: [], multipleSelection: [],
uploadFileUrl: null, uploadFileUrl: null,
loading: false, loading: false,
configParms: {}, configParms: {},
}; };
}, },
methods: { methods: {
onReset() { onReset() {
this.$router.push({ this.$router.push({
path: "", path: "",
}); });
this.filterQuery = { this.filterQuery = {
thirdSys: "thirdId", thirdSys: "thirdId",
name: null, name: null,
enable: null, enable: null,
page: 1, page: 1,
limit: 20, limit: 20,
}; };
this.getList(); this.getList();
}, },
cancelDialog() { cancelDialog() {
this.modifyDialogVisible = false; this.modifyDialogVisible = false;
this.addDialogVisible = false; this.addDialogVisible = false;
}, },
search() { search() {
this.filterQuery.page = 1; this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
getList() { getList() {
this.loading = true; this.loading = true;
getOriginBusType(this.filterQuery) getOriginBusType(this.filterQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
this.list = response.data.list || []; this.list = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.list = []; this.list = [];
this.total = 0; this.total = 0;
}); });
}, },
getBasicThirdSys() { getBasicThirdSys() {
let query = { let query = {
enabled: true, enabled: true,
}; };
getBasicThirdSys(query) getBasicThirdSys(query)
.then((response) => { .then((response) => {
this.thirdSys = response.data.list || []; this.thirdSys = response.data.list || [];
this.filterQuery.thirdSys = this.thirdSys[0].thirdId; this.filterQuery.thirdSys = this.thirdSys[0].thirdId;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.list = []; this.list = [];
}); });
}, },
updateDownload() { updateDownload() {
let query = { let query = {
thirdSys: this.filterQuery.thirdSys, thirdSys: this.filterQuery.thirdSys,
} }
downloadBussinessType(query) downloadBussinessType(query)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
this.getList();
})
.catch(() => {
this.loading = false;
});
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList(); this.getList();
}, })
.catch(() => {
onAddSubmit() { this.loading = false;
});
if (this.$isBlank(this.inputQuery.action)) { },
this.$message.error("单据类型代码不能为空!"); handleCurrentChange(val) {
return; this.filterQuery.page = val;
} this.getList();
insertBussinessType(this.inputQuery) },
.then((response) => {
this.loading = false;
this.cancelDialog();
this.getList();
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
onModifySubmit() {
if (this.$isBlank(this.inputQuery.action)) {
this.$message.error("单据类型代码不能为空!");
return;
}
updateBussinessType(this.inputQuery)
.then((response) => {
this.loading = false;
this.cancelDialog();
this.getList();
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
handleModifyClick(row) { onAddSubmit() {
this.inputQuery = { if (this.$isBlank(this.inputQuery.name)) {
id: row.id, this.$message.error("单据类型名称不能为空!");
remark: row.remark, return;
action: row.action, }
name: row.name, if (this.$isBlank(this.inputQuery.action)) {
enable: row.enable, this.$message.error("单据类型代码不能为空!");
thirdSys: row.thirdSys, return;
thirdSysName: row.thirdSysName }
}; if (this.$isBlank(this.inputQuery.thirdSys)) {
this.modifyDialogVisible = true; this.$message.error("所属系统不不能为空!");
}, return;
}
let numRegExp = '^[0-9]*$';
let numReg = new RegExp(numRegExp);
if (numReg.test(this.inputQuery.name)) {
this.$message.error("单据类型名称不得为纯数字类型!");
return;
}
insertBussinessType(this.inputQuery)
.then((response) => {
this.loading = false;
this.cancelDialog();
this.getList();
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
handleDeleteClick(row) { onModifySubmit() {
this.deleteDialog(row.id) if (this.$isBlank(this.inputQuery.name)) {
}, this.$message.error("单据类型名称不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.action)) {
this.$message.error("单据类型代码不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.thirdSys)) {
this.$message.error("所属系统不不能为空!");
return;
}
updateBussinessType(this.inputQuery)
.then((response) => {
this.loading = false;
this.cancelDialog();
this.getList();
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
handleAddClick() { handleModifyClick(row) {
this.inputQuery = {
action: "",
name: "",
enable: "",
remark: "",
thirdSys: null,
thirdSysName: null
};
this.addDialogVisible = true;
},
deleteDialog(rowId) { this.inputQuery = {
this.$confirm("此操作将永久删除该单据类型信息, 是否继续?", "提示", { id: row.id,
confirmButtonText: "确定", remark: row.remark,
cancelButtonText: "取消", action: row.action,
type: "warning", name: row.name,
}) enable: row.enable,
.then(() => { thirdSys: row.thirdSys,
let query = { thirdSysName: row.thirdSysName
id: rowId, };
} this.modifyDialogVisible = true;
delBussinessType(query) },
.then((response) => {
this.getList();
})
.catch(() => {
});
}) handleDeleteClick(row) {
.catch(() => { this.deleteDialog(row.id)
}); },
},
thirdSysChange() { handleAddClick() {
this.getList(); this.inputQuery = {
}, action: "",
name: "",
enable: "",
remark: "",
thirdSys: null,
thirdSysName: null
};
this.addDialogVisible = true;
},
init() { deleteDialog(rowId) {
axios.get("./config.json").then(res => { this.$confirm("此操作将永久删除该单据类型信息, 是否继续?", "提示", {
// confirmButtonText: "确定",
let response = res.data.BASE_URL; cancelButtonText: "取消",
this.uploadFileUrl = response + "udiwms/busstiness/file/upload"; type: "warning",
}); })
}, .then(() => {
handleChange(response, files, fileList) { let query = {
console.log(response); id: rowId,
if (response.code != 20000) {
this.$message.error(response.message);
} else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success(response.data);
this.getList();
} }
}, delBussinessType(query)
getSyncConfig() {
findConfig()
.then((response) => { .then((response) => {
if (response.code == 20000) { this.getList();
this.configParms = response.data;
}
}) })
.catch(() => { .catch(() => {
}); });
},
})
.catch(() => {
});
}, },
components: {
modifyDialog, thirdSysChange() {
this.getList();
}, },
mounted() {
init() {
axios.get("./config.json").then(res => {
//
let response = res.data.BASE_URL;
this.uploadFileUrl = response + "udiwms/busstiness/file/upload";
});
}, },
created() { handleChange(response, files, fileList) {
this.init(); console.log(response);
this.getSyncConfig(); if (response.code != 20000) {
this.getBasicThirdSys(); this.$message.error(response.message);
} else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success(response.data);
this.getList(); this.getList();
}
}, },
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
},
components: {
modifyDialog,
},
mounted() {
},
created() {
this.init();
this.getSyncConfig();
this.getBasicThirdSys();
this.getList();
},
}; };
</script> </script>

@ -13,14 +13,6 @@
<el-option label="未验证" value="2"></el-option> <el-option label="未验证" value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!--
<el-form-item class="query-form-item">
<el-select v-model="query.roleId" placeholder="角色">
<el-option label="全部角色" value=""></el-option>
<el-option v-for="item in roles" :key="item.id" :label="item.name" :value="item.id"></el-option>
</el-select>
</el-form-item>
-->
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button <el-button
@ -41,6 +33,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="loading" :data="list" style="width: 100%"> <el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="序号" type="index" fixed></el-table-column>
<el-table-column label="用户账号" prop="userName" fixed></el-table-column> <el-table-column label="用户账号" prop="userName" fixed></el-table-column>
<el-table-column label="用户名称" prop="employeeName" fixed> <el-table-column label="用户名称" prop="employeeName" fixed>
</el-table-column> </el-table-column>
@ -71,6 +64,7 @@
type="text" type="text"
size="small" size="small"
@click.native="handleForm(scope.$index, scope.row)" @click.native="handleForm(scope.$index, scope.row)"
:disabled="!configParms.sysUser"
>编辑 >编辑
</el-button> </el-button>
<el-button <el-button
@ -149,6 +143,17 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="10" class="el-col" type="flex">
<div class="text item">
<el-form-item label="备注" prop="comments">
<el-input v-model="formData.comments" size="small"></el-input>
</el-form-item>
</div>
</el-col>
</el-row>
<el-form-item label="状态" prop="userFlag"> <el-form-item label="状态" prop="userFlag">
<el-radio-group v-model="formData.userFlag" :disabled="formData.id === 1"> <el-radio-group v-model="formData.userFlag" :disabled="formData.id === 1">
@ -205,6 +210,7 @@ const formJson = {
checkPassword: "", checkPassword: "",
employeeName: "", employeeName: "",
userFlag: 1, userFlag: 1,
comments: '',
roles: [] roles: []
}; };
export default { export default {
@ -231,7 +237,7 @@ export default {
userName: "", userName: "",
userFlag: "", userFlag: "",
page: 1, page: 1,
limit: 20, limit: 10,
roleId: "", roleId: "",
customerId: store.getters.customerId, customerId: store.getters.customerId,
}, },
@ -292,7 +298,7 @@ export default {
userName: "", userName: "",
userFlag: "", userFlag: "",
page: 1, page: 1,
limit: 20, limit: 10,
roleId: "", roleId: "",
customerId: store.getters.customerId, customerId: store.getters.customerId,
}; };
@ -354,7 +360,16 @@ export default {
this.resetForm(); this.resetForm();
this.formData = JSON.parse(JSON.stringify(formJson)); this.formData = JSON.parse(JSON.stringify(formJson));
if (row !== null) { if (row !== null) {
this.formData = Object.assign({}, row); this.formData = {
id: row.id,
passWord: row.passWord,
userName: row.userName,
checkPassword: "",
employeeName: row.employeeName,
userFlag: 1,
comments: row.comments,
roles: row.roles
};
} }
this.formName = "add"; this.formName = "add";
this.formRules = this.addRules; this.formRules = this.addRules;

@ -432,7 +432,7 @@ export default {
this.$router.push({ this.$router.push({
path: "" path: ""
}); });
this.query = { this.moduleQuery = {
templateType: null, templateType: null,
moduleId: null, moduleId: null,
name: "", name: "",

@ -99,37 +99,6 @@
> >
<el-form :model="formData" :rules="formRules" ref="dataForm"> <el-form :model="formData" :rules="formRules" ref="dataForm">
<!-- <el-row :gutter="20">-->
<!-- <el-col :span="2">-->
<!-- <div class="ao-text">-->
<!-- <span>模板名称</span>-->
<!-- </div>-->
<!-- <div class="ao-text">-->
<!-- <span>模板名称</span>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-form-item prop="name">-->
<!-- <el-input v-model="formData.name" auto-complete="off" :disabled="false"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="所属模块" prop="type">-->
<!-- <el-select v-model="formData.type" placeholder="所属模块">-->
<!-- <el-option label="订单详情" value="1"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="2">-->
<!-- <div class="ao-text">-->
<!-- <span>备注</span>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-form-item prop="type">-->
<!-- <el-input type="textarea" v-model="formData.remark" rows=6></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="2"> <el-col :span="2">
@ -149,14 +118,6 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item prop="module"> <el-form-item prop="module">
<!-- <el-select v-model="formData.module" placeholder="所属模块">-->
<!-- <el-option-->
<!-- v-for="item in moduleNameList"-->
<!-- :key="item.idStr"-->
<!-- :label="item.name"-->
<!-- :value="item.idStr"-->
<!-- ></el-option>-->
<!-- </el-select>-->
<el-select v-model="formData.module" placeholder="模板类型"> <el-select v-model="formData.module" placeholder="模板类型">
<el-option label="标签" value="0"></el-option> <el-option label="标签" value="0"></el-option>
<el-option label="报表" value="1"></el-option> <el-option label="报表" value="1"></el-option>
@ -421,6 +382,7 @@ export default {
}); });
this.query = { this.query = {
name: "", name: "",
module: null,
page: 1, page: 1,
limit: 20 limit: 20
}; };
@ -635,12 +597,6 @@ export default {
this.submitTemplate(); this.submitTemplate();
// if (!this.uploadDisabled) {
// this.$refs.uploadJasper.submit();
// this.$refs.uploadJrxml.submit();
// } else {
// this.submitTemplate();
// }
} }
}); });
}, },
@ -739,19 +695,7 @@ export default {
} }
this.$message.success("操作成功"); this.$message.success("操作成功");
this.formVisible = false; this.formVisible = false;
// if (this.formName === "add") { this.getList();
// //
// if (response.data && response.data.id) {
// data.id = response.data.id;
// this.list.unshift(data);
// }
// } else {
// this.list.splice(this.index, 1, data);
// }
// //
// this.resetForm();
// this.getList();
// this.getModuleList();
}) })
.catch(() => { .catch(() => {
this.formLoading = false; this.formLoading = false;
@ -770,8 +714,6 @@ export default {
console.log(response) console.log(response)
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success(response.data); this.$message.success(response.data);
//
// this.resetForm();
this.getList(); this.getList();
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);

@ -298,6 +298,7 @@ export default {
check(this.checkQuery) check(this.checkQuery)
.then((response) => { .then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.editDialogVisible = false;
this.getList(); this.getList();
this.$message({ this.$message({
type: "success", type: "success",

@ -471,6 +471,7 @@
this.loading = true; this.loading = true;
checkPass(this.checkQuery) checkPass(this.checkQuery)
.then((response) => { .then((response) => {
this.loading = false;
if (response.code === 20000) { if (response.code === 20000) {
this.getList(); this.getList();
this.$message({ this.$message({
@ -479,7 +480,6 @@
}); });
} else { } else {
this.$message.warning("更新失败"); this.$message.warning("更新失败");
this.loading = false;
} }
}) })
.catch(() => { .catch(() => {

Loading…
Cancel
Save