refactor(task-management): 重构工单管理功能
- 更新了工作台页面的工单列表和详情展示 - 重构了工单关闭和删除的逻辑 -优化了工单详情弹窗的展示内容 - 调整了 API 接口的参数传递方式
This commit is contained in:
@@ -8,8 +8,8 @@ const recordLeftRef = ref(null);
|
||||
const emit = defineEmits(['update:value'])
|
||||
const props = defineProps({
|
||||
value: {
|
||||
type:String,
|
||||
default:''
|
||||
type:Object,
|
||||
default:{}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -54,7 +54,12 @@ watch(() => props.value, async (newVal) => {
|
||||
})
|
||||
const getHistoryDetail=(newVal)=>{
|
||||
detailLoading.value=true
|
||||
getHistoryCallContent(newVal).then(res => {
|
||||
let param={
|
||||
orderNumber:newVal.orderNumber,
|
||||
alarmObject :newVal.alarmObject,
|
||||
alarmUnit :newVal.alarmUnit,
|
||||
}
|
||||
getHistoryCallContent(param).then(res => {
|
||||
if (res.code === 1000) {
|
||||
detailLoading.value=false
|
||||
res.data?.forEach(item => {
|
||||
@@ -69,6 +74,7 @@ const getHistoryDetail=(newVal)=>{
|
||||
leftHeadData.value.orderName = res.data[0].orderName || '--';
|
||||
}
|
||||
} else {
|
||||
detailLoading.value=false
|
||||
ElMessage.error(res.msg);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user