|
|
@ -36,20 +36,14 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import {get, post} from "~/utils";
|
|
|
|
import {get, post,stop} from "~/utils";
|
|
|
|
import {showDialog, showFail, showSuccess} from "~/utils/dialog";
|
|
|
|
import {showDialog, showFail, showSuccess} from "~/utils/dialog";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
dialogFormVisible: {
|
|
|
|
dialogFormVisible: {required: true},
|
|
|
|
required: true
|
|
|
|
userForm: {required: true},
|
|
|
|
},
|
|
|
|
edit: {required: true}
|
|
|
|
userForm: {
|
|
|
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
edit: {
|
|
|
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -69,6 +63,9 @@
|
|
|
|
office: this.userForm.office,
|
|
|
|
office: this.userForm.office,
|
|
|
|
position: parseInt(this.userForm.position),
|
|
|
|
position: parseInt(this.userForm.position),
|
|
|
|
uid: this.userForm.uid
|
|
|
|
uid: this.userForm.uid
|
|
|
|
|
|
|
|
}).catch(async e => {
|
|
|
|
|
|
|
|
await showFail(e.msg,this)
|
|
|
|
|
|
|
|
await stop()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
showSuccess('编辑完成', this)
|
|
|
|
showSuccess('编辑完成', this)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -80,6 +77,9 @@
|
|
|
|
office: this.userForm.office,
|
|
|
|
office: this.userForm.office,
|
|
|
|
position: parseInt(this.userForm.position),
|
|
|
|
position: parseInt(this.userForm.position),
|
|
|
|
password: this.password
|
|
|
|
password: this.password
|
|
|
|
|
|
|
|
}).catch(async e => {
|
|
|
|
|
|
|
|
await showFail(e.msg,this)
|
|
|
|
|
|
|
|
await stop()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
showSuccess('新增完成', this)
|
|
|
|
showSuccess('新增完成', this)
|
|
|
|
}
|
|
|
|
}
|
|
|
|