瀏覽代碼

ppt转报告分类接口换掉

Karsa 9 月之前
父節點
當前提交
26b15ac8e6

二進制
src/assets/img/data_m/move_ico.png


+ 1 - 1
src/views/approve_manage/mixins/approveMixins.js

@@ -1,7 +1,7 @@
 import {approveInterence} from '@/api/modules/approve.js'
 const filterNodes = (arr,hasDisabled)=>{
     arr.length &&arr.forEach((item) => {
-        hasDisabled&&(item.disabled = item.HasFlow)
+        hasDisabled&&(item.disabled = (item.Children&&item.Children.length)?false:item.HasFlow)
         item.Children.length && filterNodes(item.Children,hasDisabled);
         if (!item.Children.length) {
             delete item.Children;

+ 3 - 4
src/views/ppt_manage/newVersion/components/catalog/transReport.vue

@@ -40,6 +40,7 @@
 
 <script>
 import {classifyTelList} from 'api/api.js';
+import { classifylist } from '@/api/modules/reportV2.js';
 import * as reportEnInterface from '@/api/modules/reportEnApi';
 export default {
   props:{
@@ -85,12 +86,10 @@ export default {
   methods: {
     async getClassifylist(){
       const res = this.$parent.currentLang!=='en'
-                  ?await classifyTelList()
+                  ?await classifylist({CurrentIndex:0,PageSize:1000,KeyWord:''})
                   :await reportEnInterface.classifyList({CurrentIndex:0,PageSize:1000,KeyWord:''})
       if(res.Ret===200){
-        this.reportList = this.$parent.currentLang!=='en'
-                          ?res.Data
-                          :res.Data.List
+        this.reportList = res.Data.List || []
       }
       this.getListLoading = false
     },

+ 1 - 1
src/views/ppt_manage/newVersion/pptCatalog.vue

@@ -1225,7 +1225,7 @@ export default {
     getTransSet(data){
       pptInterface.transReport({
         PptId:this.pptItem.PptId,
-        ClassifyIdSecond:data.type,
+        ClassifyId:data.type,
         Title:data.title
       }).then(res=>{
         if(res.Ret===200){

+ 28 - 8
src/views/report_manage/reportV2/components/chapterEditWrapper.vue

@@ -78,11 +78,27 @@
             @click="chooseChapter(item)"
             :class="selectChapterId===item.ReportChapterId&&'act'"
           >
-            <div class="type-name" v-if="item.TypeName">{{item.TypeName}}</div>
+            <div class="card-top">
+              <div class="type-name" v-if="item.TypeName">{{item.TypeName}}</div>
+              <span v-else></span>
+
+              <el-popover
+                  placement="right"
+                  trigger="click"
+              >   
+                  <img style="width:150px" :src="item.QRCodeImg" alt="">
+                  <i 
+                    slot="reference" 
+                    class="el-icon-share" 
+                    v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportMange_chapter_share)&&item.PublishState===2"
+                    style="font-size:18px;color:#0052D9;cursor:pointer;"
+                    @click.stop="handleGetWechatImg(item)"
+                  ></i>
+              </el-popover>
+            </div>
 
             <div class="card-top">
               <span style="font-size: 16px;">{{item.Title}}</span>
-              <span class="editsty" v-if="item.CanEdit&&item.IsAuth" @click.stop="chooseChapter(item,'edit')"><!-- 编辑 -->{{$t('Table.edit_btn')}}</span>
             </div>
             
             <div class="card-bottom">
@@ -95,7 +111,14 @@
                 <img
                   src="~@/assets/img/data_m/move_ico.png"
                   alt=""
-                  style="width: 14px; height: 14px; margin-right: 8px"
+                  style="width: 16px; height: 16px;"
+                />
+
+                <i 
+                  class="el-icon-edit editsty" 
+                  v-if="item.CanEdit&&item.IsAuth" 
+                  @click.stop="chooseChapter(item,'edit')"
+                  style="font-size: 18px;margin:0 10px;"
                 />
                 
                 <el-dropdown 
@@ -104,8 +127,9 @@
                   v-if="item.IsAuth"
                 >
                   <span class="el-dropdown-link">
-                    <i class="el-icon-more"></i>
+                    <i class="el-icon-s-operation editsty" style="font-size: 18px;"></i>
                   </span>
+
                   <el-dropdown-menu slot="dropdown">
                     <el-dropdown-item 
                       :command="{type:'beseInfo',item}"
@@ -119,10 +143,6 @@
                       :command="{type:'adTag',item}" 
                       v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportMange_chapter_editTag)"><!-- 添加标签 -->{{$t('ReportManage.ReportList.add_labels_section')}}</el-dropdown-item>
                     <el-dropdown-item :command="{type:'upAudio',item}"><!-- 上传录音 -->{{$t('ReportManage.ReportList.up_recording_lable')}}</el-dropdown-item>
-                    <el-dropdown-item 
-                      :command="{type:'wxShare',item}"
-                      v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportMange_chapter_share)&&item.PublishState===2"
-                    ><!-- 微信分享 -->{{$t('ReportManage.ReportList.weChat_share')}}</el-dropdown-item>
                   </el-dropdown-menu>
                 </el-dropdown>
               </div>

+ 1 - 17
src/views/report_manage/reportV2/list.vue

@@ -658,23 +658,7 @@ export default {
       classifylist(params).then((res) => {
         if (res.Ret == 200 && Array.isArray(res.Data.List)) {
           this.classifyOptions = res.Data.List||[];
-          // res.Data.List.forEach(item => {
-          //   let newitem = {
-          //     label: item.ClassifyName,
-          //     value: item.Id,
-          //   };
-          //   if (item.Child) {
-          //     let childnode = [];
-          //     item.Child.forEach((itemchild, i) => {
-          //       childnode.push({
-          //         label: itemchild.ClassifyName,
-          //         value: itemchild.Id,
-          //       });
-          //     });
-          //     newitem.children = childnode;
-          //   }
-          //   this.classifyOptions.push(newitem);
-          // });
+          
         }
       });
     },