修改用户数据添加表单

master
夜笙歌 2 years ago
parent 3e0cff9f47
commit 34ba9a69fb

File diff suppressed because it is too large Load Diff

@ -156,7 +156,7 @@ export default {
name: "Userdatasource",
data() {
return {
operationType:null,
operationType: null,
//
loading: true,
//
@ -273,7 +273,6 @@ export default {
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
console.log(this.operationType)
if (this.operationType === 2) {
updateUserdatasource(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
@ -281,7 +280,7 @@ export default {
this.getList();
});
}
if(this.operationType === 1){
if (this.operationType === 1) {
addUserdatasource(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;

Loading…
Cancel
Save