修改用户数据添加表单

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

Loading…
Cancel
Save