|
@@ -1,39 +1,5 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
-<<<<<<< HEAD
|
|
|
- <template v-if="!isSettings">
|
|
|
- <van-loading v-if="loading" style="text-align: center" />
|
|
|
- <grid-text :list="commonList" :need-grid-bg="true" @openLink="openLink">
|
|
|
- <template v-if="moreGrid && !loading" #more-grid>
|
|
|
- <div
|
|
|
- class="common-use-grid grid-bg-color clickable"
|
|
|
- @click="settingCommonFeature"
|
|
|
- >
|
|
|
- <!-- <AppIcon name="add-01" color="#aaa" svg size="17" /> -->
|
|
|
- <img
|
|
|
- class="add-fun-icon"
|
|
|
- src="@/assets/image/icon/add-function.png"
|
|
|
- />
|
|
|
- <span class="item-name">添加常用功能</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </grid-text>
|
|
|
- </template>
|
|
|
- <template v-if="isSettings && commonFunctions.length > 0">
|
|
|
- <grid-text
|
|
|
- :list="getList"
|
|
|
- :need-badge="true"
|
|
|
- :badge-handle="true"
|
|
|
- @badgeHandle="badgeHandle"
|
|
|
- :need-drag="true"
|
|
|
- dragUniqueKey="settingsCommonUse"
|
|
|
- @dragCallBack="dragCallBack"
|
|
|
- ></grid-text>
|
|
|
- </template>
|
|
|
- <div class="no-data" v-if="noData && commonFunctions.length === 0">
|
|
|
- 暂未设置常用功能
|
|
|
- </div>
|
|
|
-=======
|
|
|
<template v-if="!isSettings">
|
|
|
<van-loading v-if="loading" style="text-align: center" />
|
|
|
<grid-text
|
|
@@ -60,7 +26,6 @@
|
|
|
@dragCallBack="dragCallBack"></grid-text>
|
|
|
</template>
|
|
|
<div class="no-data" v-if="noData && commonFunctions.length === 0">暂未设置常用功能</div>
|
|
|
->>>>>>> main
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -101,20 +66,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
-<<<<<<< HEAD
|
|
|
- ...mapGetters('treasureBox', ['commonFunctions']),
|
|
|
- getList() {
|
|
|
- return this.commonFunctions
|
|
|
- ? JSON.parse(JSON.stringify(this.commonFunctions))
|
|
|
- : []
|
|
|
-=======
|
|
|
...mapGetters('treasureBox', [
|
|
|
'commonFunctions',
|
|
|
'commonMaxNum'
|
|
|
]),
|
|
|
getList () {
|
|
|
return this.commonFunctions ? JSON.parse(JSON.stringify(this.commonFunctions)) : []
|
|
|
->>>>>>> main
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -125,10 +82,6 @@ export default {
|
|
|
getCommonUseList() {
|
|
|
const _this = this
|
|
|
this.loading = true
|
|
|
-<<<<<<< HEAD
|
|
|
- workspaceCommonUse('list', {
|
|
|
- platform: this.$env.platform?.toUpperCase()
|
|
|
-=======
|
|
|
workspaceCommonUse('list', { platform: this.$env.platform?.toUpperCase() }).then(res => {
|
|
|
const { data = [], error_code: code } = res
|
|
|
if (code === 0 && data) {
|
|
@@ -152,7 +105,6 @@ export default {
|
|
|
}
|
|
|
}).finally(() => {
|
|
|
this.loading = false
|
|
|
->>>>>>> main
|
|
|
})
|
|
|
.then((res) => {
|
|
|
const { data = [], error_code: code } = res
|