|
@@ -100,6 +100,7 @@
|
|
|
invname: ""
|
|
|
} as JoinRecord,
|
|
|
num: 0,
|
|
|
+ maxcount: 0,
|
|
|
dyImgName: '',
|
|
|
minAvailableNumber: 1,
|
|
|
data: [{
|
|
@@ -113,7 +114,7 @@
|
|
|
// 覆盖系统默认的返回行为,返回到指定页面
|
|
|
//?photoitem=${photoitem}&num=${num}&pid=${pid}
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages/work/record/RecordList?photoitem=${this.joinRecord.photoitem}&num=${this.joinRecord.num}&pid=${this.joinRecord.pid}&senum=${this.joinRecord.senum}`,
|
|
|
+ url: `/pages/work/record/RecordList?photoitem=${this.joinRecord.photoitem}&num=${this.maxcount}&pid=${this.joinRecord.pid}&senum=${this.joinRecord.senum}`,
|
|
|
// 修改动画方向为从左到右退回
|
|
|
animationType: 'slide-in-left', // 使用从左到右滑出的动画效果
|
|
|
animationDuration: 300 // 动画持续时间,单位ms
|
|
@@ -125,6 +126,7 @@
|
|
|
this.path = options?.['path'] ?? ''
|
|
|
let recordId = options?.['recordId'] ?? ''
|
|
|
let num = options?.['num'] ?? ''
|
|
|
+ let maxcount = options?.['maxcount'] ?? ''
|
|
|
console.log(this.path)
|
|
|
if (this.path != '') {
|
|
|
this.data = []
|
|
@@ -155,6 +157,9 @@
|
|
|
if (num != '') {
|
|
|
this.num = parseInt(num)
|
|
|
}
|
|
|
+ if (maxcount != '') {
|
|
|
+ this.maxcount = parseInt(maxcount)
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
navigateBack() {
|
|
@@ -269,9 +274,9 @@
|
|
|
});
|
|
|
const newPath = `${uni.env.USER_DATA_PATH}/uploadImgs/${newImgName}`
|
|
|
this.renameFile(this.path, newPath)
|
|
|
-
|
|
|
+
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages/work/record/RecordList?photoitem=${this.joinRecord.photoitem}&num=${this.joinRecord.num}&pid=${this.joinRecord.pid}&senum=${this.joinRecord.senum}`,
|
|
|
+ url: `/pages/work/record/RecordList?photoitem=${this.joinRecord.photoitem}&num=${this.maxcount}&pid=${this.joinRecord.pid}&senum=${this.joinRecord.senum}`,
|
|
|
// 修改动画方向为从左到右退回
|
|
|
animationType: 'slide-in-left', // 使用从左到右滑出的动画效果
|
|
|
animationDuration: 300 // 动画持续时间,单位ms
|