6.26张祥瑞

This commit is contained in:
张祥瑞 2025-06-26 16:17:53 +08:00
parent cd340d4185
commit dddcccc6cd
2 changed files with 14 additions and 7 deletions

View File

@ -5,7 +5,7 @@
<wd-col :span="16"> <wd-col :span="16">
<wd-datetime-picker type="year-month" v-model="dataValue" label="填报时间" @confirm="getList" id="top1" /> <wd-datetime-picker type="year-month" v-model="dataValue" label="填报时间" @confirm="getList" id="top1" />
</wd-col> </wd-col>
<wd-col :span="8" style="display: flex; justify-content: center;"> <wd-col :span="8" style="margin-top: 5px;">
<wd-button @click="clear">重置</wd-button> <wd-button @click="clear">重置</wd-button>
</wd-col> </wd-col>
</wd-row> </wd-row>

View File

@ -1,13 +1,13 @@
<template> <template>
<PageLayout :navbarShow="false"> <PageLayout :navbarShow="false">
<wd-card style="margin: 10px; display: flex; justify-content: center; align-items: center;" id="top1"> <wd-card id="top1">
<wd-row> <wd-row>
<wd-col :span="12" style="display: flex; justify-content: center;"> <wd-col :span="16" style="margin-top: 5px;">
<uni-easyinput v-model="realname" placeholder="姓名模糊查询" @change="getpersonList" <uni-easyinput v-model="realname" placeholder="姓名模糊查询" @change="getpersonList"
@clear="getpersonList" /> @clear="getpersonList" style="width: 100%;" />
</wd-col> </wd-col>
<wd-col :span="12" style="display: flex; justify-content: center;"> <wd-col :span="6" style="margin-top: 5px;margin-left: 3px;">
<wd-button @click="sendMessage">发送消息</wd-button> <wd-button @click="sendMessage" style="width: 100%;">发送消息</wd-button>
</wd-col> </wd-col>
</wd-row> </wd-row>
</wd-card> </wd-card>
@ -48,6 +48,8 @@
const screenHeight = ref(0) const screenHeight = ref(0)
const screenWidth = ref(0) const screenWidth = ref(0)
const tableHeight = ref(0) const tableHeight = ref(0)
const message = useMessage()
const toast = useToast()
const getpersonList = (e) => { const getpersonList = (e) => {
if (e != 1) { //1 if (e != 1) { //1
@ -82,7 +84,7 @@
const selectedData = list.value.filter(item => item.checked); const selectedData = list.value.filter(item => item.checked);
if (selectedData.length === 0) { if (selectedData.length === 0) {
useToast().show('请先选择要发送消息的人员'); toast.success('请先选择要发送消息的人员')
return; return;
} }
// ldhth // ldhth
@ -91,7 +93,12 @@
addByCld({ addByCld({
ldhths:ldhthValues ldhths:ldhthValues
}).then(res=>{ }).then(res=>{
toast.success(res.message)
console.log("res----",res) console.log("res----",res)
// if(res.success){
// toast.success(res.message)
// }
}) })