.ant-message

This commit is contained in:
gaoyuanwei 2022-06-30 18:52:54 +08:00
parent 9bf47e3223
commit 0f67147f8c
4 changed files with 25 additions and 10 deletions

View File

@ -80,6 +80,16 @@
oInput.remove() //
message.success(name + '成功')
}
message.config({
top: '100px', //
})
// const success = () => {
// message.success({
// // content: 'This is a prompt message with custom className and style',
// className: 'custom-class',
// style: {},
// })
// }
watch(
() => props.dataList,
(val) => {
@ -157,3 +167,8 @@
}
}
</style>
<style>
.custom-class {
/* top: 100px; */
}
</style>

View File

@ -16,7 +16,7 @@
>
<span
class="img"
:class="sel == '访问量' ? 'fwl' : sel == '申购量' ? 'sgl' : 'scl'"
:class="sel == '浏览量' ? 'fwl' : sel == '申购量' ? 'sgl' : 'scl'"
></span>
<span class="text">{{ sel }}</span>
</div>
@ -32,7 +32,7 @@
<div class="img" :class="item.imgType"></div>
</div>
<div class="item-right">
<div class="fw" v-if="select == '访问量'">
<div class="fw" v-if="select == '浏览量'">
{{ select }}:{{ item.visits }}
</div>
<div class="fw" v-if="select == '申购量'">
@ -63,8 +63,8 @@
import { useStore } from 'vuex'
const store = useStore()
const router = useRouter()
const select = ref('访问量')
const selList = ref(['访问量', '申购量', '收藏量'])
const select = ref('浏览量')
const selList = ref(['浏览量', '申购量', '收藏量'])
const list = ref([])
const paramsGetResources = {
@ -74,13 +74,13 @@
type: '',
name: '',
infoList: [],
orderField: 'visits', // total visits 访 applyCount score collectCount
orderField: 'visits', // total visits applyCount score collectCount
orderType: 'DESC', // ASC DESC
}
const selectChange = (sel) => {
select.value = sel
switch (select.value) {
case '访问量':
case '浏览量':
paramsGetResources.orderField = 'visits'
break
case '申购量':

View File

@ -146,9 +146,9 @@
'智能算法',
'图层服务',
'开发组件',
'办公组件',
// '',
'业务组件',
'其他',
// '',
])
const visible = ref(false)
const showModal = () => {

View File

@ -318,9 +318,9 @@
'智能算法',
'图层服务',
'开发组件',
'办公组件',
// '',
'业务组件',
'其他',
// '',
])
let tabname = ref('组件服务')
function tabqiehuan(item, index) {