智慧保安APP验收版本
zengh
2021-12-06 886a9f2deb311453f12cb0302bcb882a9d331d7a
pages/dispatch/text.vue
@@ -9,6 +9,11 @@
               <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="请选择指令接收人"
@@ -69,12 +74,21 @@
         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: {
@@ -97,6 +111,9 @@
         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;
@@ -167,7 +184,8 @@
                        // 发送
                        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) {