mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-08-04 05:04:06 +08:00
refactor: mp模块,一个大大的重构+fix
This commit is contained in:
@@ -122,11 +122,11 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import WxVideoPlayer from '@/views/mp/components/wx-video-play/main.vue'
|
||||
import WxVoicePlayer from '@/views/mp/components/wx-voice-play/main.vue'
|
||||
import WxLocation from '@/views/mp/components/wx-location/main.vue'
|
||||
import WxMusic from '@/views/mp/components/wx-music/main.vue'
|
||||
import WxNews from '@/views/mp/components/wx-news/main.vue'
|
||||
import WxVideoPlayer from '@/views/mp/components/wx-video-play'
|
||||
import WxVoicePlayer from '@/views/mp/components/wx-voice-play'
|
||||
import WxLocation from '@/views/mp/components/wx-location'
|
||||
import WxMusic from '@/views/mp/components/wx-music'
|
||||
import WxNews from '@/views/mp/components/wx-news'
|
||||
import { dateFormatter } from '@/utils/formatTime'
|
||||
import { MsgType } from '@/views/mp/components/wx-msg/types'
|
||||
|
||||
|
@@ -81,8 +81,8 @@
|
||||
</template>
|
||||
<script setup lang="ts" name="MpMessage">
|
||||
import * as MpMessageApi from '@/api/mp/message'
|
||||
import WxMsg from '@/views/mp/components/wx-msg/main.vue'
|
||||
import WxAccountSelect from '@/views/mp/components/wx-account-select/main.vue'
|
||||
import WxMsg from '@/views/mp/components/wx-msg'
|
||||
import WxAccountSelect from '@/views/mp/components/wx-account-select'
|
||||
import MessageTable from './MessageTable.vue'
|
||||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
|
||||
import { MsgType } from '@/views/mp/components/wx-msg/types'
|
||||
@@ -96,17 +96,17 @@ const list = ref<any[]>([]) // 当前页的列表数据
|
||||
interface QueryParams {
|
||||
pageNo: number
|
||||
pageSize: number
|
||||
openid: string | null
|
||||
accountId: number | null
|
||||
type: MsgType | null
|
||||
openid: string | undefined
|
||||
accountId: number
|
||||
type: MsgType | undefined
|
||||
createTime: string[] | []
|
||||
}
|
||||
const queryParams: QueryParams = reactive({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
openid: null,
|
||||
accountId: null,
|
||||
type: null,
|
||||
openid: undefined,
|
||||
accountId: 0,
|
||||
type: undefined,
|
||||
createTime: []
|
||||
})
|
||||
const queryFormRef = ref<FormInstance | null>(null) // 搜索的表单
|
||||
@@ -118,8 +118,8 @@ const messageBox = reactive({
|
||||
})
|
||||
|
||||
/** 侦听accountId */
|
||||
const onAccountChanged = (id?: number) => {
|
||||
queryParams.accountId = id as number
|
||||
const onAccountChanged = (id: number) => {
|
||||
queryParams.accountId = id
|
||||
handleQuery()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user