|
@@ -163,7 +163,6 @@ const handleMessage = (event) => {
|
|
msg = event.detail.data[0]
|
|
msg = event.detail.data[0]
|
|
// #endif
|
|
// #endif
|
|
if (msg.source === 'web') {
|
|
if (msg.source === 'web') {
|
|
- console.log('收到web消息', msg)
|
|
|
|
setMsgData(msg)
|
|
setMsgData(msg)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -192,7 +191,6 @@ const setMsgData = ({type, data}) => {
|
|
//当前表格
|
|
//当前表格
|
|
if (type === 'formIndex') {
|
|
if (type === 'formIndex') {
|
|
const {id, page} = getObjValue(data)
|
|
const {id, page} = getObjValue(data)
|
|
- console.log('page', page)
|
|
|
|
itemFormId.value = id //当前表格id
|
|
itemFormId.value = id //当前表格id
|
|
currentPage.value = page //当前页码
|
|
currentPage.value = page //当前页码
|
|
}
|
|
}
|
|
@@ -203,7 +201,6 @@ const setMsgData = ({type, data}) => {
|
|
}
|
|
}
|
|
//保存结果
|
|
//保存结果
|
|
if (type === 'saveRes') {
|
|
if (type === 'saveRes') {
|
|
- uni.hideLoading();
|
|
|
|
saveResData(data)
|
|
saveResData(data)
|
|
}
|
|
}
|
|
//消息提示
|
|
//消息提示
|
|
@@ -372,10 +369,10 @@ const formSaveClick = () => {
|
|
}
|
|
}
|
|
|
|
|
|
//保存结果
|
|
//保存结果
|
|
-const saveResData = (data) => {
|
|
|
|
|
|
+const saveResData = async (data) => {
|
|
|
|
+ await checkTheLogTaskStatus()
|
|
if (data === 'success') {
|
|
if (data === 'success') {
|
|
- uni.showLoading({title: '获取预览中...', mask: true})
|
|
|
|
- //flushedPage()
|
|
|
|
|
|
+ previewTap()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|