bug修改

fengcang
anthonyywj2 3 years ago
parent d79154583f
commit 65b7d9b070

@ -242,6 +242,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>

@ -287,10 +287,25 @@ export default {
}, },
onModifySubmit() { onModifySubmit() {
if (this.$isBlank(this.inputQuery.name)) {
this.$message.error("单据类型名称不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.action)) { if (this.$isBlank(this.inputQuery.action)) {
this.$message.error("单据类型代码不能为空!"); this.$message.error("单据类型代码不能为空!");
return; return;
} }
if (this.$isBlank(this.inputQuery.thirdSys)) {
this.$message.error("所属系统不不能为空!");
return;
}
let numRegExp = '^[0-9]*$';
let numReg = new RegExp(numRegExp);
if (numReg.test(this.inputQuery.name)) {
this.$message.error("单据类型名称不得为纯数字类型!");
return;
}
updateBussinessType(this.inputQuery) updateBussinessType(this.inputQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;

@ -19,16 +19,19 @@
@click="onReset" @click="onReset"
></el-button> ></el-button>
<el-button type="primary" icon="search" @click="onSubmit" <el-button type="primary" icon="search" @click="onSubmit"
>查询</el-button >查询
</el-button
> >
<el-button type="primary" @click.native="handleForm(null, null)" <el-button type="primary" @click.native="handleForm(null, null)"
:disabled="!configParms.sysUser" :disabled="!configParms.sysUser"
>新增</el-button >新增
</el-button
> >
</el-button-group> </el-button-group>
</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>
@ -36,7 +39,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.userFlag | statusFilterType">{{ <el-tag :type="scope.row.userFlag | statusFilterType">{{
scope.row.userFlag | statusFilterName scope.row.userFlag | statusFilterName
}}</el-tag> }}
</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" prop="comments" fixed></el-table-column> <el-table-column label="备注" prop="comments" fixed></el-table-column>
@ -137,6 +141,18 @@
</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"> <el-radio-group v-model="formData.userFlag">
<el-radio :label="0">禁用</el-radio> <el-radio :label="0">禁用</el-radio>
@ -149,7 +165,8 @@
v-for="item in roles" v-for="item in roles"
:key="item.id" :key="item.id"
:label="item.id" :label="item.id"
>{{ item.name }}</el-checkbox >{{ item.name }}
</el-checkbox
> >
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
@ -161,7 +178,8 @@
size="small" size="small"
@click.native="formSubmit()" @click.native="formSubmit()"
:loading="formLoading" :loading="formLoading"
>提交</el-button >提交
</el-button
> >
</div> </div>
</el-dialog> </el-dialog>
@ -185,6 +203,7 @@ const formJson = {
checkPassword: "", checkPassword: "",
employeeName: "", employeeName: "",
userFlag: 1, userFlag: 1,
comments: '',
roles: [] roles: []
}; };
export default { export default {
@ -211,7 +230,7 @@ export default {
userName: "", userName: "",
userFlag: "", userFlag: "",
page: 1, page: 1,
limit: 20, limit: 10,
roleId: "" roleId: ""
}, },
list: [], list: [],
@ -268,7 +287,7 @@ export default {
userName: "", userName: "",
userFlag: "", userFlag: "",
page: 1, page: 1,
limit: 20, limit: 10,
roleId: "" roleId: ""
}; };
this.getList(); this.getList();
@ -330,7 +349,16 @@ export default {
this.formVisible = true; this.formVisible = true;
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;
@ -443,7 +471,8 @@ export default {
return statusMap[status]; return statusMap[status];
} }
}, },
mounted() {}, mounted() {
},
created() { created() {
// //
let query = this.$route.query; let query = this.$route.query;

@ -302,7 +302,7 @@ export default {
type: "success", type: "success",
message: "更新成功!", message: "更新成功!",
}); });
this.editDialogVisible = false;
} else { } else {
this.$message.warning("更新失败"); this.$message.warning("更新失败");
this.loading = false; this.loading = false;

@ -490,7 +490,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: "",

@ -421,6 +421,7 @@ export default {
}); });
this.query = { this.query = {
name: "", name: "",
module: null,
page: 1, page: 1,
limit: 20 limit: 20
}; };
@ -739,19 +740,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;

Loading…
Cancel
Save