| | |
| | | <u-input type='textarea' v-model="form.content" placeholder="请输入指令内容" /> |
| | | </u-form-item> |
| | | |
| | | <u-form-item label-width='132' label="下发时间" :required="true"> |
| | | <u-picker v-model="Timeshow" mode="time" :params="params" @confirm="setTime"></u-picker> |
| | | <u-input type='textarea' v-model="form.reportTime" placeholder="请选择下发时间" @click="Timeshow = true" /> |
| | | </u-form-item> |
| | | |
| | | <u-form-item label-width='158' prop="recipientText" label="指令接收人" :required="true"> |
| | | |
| | | <u-input type='textarea' v-model="form.recipientPeople" placeholder="请选择指令接收人" |
| | |
| | | return { |
| | | recipientShow: false, |
| | | recipientList: [], |
| | | |
| | | Timeshow:false, |
| | | params: { |
| | | year: true, |
| | | month: true, |
| | | day: true, |
| | | hour: true, |
| | | minute: false, |
| | | second: false |
| | | }, |
| | | form: { |
| | | content: '', |
| | | recipient: '', |
| | | recipientData: [], |
| | | recipientPeople: '' |
| | | recipientPeople: '', |
| | | reportTime:"" |
| | | }, |
| | | rules: { |
| | | |
| | |
| | | this.$refs.uForm.setRules(this.rules); |
| | | }, |
| | | methods: { |
| | | setTime(res){ |
| | | this.form.reportTime = res.year + "-" + res.month + "-" + res.day + " " + res.hour + ":00:00" |
| | | }, |
| | | recipientClick() { |
| | | if (this.recipientList.length > 0) { |
| | | this.recipientShow = true; |
| | |
| | | // 发送 |
| | | sendDirectiveId: this.$store.state |
| | | .UserData.user_id, |
| | | content: this.form.content |
| | | content: this.form.content, |
| | | sendTime:this.form.reportTime |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.msg.indexOf('成功') != -1) { |