|
@@ -261,7 +261,7 @@
|
|
<a-range-picker
|
|
<a-range-picker
|
|
v-decorator="[
|
|
v-decorator="[
|
|
'timeRange',
|
|
'timeRange',
|
|
- { initialValue: [moment().subtract(6, 'days'), moment()] }
|
|
|
|
|
|
+ { initialValue: [moment().subtract(1, 'months'), moment()] }
|
|
]"
|
|
]"
|
|
:ranges="dateRanges"
|
|
:ranges="dateRanges"
|
|
:disabled-date="disabledDate"
|
|
:disabled-date="disabledDate"
|
|
@@ -347,6 +347,7 @@
|
|
style="word-break: break-all;font-size:16px;font-weight:600"
|
|
style="word-break: break-all;font-size:16px;font-weight:600"
|
|
id="outTable"
|
|
id="outTable"
|
|
ref="accountTable"
|
|
ref="accountTable"
|
|
|
|
+ rowKey="number"
|
|
:customRow="rowClick"
|
|
:customRow="rowClick"
|
|
:rowSelection="tabKey == 1 ? null : { selectedRowKeys, onChange: onSelectChange }"
|
|
:rowSelection="tabKey == 1 ? null : { selectedRowKeys, onChange: onSelectChange }"
|
|
>
|
|
>
|
|
@@ -441,8 +442,7 @@ let TTcolumns = [
|
|
dataIndex: 'query_word',
|
|
dataIndex: 'query_word',
|
|
scopedSlots: { customRender: 'query_word' },
|
|
scopedSlots: { customRender: 'query_word' },
|
|
align: 'center',
|
|
align: 'center',
|
|
- key: 'query_word',
|
|
|
|
- width: 600
|
|
|
|
|
|
+ key: 'query_word'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '推荐词',
|
|
title: '推荐词',
|
|
@@ -528,7 +528,9 @@ export default {
|
|
scriptLabel: [],
|
|
scriptLabel: [],
|
|
creativeTag: [],
|
|
creativeTag: [],
|
|
selectedRowKeys: [],
|
|
selectedRowKeys: [],
|
|
|
|
+ selectedRowKeysAll: [],
|
|
selectionRows: [],
|
|
selectionRows: [],
|
|
|
|
+ selectionRowsAll: [],
|
|
downLoading: false,
|
|
downLoading: false,
|
|
config_id: null,
|
|
config_id: null,
|
|
appIds: [],
|
|
appIds: [],
|
|
@@ -607,7 +609,7 @@ export default {
|
|
SHOW_PARENT,
|
|
SHOW_PARENT,
|
|
|
|
|
|
type: 3,
|
|
type: 3,
|
|
- dateValue: [moment().subtract(7, 'days'), moment()],
|
|
|
|
|
|
+ dateValue: [moment().subtract(30, 'days'), moment()],
|
|
|
|
|
|
operate: '',
|
|
operate: '',
|
|
designList: [],
|
|
designList: [],
|
|
@@ -637,7 +639,7 @@ export default {
|
|
projectId: undefined,
|
|
projectId: undefined,
|
|
projectIdAll: undefined,
|
|
projectIdAll: undefined,
|
|
dataLoading: false,
|
|
dataLoading: false,
|
|
- url: process.env.VUE_APP_BASE_SCRIPT_URL + '/get_script_config_lst',
|
|
|
|
|
|
+ url: process.env.VUE_APP_BASE_SCRIPT_URL + '/get_script_config_lst/',
|
|
modifyPriceVisible: false,
|
|
modifyPriceVisible: false,
|
|
modifyPriceLoading: false,
|
|
modifyPriceLoading: false,
|
|
modifyPriceDetail: null,
|
|
modifyPriceDetail: null,
|
|
@@ -658,10 +660,10 @@ export default {
|
|
content: '',
|
|
content: '',
|
|
onOk() {
|
|
onOk() {
|
|
var params = {}
|
|
var params = {}
|
|
- params.id = item.id
|
|
|
|
|
|
+ params.config_id = item.config_id
|
|
params.user_id = item.user_id
|
|
params.user_id = item.user_id
|
|
params.operator = item.operator
|
|
params.operator = item.operator
|
|
- that.postDataAction(process.env.VUE_APP_BASE_SCRIPT_URL + '/delete_script_config', params).then(
|
|
|
|
|
|
+ that.postDataAction(process.env.VUE_APP_BASE_SCRIPT_URL + '/delete_script_config/', params).then(
|
|
res => {
|
|
res => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
const paramsData = that.form.getFieldsValue()
|
|
const paramsData = that.form.getFieldsValue()
|
|
@@ -674,6 +676,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleOkDownLoad() {
|
|
handleOkDownLoad() {
|
|
|
|
+ this.selectionRows = tqFun(this.selectionRowsAll)
|
|
if (this.selectionRows.length > 0) {
|
|
if (this.selectionRows.length > 0) {
|
|
this.downLoading = true
|
|
this.downLoading = true
|
|
let params = this.selectionRows.map(item => {
|
|
let params = this.selectionRows.map(item => {
|
|
@@ -684,7 +687,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
- downFilePost(process.env.VUE_APP_BASE_SCRIPT_URL + '/export_script_file', params).then(res => {
|
|
|
|
|
|
+ downFilePost(process.env.VUE_APP_BASE_SCRIPT_URL + '/export_script_file/', params).then(res => {
|
|
this.downLoading = false
|
|
this.downLoading = false
|
|
let blob = new Blob([res], {
|
|
let blob = new Blob([res], {
|
|
type: 'application/vnd.openxmlformats-officedocument.spre1adsheetml.sheet'
|
|
type: 'application/vnd.openxmlformats-officedocument.spre1adsheetml.sheet'
|
|
@@ -743,7 +746,7 @@ export default {
|
|
params.query_word_pair = this.creativeTag
|
|
params.query_word_pair = this.creativeTag
|
|
params.operator = this.userInfo().realname
|
|
params.operator = this.userInfo().realname
|
|
params.user_id = this.userInfo().id
|
|
params.user_id = this.userInfo().id
|
|
- this.postDataAction(process.env.VUE_APP_BASE_SCRIPT_URL + '/add_script_config', params).then(res => {
|
|
|
|
|
|
+ this.postDataAction(process.env.VUE_APP_BASE_SCRIPT_URL + '/add_script_config/', params).then(res => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
this.handleCancelAll()
|
|
this.handleCancelAll()
|
|
this.creativeTag = []
|
|
this.creativeTag = []
|
|
@@ -767,6 +770,14 @@ export default {
|
|
onSelectChange(selectedRowKeys, selectionRows) {
|
|
onSelectChange(selectedRowKeys, selectionRows) {
|
|
this.selectedRowKeys = selectedRowKeys
|
|
this.selectedRowKeys = selectedRowKeys
|
|
this.selectionRows = selectionRows
|
|
this.selectionRows = selectionRows
|
|
|
|
+
|
|
|
|
+ for (let i = 0; i < this.ipagination.current; i++) {
|
|
|
|
+ this.selectedRowKeysAll.push([])
|
|
|
|
+ this.selectionRowsAll.push([])
|
|
|
|
+ }
|
|
|
|
+ this.selectedRowKeysAll[this.ipagination.current - 1] = selectedRowKeys
|
|
|
|
+ this.selectionRowsAll[this.ipagination.current - 1] = selectionRows
|
|
|
|
+ console.log(this.selectedRowKeysAll,this.selectionRowsAll)
|
|
},
|
|
},
|
|
getDataSource(current, pageSize) {
|
|
getDataSource(current, pageSize) {
|
|
console.log(pageSize)
|
|
console.log(pageSize)
|
|
@@ -775,8 +786,12 @@ export default {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.ipagination.current = current
|
|
this.ipagination.current = current
|
|
this.ipagination.pageSize = pageSize
|
|
this.ipagination.pageSize = pageSize
|
|
- this.selectedRowKeys = []
|
|
|
|
- this.selectionRows = []
|
|
|
|
|
|
+ for (let i = 0; i < this.ipagination.current; i++) {
|
|
|
|
+ this.selectedRowKeysAll.push([])
|
|
|
|
+ this.selectionRowsAll.push([])
|
|
|
|
+ }
|
|
|
|
+ this.selectedRowKeys = this.selectedRowKeysAll[current - 1]
|
|
|
|
+ this.selectionRows = this.selectionRowsAll[current - 1]
|
|
const paramsData = this.form.getFieldsValue()
|
|
const paramsData = this.form.getFieldsValue()
|
|
this.handleGetTableList(paramsData)
|
|
this.handleGetTableList(paramsData)
|
|
})
|
|
})
|
|
@@ -785,6 +800,8 @@ export default {
|
|
this.ipagination.current = 1
|
|
this.ipagination.current = 1
|
|
this.selectedRowKeys = []
|
|
this.selectedRowKeys = []
|
|
this.selectionRows = []
|
|
this.selectionRows = []
|
|
|
|
+ this.selectedRowKeysAll = []
|
|
|
|
+ this.selectionRowsAll = []
|
|
event.preventDefault()
|
|
event.preventDefault()
|
|
const paramsData = this.form.getFieldsValue()
|
|
const paramsData = this.form.getFieldsValue()
|
|
this.handleGetTableList(paramsData)
|
|
this.handleGetTableList(paramsData)
|
|
@@ -798,6 +815,8 @@ export default {
|
|
this.ipagination.current = 1
|
|
this.ipagination.current = 1
|
|
this.selectedRowKeys = []
|
|
this.selectedRowKeys = []
|
|
this.selectionRows = []
|
|
this.selectionRows = []
|
|
|
|
+ this.selectedRowKeysAll = []
|
|
|
|
+ this.selectionRowsAll = []
|
|
this.form.resetFields()
|
|
this.form.resetFields()
|
|
if (this.tabKey == 1) {
|
|
if (this.tabKey == 1) {
|
|
this.projectId = undefined
|
|
this.projectId = undefined
|
|
@@ -836,6 +855,7 @@ export default {
|
|
// }
|
|
// }
|
|
|
|
|
|
this.ipagination.total = result.total_num || 0
|
|
this.ipagination.total = result.total_num || 0
|
|
|
|
+
|
|
// result.result.total
|
|
// result.result.total
|
|
} else {
|
|
} else {
|
|
this.$message.error(result.message)
|
|
this.$message.error(result.message)
|
|
@@ -868,13 +888,14 @@ export default {
|
|
this.columns = this.tabKey == 1 ? [...TTcolumns] : [...KScolumns]
|
|
this.columns = this.tabKey == 1 ? [...TTcolumns] : [...KScolumns]
|
|
this.url =
|
|
this.url =
|
|
this.tabKey == 1
|
|
this.tabKey == 1
|
|
- ? process.env.VUE_APP_BASE_SCRIPT_URL + '/get_script_config_lst'
|
|
|
|
- : process.env.VUE_APP_BASE_SCRIPT_URL + '/get_query_word_task_info_lst'
|
|
|
|
|
|
+ ? process.env.VUE_APP_BASE_SCRIPT_URL + '/get_script_config_lst/'
|
|
|
|
+ : process.env.VUE_APP_BASE_SCRIPT_URL + '/get_query_word_task_info_lst/'
|
|
if (this.tabKey == 1) {
|
|
if (this.tabKey == 1) {
|
|
this.config_id = null
|
|
this.config_id = null
|
|
}
|
|
}
|
|
this.selectedRowKeys = []
|
|
this.selectedRowKeys = []
|
|
this.selectionRows = []
|
|
this.selectionRows = []
|
|
|
|
+ this.form.resetFields()
|
|
const paramsData = this.form.getFieldsValue()
|
|
const paramsData = this.form.getFieldsValue()
|
|
this.handleGetTableList(paramsData)
|
|
this.handleGetTableList(paramsData)
|
|
},
|
|
},
|
|
@@ -888,18 +909,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
- tableChange(pagination, filters, sorter, { currentDataSource }) {
|
|
|
|
- console.log(pagination)
|
|
|
|
- this.ipagination.current = pagination.current
|
|
|
|
- this.ipagination.pageSize = pagination.pageSize
|
|
|
|
- // if (sorter.order) {
|
|
|
|
- // this.order = sorter.order ? sorter.order : 'descend'
|
|
|
|
- // this.target = sorter.columnKey
|
|
|
|
- // }
|
|
|
|
- const paramsData = this.form.getFieldsValue()
|
|
|
|
- this.handleGetTableList(paramsData)
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
// table区域的tab切换
|
|
// table区域的tab切换
|
|
tableTabChange(key) {
|
|
tableTabChange(key) {
|
|
if (key == 1) {
|
|
if (key == 1) {
|