Browse Source

调整视频组件大小

Young 2 years ago
parent
commit
9b2d16a550
3 changed files with 18 additions and 12 deletions
  1. 1 1
      src/views/author/AuthorList.vue
  2. 7 7
      src/views/put/PutDetails.vue
  3. 10 4
      src/views/put/putFeed-constants.js

+ 1 - 1
src/views/author/AuthorList.vue

@@ -10,7 +10,7 @@
         ref="table"
         size="default"
         rowKey="id"
-        :scroll="{ x: 1300 }"
+        :scroll="{ x: 2000 }"
         :columns="columns"
         :data="loadData"
         :alert="options.alert"

+ 7 - 7
src/views/put/PutDetails.vue

@@ -52,7 +52,7 @@
 
             <a-col :span="12" style="padding-right: 20px;">
               <div style="margin-bottom: 5px">{{ item.desc }}</div>
-              <div>{{ item.sendTime }}</div>
+              <div>{{ item.sendTimeStr }}</div>
               <a-row>
                 <a-col :span="12">有效曝光次数:{{ item.exposureCount }}</a-col>
                 <a-col :span="12">投放量级:{{ item.putCountLevel }}</a-col>
@@ -129,9 +129,6 @@ export default {
   },
   created () {
     console.log('参数' + this.$route.query.id)
-    fetchAuthorByFinderUin(this.$route.query.id).then(res => {
-      this.authorInfo = res.model
-    })
     this.reloadData()
   },
   methods: {
@@ -146,9 +143,9 @@ export default {
       console.log(date, dateString)
       this.formData.startTime = Number(date[0].format('x'))
       this.formData.endTime = Number(date[1].format('x'))
-      if (this.formData.searchValue) {
-        this.handleClickPush()
-      }
+      console.log(this.formData.startTime)
+      console.log(this.formData.endTime)
+      // this.reloadData()
     },
     handleClickPush (item) {
       console.log(this.formData)
@@ -161,6 +158,9 @@ export default {
       // const parems = {
       //   startXXX: this.formData.startTime
       // }
+      fetchAuthorByFinderUin(this.$route.query.id).then(res => {
+        this.authorInfo = res.model
+      })
       this.tableList = []
       console.log('formData = ' + JSON.stringify(this.formData))
       fetchVideoList(this.formData).then(res => {

+ 10 - 4
src/views/put/putFeed-constants.js

@@ -1,14 +1,20 @@
 const table = {
   columns: [
     {
-      title: 'feed id',
+      title: '昵称',
       align: 'center',
-      dataIndex: 'feedId'
+      dataIndex: 'author.videoAccountName'
     },
     {
-      title: 'finderUin',
+      title: '投放量级',
+      align: 'center',
+      dataIndex: 'putCountLevel'
+    },
+
+    {
+      title: '投放时间',
       align: 'center',
-      dataIndex: 'finderUin'
+      dataIndex: 'putTimeStr'
     },
     {
       title: '视频',