src/views/employeeManage/employeeInfo/index.vue
@@ -41,7 +41,7 @@
        </div>
      </div>
    </div>
    <AddEmployee ref="addEmployee" :editRow="editRow"  @shutdown="shutdown" />
    <AddEmployee ref="addEmployee" :editRow="editRow"  @refresh="shutdown" />
  </div>
</template>
@@ -136,7 +136,7 @@
            if (res.data) {
              const list = res.data
              this.tableList.tableInfomation = list || []
              this.pagerOptions.totalCount = res.count
              this.pagerOptions.totalCount = res.total
            } else {
              this.tableList.tableInfomation = []
            }
@@ -158,6 +158,7 @@
      this.getData()
    },
    shutdown() {
      this.pagerOptions.currPage = 1
      this.getData();
    },
    // 新建
@@ -168,7 +169,18 @@
    // 编辑
    handleClick(row) {
      let config=JSON.parse(JSON.stringify(row));
      this.editRow = { ...config, title:'编辑',type:'add' }
      this.editRow = { ...config,
        title:'编辑',
        type:'edit',
        shopNameObj:{
          value:config.shopId,
          label:config.shopName,
        },
        workTypeObj:{
          value:config.workTypeId,
          label:config.workType,
        }
      }
      this.$refs.addEmployee.islook = true;
    },
    // 删除