|
@@ -108,8 +108,7 @@ const pdfList = ref([])
|
|
const dateEnd = ref(dayjs().format("YYYY-MM-DD"));
|
|
const dateEnd = ref(dayjs().format("YYYY-MM-DD"));
|
|
|
|
|
|
//页面启动
|
|
//页面启动
|
|
-onLoad((options) => {
|
|
|
|
- const {id, node} = getObjValue(options)
|
|
|
|
|
|
+onLoad(({id, node}) => {
|
|
dataId.value = id ?? '';
|
|
dataId.value = id ?? '';
|
|
if (id) {
|
|
if (id) {
|
|
uni.setNavigationBarTitle({title: '编辑声像文件'})
|
|
uni.setNavigationBarTitle({title: '编辑声像文件'})
|
|
@@ -127,7 +126,6 @@ onLoad((options) => {
|
|
shootingTimeStr: dateEnd.value,
|
|
shootingTimeStr: dateEnd.value,
|
|
shootingUser: real_name
|
|
shootingUser: real_name
|
|
}
|
|
}
|
|
- console.log(nodes.type)
|
|
|
|
if (nodes.type === 1) {
|
|
if (nodes.type === 1) {
|
|
getFileTitleNamedata(nodes.treeId)
|
|
getFileTitleNamedata(nodes.treeId)
|
|
}
|
|
}
|
|
@@ -291,6 +289,9 @@ const updateImageData = async () => {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
successToast('保存成功')
|
|
successToast('保存成功')
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ uni.navigateBack()
|
|
|
|
+ }, 1500)
|
|
} else {
|
|
} else {
|
|
errorToast('保存失败: ' + msg)
|
|
errorToast('保存失败: ' + msg)
|
|
}
|
|
}
|