cloud-web-corejs 1.0.54-dev.620 → 1.0.54-dev.622

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -285,6 +285,34 @@
285
285
  {{ user.locked ? $t1("是") : $t1("否") }}
286
286
  </td>
287
287
  </tr>
288
+ <tr>
289
+ <th>
290
+ {{ $t1("地区") }}
291
+ </th>
292
+ <td colspan="3">
293
+ <el-form-item
294
+ prop="areaName"
295
+ :rules="[{ required: false, trigger: 'blur' }]"
296
+ >
297
+ <el-input
298
+ class="search-input"
299
+ v-model="user.areaName"
300
+ clearable
301
+ @clear="
302
+ user.areaName = null;
303
+ user.areaId = null;
304
+ "
305
+ v-el-readonly
306
+ >
307
+ <i
308
+ slot="suffix"
309
+ class="el-input__icon el-icon-search"
310
+ @click="showAreaDialog = true"
311
+ ></i>
312
+ </el-input>
313
+ </el-form-item>
314
+ </td>
315
+ </tr>
288
316
  <tr v-if="userType == 2">
289
317
  <th>
290
318
  {{ $t1("签约人") }}
@@ -504,6 +532,12 @@
504
532
  @confirm="confirmCountry"
505
533
  multi="false"
506
534
  />
535
+ <areaDialog
536
+ v-if="showAreaDialog"
537
+ :visiable.sync="showAreaDialog"
538
+ @confirm="confirmArea"
539
+ multi="false"
540
+ />
507
541
  </div>
508
542
  </template>
509
543
 
@@ -519,6 +553,7 @@ export default {
519
553
  saleOrgDialog: () => import("../../../views/user/sale_org/dialog.vue"),
520
554
  positionDialog: () => import("../../../views/user/position/dialog.vue"),
521
555
  countryDialog: () => import("../../../views/user/country/dialog.vue"),
556
+ areaDialog: () => import("../../../views/user/area/dialog.vue"),
522
557
  tempStorageButton,
523
558
  },
524
559
  props: ["_dataId", "userType", "flag"],
@@ -558,6 +593,8 @@ export default {
558
593
  userType: null,
559
594
  countryName: null,
560
595
  countryCode: null,
596
+ areaName: null,
597
+ areaId: null,
561
598
  },
562
599
  companyTableData: [],
563
600
  vxeOption: {},
@@ -608,6 +645,7 @@ export default {
608
645
  saveConfirm: () => {},
609
646
  },
610
647
  showCountryDialog: false,
648
+ showAreaDialog: false,
611
649
  };
612
650
  },
613
651
  computed: {
@@ -1285,6 +1323,13 @@ export default {
1285
1323
  (item) => item.companyCode == companyCode
1286
1324
  );
1287
1325
  },
1326
+ confirmArea(rows) {
1327
+ if (rows.length) {
1328
+ let row = rows[0];
1329
+ this.user.areaId = row.id;
1330
+ this.user.areaName = row.fullName;
1331
+ }
1332
+ },
1288
1333
  },
1289
1334
  };
1290
1335
  </script>