'修改完成'
This commit is contained in:
@@ -25,7 +25,10 @@ import { bind, unBind } from "@/api/les/lesMaterialBind.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
formData: {},
|
||||
formData: {
|
||||
locationCode: null,
|
||||
batchNo: null,
|
||||
},
|
||||
/** 校验规则 */
|
||||
rules: {
|
||||
locationCode: {
|
||||
@@ -75,6 +78,7 @@ export default {
|
||||
bind(_this.formData).then(res => {
|
||||
_this.$modal.closeLoading();
|
||||
_this.$modal.msgSuccess("绑定成功!");
|
||||
_this.reset();
|
||||
setTimeout(() => {
|
||||
this.$tab.switchTab("/pages/work/index");
|
||||
}, 500);
|
||||
@@ -102,7 +106,8 @@ export default {
|
||||
_this.$modal.loading('解绑中')
|
||||
unBind(_this.formData.locationCode).then(res => {
|
||||
_this.$modal.closeLoading();
|
||||
_this.$modal.msgSuccess("解绑成功!")
|
||||
_this.$modal.msgSuccess("解绑成功!");
|
||||
_this.reset();
|
||||
setTimeout(() => {
|
||||
this.$tab.switchTab("/pages/work/index");
|
||||
}, 500);
|
||||
@@ -118,9 +123,12 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
// reset() {
|
||||
// this.formData = {};
|
||||
// }
|
||||
reset() {
|
||||
this.formData = {
|
||||
locationCode: null,
|
||||
batchNo: null,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user