jabin 3 лет назад
Родитель
Сommit
28463bd94e
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/views/workforceManagement/team/components/edit.vue

+ 3 - 2
src/views/workforceManagement/team/components/edit.vue

@@ -224,6 +224,7 @@ export default {
         let userIds = this.$refs.userTable.datasource.map((n) => n.id);
         if (userIds.length <= 0) {
           this.$message.error('请选择员工');
+          this.loading = false;
           return false;
         }
 
@@ -299,14 +300,14 @@ export default {
     // 选择车间
     change_workshopId() {
       this.form.productionLineId = '';
-      this.form.workStationIds = '';
+      this.form.workStationIds = [];
       this.options.productionLineId = [];
       this.options.workStationIds = [];
       this.getlistFactoryLineByParentId();
     },
     // 选择产线
     change_productionLineId() {
-      this.form.workStationIds = '';
+      this.form.workStationIds = [];
       this.options.workStationIds = [];
       this.getlistByProductionLineId();
     }