| | |
| | | <!-- 不可用时间 --> |
| | | <el-form-item label="不可用时间" prop="unUseTimes"> |
| | | <el-button type="text" v-on:click="addUnUseTime()">添加</el-button> |
| | | <div v-for="(item, dayIndex) in huiminCard.unUseTimes" |
| | | <div v-for="(item, dayIndex) in unUseTimes" |
| | | :key="dayIndex" |
| | | class="date-picker-item mb-2"> |
| | | <el-date-picker |
| | |
| | | introduces: null, |
| | | multipleSelection1: [], |
| | | multipleSelection2: [], |
| | | unUseTimes: [ |
| | | {} |
| | | ], |
| | | huiminCard: { |
| | | id: null, |
| | | huiMinName: null, |
| | |
| | | useWeeks: null, |
| | | useTimes: null, |
| | | introduce: null, |
| | | unUseTimes: [ |
| | | {} |
| | | ], |
| | | useScope: '1', |
| | | useIds: null, |
| | | sort: null, |
| | |
| | | console.log(this.weeks) |
| | | }, |
| | | addUnUseTime() { |
| | | this.huiminCard.unUseTimes.push({}); |
| | | this.unUseTimes.push({}); |
| | | }, |
| | | removeUnUseTime(index) { |
| | | this.huiminCard.unUseTimes.splice(index, 1); |
| | | this.unUseTimes.splice(index, 1); |
| | | }, |
| | | storeList() { |
| | | this.tableStoreLoading = true; |
| | |
| | | data.startTime = this.periodOfValidity[0]; |
| | | data.endTime = this.periodOfValidity[1]; |
| | | } |
| | | console.log(data.startTime) |
| | | console.log(data.endTime) |
| | | |
| | | if (this.unUseTimes){ |
| | | data.unUseTimes = JSON.stringify(this.unUseTimes) |
| | | } |
| | | |
| | | let vm = this; |
| | | let ajax = new $ax(Feng.ctxPath + "/tHuiminCard/add", |