|
@@ -617,42 +617,35 @@ const handleMenuSelect = async ({ key }) => {
|
|
} else if (key === 'clear') {
|
|
} else if (key === 'clear') {
|
|
const { pkeyId, index } = tableFormItemNode.value
|
|
const { pkeyId, index } = tableFormItemNode.value
|
|
const refs = await getFormRef(pkeyId)
|
|
const refs = await getFormRef(pkeyId)
|
|
- delMessageV2(async (action, instance, done) => {
|
|
|
|
- if (action === 'confirm') {
|
|
|
|
- instance.confirmButtonLoading = true
|
|
|
|
- const { error, code, msg } = await wbsApi.rmTabdataInfo({
|
|
|
|
- pkeyId: pkeyId,
|
|
|
|
- })
|
|
|
|
- if (!error && code === 200 ) {
|
|
|
|
- listDatas.value[index].isTableRender = false
|
|
|
|
- if (DragModalTableForm.value.length > 0) {
|
|
|
|
- let draindex = arrIndex( DragModalTableForm.value, 'pkeyId', pkeyId)
|
|
|
|
- DragModalTableForm.value[draindex].isTableRender = false
|
|
|
|
- }
|
|
|
|
|
|
+ await HcDelMsg({}, async (instance, resolve) => {
|
|
|
|
+ instance.confirmButtonLoading = true
|
|
|
|
+ instance.confirmButtonText = '删除中...'
|
|
|
|
+ const { error, code, msg } = await wbsApi.rmTabdataInfo({ pkeyId: pkeyId })
|
|
|
|
+ if (!error && code === 200 ) {
|
|
|
|
+ listDatas.value[index].isTableRender = false
|
|
|
|
+ if (DragModalTableForm.value.length > 0) {
|
|
|
|
+ let draindex = arrIndex( DragModalTableForm.value, 'pkeyId', pkeyId)
|
|
|
|
+ DragModalTableForm.value[draindex].isTableRender = false
|
|
|
|
+ }
|
|
|
|
+ await refs?.getTableFormInfo(pkeyId)
|
|
|
|
+ await nextTick()
|
|
|
|
+ listDatas.value[index].isTableRender = true
|
|
|
|
+ listDatas.value[index].isTableForm = true
|
|
|
|
+ if (DragModalTableForm.value.length > 0) {
|
|
|
|
+ let draindex = arrIndex( DragModalTableForm.value, 'pkeyId', pkeyId)
|
|
|
|
+ DragModalTableForm.value[draindex].isTableForm = true
|
|
|
|
+ DragModalTableForm.value[draindex].isTableRender = true
|
|
|
|
+ listDatas.value[index].isWindow = false
|
|
|
|
+ DragModalTableForm.value.splice(draindex, 1)
|
|
await refs?.getTableFormInfo(pkeyId)
|
|
await refs?.getTableFormInfo(pkeyId)
|
|
-
|
|
|
|
- nextTick(async ()=>{
|
|
|
|
- listDatas.value[index].isTableRender = true
|
|
|
|
- listDatas.value[index].isTableForm = true
|
|
|
|
- if (DragModalTableForm.value.length > 0) {
|
|
|
|
- let draindex = arrIndex( DragModalTableForm.value, 'pkeyId', pkeyId)
|
|
|
|
- DragModalTableForm.value[draindex].isTableForm = true
|
|
|
|
- DragModalTableForm.value[draindex].isTableRender = true
|
|
|
|
- listDatas.value[index].isWindow = false
|
|
|
|
- DragModalTableForm.value.splice(draindex, 1)
|
|
|
|
- await refs?.getTableFormInfo(pkeyId)
|
|
|
|
- windowClick( listDatas.value[index], index)
|
|
|
|
- }
|
|
|
|
- window.$message.success(msg)
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- window.$message.error(msg)
|
|
|
|
|
|
+ windowClick( listDatas.value[index], index)
|
|
}
|
|
}
|
|
- instance.confirmButtonLoading = false
|
|
|
|
- done()
|
|
|
|
|
|
+ window.$message.success(msg)
|
|
} else {
|
|
} else {
|
|
- done()
|
|
|
|
|
|
+ window.$message.error(msg)
|
|
}
|
|
}
|
|
|
|
+ resolve() //关闭弹窗的回调
|
|
|
|
+ instance.confirmButtonLoading = false
|
|
})
|
|
})
|
|
} else if (key === 'water') {
|
|
} else if (key === 'water') {
|
|
console.log('含水率')
|
|
console.log('含水率')
|