.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() // oInput.remove() //
message.success(name + '成功') 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( watch(
() => props.dataList, () => props.dataList,
(val) => { (val) => {
@ -157,3 +167,8 @@
} }
} }
</style> </style>
<style>
.custom-class {
/* top: 100px; */
}
</style>

View File

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

View File

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

View File

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