| | |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="事件名称" prop="eventName"> |
| | | <el-input class="gd-input" v-model="formData.eventName" placeholder="请输入" clearable /> |
| | | <el-input |
| | | :disabled="distributeStatus === 2" |
| | | class="gd-input" |
| | | v-model="formData.eventName" |
| | | placeholder="请输入" |
| | | clearable |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | |
| | | const userList = ref([]) |
| | | const currentRow = ref(null) // 当前线索数据 |
| | | const workOrderId = ref(null) // 工单ID |
| | | const distributeStatus = ref(null) |
| | | |
| | | // 校验规则 |
| | | const rules = { |
| | |
| | | eventName: formData.value.eventName, |
| | | latitude: currentRow.value.latitude || 0, |
| | | longitude: currentRow.value.longitude || 0, |
| | | resultId: currentRow.value.id, |
| | | resultId: currentRow.value.resultId ? currentRow.value.resultId : currentRow.value.id, |
| | | workOrderId: workOrderId.value, |
| | | } |
| | | await gdTaskResultDistributeApi(params) |
| | |
| | | |
| | | // 打开弹框 |
| | | async function open({ row, workOrderId: orderId } = {}) { |
| | | console.log('333',row) |
| | | currentRow.value = row |
| | | workOrderId.value = orderId |
| | | formData.value = initForm() |
| | | formData.value.eventName = row.eventName |
| | | distributeStatus.value = row.distributeStatus || row.eventStatus |
| | | } |
| | | |
| | | defineExpose({ open }) |