|
@@ -15,30 +15,37 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="topOptions">
|
|
<div class="topOptions">
|
|
- <span class="OptinItem ">
|
|
|
|
- <!-- reqUrl='/ctop/userAllocation/getAccountIdListByUserId' -->
|
|
|
|
- <!-- <Treeselect :appId.sync="accountIds" :multiple="true" request="2,4" reqUrl='/ctop/userAllocation/getAccountIdsByUserId' ref="treeSelect" style="margin-bottom:8px " /> -->
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <!-- <Treeselect :appId.sync="accountId" :multiple="false" request="2" reqUrl='/ctop/projectMember/getProjectAccountByUserId' ref="treeSelect" style="margin-bottom:8px;width:600px " /> -->
|
|
<a-select mode="multiple"
|
|
<a-select mode="multiple"
|
|
v-model="accountIds"
|
|
v-model="accountIds"
|
|
- style="width: 400px"
|
|
|
|
|
|
+ style="width: 600px"
|
|
placeholder="请选择账户"
|
|
placeholder="请选择账户"
|
|
:maxTagCount='1'
|
|
:maxTagCount='1'
|
|
allowClear
|
|
allowClear
|
|
|
|
+ show-search
|
|
|
|
+ option-filter-prop="children"
|
|
|
|
+ :filter-option="filterOption"
|
|
>
|
|
>
|
|
<a-select-option v-for="item in accountList" :key="item.account_id" :value='item.account_id'>
|
|
<a-select-option v-for="item in accountList" :key="item.account_id" :value='item.account_id'>
|
|
{{ item.auth_name+'_('+(item.project_name||"无所属项目")+')' }}
|
|
{{ item.auth_name+'_('+(item.project_name||"无所属项目")+')' }}
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
- </span>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <span class="OptinItem ">
|
|
|
|
+ reqUrl='/ctop/userAllocation/getAccountIdListByUserId'
|
|
|
|
+ <Treeselect :appId.sync="accountIds" :multiple="true" request="2,4" reqUrl='/ctop/userAllocation/getAccountIdsByUserId' ref="treeSelect" style="margin-bottom:8px " />
|
|
|
|
+
|
|
|
|
+ </span> -->
|
|
<span class="OptinItem">
|
|
<span class="OptinItem">
|
|
- <a-select style="width: 180px" v-model="strategyStatus" @change="statusChange" placeholder="请选择策略状态">
|
|
|
|
|
|
+ <a-select style="width: 180px" v-model="strategyState" @change="statusChange" placeholder="请选择策略状态">
|
|
<a-select-option :value='3' >
|
|
<a-select-option :value='3' >
|
|
不限
|
|
不限
|
|
</a-select-option>
|
|
</a-select-option>
|
|
<a-select-option :value="1" >
|
|
<a-select-option :value="1" >
|
|
投放中
|
|
投放中
|
|
</a-select-option>
|
|
</a-select-option>
|
|
- <a-select-option :value="0">
|
|
|
|
|
|
+ <a-select-option :value="2">
|
|
已关停
|
|
已关停
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
@@ -138,6 +145,9 @@
|
|
|
|
|
|
</span>
|
|
</span>
|
|
|
|
|
|
|
|
+ <span slot="status" slot-scope="text">
|
|
|
|
+ {{text |handlerStatus}}
|
|
|
|
+ </span>
|
|
<span slot="parentGroup" slot-scope="text">
|
|
<span slot="parentGroup" slot-scope="text">
|
|
<a href="javascript:;" >{{text}}</a>
|
|
<a href="javascript:;" >{{text}}</a>
|
|
</span>
|
|
</span>
|
|
@@ -317,7 +327,15 @@ const strategyColumns = [
|
|
},
|
|
},
|
|
|
|
|
|
{
|
|
{
|
|
- title: '所属账户',
|
|
|
|
|
|
+ title: '所属账户名称',
|
|
|
|
+ dataIndex: 'authName',
|
|
|
|
+ key: 'authName',
|
|
|
|
+ align: 'center',
|
|
|
|
+ scopedSlots: { customRender: 'authName' },
|
|
|
|
+ width:200
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '所属账户ID',
|
|
dataIndex: 'accountId',
|
|
dataIndex: 'accountId',
|
|
key: 'accountId',
|
|
key: 'accountId',
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -501,8 +519,9 @@ export default {
|
|
// mixins: [JeecgListMixin],
|
|
// mixins: [JeecgListMixin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ accountId:[],
|
|
accountList:[],
|
|
accountList:[],
|
|
- strategyStatus:undefined,
|
|
|
|
|
|
+ strategyState:undefined,
|
|
strategyName:'',
|
|
strategyName:'',
|
|
strategyId:undefined,
|
|
strategyId:undefined,
|
|
accountIds:[],
|
|
accountIds:[],
|
|
@@ -587,7 +606,11 @@ export default {
|
|
this.$parent.currentTabComponent='planList'
|
|
this.$parent.currentTabComponent='planList'
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
|
|
+ filterOption(input, option) {
|
|
|
|
+ return (
|
|
|
|
+ option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
+ );
|
|
|
|
+ },
|
|
//状态改变
|
|
//状态改变
|
|
statusChange(value){
|
|
statusChange(value){
|
|
console.log(value);
|
|
console.log(value);
|
|
@@ -732,10 +755,11 @@ export default {
|
|
|
|
|
|
getStrategyList(){
|
|
getStrategyList(){
|
|
this.loading = true
|
|
this.loading = true
|
|
|
|
+ console.log(this.accountId)
|
|
postAction(this.url.strategyList,{
|
|
postAction(this.url.strategyList,{
|
|
strategyId:this.strategyId==undefined?null:this.strategyId,
|
|
strategyId:this.strategyId==undefined?null:this.strategyId,
|
|
strategyName:this.strategyName,
|
|
strategyName:this.strategyName,
|
|
- strategyStatus:this.strategyStatus==3?null:this.strategyStatus,
|
|
|
|
|
|
+ strategyState:this.strategyState==3?null:this.strategyState,
|
|
accountIds:this.accountIds,
|
|
accountIds:this.accountIds,
|
|
pageNo:this.ipagination.current,
|
|
pageNo:this.ipagination.current,
|
|
pageSize:this.ipagination.pageSize
|
|
pageSize:this.ipagination.pageSize
|
|
@@ -897,6 +921,34 @@ export default {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
return str
|
|
return str
|
|
|
|
+ },
|
|
|
|
+ handlerStatus(val){
|
|
|
|
+ let str=''
|
|
|
|
+ if(val){
|
|
|
|
+ switch (val) {
|
|
|
|
+ case 1:
|
|
|
|
+ str='投放中'
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ str='已暂停'
|
|
|
|
+ break;
|
|
|
|
+ // case 3:
|
|
|
|
+ // str='已删除'
|
|
|
|
+ // break;
|
|
|
|
+ // case 3:
|
|
|
|
+ // str='已删除'
|
|
|
|
+ // break;
|
|
|
|
+ // case 3:
|
|
|
|
+ // str='已删除'
|
|
|
|
+ // break;
|
|
|
|
+
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ return str
|
|
|
|
+ }else{
|
|
|
|
+ return '-'
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|