浏览代码

ETA1.6.9 修改+2

hbchen 7 月之前
父节点
当前提交
8be8b80aca
共有 1 个文件被更改,包括 23 次插入28 次删除
  1. 23 28
      src/views/semantics_manage/asr/ASR.vue

+ 23 - 28
src/views/semantics_manage/asr/ASR.vue

@@ -161,26 +161,8 @@
               </template>
             </el-input>
           </div>
-          <div class="deail-top-operation">
-            <el-button type="primary" style="width: 120px;" v-if="articleDetail && articleDetail.type==1" @click="save"
-            :loading="saveLoading" v-permission="permissionBtn.semanticPermission.ASR_saveArticles">保存</el-button>
-            <template v-else>
-              <div class="content-row-operation active" style="margin-right: 0;" v-permission="permissionBtn.semanticPermission.ASR_saveArticles"
-              @click="save" v-loading="saveLoading">
-                <img src="~@/assets/img/icons/copy-active.png" />
-                <span>保存</span>
-              </div>
-              <div class="content-row-operation active" @click="videoHidden=!videoHidden" style="margin-right: 0;" v-if="articleDetail.ResourceUrl">
-                <img :src="videoHidden?require('@/assets/img/icons/eyes-show-active.png'):require('@/assets/img/icons/eyes-hide-active.png')" />
-                <span>{{ videoHidden?"显示":"隐藏" }}</span>
-              </div>
-              <div class="content-row-operation drange" @click="deleteMedia" style="margin-right: 0;" v-if="articleDetail.ResourceUrl"
-              v-permission="permissionBtn.semanticPermission.ASR_deleteVideo">
-                <img src="~@/assets/img/icons/delete-red.png" />
-                <span>删除</span>
-              </div>
-            </template>
-          </div>
+          <el-button type="primary" style="width: 120px;" @click="save" :loading="saveLoading" 
+          v-permission="permissionBtn.semanticPermission.ASR_saveArticles">保存</el-button>
         </div>
         <div class="detail-tag-area">
           <div class="tag-button" v-for="(item,index) in articleDetail.Tags" :key="item.TagId" >
@@ -195,6 +177,17 @@
           <media-com :ResourceUrl="articleDetail.ResourceUrl" :type="articleDetail.type" ref="mediaRef" />
         </div>
         <div class="detail-content">
+          <div v-if="articleDetail && articleDetail.type==2" class="deail-top-operation">
+            <div class="content-row-operation active" @click="videoHidden=!videoHidden" style="margin-right: 0;" v-if="articleDetail.ResourceUrl">
+              <img :src="videoHidden?require('@/assets/img/icons/eyes-show-active.png'):require('@/assets/img/icons/eyes-hide-active.png')" />
+              <span>{{ videoHidden?"显示":"隐藏" }}</span>
+            </div>
+            <div class="content-row-operation drange" @click="deleteMedia" style="margin-right: 0;" v-if="articleDetail.ResourceUrl"
+            v-permission="permissionBtn.semanticPermission.ASR_deleteVideo">
+              <img src="~@/assets/img/icons/delete-red.png" />
+              <span>删除</span>
+            </div>
+          </div>
           <div class="content-mutil-operation">
             <el-checkbox label="全选" style="margin-right: 30px;" @change="checkAll"
             v-model="isCheckAll" :indeterminate="isIndeterminate"></el-checkbox>
@@ -1803,12 +1796,6 @@ export default {
             }
           }
         }
-        .deail-top-operation{
-          display: flex;
-          align-items: center;
-          flex-wrap: wrap;
-          gap:0 20px;
-        }
       }
       .detail-tag-area{
         margin: 0 25px 10px;
@@ -1823,16 +1810,24 @@ export default {
       }
       .detail-video-area{
         height: 390px;
-        margin: 0 25px 20px;
+        margin: 0 25px;
         background-color: black;  
         text-align: center;
       }
       .detail-content{
         padding: 0 25px;
+        .deail-top-operation{
+          display: flex;
+          align-items: center;
+          justify-content: flex-end;
+          flex-wrap: wrap;
+          gap:0 20px;
+          margin: 10px 0;
+        }
         .content-mutil-operation{
           display: flex;
           align-items: center;
-          margin-bottom: 20px;
+          margin: 20px 0;
         }
         .content-title{
           font-size: 16px;