Parcourir la source

fix: 解锁详情不需要操作按钮

liujt il y a 9 heures
Parent
commit
434f1a4c29

+ 2 - 2
src/views/warehouseManagement/unlockApplication/components/unlockModal.vue

@@ -44,7 +44,7 @@
         </ele-pro-table>
       </div>
     </el-card>
-    <div class="btns" v-if="title != '详情'">
+    <div class="btns" v-if="modalType != 'detail'">
       <el-button :loading="loading" type="primary" size="small" @click="handleSave(0)"
         >保存</el-button
       >
@@ -138,7 +138,7 @@
     },
     computed: {
       readonlyMode() {
-        return this.title === '详情';
+        return this.modalType === 'detail';
       },
       tableColumns() {
         return this.title === '详情'