1.修复bug,优化页面交互

master
x_z 3 years ago
parent 8e3e3a2ad3
commit 369f3d7763

@ -101,6 +101,7 @@
<!--授权界面--> <!--授权界面-->
<el-dialog <el-dialog
title="授权" title="授权"
v-if="authFormVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:visible.sync="authFormVisible" :visible.sync="authFormVisible"
@ -110,7 +111,7 @@
style="max-height: 75vh; overflow-y: auto" style="max-height: 75vh; overflow-y: auto"
:data="authList" :data="authList"
show-checkbox="" show-checkbox=""
default-expand-all="" :default-expand-all="false"
node-key="id" node-key="id"
ref="tree" ref="tree"
:props="defaultProps" :props="defaultProps"

@ -4,9 +4,9 @@
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input <el-input
style="width: 400px" style="width: 300px"
v-model="filterQuery.key" v-model="filterQuery.key"
placeholder="请输入" placeholder="企业名称"
clearable clearable
></el-input> ></el-input>
@ -384,9 +384,9 @@ export default {
updateCustomers(this.formData) updateCustomers(this.formData)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
this.cancelDialog();
this.getList();
if (response.code === 20000) { if (response.code === 20000) {
this.getList();
this.cancelDialog();
this.$message({ this.$message({
type: "success", type: "success",
message: "更新成功!" message: "更新成功!"

@ -216,10 +216,10 @@ export default {
formData: formJson, formData: formJson,
formRules: {}, formRules: {},
addRules: { addRules: {
userName: [{required: true, message: "请输入姓名", trigger: "blur"}], userName: [{required: true, message: "请输入用户账号", trigger: "blur"}],
}, },
editRules: { editRules: {
userName: [{required: true, message: "请输入姓名", trigger: "blur"}], userName: [{required: true, message: "请输入用户账号", trigger: "blur"}],
userFlag: [ userFlag: [
{required: true, message: "请选择状态", trigger: "change"} {required: true, message: "请选择状态", trigger: "change"}
] ]

@ -55,7 +55,7 @@
<el-table-column label="更新时间" prop="update_time" width="180"></el-table-column> <el-table-column label="更新时间" prop="update_time" width="180"></el-table-column>
<el-table-column label="所属客户" prop="customerName" width="240"></el-table-column> <el-table-column label="所属客户" prop="customerName" width="240"></el-table-column>
<el-table-column label="单据类型" prop="bussinessTypeName" width="240"></el-table-column> <el-table-column label="单据类型" prop="bussinessTypeName" width="240"></el-table-column>
<el-table-column label="备注" prop="remark"></el-table-column> <el-table-column label="备注" prop="remark" width="200" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" fixed="right" width="250"> <el-table-column label="操作" fixed="right" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button

@ -286,24 +286,31 @@ export default {
this.getList(); this.getList();
}, },
deleteDialog(row) { deleteDialog(row) {
let query = { this.$confirm('是否确认删除此设备?', '提示', {
id: row.id confirmButtonText: '确定',
}; cancelButtonText: '取消',
deleterKey(query) type: 'warning'
.then((response) => { }).then(() => {
if (response.code === 20000) { let query = {
this.getList(); id: row.id
this.$message({ };
type: "success", deleterKey(query)
message: "删除成功!" .then((response) => {
}); if (response.code === 20000) {
} else { this.getList();
this.$message.warning("删除失败"); this.$message({
this.loading = false; type: "success",
} message: "删除成功!"
}) });
.catch(() => { } else {
}); this.$message.warning("删除失败");
this.loading = false;
}
})
.catch(() => {
});
}).catch(() => {
});
}, },

Loading…
Cancel
Save