发送消息测试

This commit is contained in:
Vinjor 2024-10-18 09:28:46 +08:00
parent 9c5846ac29
commit f06072e1df
2 changed files with 13 additions and 1 deletions

View File

@ -34,6 +34,14 @@ export function getWorker(id) {
})
}
// 测试发消息
export function sedMessage() {
return request({
url: '/repair/worker/sendMessage?userId=708',
method: 'get'
})
}
// 获得维修工人分页
export function getWorkerPage(params) {
return request({

View File

@ -22,6 +22,8 @@
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="chooseUser()">选择用户
</el-button>
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="sendMesg()">测试发消息
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -119,7 +121,9 @@ export default {
chooseUser(){
this.$refs["chooseUserRef"].open();
},
async sendMesg(){
const res = await WorkerApi.sedMessage();
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNo = 1;