|
@@ -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
|
|
|
}
|