|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="send-msg">
|
|
|
<h1>群发消息</h1>
|
|
|
- <Form ref="send" :model="send" :rules="ruleValidate" :label-width="82">
|
|
|
+ <Form ref="send" :model="send" :rules="ruleValidate" :label-width="112">
|
|
|
<FormItem label="用户:" prop="sendway">
|
|
|
<RadioGroup v-model="send.sendway">
|
|
|
<Radio label="1">
|
|
@@ -117,6 +117,11 @@
|
|
|
<FormItem label="发送时间:" prop="sendTime" style="width:600px" v-show="send.sendMode=='1'">
|
|
|
<date-sigle ref="sigleRef3" :dateType="'datetime'" :formated="'yyyy-MM-dd HH:mm'" :placeholderd="'请选择发送时间'" @startDate="sendDate" :overTime="0"></date-sigle>
|
|
|
</FormItem>
|
|
|
+ <FormItem label="App端打开菜单:" prop="menuname" style="width:300px">
|
|
|
+ <Select v-model="send.menuname" placeholder="APP端消息进入展示所属菜单" filterable clearable>
|
|
|
+ <Option v-for="item in menuList" :value="item.key" :key="item.key">{{ item.label }}</Option>
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
<FormItem>
|
|
|
<Button type="primary" :class="{'is-active':isDis}" @click="sendSub('send')" style="width:100px">保存</Button>
|
|
|
<Button @click="sendCancel('send')" style="width: 100px;margin-left: 8px">取消</Button>
|
|
@@ -259,7 +264,8 @@ export default {
|
|
|
sendMode: this.send.sendMode,
|
|
|
showBuoy: this.send.showBuoy,
|
|
|
showContent: this.send.showContent,
|
|
|
- sendTime: this.send.sendMode=='1'?this.send.sendTime:''
|
|
|
+ sendTime: this.send.sendMode=='1'?this.send.sendTime:'',
|
|
|
+ menuname: this.send.menuname
|
|
|
}
|
|
|
console.log(obj)
|
|
|
this.$refs[name].validate((valid) => {
|
|
@@ -327,6 +333,32 @@ export default {
|
|
|
indeterminate: false, //半选
|
|
|
checkAll: false, // 全选
|
|
|
groupData: [],
|
|
|
+ menuList: [
|
|
|
+ {
|
|
|
+ key: 'search',
|
|
|
+ label: '首页'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: 'subscribe',
|
|
|
+ label: '订阅'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: 'message',
|
|
|
+ label: '消息'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: 'box',
|
|
|
+ label: '百宝箱'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: 'me',
|
|
|
+ label: '我的'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: 'other',
|
|
|
+ label: '新的 webview'
|
|
|
+ }
|
|
|
+ ],
|
|
|
send: {
|
|
|
userGroupId: [],
|
|
|
userGroupName: [],
|
|
@@ -339,10 +371,10 @@ export default {
|
|
|
weChatUrl: '',
|
|
|
showBuoy: 1,
|
|
|
sendMode: '',
|
|
|
- sendTime: '',
|
|
|
sendway:'',
|
|
|
showContent: '',
|
|
|
- sendTime: ''
|
|
|
+ sendTime: '',
|
|
|
+ menuname: 'message'
|
|
|
},
|
|
|
ruleValidate: {
|
|
|
sendway: [{ required: true, message: '请选择用户类型', trigger: 'change'}],
|