lxf 1 år sedan
förälder
incheckning
e2361f68ac

+ 2 - 2
src/views/customer/file/index.vue

@@ -173,7 +173,7 @@
       </template>
     </el-dialog>
 
-    <el-dialog title="更多联系方式" v-model="openPerson" width="700">
+    <el-dialog title="更多联系方式" v-if="openPerson" v-model="openPerson" width="700">
       <el-form :label-position="'top'" :model="formPerson.data" :rules="rulesPerson" ref="person">
         <el-form-item label="联系人" prop="name">
           <el-input v-model="formPerson.data.name" />
@@ -981,6 +981,7 @@ const queryParams = ref({
 });
 const clickMore = (item) => {
   if (openRecordMore.value === false) {
+    queryParams.value.pageNum = 1;
     recordList.value = [];
     rowData.value = item;
     queryParams.value.customerId = item.id;
@@ -1009,7 +1010,6 @@ const judgeTotal = () => {
 };
 const moreIndex = ref(0);
 const clickInformationMore = (item, index) => {
-  queryParams.value.pageNum = 1;
   moreIndex.value = index;
   if (item.contactJson) {
     item.contact = JSON.parse(item.contactJson);

+ 2 - 2
src/views/customer/highseas/index.vue

@@ -173,7 +173,7 @@
       </template>
     </el-dialog>
 
-    <el-dialog title="更多联系方式" v-model="openPerson" width="700">
+    <el-dialog title="更多联系方式" v-if="openPerson" v-model="openPerson" width="700">
       <el-form :label-position="'top'" :model="formPerson.data" :rules="rulesPerson" ref="person">
         <el-form-item label="联系人" prop="name">
           <el-input v-model="formPerson.data.name" />
@@ -956,6 +956,7 @@ const queryParams = ref({
 });
 const clickMore = (item) => {
   if (openRecordMore.value === false) {
+    queryParams.value.pageNum = 1;
     recordList.value = [];
     rowData.value = item;
     queryParams.value.customerId = item.id;
@@ -984,7 +985,6 @@ const judgeTotal = () => {
 };
 const moreIndex = ref(0);
 const clickInformationMore = (item, index) => {
-  queryParams.value.pageNum = 1;
   moreIndex.value = index;
   if (item.contactJson) {
     item.contact = JSON.parse(item.contactJson);

+ 2 - 2
src/views/customer/privatesea/index.vue

@@ -173,7 +173,7 @@
       </template>
     </el-dialog>
 
-    <el-dialog title="更多联系方式" v-model="openPerson" width="700">
+    <el-dialog title="更多联系方式" v-if="openPerson" v-model="openPerson" width="700">
       <el-form :label-position="'top'" :model="formPerson.data" :rules="rulesPerson" ref="person">
         <el-form-item label="联系人" prop="name">
           <el-input v-model="formPerson.data.name" />
@@ -890,6 +890,7 @@ const queryParams = ref({
 });
 const clickMore = (item) => {
   if (openRecordMore.value === false) {
+    queryParams.value.pageNum = 1;
     recordList.value = [];
     rowData.value = item;
     queryParams.value.customerId = item.id;
@@ -918,7 +919,6 @@ const judgeTotal = () => {
 };
 const moreIndex = ref(0);
 const clickInformationMore = (item, index) => {
-  queryParams.value.pageNum = 1;
   moreIndex.value = index;
   if (item.contactJson) {
     item.contact = JSON.parse(item.contactJson);