Browse Source

增加发起投放组件

Young 2 years ago
parent
commit
af603f5c63
3 changed files with 8 additions and 7 deletions
  1. 5 4
      src/views/put/PutDetails.vue
  2. 2 2
      src/views/put/PutList.vue
  3. 1 1
      src/views/put/modules/CreateForm.vue

+ 5 - 4
src/views/put/PutDetails.vue

@@ -93,9 +93,9 @@
                 <a-col :span="12">
                   <div>
                     <video :src="item.link" style="width: 100%" controls></video>
-<!--                    <div>-->
-<!--                      <a-button type="primary" ghost @click="handleClickPush(item)">投放</a-button>-->
-<!--                    </div>-->
+                    <!--                    <div>-->
+                    <!--                      <a-button type="primary" ghost @click="handleClickPush(item)">投放</a-button>-->
+                    <!--                    </div>-->
                     <div class="table-operator">
                       <a-button type="primary" icon="plus" @click="createHandler(item)">投放</a-button>
                     </div>
@@ -164,8 +164,9 @@ export default {
       this.$refs.createForm.resetForm(record)
     },
     resetData (flag) {
+      console.log('reset data ' + flag)
       this.visible = flag
-      this.record = null
+      this.reloadData()
     },
     refreshTable () {
       this.$refs.table.refresh()

+ 2 - 2
src/views/put/PutList.vue

@@ -23,8 +23,8 @@
         <span slot="videoAccountName" slot-scope="text, record">
           <a-tooltip>
             <template slot="title">
-              <div>{{ record.finderUin }}</div>
-              <div>{{ record.finderUin }}</div>
+              <div>finderUin: {{ record.finderUin }}</div>
+              <div>作者标签 : {{ record.authInfo }}</div>
             </template>
             <div style="color: #00A0E9; cursor: pointer" @click="$router.push(`/put/list/details?id=${record.finderUin}`)">{{ text }}</div>
 

+ 1 - 1
src/views/put/modules/CreateForm.vue

@@ -645,9 +645,9 @@ export default {
             this.record.putGender = createParams.putGender === 0 ? '不限' : createParams.putGender === 1 ? '男' : '女'
           }
 
-          createParams.status = 1
           createParams.id = this.record.id
           var obj = Object.assign(createParams, this.record)
+          obj.status = 1
           saveAuthorVideo(obj)
             .then(response => {
               this.$notification.success({