diff --git a/src/components/image.vue b/src/components/image.vue index 2dbfd50..257808f 100644 --- a/src/components/image.vue +++ b/src/components/image.vue @@ -8,19 +8,19 @@ Page({ onLoad: function (options) { //略... }, - uploadPhoto() { - var that = this; - wx.chooseImage({ - count: 1, // 默认9 - sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有 - sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 - success: function (res) { -// 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片 - var tempFilePaths = res.tempFilePaths; - upload(that, tempFilePaths); - } - }) - } + + + + + + + + + + + + + }) function upload(page, path) { diff --git a/src/components/upload-image.vue b/src/components/upload-image.vue index d227d62..ef96023 100644 --- a/src/components/upload-image.vue +++ b/src/components/upload-image.vue @@ -23,17 +23,17 @@ export default { uploadImg(){ console.log('aaaaaaaaa'); let that = this; - wx.chooseImage({ - count: that.max || 3,//一次可以选择的照片数 - sizeType: ['original', 'compressed'],// 可以指定是原图还是压缩图,默认二者都有 - sourceType: ['album', 'camera'],// 可以指定来源是相册还是相机,默认二者都有 - success: function (res) { - res.tempFilePaths.forEach(v=>{ - that.urls.push(v); - }); - that.$emit("choosed",{all:that.urls,currentUpload:res.tempFilePaths});//返回一个对象,all代表选取的所有图片,currentUpload代表目前选取的图片 - } - }) + // wx.chooseImage({ + // count: that.max || 3,//一次可以选择的照片数 + // sizeType: ['original', 'compressed'],// 可以指定是原图还是压缩图,默认二者都有 + // sourceType: ['album', 'camera'],// 可以指定来源是相册还是相机,默认二者都有 + // success: function (res) { + // res.tempFilePaths.forEach(v=>{ + // that.urls.push(v); + // }); + // that.$emit("choosed",{all:that.urls,currentUpload:res.tempFilePaths});//返回一个对象,all代表选取的所有图片,currentUpload代表目前选取的图片 + // } + // }) }, //预览方法 previewImg(index){ diff --git a/src/pages/businesszcmx/businesszcmx.vue b/src/pages/businesszcmx/businesszcmx.vue index 7438de5..f612cb7 100644 --- a/src/pages/businesszcmx/businesszcmx.vue +++ b/src/pages/businesszcmx/businesszcmx.vue @@ -174,7 +174,7 @@ - {{ item.outPayee ? item.outPayee : '暂无' }} + {{ item.outPayeeStr ? item.outPayeeStr : '暂无' }} @@ -197,12 +197,12 @@ - + 第{{thisPages}}页 共{{pages}}页 - + @@ -842,17 +842,20 @@ export default { this.dataFormZCCX.nowYear = e.mp.detail.value; this.dataFormZCCX.startTime = ""; this.dataFormZCCX.endTime = ""; + this.thisPages = 1; this.searchZCCXList(); } else if (num == 2) { this.dataFormZCCX.nowYear = ""; this.dataFormZCCX.startTime = e.mp.detail.value; if (this.dataFormZCCX.startTime !== undefined && this.dataFormZCCX.endTime !== undefined) { + this.thisPages = 1; this.searchZCCXList(); } } else if (num == 3) { this.dataFormZCCX.nowYear = ""; this.dataFormZCCX.endTime = e.mp.detail.value; if (this.dataFormZCCX.startTime !== undefined && this.dataFormZCCX.endTime !== undefined) { + this.thisPages = 1; this.searchZCCXList(); } } else if (num == 11) { @@ -1021,6 +1024,7 @@ export default { //支出查询-建设单位 this.dataFormZCCX.jsdw = e.label; this.dataFormZCCX.jsdwId = e.value[0]; + this.thisPages = 1; this.searchZCCXList(); } else if (this.flag == 2) { //支出查询-工程类别 @@ -1031,6 +1035,7 @@ export default { this.dataFormZCCX.gclbId = this.dataFormZCCX.gclbId + "," + e.value[0]; this.dataFormZCCX.gclb = this.dataFormZCCX.gclb + "," + e.label; } + this.thisPages = 1; this.searchZCCXList(); } else if (this.flag == 3) { //在职人员查询 @@ -1050,6 +1055,7 @@ export default { this.dataFormZCCX.writeUserStr = e.label; this.dataFormZCCX.writeUserId = e.value[0]; // console.log("咋回事"+this.dataFormZCCX.writeUserId) + this.thisPages = 1; this.searchZCCXList(); } if (this.flag == 6) { @@ -1443,6 +1449,7 @@ export default { }; this.dataListZCCX = []; this.dataTJList = []; + this.thisPages = 1; this.searchZCCXList(); this.$forceUpdate(); }, diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 273f6ad..2cb81d5 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,20 +1,7 @@