|
@@ -414,7 +414,7 @@ const planColumns = [
|
|
|
dataIndex: 'name',
|
|
|
key: 'name',
|
|
|
align: 'center',
|
|
|
- width:300,
|
|
|
+ width:200,
|
|
|
scopedSlots: { customRender: 'name' }
|
|
|
},
|
|
|
{
|
|
@@ -735,14 +735,7 @@ export default {
|
|
|
this.accountID=undefined;
|
|
|
this.openID=val
|
|
|
}
|
|
|
- this.treeData.forEach((item)=>{
|
|
|
- item.children.forEach(ele=>{
|
|
|
- if(ele.value==val){
|
|
|
- let accountInfo=JSON.stringify(ele)
|
|
|
- localStorage.setItem('accountInfo',accountInfo)
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
+
|
|
|
this.search();
|
|
|
},
|
|
|
|
|
@@ -808,8 +801,10 @@ export default {
|
|
|
},
|
|
|
//跳转到批量页面
|
|
|
goBatch(){
|
|
|
+
|
|
|
this.$router.push('/modules/BatchCreate/newGroup')
|
|
|
|
|
|
+
|
|
|
},
|
|
|
createPlan(){
|
|
|
if(this.currentGroup.name){
|
|
@@ -1503,6 +1498,18 @@ export default {
|
|
|
|
|
|
this.accountHttp()
|
|
|
},
|
|
|
+ beforeDestroy() {
|
|
|
+ this.treeData.forEach((item)=>{
|
|
|
+ item.children.forEach(ele=>{
|
|
|
+ if(ele.value==this.accountID){
|
|
|
+ let accountInfo=JSON.stringify(ele)
|
|
|
+ localStorage.setItem('accountInfo',accountInfo)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.$bus.$emit('remove', '/modules/BatchCreate/TouTiaoBatch')
|
|
|
+
|
|
|
+ },
|
|
|
filters: {
|
|
|
toPercentage(val) {
|
|
|
if(val){
|