朱鑫波 3 éve
szülő
commit
7cff07b7ac
1 módosított fájl, 42 hozzáadás és 2 törlés
  1. 42 2
      src/views/modules/autoLaunchRevision/createLaunch.vue

+ 42 - 2
src/views/modules/autoLaunchRevision/createLaunch.vue

@@ -488,7 +488,7 @@ li.chouzhen.first:before {
                             </a-col>
                         </a-row>
                         <a-row :gutter="16" v-for="(item, index) in multipleBidData" :key="index">
-                            <a-col :span="16">
+                            <a-col :span="16" v-if="!appDetail.useChannel">
                                 <a-form-item :label="'应用' + (index + 1)" v-bind="formItemLayout">
                                     <a-collapse expand-icon-position="right">
                                         <a-collapse-panel key="1" :header="item.appName">
@@ -507,6 +507,14 @@ li.chouzhen.first:before {
                                     </a-collapse>
                                 </a-form-item>
                             </a-col>
+                            <a-col  :span="16" v-else>
+                                <a-form-item :label="'应用' + (index + 1)" v-bind="formItemLayout">
+                                    <p style="width:100%;display: flex;justify-content: space-between;">
+                                       {{item.appName}}({{item.appVersion}}) 
+                                        <a>详情</a>
+                                    </p>
+                                </a-form-item>
+                            </a-col>
                         </a-row>
                     </a-card>
                     <a-card class="search-box step-jump">
@@ -1578,7 +1586,7 @@ li.chouzhen.first:before {
                                     :ellipsis="true"
                                 >
                                     <template slot-scope="text, record">
-                                        <a >详情</a>
+                                        <a @click="lookChannel(record.appName)">详情</a>
                                     </template>
                                 </a-table-column>
                             </a-table>
@@ -2331,6 +2339,7 @@ import { stopOtherVideo, closeAllVideoFun } from '@/utils/videoControl' // 停
 import selectTable from '@/views/modules/Statistics/components/selectPagination.vue'
 import EditableCell from './components/editablCell'
 import selectTreeAccount from '@/components/formComponents/selectAccount.vue'
+import { getAction } from '../../../api/manage'
 // import lookPreviewVue from './lookPreview.vue'
 function tqFun(qcArr1) {
     var tempArr = []
@@ -2422,6 +2431,26 @@ export default {
             convertList: [],
             convertType: '1',
             convert: false,
+            lookChannelVisible:false,
+            lookChannelList:[],
+            lookChannelIpagination: {
+                current: 1,
+                pageSize: 9,
+                //   pageSizeOptions: ['10', '20', '30'],
+                showTotal: (total, range) => {
+                    return range[0] + '-' + range[1] + ' 共' + total + '条'
+                },
+                showQuickJumper: true,
+                showSizeChanger: false,
+                pageSizeOptions: ['10', '30', '50'],
+                total: 0,
+                onChange: (current, pageSize) => {
+                    // 切换分页时的回调,
+                    // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
+                    this.lookChannelIpagination.current = current
+                    this.lookChannelIpagination.pageSize = pageSize
+                }
+            },
 
             //目标人群参数
             targetPersonVisible: false,
@@ -3535,6 +3564,17 @@ export default {
                 }
             }
         },
+        lookChannel(appName){
+            this.lookChannelVisible = true
+            var params = {}
+            params.accountId = this.getFormData('formProject', 'accountId')
+            params.appName = appName
+            params.pageNo = this.lookChannelIpagination.current
+            params.pageSize = this.lookChannelIpagination.pageSize
+            getAction('/channel/queryChannelList', params).then(res=>{
+                
+            })
+        },
         onCellChange(key, dataIndex, value) {
             const dataSource = [...this.multipleBidDataDrawer]
             const target = dataSource.find(item => item.id === key)