| | |
| | | <el-form-item label="发送设置:" v-if="currenttype != 2"> |
| | | <el-radio-group v-model="form.sendType"> |
| | | <el-radio :label="1">时间段发送</el-radio> |
| | | <el-radio :label="3">即刻发送</el-radio> |
| | | <el-radio :label="3">时间点发送</el-radio> |
| | | <el-radio :label="2">即刻发送</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="发送日期:" v-if="form.sendType == 1"> |
| | |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="发送时间点:" v-if="form.sendType == 3"> |
| | | <div style="display: flex"> |
| | | <div style="margin-right: 10px"> |
| | | <el-date-picker |
| | | v-model="time4" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | @change="Totaldate" |
| | | type="datetime" |
| | | placeholder="选择日期时间" |
| | | > |
| | | </el-date-picker> |
| | | </div> |
| | | </div> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="发送时间段:" v-if="form.sendType == 1"> |
| | | <div style="display: flex"> |
| | | <div style="margin-right: 10px"> |
| | |
| | | { label: "匹配符", width: "", prop: "character" }, |
| | | { label: "替换值", width: "", prop: "Replacementvalue" }, |
| | | ], |
| | | Serviceform: [ |
| | | preachform: [ |
| | | { label: "多媒体", value: 1 }, |
| | | { label: "纸质", value: 2 }, |
| | | { label: "电话", value: 3 }, |
| | |
| | | time1: "", //上午时间段 |
| | | time2: "", //下午时间段 |
| | | time3: "", //晚上时间段 |
| | | time4: "", //晚上时间段 |
| | | topqueryParams: { |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | |
| | | }, |
| | | // 保存 |
| | | submitForm(formName) { |
| | | // this.form.serviceform = this.checkList.join(","); |
| | | // this.form.preachform = this.checkList.join(","); |
| | | this.formatFn(1); |
| | | this.form.hospType = this.currenttype; |
| | | const filteredArray = this.variableList.filter( |
| | |
| | | this.formatFn(2); |
| | | console.log(this.form.showDate, "this.form"); |
| | | this.daytime = this.form.showDate.split(","); |
| | | if (this.form.showTimeMorn) |
| | | if (this.form.showTimeMorn) { |
| | | if (this.form.sendType == 3) { |
| | | this.time4 = this.form.showTimeMorn; |
| | | } else { |
| | | this.time1 = this.form.showTimeMorn.split(","); |
| | | } |
| | | } |
| | | if (this.form.showTimeNoon) |
| | | this.time2 = this.form.showTimeNoon.split(","); |
| | | if (this.form.showTimeNight) |
| | |
| | | changeTime(row) { |
| | | console.log(row, "时间"); |
| | | this.processingTime(); |
| | | }, |
| | | Totaldate(row) { |
| | | console.log(row, "时间"); |
| | | this.form.sendTimeslot = [{ begantime: row, endtime: row, xh: 1 }]; |
| | | this.form.showTimeMorn = row; |
| | | console.log(this.form.sendTimeslot, "时间"); |
| | | }, |
| | | changeTimeday(row) { |
| | | const startDate = new Date(row[0]); |
| | |
| | | }, |
| | | // 处理服务形式 |
| | | formatFn(type) { |
| | | console.log(this.Serviceform); |
| | | console.log(this.checkList); |
| | | console.log(this.preachform, "preachform"); |
| | | console.log(this.checkList, "checklist"); |
| | | let list = []; |
| | | let formlist = []; |
| | | if (type == 1) { |
| | | this.Serviceform.forEach((item) => { |
| | | this.preachform.forEach((item) => { |
| | | this.checkList.forEach((obj) => { |
| | | if (item.label == obj) { |
| | | list.push(item.value); |
| | |
| | | }); |
| | | this.form.preachform = list.join(","); |
| | | } else { |
| | | console.log(this.form.preachform, "this.form.preachform"); |
| | | formlist = this.form.preachform.split(","); |
| | | this.Serviceform.forEach((item) => { |
| | | console.log(11); |
| | | this.preachform.forEach((item) => { |
| | | formlist.forEach((obj) => { |
| | | if (item.value == obj) { |
| | | list.push(item.label); |