|
|
@@ -291,18 +291,21 @@ const AlholderType = computed(() => {
|
|
291
|
291
|
})
|
|
292
|
292
|
// '':普通用户 district-区/县代 city-市代',
|
|
293
|
293
|
const areaType = computed(() => {
|
|
294
|
|
- const areamanage = userStore.userInfo?.area_manage_type
|
|
295
|
|
- // 县/区代理
|
|
296
|
|
- if (areamanage == 'district') {
|
|
297
|
|
- return ['../../static/img-hy/district.png']
|
|
298
|
|
- }
|
|
299
|
|
- // 市代理
|
|
300
|
|
- if (areamanage == 'city') {
|
|
301
|
|
- return ['../../static/img-hy/city.png']
|
|
302
|
|
- }
|
|
303
|
|
- //普通用户
|
|
304
|
|
- if (!areamanage) {
|
|
305
|
|
- return ['']
|
|
|
294
|
+ if (userStore.userInfo?.area_manage_type) {
|
|
|
295
|
+ const areamanage = userStore.userInfo?.area_manage_type
|
|
|
296
|
+ // 县/区代理
|
|
|
297
|
+ if (areamanage == 'district') {
|
|
|
298
|
+ return ['../../static/img-hy/district.png']
|
|
|
299
|
+ }
|
|
|
300
|
+ // 市代理
|
|
|
301
|
+ if (areamanage == 'city') {
|
|
|
302
|
+ return ['../../static/img-hy/city.png']
|
|
|
303
|
+ }
|
|
|
304
|
+ //普通用户
|
|
|
305
|
+ if (!areamanage) {
|
|
|
306
|
+ return ['']
|
|
|
307
|
+ }
|
|
|
308
|
+
|
|
306
|
309
|
}
|
|
307
|
310
|
|
|
308
|
311
|
})
|
|
|
@@ -319,20 +322,26 @@ const onCancel = () => {
|
|
319
|
322
|
|
|
320
|
323
|
//计算市区县展示图片
|
|
321
|
324
|
const backImg = computed(() => {
|
|
322
|
|
- const areamanage = userStore.userInfo?.area_manage.type
|
|
323
|
|
- // 县/区代理
|
|
324
|
|
- if (areamanage == 'district') {
|
|
325
|
|
- return ['../../static/dl/xqdl.png']
|
|
326
|
|
- }
|
|
327
|
|
- // 市代理
|
|
328
|
|
- if (areamanage == 'city') {
|
|
329
|
|
- return ['../../static/dl/city.png']
|
|
|
325
|
+ if (userStore.userInfo?.area_manage_type) {
|
|
|
326
|
+ const areamanage = userStore.userInfo?.area_manage_type
|
|
|
327
|
+ // 县/区代理
|
|
|
328
|
+ if (areamanage == 'district') {
|
|
|
329
|
+ return ['../../static/dl/xqdl.png']
|
|
|
330
|
+ }
|
|
|
331
|
+ // 市代理
|
|
|
332
|
+ if (areamanage == 'city') {
|
|
|
333
|
+ return ['../../static/dl/city.png']
|
|
|
334
|
+ }
|
|
330
|
335
|
}
|
|
|
336
|
+
|
|
331
|
337
|
})
|
|
332
|
338
|
const textType = computed(() => {
|
|
333
|
|
- const areamanage = userStore.userInfo?.area_manage.area_name
|
|
334
|
|
- let res = areamanage.join("");
|
|
335
|
|
- return res
|
|
|
339
|
+ if (userStore.userInfo?.area_manage?.area_name) {
|
|
|
340
|
+ const areamanage = userStore.userInfo?.area_manage.area_name
|
|
|
341
|
+ let res = areamanage.join("");
|
|
|
342
|
+ return res
|
|
|
343
|
+ }
|
|
|
344
|
+
|
|
336
|
345
|
})
|
|
337
|
346
|
|
|
338
|
347
|
|