|
@@ -57,7 +57,7 @@
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
:value="item.value">
|
|
|
- </el-option>{{this.areaObj.areaCity}}
|
|
|
+ </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -126,7 +126,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="标讯关键词" prop="bidingKeyword" >
|
|
|
- <el-input v-model="form.bidingKeyword" clearable>{{this.areaObj.bidingKeyword}}</el-input>
|
|
|
+ <el-input v-model="form.bidingKeyword" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
@@ -140,14 +140,14 @@
|
|
|
<!-- end-placeholder="结束月份"-->
|
|
|
<!-- >-->
|
|
|
<!-- {{this.areaObj.infoPublishTime}}</el-date-picker>-->
|
|
|
- <el-input v-model="form.dayNum" clearable>{{this.areaObj.dayNum}}</el-input>
|
|
|
+ <el-input v-model="form.dayNum" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="排除词">
|
|
|
- <el-input v-model="form.excludeWord" clearable>{{this.areaObj.excludeWord}}</el-input>
|
|
|
+ <el-input v-model="form.excludeWord" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="7" >
|
|
@@ -227,7 +227,7 @@ import {
|
|
|
updateById,
|
|
|
getZhaoBiaoUnitList,
|
|
|
getUserByNickName,
|
|
|
- getCustomerList,
|
|
|
+ getCustomerList, getUserByUserName,
|
|
|
} from "@/api/business/bid/subscriptionRules";
|
|
|
import loading from "vxe-table/packages/loading";
|
|
|
|
|
@@ -239,6 +239,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ userName:[],
|
|
|
customerList:[],
|
|
|
value:'',
|
|
|
zhaoBiaoUnitList:[],
|
|
@@ -338,6 +339,7 @@ export default {
|
|
|
unitNameMatch:'',
|
|
|
zhaoBiaoUnit:[],
|
|
|
subscriptionPusher:'',
|
|
|
+ nickNameList:'',
|
|
|
ruleDescription:'',
|
|
|
stateFlag:'',
|
|
|
infoPublishStartTime:'',
|
|
@@ -391,9 +393,11 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getCustomer(val){
|
|
|
- getCustomerList(val).then(res => {
|
|
|
- this.customerList=res.data
|
|
|
- })
|
|
|
+ if(val != '' && val != null){
|
|
|
+ getCustomerList(val).then(res => {
|
|
|
+ this.customerList=res.data
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
getUser(val){
|
|
|
if(val !== '' ){
|
|
@@ -402,6 +406,13 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ getUserByName(val){
|
|
|
+ getUserByUserName(val).then(res =>{
|
|
|
+ if(res.code=='200'){
|
|
|
+ this.userList=res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
getRuleCity(){
|
|
|
cityQuery().then(res =>{
|
|
|
if (res.code == 200) {
|
|
@@ -429,15 +440,18 @@ export default {
|
|
|
if(this.form.biddingType.length>0){
|
|
|
this.form.biddingType=this.form.biddingType.split(',')
|
|
|
}
|
|
|
- this.form.zhaoBiaoUnit=this.form.zhaoBiaoUnit.split(',')
|
|
|
- this.form.subscriptionPusher=this.form.subscriptionPusher.split(',')
|
|
|
+ this.form.zhaoBiaoUnit = this.form.zhaoBiaoUnit.split(',')
|
|
|
+ this.userName=this.form.subscriptionPusher
|
|
|
+ if(this.userName){
|
|
|
+ this.getUserByName(this.userName)
|
|
|
+ }
|
|
|
+ this.form.subscriptionPusher = this.form.subscriptionPusher.split(',')
|
|
|
this.form.unitNameMatch=this.form.unitNameMatch.split(',')
|
|
|
if(this.form.infoPublishStartTime !=null && this.form.infoPublishEndTime != null){
|
|
|
this.infoPublishTime=[this.form.infoPublishStartTime,this.form.infoPublishEndTime]
|
|
|
}
|
|
|
-
|
|
|
- console.log("this.infoPublishTime",this.infoPublishTime)
|
|
|
})
|
|
|
+
|
|
|
},
|
|
|
cancel(){
|
|
|
this.form = {
|