remove store name
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
</div>
|
||||
</section>
|
||||
<t-cell-group v-if="rule" title="基本信息" theme="card" v-entrance-transition="70">
|
||||
<t-cell title="所属门店" :note="storeName" />
|
||||
<t-cell
|
||||
v-if="rule.triggerSourceType === 'EVENT_RECORD'"
|
||||
title="触发事件"
|
||||
@@ -120,15 +119,6 @@ const canUpdate = computed(() => userStore.hasPermissions(permissionCodes.pointR
|
||||
const canDelete = computed(() => userStore.hasPermissions(permissionCodes.pointRule.delete));
|
||||
const canReadEvent = computed(() => userStore.hasPermissions(permissionCodes.event.read));
|
||||
const isGlobalManager = computed(() => userStore.hasRoles(gaoRoleCodes.globalManager));
|
||||
const storeName = computed(() => {
|
||||
const storeId = rule.value?.storeId;
|
||||
if (!storeId) {
|
||||
return "未绑定门店";
|
||||
}
|
||||
const store = currentStoreStore.storeList.find(item => item.id === storeId)
|
||||
|| (currentStoreStore.loginStore?.id === storeId ? currentStoreStore.loginStore : undefined);
|
||||
return store?.name || store?.code || storeId;
|
||||
});
|
||||
|
||||
// ---------- 规则资料 ----------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user