|
@@ -34,27 +34,8 @@
|
|
|
<div class="required-item"></div>
|
|
|
</div>
|
|
|
<div class="input-item">
|
|
|
- <a-tree-select
|
|
|
- v-model="accountId"
|
|
|
- show-search
|
|
|
- style="width: 600px;height:30px"
|
|
|
- :dropdownMatchSelectWidth='true'
|
|
|
- :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
- tree-checkable
|
|
|
- searchPlaceholder='请输入账户关键字搜索'
|
|
|
- :show-checked-strategy="SHOW_PARENT"
|
|
|
- placeholder="请选择项目和账户或搜索账户关键字"
|
|
|
- treeNodeFilterProp="title"
|
|
|
- :allowClear="true"
|
|
|
- @change="treeChange"
|
|
|
- @search="treeSearch"
|
|
|
- @select="treeSelect"
|
|
|
- :maxTagCount='1'
|
|
|
- :tree-data="treeData"
|
|
|
- :filterOption='filterOption'
|
|
|
- >
|
|
|
-
|
|
|
- </a-tree-select>
|
|
|
+
|
|
|
+ <Treeselect :appId.sync="accountId" :multiple="false" request="2" reqUrl='/ctop/projectMember/getProjectAccountByUserId' ref="treeSelect" style="margin-bottom:8px;width:580px " />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -68,17 +49,17 @@
|
|
|
<div class="hint-item">
|
|
|
</div>
|
|
|
<div class="label-item">
|
|
|
- <div class="text-item"></div>
|
|
|
+ <div class="text-item">营销目标</div>
|
|
|
<div class="required-item"></div>
|
|
|
</div>
|
|
|
<div class="input-item">
|
|
|
<a-form-item >
|
|
|
- <a-radio-group v-decorator="['marketingGoal',{initialValue:'1' }]" @change="marketingGoalChange">
|
|
|
- <a-radio-button value="1">提升应用安装</a-radio-button>
|
|
|
- <a-radio-button value="2">获取电商下单</a-radio-button>
|
|
|
- <a-radio-button value="3">推广品牌活动</a-radio-button>
|
|
|
- <a-radio-button value="4">收集销售线索</a-radio-button>
|
|
|
- <a-radio-button value="5">提高应用活跃</a-radio-button>
|
|
|
+ <a-radio-group v-decorator="['marketingGoal',{initialValue:'2' }]" @change="marketingGoalChange">
|
|
|
+ <a-radio-button value="2">提升应用安装</a-radio-button>
|
|
|
+ <a-radio-button value="3">获取电商下单</a-radio-button>
|
|
|
+ <a-radio-button value="4">推广品牌活动</a-radio-button>
|
|
|
+ <a-radio-button value="5">收集销售线索</a-radio-button>
|
|
|
+ <a-radio-button value="7">提高应用活跃</a-radio-button>
|
|
|
</a-radio-group>
|
|
|
</a-form-item>
|
|
|
</div>
|
|
@@ -98,7 +79,7 @@
|
|
|
</div>
|
|
|
<div class="input-item">
|
|
|
<a-form-item>
|
|
|
- <a-input v-model="strategyName" allow-clear />
|
|
|
+ <a-input v-model="strategyName" allow-clear />
|
|
|
</a-form-item>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -113,30 +94,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-form>
|
|
|
- <div class="infoModal">
|
|
|
- <a-modal v-model="visible" title="提示" @ok="handleOk" :keyboard='false' :maskClosable='false'>
|
|
|
- <ul>
|
|
|
- <li v-for="(item,index) in errorInfo" :key="index">
|
|
|
- <span>账户{{LHKaccountInfo[index].title}}:</span>{{item.message || '投放项目创建成功'}}
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <template slot="footer">
|
|
|
- <a-button key="back" @click="handleCancel">
|
|
|
- 返回本页
|
|
|
- </a-button>
|
|
|
- <a-button key="submit" type="primary" @click="handleOk">
|
|
|
- 下一步
|
|
|
- </a-button>
|
|
|
- </template>
|
|
|
- </a-modal>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import moment from 'moment'
|
|
|
import { getAction, postAction, downFile, downFilePost } from '@/api/manage'
|
|
|
-
|
|
|
+import Treeselect from '@/views/modules/Statistics/components/Treeselect.vue'
|
|
|
import { TreeSelect } from 'ant-design-vue';
|
|
|
import qs from 'qs'
|
|
|
const SHOW_PARENT = TreeSelect.SHOW_PARENT;
|
|
@@ -148,326 +112,154 @@ for (let i = 0; i < 7*48; i++) {
|
|
|
|
|
|
}
|
|
|
export default {
|
|
|
- components: {
|
|
|
- // selectCheckAll,
|
|
|
- // newDirectedPackage,
|
|
|
- },
|
|
|
- data() {
|
|
|
- return {
|
|
|
- LHKaccountInfo:{},
|
|
|
- treeValue: [],
|
|
|
- treeData: [],
|
|
|
- SHOW_PARENT,
|
|
|
- accountId:[],
|
|
|
- strategyName: '',
|
|
|
- form: this.$form.createForm(this),
|
|
|
+ components: {
|
|
|
+ // selectCheckAll,
|
|
|
+ // newDirectedPackage,
|
|
|
+ Treeselect
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ treeData:[],
|
|
|
+ accountId:undefined,
|
|
|
+ strategyName: '',
|
|
|
+ form: this.$form.createForm(this),
|
|
|
|
|
|
- goNextloading:false,
|
|
|
- goPlanShowloading:false,
|
|
|
-
|
|
|
-
|
|
|
- dateRange: [moment(), moment()],
|
|
|
+ goNextloading:false,
|
|
|
+ goPlanShowloading:false,
|
|
|
+
|
|
|
+
|
|
|
+ dateRange: [moment(), moment()],
|
|
|
|
|
|
- visible:false,
|
|
|
- errorInfo:[],
|
|
|
-
|
|
|
- validationRules: {
|
|
|
- url: [
|
|
|
- {
|
|
|
+ visible:false,
|
|
|
+ errorInfo:[],
|
|
|
+
|
|
|
+ validationRules: {
|
|
|
+ url: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ validator: this.validateURL,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ strategyName:[{
|
|
|
required: true,
|
|
|
- validator: this.validateURL,
|
|
|
+ validator: this.validateName,
|
|
|
+ }],
|
|
|
+ bid:[{
|
|
|
+ required: true,
|
|
|
+ message:'出价信息必须填写',
|
|
|
+ // validator: this.validateBid,
|
|
|
+ }],
|
|
|
+ roi:[{
|
|
|
+ required: true,
|
|
|
+ message:'ROI系数必须填写',
|
|
|
+ // validator: this.validateBid,
|
|
|
+ }],
|
|
|
},
|
|
|
- ],
|
|
|
- strategyName:[{
|
|
|
- required: true,
|
|
|
- validator: this.validateName,
|
|
|
- }],
|
|
|
- bid:[{
|
|
|
- required: true,
|
|
|
- message:'出价信息必须填写',
|
|
|
- // validator: this.validateBid,
|
|
|
- }],
|
|
|
- roi:[{
|
|
|
- required: true,
|
|
|
- message:'ROI系数必须填写',
|
|
|
- // validator: this.validateBid,
|
|
|
- }],
|
|
|
- },
|
|
|
-
|
|
|
- }
|
|
|
- },
|
|
|
- watch: {
|
|
|
-
|
|
|
- },
|
|
|
- methods: {
|
|
|
- // //项目改变后的事件
|
|
|
- treeChange(val) {
|
|
|
- // console.log(this.treeData)
|
|
|
- console.log(val)
|
|
|
- this.accountId = [];
|
|
|
- //选择一个后禁用其他
|
|
|
- if(val.length==1){
|
|
|
- if(val[0]*1){
|
|
|
- let selectindex=0
|
|
|
- this.treeData.forEach((ele,index)=>{
|
|
|
- if(ele.children){
|
|
|
- ele.children.map((item,ind)=>{
|
|
|
- if(item.value==val[0]){
|
|
|
- selectindex=index;
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ accountId(newValue,oldValue){
|
|
|
+ if(newValue){
|
|
|
+ this.treeData.forEach(item=>{
|
|
|
+ if(item.children){
|
|
|
+ item.children.forEach(ele=>{
|
|
|
+ if(ele.value==newValue){
|
|
|
+ this.$parent.accountInfo=ele
|
|
|
}
|
|
|
- })
|
|
|
- }
|
|
|
- });
|
|
|
- // console.log(selectindex)
|
|
|
- if(selectindex ||selectindex==0){
|
|
|
- this.treeData.forEach((ele,index)=>{
|
|
|
- if(index!=selectindex){
|
|
|
- ele.disableCheckbox = true;
|
|
|
- if(ele.children){
|
|
|
- ele.children.map((item,ind)=>{
|
|
|
- item.disableCheckbox = true;
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- }else{
|
|
|
- // console.log(1)
|
|
|
- this.treeData.forEach((ele,index)=>{
|
|
|
- if(ele.value!=val[0]){
|
|
|
- ele.disableCheckbox = true;
|
|
|
-
|
|
|
- if(ele.children){
|
|
|
- ele.children.forEach((item,ind)=>{
|
|
|
- item.disableCheckbox = true;
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- })
|
|
|
- }
|
|
|
- // console.log(this.mediaId)
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if(val.length==0){
|
|
|
- this.treeData.forEach((ele,index)=>{
|
|
|
- ele.disableCheckbox = false;
|
|
|
-
|
|
|
- if(ele.children){
|
|
|
- ele.children.forEach((item,ind)=>{
|
|
|
- item.disableCheckbox = false;
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
+ })
|
|
|
+ console.log(this.$parent.accountInfo)
|
|
|
+ }
|
|
|
}
|
|
|
- if(val){
|
|
|
- val.forEach((ele,index)=>{
|
|
|
- if(ele*1){
|
|
|
- this.accountId.push(ele)
|
|
|
- }else{
|
|
|
- let projectArr=this.treeData.filter((item)=>{
|
|
|
- return item.value==ele
|
|
|
- });
|
|
|
- // console.log(projectArr)
|
|
|
- projectArr[0].children.forEach((element)=>{
|
|
|
- this.accountId.push(element.value)
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- console.log(this.accountId);
|
|
|
- let LHKaccountInfo=[]
|
|
|
- this.accountId.forEach(item=>{
|
|
|
- this.treeData.forEach(element=>{
|
|
|
- element.children.forEach(ele=>{
|
|
|
- if(item==ele.value){
|
|
|
- LHKaccountInfo.push(ele)
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- })
|
|
|
-
|
|
|
- sessionStorage.setItem('LHKaccountInfo',JSON.stringify(LHKaccountInfo))
|
|
|
- },
|
|
|
- treeSearch(){
|
|
|
- },
|
|
|
- treeSelect(){
|
|
|
},
|
|
|
+ methods: {
|
|
|
|
|
|
- filterOption(input, option){
|
|
|
- console.log(input, option)
|
|
|
- return (
|
|
|
- option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
- );
|
|
|
- },
|
|
|
-
|
|
|
|
|
|
- //请求项目和账户内容
|
|
|
- accountHttp(){
|
|
|
- this.treeData=[];
|
|
|
- this.accountId=[];
|
|
|
- getAction('/ctop/projectMember/getProjectAccountByUserId?mediaType=1', {}).then(res => {
|
|
|
- if(res.success){
|
|
|
- // console.log(res);
|
|
|
- if(res.result){
|
|
|
- res.result.forEach((element,index) => {
|
|
|
- if(element){
|
|
|
- this.treeData.push({});
|
|
|
- this.treeData[index].title=element.project.projectName +'_('+ element.project.advertiserName +')';
|
|
|
- this.treeData[index].value='project'+element.project.projectId;
|
|
|
- this.treeData[index].key=element.project.projectId;
|
|
|
- this.treeData[index].mediaId=element.project.mediaId;
|
|
|
- this.treeData[index].children=[];
|
|
|
-
|
|
|
- if(element.account.length){
|
|
|
- element.account.forEach((ele,i)=>{
|
|
|
- this.treeData[index].children.push({});
|
|
|
- this.treeData[index].children[i].title=ele.userName+'_'+ele.authName+'_'+element.project.projectName;
|
|
|
- this.treeData[index].children[i].value=ele.accountId;
|
|
|
- this.treeData[index].children[i].key=ele.accountId;
|
|
|
- })
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- // console.log(this.treeData)
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
+ //获取表单的某一个属性值
|
|
|
+ getFormData(className) {
|
|
|
+ return this.form.getFieldValue(className)
|
|
|
+ },
|
|
|
+ dateChange(date, dateString) {
|
|
|
+ // console.log(date,dateString)
|
|
|
+ this.form.getFieldDecorator('startTime')
|
|
|
+ this.form.getFieldDecorator('endTime')
|
|
|
+ this.form.setFieldsValue({
|
|
|
+ startTime: date[0].format('YYYY-MM-DD HH:mm'),
|
|
|
+ endTime: date[1].format('YYYY-MM-DD HH:mm'),
|
|
|
})
|
|
|
- },
|
|
|
-
|
|
|
-
|
|
|
- handleOk(e) {
|
|
|
- this.visible=false;
|
|
|
- this.$router.replace({path:'/LaunchHousekeeper/setProjectConvert'})
|
|
|
-
|
|
|
-
|
|
|
- },
|
|
|
- handleCancel(e) {
|
|
|
- this.visible = false;
|
|
|
- },
|
|
|
-
|
|
|
-
|
|
|
- //获取表单的某一个属性值
|
|
|
- getFormData(className) {
|
|
|
- return this.form.getFieldValue(className)
|
|
|
- },
|
|
|
- dateChange(date, dateString) {
|
|
|
- // console.log(date,dateString)
|
|
|
- this.form.getFieldDecorator('startTime')
|
|
|
- this.form.getFieldDecorator('endTime')
|
|
|
- this.form.setFieldsValue({
|
|
|
- startTime: date[0].format('YYYY-MM-DD HH:mm'),
|
|
|
- endTime: date[1].format('YYYY-MM-DD HH:mm'),
|
|
|
- })
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
- //推广目的改变
|
|
|
- marketingGoalChange(e){
|
|
|
- console.log(e.target)
|
|
|
- this.marketingGoalHandle(e.target.value)
|
|
|
- },
|
|
|
+ //推广目的改变
|
|
|
+ marketingGoalChange(e){
|
|
|
+ console.log(e.target)
|
|
|
+ this.marketingGoalHandle(e.target.value)
|
|
|
+ },
|
|
|
|
|
|
- // 验证网址
|
|
|
- IsURL(res) {
|
|
|
- // var strRegex = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/|www\.)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/
|
|
|
- var strRegex = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+(.+[A-Za-z0-9-~\/])+$/
|
|
|
- var re = new RegExp(strRegex)
|
|
|
- // console.log(re.test(res))
|
|
|
- if (re.test(res)) {
|
|
|
- return true
|
|
|
- } else {
|
|
|
- return false
|
|
|
- }
|
|
|
- },
|
|
|
- validateURL(rule, value, callback) {
|
|
|
- // console.log(rule, value, callback);
|
|
|
-
|
|
|
- if (this.IsURL(value)) {
|
|
|
- callback()
|
|
|
- } else if (value && !this.IsURL(value)) {
|
|
|
- callback('链接地址无法访问,请正确输入')
|
|
|
- } else {
|
|
|
- callback('链接必须填写')
|
|
|
- }
|
|
|
- },
|
|
|
- validateName(rule, value, callback){
|
|
|
- // console.log(rule, value, callback);
|
|
|
-
|
|
|
- if (value) {
|
|
|
- callback()
|
|
|
+ // 验证网址
|
|
|
+ IsURL(res) {
|
|
|
+ // var strRegex = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/|www\.)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/
|
|
|
+ var strRegex = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+(.+[A-Za-z0-9-~\/])+$/
|
|
|
+ var re = new RegExp(strRegex)
|
|
|
+ // console.log(re.test(res))
|
|
|
+ if (re.test(res)) {
|
|
|
+ return true
|
|
|
} else {
|
|
|
- callback('应用包名称必须填写')
|
|
|
+ return false
|
|
|
}
|
|
|
- },
|
|
|
- validateBid(rule, value, callback){
|
|
|
- // console.log(rule, value, callback);
|
|
|
- if (value) {
|
|
|
- callback()
|
|
|
+ },
|
|
|
+ validateURL(rule, value, callback) {
|
|
|
+ // console.log(rule, value, callback);
|
|
|
+
|
|
|
+ if (this.IsURL(value)) {
|
|
|
+ callback()
|
|
|
+ } else if (value && !this.IsURL(value)) {
|
|
|
+ callback('链接地址无法访问,请正确输入')
|
|
|
} else {
|
|
|
- callback('出价必须填写')
|
|
|
+ callback('链接必须填写')
|
|
|
}
|
|
|
- },
|
|
|
+ },
|
|
|
+ validateName(rule, value, callback){
|
|
|
+ // console.log(rule, value, callback);
|
|
|
+
|
|
|
+ if (value) {
|
|
|
+ callback()
|
|
|
+ } else {
|
|
|
+ callback('应用包名称必须填写')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ validateBid(rule, value, callback){
|
|
|
+ // console.log(rule, value, callback);
|
|
|
+ if (value) {
|
|
|
+ callback()
|
|
|
+ } else {
|
|
|
+ callback('出价必须填写')
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
|
|
- goBack() {
|
|
|
- this.$router.replace('/modules/LaunchHousekeeper/LaunchHousekeeperList')
|
|
|
- this.$bus.$emit('remove', '/LaunchHousekeeper/newProject')
|
|
|
- },
|
|
|
+ goBack() {
|
|
|
+ this.$router.replace('/autoLaunch/autoLaunchList')
|
|
|
+ this.$bus.$emit('remove', '/autoLaunch/newStrategy')
|
|
|
+ },
|
|
|
|
|
|
- // 保存并新建创意
|
|
|
- goNext() {
|
|
|
+ // 保存并新建创意
|
|
|
+ goNext() {
|
|
|
this.$nextTick(()=>{
|
|
|
if (this.strategyName) {
|
|
|
- let LHKaccountInfo=sessionStorage.getItem('LHKaccountInfo');
|
|
|
- if(LHKaccountInfo){
|
|
|
- this.LHKaccountInfo=JSON.parse(LHKaccountInfo)
|
|
|
- }
|
|
|
this.form.validateFields((err, values) => {
|
|
|
if (!err) {
|
|
|
|
|
|
- console.log('Received values of form: ', values)
|
|
|
- // console.log(this.strategyNames)
|
|
|
- this.goNextloading=true;
|
|
|
- values.accountId = this.accountId
|
|
|
- values.strategyName=this.strategyName
|
|
|
- postAction('/adlab/Project/create', {
|
|
|
- ...values,
|
|
|
- }).then((res) => {
|
|
|
- console.log(res)
|
|
|
- if (res.success) {
|
|
|
- this.goNextloading=false;
|
|
|
-
|
|
|
- if(res.result){
|
|
|
- this.errorInfo=res.result;
|
|
|
- this.visible=true;
|
|
|
-
|
|
|
- let projectInfo=[]
|
|
|
- res.result.forEach(item=>{
|
|
|
- if(item.code==0){
|
|
|
- projectInfo.push(item)
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- sessionStorage.setItem('projectInfo',JSON.stringify(projectInfo))
|
|
|
- }
|
|
|
-
|
|
|
- } else {
|
|
|
- this.goNextloading=false;
|
|
|
- this.$message.error('网络开小差了,等会再试试')
|
|
|
- }
|
|
|
- })
|
|
|
+ console.log('Received values of form: ', values)
|
|
|
+ // console.log(this.strategyNames)
|
|
|
+ values.accountId = this.accountId
|
|
|
+ values.strategyName=this.strategyName
|
|
|
+ this.$parent.strategyInfo=values;
|
|
|
+ this.$parent.currentTabComponent='setDirectional'
|
|
|
}else{
|
|
|
- this.$message.error('请正确填写必填项目')
|
|
|
+ this.$message.error('请正确填写必填项目')
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
@@ -476,42 +268,76 @@ export default {
|
|
|
})
|
|
|
|
|
|
},
|
|
|
-
|
|
|
+ //请求项目和账户内容
|
|
|
+ accountHttp(){
|
|
|
+ this.treeData=[];
|
|
|
+ this.accountIds=[];
|
|
|
+ getAction('/ctop/projectMember/getProjectAccountByUserId?mediaType=2', {}).then(res => {
|
|
|
+ if(res.success){
|
|
|
+ // console.log(res);
|
|
|
+ if(res.result){
|
|
|
+ res.result.forEach((element,index) => {
|
|
|
+ if(element){
|
|
|
+ this.treeData.push({});
|
|
|
+ this.treeData[index].title=element.project.projectName +'_('+ element.project.advertiserName +')';
|
|
|
+ this.treeData[index].value='project'+element.project.projectId;
|
|
|
+ this.treeData[index].key=element.project.projectId;
|
|
|
+ this.treeData[index].mediaId=element.project.mediaId;
|
|
|
+ this.treeData[index].children=[];
|
|
|
+
|
|
|
+ if(element.account.length){
|
|
|
+ element.account.forEach((ele,i)=>{
|
|
|
+ this.treeData[index].children.push({});
|
|
|
+ this.treeData[index].children[i].title=ele.userName+'_'+ele.authName+'_'+element.project.projectName;
|
|
|
+ this.treeData[index].children[i].value=ele.accountId;
|
|
|
+ this.treeData[index].children[i].key=ele.accountId;
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // console.log(this.treeData)
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
-
|
|
|
- },
|
|
|
- marketingGoalHandle(val){
|
|
|
- let str='';
|
|
|
- switch (val) {
|
|
|
- case '1':
|
|
|
- str='应用安装'
|
|
|
- break;
|
|
|
- case '2':
|
|
|
- str='电商下单'
|
|
|
- break;
|
|
|
- case '3':
|
|
|
- str='推广品牌'
|
|
|
- break;
|
|
|
- case '4':
|
|
|
- str='营销线上'
|
|
|
- break;
|
|
|
- case '5':
|
|
|
- str='应用活跃'
|
|
|
- break;
|
|
|
-
|
|
|
- default:
|
|
|
- str='转化错误'
|
|
|
- break;
|
|
|
- }
|
|
|
- return str
|
|
|
+
|
|
|
+ marketingGoalHandle(val){
|
|
|
+ let str='';
|
|
|
+ switch (val) {
|
|
|
+ case '2':
|
|
|
+ str='应用安装'
|
|
|
+ break;
|
|
|
+ case '3':
|
|
|
+ str='电商下单'
|
|
|
+ break;
|
|
|
+ case '4':
|
|
|
+ str='推广品牌'
|
|
|
+ break;
|
|
|
+ case '5':
|
|
|
+ str='营销线上'
|
|
|
+ break;
|
|
|
+ case '7':
|
|
|
+ str='应用活跃'
|
|
|
+ break;
|
|
|
+
|
|
|
+ default:
|
|
|
+ str='转化错误'
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return str
|
|
|
+ },
|
|
|
},
|
|
|
+
|
|
|
mounted() {
|
|
|
this.accountHttp()
|
|
|
// this.$bus.$emit('remove', '/modules/BatchCreate/newGroup')
|
|
|
let strategyNamepart=this.marketingGoalHandle(this.getFormData('marketingGoal'));
|
|
|
|
|
|
|
|
|
- this.strategyName ='[策略]'+ strategyNamepart + moment().format('MM_DD_hh:mm') ;
|
|
|
+ this.strategyName ='[策略]_'+ strategyNamepart+'_' + moment().format('MM_DD_hh:mm') ;
|
|
|
|
|
|
|
|
|
},
|