浏览代码

仓库新增添加默认状态

lichao 3 年之前
父节点
当前提交
e92c7ab2c3
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/views/basicdata/dept/index.vue

+ 5 - 2
src/views/basicdata/dept/index.vue

@@ -381,7 +381,7 @@ export default {
     /** 查询仓库列表 */
     getList() {
       this.loading = true;
-      lazyListDept().then(res => {
+      lazyListDept(this.queryParams).then(res => {
         this.deptList = res.data
         this.loading = false
       })
@@ -445,6 +445,8 @@ export default {
       if (row != undefined) {
         this.form.parentId = row.fId;
       }
+      this.$set(this.form, 'fStatus', '0')
+      // this.form.fStatus = '0'
       this.open = true;
       this.title = "添加仓库";
       listDept().then(response => {
@@ -494,7 +496,8 @@ export default {
         }).then(function() {
           return delDept(row.fId);
         }).then(() => {
-          this.getList();
+          // this.getList();
+          location.reload();
           this.msgSuccess("删除成功");
         })
     }