forked from github/dataease
feat(X-Pack): 外观配置支持隐藏Copilot按钮
This commit is contained in:
parent
3a03d6c06d
commit
5e39ead00a
@ -146,10 +146,18 @@ onMounted(() => {
|
|||||||
</el-menu>
|
</el-menu>
|
||||||
<div class="operate-setting" v-if="!desktop">
|
<div class="operate-setting" v-if="!desktop">
|
||||||
<XpackComponent jsname="c3dpdGNoZXI=" />
|
<XpackComponent jsname="c3dpdGNoZXI=" />
|
||||||
<el-icon style="margin: 0 10px" class="ai-icon copilot-icon" v-if="!showOverlayCopilot">
|
<el-icon
|
||||||
|
style="margin: 0 10px"
|
||||||
|
class="ai-icon copilot-icon"
|
||||||
|
v-if="!showOverlayCopilot && appearanceStore.getShowCopilot"
|
||||||
|
>
|
||||||
<Icon name="copilot" @click="handleCopilotClick" />
|
<Icon name="copilot" @click="handleCopilotClick" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<Copilot @confirm="copilotConfirm" v-if="showOverlayCopilot" class="copilot-icon-tips" />
|
<Copilot
|
||||||
|
@confirm="copilotConfirm"
|
||||||
|
v-if="showOverlayCopilot && appearanceStore.getShowCopilot"
|
||||||
|
class="copilot-icon-tips"
|
||||||
|
/>
|
||||||
|
|
||||||
<el-icon
|
<el-icon
|
||||||
style="margin: 0 10px"
|
style="margin: 0 10px"
|
||||||
@ -181,7 +189,7 @@ onMounted(() => {
|
|||||||
:base-url="aiBaseUrl"
|
:base-url="aiBaseUrl"
|
||||||
></ai-component>
|
></ai-component>
|
||||||
<div v-if="showOverlay && appearanceStore.getShowAi" class="overlay"></div>
|
<div v-if="showOverlay && appearanceStore.getShowAi" class="overlay"></div>
|
||||||
<div v-if="showOverlayCopilot" class="overlay"></div>
|
<div v-if="showOverlayCopilot && appearanceStore.getShowCopilot" class="overlay"></div>
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<ExportExcel ref="ExportExcelRef"></ExportExcel>
|
<ExportExcel ref="ExportExcelRef"></ExportExcel>
|
||||||
|
@ -16,6 +16,7 @@ interface AppearanceState {
|
|||||||
mobileLoginBg?: string
|
mobileLoginBg?: string
|
||||||
help?: string
|
help?: string
|
||||||
showAi?: string
|
showAi?: string
|
||||||
|
showCopilot?: string
|
||||||
showDoc?: string
|
showDoc?: string
|
||||||
showAbout?: string
|
showAbout?: string
|
||||||
bg?: string
|
bg?: string
|
||||||
@ -43,6 +44,7 @@ export const useAppearanceStore = defineStore('appearanceStore', {
|
|||||||
help: '',
|
help: '',
|
||||||
showDoc: '0',
|
showDoc: '0',
|
||||||
showAi: '0',
|
showAi: '0',
|
||||||
|
showCopilot: '0',
|
||||||
showAbout: '0',
|
showAbout: '0',
|
||||||
bg: '',
|
bg: '',
|
||||||
login: '',
|
login: '',
|
||||||
@ -133,6 +135,9 @@ export const useAppearanceStore = defineStore('appearanceStore', {
|
|||||||
getShowAi(): boolean {
|
getShowAi(): boolean {
|
||||||
return isBtnShow(this.showAi)
|
return isBtnShow(this.showAi)
|
||||||
},
|
},
|
||||||
|
getShowCopilot(): boolean {
|
||||||
|
return isBtnShow(this.showCopilot)
|
||||||
|
},
|
||||||
getShowDoc(): boolean {
|
getShowDoc(): boolean {
|
||||||
return isBtnShow(this.showDoc)
|
return isBtnShow(this.showDoc)
|
||||||
},
|
},
|
||||||
@ -203,6 +208,7 @@ export const useAppearanceStore = defineStore('appearanceStore', {
|
|||||||
this.mobileLoginBg = data.mobileLoginBg
|
this.mobileLoginBg = data.mobileLoginBg
|
||||||
this.help = data.help
|
this.help = data.help
|
||||||
this.showAi = data.showAi
|
this.showAi = data.showAi
|
||||||
|
this.showCopilot = data.showCopilot
|
||||||
this.showDoc = data.showDoc
|
this.showDoc = data.showDoc
|
||||||
this.showAbout = data.showAbout
|
this.showAbout = data.showAbout
|
||||||
this.navigateBg = data.navigateBg
|
this.navigateBg = data.navigateBg
|
||||||
|
2
de-xpack
2
de-xpack
@ -1 +1 @@
|
|||||||
Subproject commit f46e65216a0c0f76cb37a19d8647620ec1b6c8f1
|
Subproject commit df9b8715f2d7896813b9591dc34895f8acff912f
|
Loading…
Reference in New Issue
Block a user