|
@@ -11,6 +11,7 @@
|
|
|
<div class="flex items-center gap-2.5">
|
|
|
<CzrForm class="bm-filter" label-width="0px" @handleEnter="onSearch">
|
|
|
<CzrFormColumn
|
|
|
+ v-if="isPTGLCpt"
|
|
|
width="6.68rem"
|
|
|
class="__czr-table-form-column"
|
|
|
:span="24"
|
|
@@ -71,7 +72,12 @@
|
|
|
:prefix-icon="Search"
|
|
|
/>
|
|
|
<CzrButton type="add" @click="onInvite" title="新增用户" />
|
|
|
- <CzrButton type="add" @click="onAdd" title="新增账号" />
|
|
|
+ <CzrButton
|
|
|
+ type="add"
|
|
|
+ @click="onAdd"
|
|
|
+ title="新增账号"
|
|
|
+ v-if="isPTGLCpt"
|
|
|
+ />
|
|
|
</CzrForm>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -245,6 +251,9 @@ watch(
|
|
|
},
|
|
|
{ deep: true },
|
|
|
)
|
|
|
+const isPTGLCpt = computed(() => {
|
|
|
+ return AppStore.tenantInfo?.id == (import.meta as any).env.VITE_TENANT_ID_PTGL
|
|
|
+})
|
|
|
const onSort = ({ key, value }) => {
|
|
|
state.query.sort[key] = value
|
|
|
onSearch()
|