发送消息测试
This commit is contained in:
parent
9c5846ac29
commit
f06072e1df
@ -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) {
|
export function getWorkerPage(params) {
|
||||||
return request({
|
return request({
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="chooseUser()">选择用户
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="chooseUser()">选择用户
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="sendMesg()">测试发消息
|
||||||
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -119,7 +121,9 @@ export default {
|
|||||||
chooseUser(){
|
chooseUser(){
|
||||||
this.$refs["chooseUserRef"].open();
|
this.$refs["chooseUserRef"].open();
|
||||||
},
|
},
|
||||||
|
async sendMesg(){
|
||||||
|
const res = await WorkerApi.sedMessage();
|
||||||
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.queryParams.pageNo = 1;
|
this.queryParams.pageNo = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user