瀏覽代碼

新版渠道号待上线/智能托管新增删除功能

朱鑫波 3 年之前
父節點
當前提交
5456712677
共有 1 個文件被更改,包括 13 次插入3 次删除
  1. 13 3
      src/views/modules/autoLaunch/trusteeship/index.vue

+ 13 - 3
src/views/modules/autoLaunch/trusteeship/index.vue

@@ -253,12 +253,15 @@
                                     @click="
                                         ipaginationVideo.dateValue = []
                                         selectMaterial(record)
-                                        
                                     "
                                     >选择素材</a
                                 >
                                 <a-divider type="vertical" />
                                 <a @click="createLog(record)">创建记录</a>
+                                <a-divider type="vertical" />
+                                <a-popconfirm title="确定删除吗?" @confirm="() => deleteById(record.id)">
+                                    <a>删除</a>
+                                </a-popconfirm>
                             </div>
                             <div v-else>
                                 -
@@ -449,7 +452,7 @@ import ACol from 'ant-design-vue/es/grid/Col'
 import moment from 'moment'
 import pick from 'lodash.pick'
 import { getKsAccountReport, getKsDetail, getReportList } from '@api/video.js'
-import { getAction, postAction, downFile, downFilePost } from '@/api/manage'
+import { getAction, postAction, downFile, downFilePost, deleteAction } from '@/api/manage'
 import checkBoxGroup from '@/components/formComponents/checkBoxGroup'
 import selectCheckAll from '@/views/modules/kuaishouapp/account/stepForm/stepModule/test'
 import qs from 'qs'
@@ -759,6 +762,14 @@ export default {
 
             this.selectMaterial(data)
         },
+        deleteById(id) {
+            deleteAction('/hosting/kuaishouHostingTemplate/delete', { id: id }).then(res => {
+                if (res.success) {
+                    const paramsData = this.form.getFieldsValue()
+                    this.handleGetTableList(paramsData)
+                }
+            })
+        },
         setAllData() {
             this.checkVideo.push(
                 ...this.dataVideoList.map(item => {
@@ -1067,7 +1078,6 @@ export default {
                 this.searchLoading = false
                 this.spinning = false
                 if (resNei.success) {
-                    
                     this.dataVideoList = resNei.result.records
                     this.ipaginationVideo.total = resNei.result.total
                 }