qinhouyu 11 月之前
父节点
当前提交
8295a97859
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 6 1
      src/components/ObsImageUpload/index.vue
  2. 3 0
      src/views/zdsz/engineeringGasOpening/indexCivi.vue

+ 6 - 1
src/components/ObsImageUpload/index.vue

@@ -15,7 +15,7 @@
                :headers="headers"
                :file-list="fileList"
                :on-preview="handlePictureCardPreview"
-               :class="{hide: this.fileList.length >= this.limit}"
+               :class="{hide: this.fileList.length >= this.limit,obsImageUploads:disabled?'obsImageUploads':''}"
     >
       <i class="el-icon-plus abs"></i>
     </el-upload>
@@ -267,5 +267,10 @@ export default {
   opacity: 0;
   transform: translateY(0);
 }
+::v-deep .obsImageUploads {
+  .el-upload--picture-card {
+    display: none;
+  }
+}
 </style>
 

+ 3 - 0
src/views/zdsz/engineeringGasOpening/indexCivi.vue

@@ -1128,6 +1128,9 @@ export default {
     /** 修改按钮操作 */
     handleview(row) {
       this.open = true;
+      this.$nextTick(()=>{
+        this.status='read-only'
+      })
       this.reset();
       let newData = row
       this.districtHasChanged(newData.district)