赋能案例

This commit is contained in:
851673013@qq.com 2022-07-01 10:33:34 +08:00
parent aff2ebda88
commit cf0bb02b43
1 changed files with 16 additions and 3 deletions

View File

@ -30,10 +30,10 @@
<span
v-for="(item, index) in tabClickData"
:key="index"
:class="listBg == item.name ? 'down' : ''"
@click="switchList(item.name)"
:class="listBg == item.dictLabel ? 'down' : ''"
@click="switchList(item.dictLabel)"
>
{{ item.name }}
{{ item.dictLabel }}
</span>
</div>
<a class="more" @click="lookmore(hidetext)">
@ -82,6 +82,7 @@
import { ref, onMounted } from 'vue'
// import { useStore } from 'vuex'
import { pageWithAttrs } from '@/api/home.js'
import { getCategoryTreePage } from '@/api/personalCenter.js'
import { useRouter } from 'vue-router'
// import { pinyin } from 'pinyin-pro'
// import { Empty } from 'ant-design-vue'
@ -159,6 +160,17 @@
name: '其他',
},
])
//tab
const tabChaXun = () => {
const params = {
page: 1,
limit: 99,
dictTypeId: '1513712507692818433',
}
getCategoryTreePage(params).then(({ data: res }) => {
tabClickData.value = res.data.list
})
}
const tabClickShow = ref(false)
const number = ref(0)
const changeCards = (val) => {
@ -195,6 +207,7 @@
}
//
const init = (list) => {
tabChaXun()
let params = {
deptIds: [],
districtId: '',