Преглед изворни кода

提交上传保单提取签单时间按钮优化

hxl13994548489 пре 1 година
родитељ
комит
5bd0949f96
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      src/views/Task/daikeComponents/KtLetter.vue

+ 4 - 4
src/views/Task/daikeComponents/KtLetter.vue

@@ -1786,7 +1786,7 @@
           <el-upload class="upload-demo" ref="jqPolicyupload" action="#" :limit="1" :auto-upload="false"
             :on-remove="(file) => removePhoto(file, policyNumberForm.jqPolicyList, 'jqPolicyList')"
             :file-list="policyNumberForm.jqPolicyList" :on-change="(file) => policydrivingupload(file, 'jqPolicy')">
-            <el-button size="small" type="primary">点击上传</el-button>
+            <el-button size="small" type="primary" v-if="policyNumberForm.jqPolicyList.length===0">点击上传</el-button>
             <el-button size="small" type="primary" @click.stop="policyNumberForm.jqPolicyList = [];jqSignDate=null">清空</el-button>
           </el-upload>
         </el-form-item>
@@ -1794,7 +1794,7 @@
           <el-upload class="upload-demo" ref="syPolicyupload" action="#" :limit="1" :auto-upload="false"
             :on-remove="(file) => removePhoto(file, policyNumberForm.syPolicyList, 'syPolicyList')"
             :file-list="policyNumberForm.syPolicyList" :on-change="(file) => policydrivingupload(file, 'syPolicy')">
-            <el-button size="small" type="primary">点击上传</el-button>
+            <el-button size="small" type="primary" v-if="policyNumberForm.syPolicyList.length===0">点击上传</el-button>
             <el-button size="small" type="primary" @click.stop="policyNumberForm.syPolicyList = [];sySignDate=null">清空</el-button>
           </el-upload>
         </el-form-item>
@@ -1802,7 +1802,7 @@
           <el-upload class="upload-demo" ref="noPolicyupload" action="#" :limit="1" :auto-upload="false"
             :on-remove="(file) => removePhoto(file, policyNumberForm.noPolicyList, 'noPolicyList')"
             :file-list="policyNumberForm.noPolicyList" :on-change="(file) => policydrivingupload(file, 'noPolicy')">
-            <el-button size="small" type="primary">点击上传</el-button>
+            <el-button size="small" type="primary" v-if="policyNumberForm.noPolicyList.length===0">点击上传</el-button>
             <el-button size="small" type="primary" @click.stop="policyNumberForm.noPolicyList = []">清空</el-button>
           </el-upload>
         </el-form-item>
@@ -1810,7 +1810,7 @@
           <el-upload class="upload-demo" ref="jqSignupload" action="#" :limit="1" :auto-upload="false"
             :on-remove="(file) => removePhoto(file, policyNumberForm.jqSignList, 'jqSignList')"
             :file-list="policyNumberForm.jqSignList" :on-change="(file) => policydrivingupload(file, 'jqSign')">
-            <el-button size="small" type="primary">点击上传</el-button>
+            <el-button size="small" type="primary" v-if="policyNumberForm.jqSignList.length===0">点击上传</el-button>
             <el-button size="small" type="primary" @click.stop="policyNumberForm.jqSignList = []">清空</el-button>
           </el-upload>
         </el-form-item>