| | |
| | | {{ item.unitName }}({{ item.workOrderCount }}) |
| | | </el-menu-item> |
| | | </el-menu> |
| | | <el-popover |
| | | placement="right" |
| | | width="400" |
| | | trigger="click"> |
| | | <el-form :model="settingForm" :rules="settingRules" ref="settingForm" label-width="120px"> |
| | | <el-form-item label="录像质量" prop="videoQuality"> |
| | | <el-select style="width: 100%" v-model="settingForm.videoQuality" placeholder="最低录像质量"> |
| | | <el-option label="全录像" value="全录像"/> |
| | | <el-option label="部分录像" value="部分录像"/> |
| | | <el-option label="无录像" value="无录像"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="点位离线时长" prop="outLine"> |
| | | <el-input type="number" v-model="settingForm.outLine" placeholder="不能超过多久"> |
| | | <template slot="append">分钟</template> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="视频标注准确率" prop="videoLabel"> |
| | | <el-input type="number" v-model="settingForm.videoLabel" placeholder="最低准确率"> |
| | | <template slot="append">%</template> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="submitSetting">保存</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-button title="自动生成工单设置" slot="reference" class="setting" style="" type="success" icon="el-icon-s-tools" circle></el-button> |
| | | </el-popover> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | |
| | | <span style="font-weight: bold;font-size: 16px">快捷下发</span> |
| | | <el-form ref="fastDistributeForm" :model="fastDistributeForm" :rules="fastDistributeRules" label-width="80px"> |
| | | <el-form-item label="快捷方式" prop="fastWay"> |
| | | <el-radio v-model="fastDistributeForm.fastWay" label="0">最近30分钟</el-radio> |
| | | <el-radio v-model="fastDistributeForm.fastWay" label="01">最近1小时</el-radio> |
| | | <el-radio v-model="fastDistributeForm.fastWay" label="10">最近2小时</el-radio> |
| | | <el-radio v-model="fastDistributeForm.fastWay" label="11">最近1天</el-radio> |
| | | <el-radio v-model="fastDistributeForm.fastWay" label="101">自定义</el-radio> |
| | | <el-radio v-model="fastDistributeForm.fastWay" label="LAST_HALF_HOUR">最近30分钟</el-radio> |
| | | <el-radio v-model="fastDistributeForm.fastWay" label="LAST_HOUR">最近1小时</el-radio> |
| | | <el-radio v-model="fastDistributeForm.fastWay" label="LAST_TWO_HOUR">最近2小时</el-radio> |
| | | <el-radio v-model="fastDistributeForm.fastWay" label="LAST_DAY">最近1天</el-radio> |
| | | <el-radio v-model="fastDistributeForm.fastWay" label="CUSTOM">自定义</el-radio> |
| | | </el-form-item> |
| | | <el-form-item v-if="fastDistributeForm.fastWay === '101'" label="时间范围"> |
| | | <el-form-item v-if="fastDistributeForm.fastWay === 'CUSTOM'" label="时间范围"> |
| | | <el-date-picker |
| | | style="width: 100%" |
| | | v-model="fastTimeRange" |
| | | type="datetimerange" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | end-placeholder="结束日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | // 下发表单验证 |
| | | fastDistributeRules: { |
| | | fastWay: [ |
| | | { required: true, message: "请选择快速分发方式", trigger: "change" } |
| | | { required: true, message: "请选择快速分发方式", trigger: "blur" } |
| | | ], |
| | | fastNumLimit: [ |
| | | { required: true, message: "请输入快速分发数量限制", trigger: "change" } |
| | | { required: true, message: "请输入快速分发数量限制", trigger: "blur" } |
| | | ], |
| | | errorType: [ |
| | | { required: true, message: "请故障类型", trigger: "change" } |
| | | { required: true, message: "请故障类型", trigger: "blur" } |
| | | ], |
| | | }, |
| | | queryParams: { |
| | |
| | | this.fastDistributeForm.end = null |
| | | this.fastDistributeForm.fastNumLimit = null |
| | | this.fastTimeRange = [] |
| | | this.fastDistributeForm.errorType = null |
| | | }, |
| | | // 全部下发 |
| | | allDistribute() { |
| | | selectedIdsDistribute([]).then(res => { |
| | | selectedIdsDistribute([], this.unitId).then(res => { |
| | | this.$message.success("工单下发成功") |
| | | this.page(); |
| | | }) |
| | | }, |
| | | // 快速下发 |
| | | fastDistribute() { |
| | | // this.$refs['fastDistributeForm'].validate((valid) => { |
| | | // if (valid) { |
| | | // 如果是自定义方式,那么时间段必填 |
| | | if (this.fastDistributeForm.fastWay === '101' && !this.fastTimeRange.length > 0) { |
| | | this.$message.warning("请选择时间范围") |
| | | return false |
| | | } |
| | | if (this.fastTimeRange.length > 0) { |
| | | this.fastDistributeForm.start = this.fastTimeRange[0] |
| | | this.fastDistributeForm.end = this.fastTimeRange[1] |
| | | } |
| | | this.$refs['fastDistributeForm'].validate((valid) => { |
| | | if (valid) { |
| | | this.fastDistributeForm.start = this.fastTimeRange[0] |
| | | this.fastDistributeForm.end = this.fastTimeRange[1] |
| | | this.fastDistributeForm.unitId = this.unitId |
| | | fastDistribute(this.fastDistributeForm).then(res => { |
| | | // this.clearFastDistributeForm(); |
| | | res.code == 200 ? this.$message.success(res.msg) : this.$message.warning(res.msg) |
| | | this.clearFastDistributeForm(); |
| | | this.page(); |
| | | }) |
| | | // } else { |
| | | // return false |
| | | // } |
| | | // }) |
| | | } |
| | | }) |
| | | }, |
| | | // 选中工单下发 |
| | | selectedDistribute() { |
| | |
| | | this.$message.warning("请先选择要下发的工单") |
| | | return |
| | | } |
| | | selectedIdsDistribute(this.multipleSelection).then(res => { |
| | | selectedIdsDistribute(this.multipleSelection, this.unitId).then(res => { |
| | | this.$message.success("工单下发成功") |
| | | this.page(); |
| | | }) |
| | | }, |
| | | handleSelect(key, keyPath) { |