Просмотр исходного кода

项目商机,合同bug修复

qymljy 3 месяцев назад
Родитель
Сommit
b48c7c2739

+ 3 - 3
src/Form/projectChange/add.vue

@@ -388,14 +388,14 @@
       <div class="fixed__btn__panel">
       <div class="fixed__btn__panel">
         <el-button
         <el-button
           size="small"
           size="small"
-          @click="onClose"
+          @click="dialogFormVisible = false"
           class="normal-btn-width inline-16"
           class="normal-btn-width inline-16"
           >{{ $t("取 消") }}</el-button
           >{{ $t("取 消") }}</el-button
         >
         >
         <duplicateCheck
         <duplicateCheck
           ref="check"
           ref="check"
           :data="form"
           :data="form"
-          @onSuccess="onClose"
+          @onSuccess="dialogFormVisible = false"
           @onCheck="onCheck"
           @onCheck="onCheck"
         ></duplicateCheck>
         ></duplicateCheck>
         <el-button
         <el-button
@@ -919,8 +919,8 @@ export default {
     },
     },
     onClose() {
     onClose() {
       this.$refs["form"].resetFields();
       this.$refs["form"].resetFields();
-      this.dialogFormVisible = false;
       this.repeats = [];
       this.repeats = [];
+      this.$emit('onSuccess')
     },
     },
     /*获取品牌*/
     /*获取品牌*/
     async queryBrand() {
     async queryBrand() {

+ 4 - 1
src/components/normal-basic-layout/details/modules/tabs/tab.vue

@@ -92,7 +92,10 @@ export default {
   },
   },
   mounted () {
   mounted () {
     setTimeout(() => {
     setTimeout(() => {
-      if (this.tabs.length == 0) {this.activeName = 'file'} else {
+      console.log(this.tabs.length,'tabs长度')
+      if (this.tabs.length == 0 && this.$route.path !== '/contractDetail') {
+        this.activeName = 'file'
+      } else {
         this.activeName = 'tab0'
         this.activeName = 'tab0'
       }
       }
     }, 100);
     }, 100);