|
@@ -101,19 +101,10 @@
|
|
@showSizeChange="onShowSizeChange"
|
|
@showSizeChange="onShowSizeChange"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
- <configuration-modal
|
|
|
|
- v-if="relaxVisible"
|
|
|
|
- :title="accountModalTitle"
|
|
|
|
- :visible="relaxVisible"
|
|
|
|
- @relaxSure="handleRelaxSure"
|
|
|
|
- @relaxCancel="handleRelaxCancel"
|
|
|
|
- >
|
|
|
|
- </configuration-modal>
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import AcountSearch from '@/views/modules/Statistics/components/Treeselect.vue';
|
|
import AcountSearch from '@/views/modules/Statistics/components/Treeselect.vue';
|
|
-import ConfigurationModal from './components/configuration-modal.vue';
|
|
|
|
|
|
|
|
import {getAction, putAction, deleteAction} from '@/api/manage';
|
|
import {getAction, putAction, deleteAction} from '@/api/manage';
|
|
import {mapGetters} from 'vuex';
|
|
import {mapGetters} from 'vuex';
|
|
@@ -121,8 +112,7 @@ import {mapGetters} from 'vuex';
|
|
export default {
|
|
export default {
|
|
name: 'account-config',
|
|
name: 'account-config',
|
|
components: {
|
|
components: {
|
|
- AcountSearch,
|
|
|
|
- ConfigurationModal
|
|
|
|
|
|
+ AcountSearch
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -130,8 +120,6 @@ export default {
|
|
budgetContent: '',
|
|
budgetContent: '',
|
|
isBudgetVisible: false,
|
|
isBudgetVisible: false,
|
|
isModVisible: false,
|
|
isModVisible: false,
|
|
- relaxVisible: false,
|
|
|
|
- accountModalTitle: 'add',
|
|
|
|
acountId: undefined, // 搜索的账户ID
|
|
acountId: undefined, // 搜索的账户ID
|
|
totalAll: 0,
|
|
totalAll: 0,
|
|
tablePag: {
|
|
tablePag: {
|
|
@@ -235,7 +223,7 @@ export default {
|
|
this.handlePopoverChange(paramsData);
|
|
this.handlePopoverChange(paramsData);
|
|
},
|
|
},
|
|
handlePopoverChange(data) {
|
|
handlePopoverChange(data) {
|
|
- putAction('/ctop/aiBytedanceAdvertiserStrategy/updStaOrCpaOrBudgetById', data).then(result => {
|
|
|
|
|
|
+ putAction('http://192.168.1.43:8080/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/updStaOrCpaOrBudgetById', data).then(result => {
|
|
if (result.code === 0) {
|
|
if (result.code === 0) {
|
|
this.isModVisible = false;
|
|
this.isModVisible = false;
|
|
this.isBudgetVisible = false;
|
|
this.isBudgetVisible = false;
|
|
@@ -256,7 +244,7 @@ export default {
|
|
pageNo: this.tablePag.page,
|
|
pageNo: this.tablePag.page,
|
|
pageSize: this.tablePag.size
|
|
pageSize: this.tablePag.size
|
|
};
|
|
};
|
|
- getAction('/advertiser/aiBytedanceAdvertiserStrategy/list', paramsData).then(result => {
|
|
|
|
|
|
+ getAction('http://192.168.1.43:8080/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/list', paramsData).then(result => {
|
|
if (result.code === 0) {
|
|
if (result.code === 0) {
|
|
this.dataSource = result.result.records;
|
|
this.dataSource = result.result.records;
|
|
}
|
|
}
|
|
@@ -273,7 +261,7 @@ export default {
|
|
title: '删除提示',
|
|
title: '删除提示',
|
|
content: '确定要删除这一条吗?',
|
|
content: '确定要删除这一条吗?',
|
|
onOk() {
|
|
onOk() {
|
|
- deleteAction('/ctop/aiBytedanceAdvertiserStrategy/delete', {id: data.id}).then(result => {
|
|
|
|
|
|
+ deleteAction('http://192.168.1.43:8080/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/delete', {id: data.id}).then(result => {
|
|
if (result.code === 0) {
|
|
if (result.code === 0) {
|
|
that.handleInitTable();
|
|
that.handleInitTable();
|
|
that.$message.success('删除成功');
|
|
that.$message.success('删除成功');
|
|
@@ -318,7 +306,7 @@ export default {
|
|
const forDate = new FormData();
|
|
const forDate = new FormData();
|
|
forDate.append('id', paramsData.id);
|
|
forDate.append('id', paramsData.id);
|
|
forDate.append('state', paramsData.state);
|
|
forDate.append('state', paramsData.state);
|
|
- putAction('/ctop/aiBytedanceAdvertiserStrategy/updStaById', forDate).then(result => {
|
|
|
|
|
|
+ putAction('http://192.168.1.43:8080/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/updStaById', forDate).then(result => {
|
|
if (result.code === 200) {
|
|
if (result.code === 200) {
|
|
this.$message.success(result.message);
|
|
this.$message.success(result.message);
|
|
this.handleInitTable();
|
|
this.handleInitTable();
|
|
@@ -332,18 +320,31 @@ export default {
|
|
},
|
|
},
|
|
handleEdit(data) {
|
|
handleEdit(data) {
|
|
console.log(data, 'data-edit');
|
|
console.log(data, 'data-edit');
|
|
- this.accountModalTitle = 'edit';
|
|
|
|
- this.relaxVisible = true;
|
|
|
|
|
|
+ // TODO 切换路由时候,及时删除上一次相同路由
|
|
|
|
+ // let params = {
|
|
|
|
+ // accountModal: 'edit',
|
|
|
|
+ // id: data.id
|
|
|
|
+ // };
|
|
|
|
+ // localStorage.setItem('videoInfo', JSON.stringify(params));
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/account-config/components/configuration-modal',
|
|
|
|
+ query: {
|
|
|
|
+ accountModal: 'edit',
|
|
|
|
+ id: 123
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},
|
|
},
|
|
handleAddAccountConfig() {
|
|
handleAddAccountConfig() {
|
|
- this.accountModalTitle = 'add';
|
|
|
|
- this.relaxVisible = true;
|
|
|
|
- },
|
|
|
|
- handleRelaxSure(data) {
|
|
|
|
- this.relaxVisible = false;
|
|
|
|
- },
|
|
|
|
- handleRelaxCancel() {
|
|
|
|
- this.relaxVisible = false;
|
|
|
|
|
|
+ // let params = {
|
|
|
|
+ // accountModal: 'add'
|
|
|
|
+ // };
|
|
|
|
+ // localStorage.setItem('videoInfo', JSON.stringify(params));
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/account-config/components/configuration-modal',
|
|
|
|
+ query: {
|
|
|
|
+ accountModal: 'add'
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|