| | |
| | | size="small" |
| | | v-model="ywTimes" |
| | | type="daterange" |
| | | value-format="yyyy-MM-dd" |
| | | range-separator="至" |
| | | start-placeholder="更换运维时间" |
| | | end-placeholder="更换运维时间"> |
| | |
| | | </el-cascader> |
| | | </el-form-item> |
| | | <el-form-item label="运维单位" prop="unitId"> |
| | | <el-select v-model="form.unitId" placeholder="运维单位"> |
| | | <el-select v-model="form.unitId" placeholder="运维单位" clearable @clear = "clearTime"> |
| | | <el-option v-for="item in unitList" :key="item.id" :label="item.value" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | inactive-text="普通点位"> |
| | | </el-switch> |
| | | </el-form-item> |
| | | <el-form-item label="省厅:" prop="provinceTag"> |
| | | <el-form-item label="视频:" prop="provinceTagVideo"> |
| | | <el-switch |
| | | v-model="form.provinceTag" |
| | | v-model="form.provinceTagVideo" |
| | | active-color="#13ce66" |
| | | inactive-color="gray" |
| | | active-text="省厅点位" |
| | | inactive-text="普通点位"> |
| | | </el-switch> |
| | | </el-form-item> |
| | | <el-form-item label="车辆:" prop="provinceTagCar"> |
| | | <el-switch |
| | | v-model="form.provinceTagCar" |
| | | active-color="#13ce66" |
| | | inactive-color="gray" |
| | | active-text="省厅点位" |
| | | inactive-text="普通点位"> |
| | | </el-switch> |
| | | </el-form-item> |
| | | <el-form-item label="人脸:" prop="provinceTagFace"> |
| | | <el-switch |
| | | v-model="form.provinceTagFace" |
| | | active-color="#13ce66" |
| | | inactive-color="gray" |
| | | active-text="省厅点位" |
| | |
| | | provinceTag: false, |
| | | importantCommandImageTag: false, |
| | | timeList: [], |
| | | timezone: [], |
| | | timezone: null, |
| | | ywTimes: [], |
| | | fileList: [], |
| | | importFile: null, |
| | |
| | | this.getDyColumn(); |
| | | }, |
| | | methods: { |
| | | clearTime() { |
| | | console.log("生效") |
| | | this.timezone = ''; |
| | | }, |
| | | getDyColumn() { |
| | | // 查询动态列 |
| | | let params = { |
| | |
| | | |
| | | // 检查每个标签,如果为true,则添加到text中 |
| | | if (row.importantTag) text += '重点点位、'; |
| | | if (row.provinceTag) text += '省厅点位、'; |
| | | if (row.provinceTagVideo) text += '省厅视频、'; |
| | | if (row.provinceTagCar) text += '省厅车辆、'; |
| | | if (row.provinceTagFace) text += '省厅人脸、'; |
| | | if (row.importantCommandImageTag) text += '重点指挥图像、'; |
| | | if (row.deptTag) text += '部级、'; |
| | | text === '' ? '普通点位' : text |
| | |
| | | updateTime: null, |
| | | deleted: null, |
| | | importantTag: false, |
| | | provinceTag: false, |
| | | provinceTagVideo: false, |
| | | provinceTagCar: false, |
| | | provinceTagFace: false, |
| | | deptTag: false, |
| | | }; |
| | | this.resetForm("form"); |
| | |
| | | submitForm() { |
| | | this.$refs['form'].validate(valid => { |
| | | if (valid) { |
| | | if (this.timezone && this.timezone.length > 0) { |
| | | this.form.startTime = this.timezone[0] |
| | | this.form.endTime = this.timezone[1] |
| | | } else { |
| | | this.form.startTime = null |
| | | this.form.endTime = null |
| | | } |
| | | if (this.form.deptId && this.form.deptId.length > 0) { |
| | | this.form.deptId = this.form.deptId[this.form.deptId.length - 1] |
| | | } |