695593266@qq.com 9 месяцев назад
Родитель
Сommit
b13614da48
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      src/views/singleLogin/index.vue

+ 7 - 7
src/views/singleLogin/index.vue

@@ -147,10 +147,10 @@
           <el-select
           <el-select
             style="width: 240px"
             style="width: 240px"
             clearable
             clearable
-            v-model="infoForm.centerId"
+            v-model="infoForm.workCenterId"
             filterable
             filterable
             placeholder="请选择工作中心"
             placeholder="请选择工作中心"
-            @change="changeWorlCenter(infoForm.centerId)"
+            @change="changeWorlCenter(infoForm.workCenterId)"
           >
           >
             <el-option
             <el-option
               v-for="item in workCenterList"
               v-for="item in workCenterList"
@@ -261,7 +261,7 @@
         },
         },
         infoForm: {
         infoForm: {
           factoryId: '',
           factoryId: '',
-          centerId: '',
+          workCenterId: '',
           teamId: '',
           teamId: '',
           workStationId: '',
           workStationId: '',
           deviceId: '',
           deviceId: '',
@@ -388,7 +388,7 @@
 
 
       async getUserAllInfo() {
       async getUserAllInfo() {
         this.infoForm.factoryId = '';
         this.infoForm.factoryId = '';
-        this.infoForm.centerId = '';
+        this.infoForm.workCenterId = '';
         this.infoForm.teamId = '';
         this.infoForm.teamId = '';
         this.infoForm.workStationId = '';
         this.infoForm.workStationId = '';
         this.infoForm.deviceId = '';
         this.infoForm.deviceId = '';
@@ -403,7 +403,7 @@
       },
       },
 
 
       changeWorlCenter(centerId) {
       changeWorlCenter(centerId) {
-        this.infoForm.centerId = centerId;
+        this.infoForm.workCenterId = centerId;
         this.infoForm.workStationId = '';
         this.infoForm.workStationId = '';
 
 
         const workCenterData = this.workCenterList.find(
         const workCenterData = this.workCenterList.find(
@@ -421,7 +421,7 @@
       changeTeam(teamId) {
       changeTeam(teamId) {
         this.infoForm.teamId = teamId;
         this.infoForm.teamId = teamId;
         this.infoForm.deviceId = '';
         this.infoForm.deviceId = '';
-        this.infoForm.centerId = '';
+        this.infoForm.workCenterId = '';
 
 
         console.log(this.userData, teamId, '111');
         console.log(this.userData, teamId, '111');
 
 
@@ -439,7 +439,7 @@
       },
       },
 
 
       infoClick() {
       infoClick() {
-        if (!this.infoForm.centerId) {
+        if (!this.infoForm.workCenterId) {
           return this.$message.warning('请选择工作中心');
           return this.$message.warning('请选择工作中心');
         }
         }