jiand 7 mēneši atpakaļ
vecāks
revīzija
985072812f

+ 2 - 0
src/views/capitalManage/cooperationSurvey/index.vue

@@ -108,6 +108,8 @@ export default {
     fetchData(type) {
       if (type === 'search') {
         this.deepSearch = JSON.parse(JSON.stringify(this.search))
+        this.page = 1
+        this.size = 10
       }
       if (Object.keys(this.deepSearch).length !== 0) {
         this.search = JSON.parse(JSON.stringify(this.deepSearch))

+ 5 - 5
src/views/capitalManage/relationDisburse/details.vue

@@ -104,17 +104,17 @@ export default {
     }
   },
   created() {
-    this.getDetails()
+    this.fetchData()
   },
   methods: {
-    getDetails() {
+    fetchData() {
       const { id, institutionName } = this.$route.query
       this.ruleForm.name = institutionName
       this.loading = true
       const params = {
         institutionId: id,
-        page: this.page,
-        rows: this.size
+        page: this.page || 1,
+        rows: this.size || 10
       }
       getRelationDisburseDetails(params).then(({ data: { rows, records }}) => {
         this.loading = false
@@ -139,7 +139,7 @@ export default {
           relationCustomerDisburseId: relationCustomerDisburseId || ''
         }
         relationDisbursDetailsDele(params).then(() => {
-          this.getDetails()
+          this.fetchData()
           this.$message.success('删除该绑定关系成功')
         })
       })