commit
Showing
2 changed files
with
40 additions
and
8 deletions
| ... | @@ -260,6 +260,12 @@ | ... | @@ -260,6 +260,12 @@ |
| 260 | }, | 260 | }, |
| 261 | methods: { | 261 | methods: { |
| 262 | activity() { | 262 | activity() { |
| 263 | const loading = this.$loading({ | ||
| 264 | lock: true, | ||
| 265 | text: 'Loading', | ||
| 266 | spinner: 'el-icon-loading', | ||
| 267 | background: 'rgba(0, 0, 0, 0.7)' | ||
| 268 | }); | ||
| 263 | let config = { | 269 | let config = { |
| 264 | headers: { | 270 | headers: { |
| 265 | 'Content-Type': 'application/x-www-form-urlencoded' | 271 | 'Content-Type': 'application/x-www-form-urlencoded' |
| ... | @@ -284,6 +290,18 @@ | ... | @@ -284,6 +290,18 @@ |
| 284 | type: 'error' | 290 | type: 'error' |
| 285 | }); | 291 | }); |
| 286 | }) | 292 | }) |
| 293 | loading.close(); | ||
| 294 | }, | ||
| 295 | openFullScreen() { | ||
| 296 | const loading = this.$loading({ | ||
| 297 | lock: true, | ||
| 298 | text: 'Loading', | ||
| 299 | spinner: 'el-icon-loading', | ||
| 300 | background: 'rgba(0, 0, 0, 0.7)' | ||
| 301 | }); | ||
| 302 | setTimeout(() => { | ||
| 303 | loading.close(); | ||
| 304 | }, 2000); | ||
| 287 | } | 305 | } |
| 288 | } | 306 | } |
| 289 | } | 307 | } | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | <div> | 2 | <div> |
| 3 | <el-row style="margin-bottom: 15px; margin-top: 5px"> | 3 | <el-row style="margin-bottom: 15px; margin-top: 5px"> |
| 4 | <el-col :span="8"> | 4 | <el-col :span="8"> |
| 5 | <el-form ref="form" :model="deleteClues" label-width="0px"> | 5 | <el-form ref="deleteClues" :model="deleteClues" label-width="0px"> |
| 6 | <el-card class="yellowgreen" shadow="always"> | 6 | <el-card class="yellowgreen" shadow="always"> |
| 7 | <div slot="header" class="clearfix"> | 7 | <div slot="header" class="clearfix"> |
| 8 | <span>删除线索</span> | 8 | <span>删除线索</span> |
| ... | @@ -24,7 +24,7 @@ | ... | @@ -24,7 +24,7 @@ |
| 24 | </el-form> | 24 | </el-form> |
| 25 | </el-col> | 25 | </el-col> |
| 26 | <el-col :span="8"> | 26 | <el-col :span="8"> |
| 27 | <el-form ref="form" :model="bizData" label-width="0px"> | 27 | <el-form ref="bizData" :model="bizData" label-width="0px"> |
| 28 | <el-card class="darkred" shadow="always"> | 28 | <el-card class="darkred" shadow="always"> |
| 29 | <div slot="header" class="clearfix"> | 29 | <div slot="header" class="clearfix"> |
| 30 | <span>加密biz_data</span> | 30 | <span>加密biz_data</span> |
| ... | @@ -51,7 +51,7 @@ | ... | @@ -51,7 +51,7 @@ |
| 51 | </el-dialog> | 51 | </el-dialog> |
| 52 | </el-col> | 52 | </el-col> |
| 53 | <el-col :span="8"> | 53 | <el-col :span="8"> |
| 54 | <el-form ref="form" :model="smsCode" label-width="0px"> | 54 | <el-form ref="smsCode" :model="smsCode" label-width="0px"> |
| 55 | <el-card class="blue" shadow="always"> | 55 | <el-card class="blue" shadow="always"> |
| 56 | <div slot="header" class="clearfix"> | 56 | <div slot="header" class="clearfix"> |
| 57 | <span>设置短信验证码</span> | 57 | <span>设置短信验证码</span> |
| ... | @@ -74,17 +74,17 @@ | ... | @@ -74,17 +74,17 @@ |
| 74 | </el-row> | 74 | </el-row> |
| 75 | <el-row style="margin-bottom: 15px;"> | 75 | <el-row style="margin-bottom: 15px;"> |
| 76 | <el-col :span="8"> | 76 | <el-col :span="8"> |
| 77 | <el-form ref="form" :model="activityConfig" label-width="0px"> | 77 | <el-form ref="activityConfig" :model="activityConfig" label-width="0px"> |
| 78 | <el-card class="chocolate" shadow="always"> | 78 | <el-card class="chocolate" shadow="always"> |
| 79 | <div slot="header" class="clearfix"> | 79 | <div slot="header" class="clearfix"> |
| 80 | <span>查询活动配置</span> | 80 | <span>查询活动配置</span> |
| 81 | </div> | 81 | </div> |
| 82 | <div class="text item"> | 82 | <div class="text item"> |
| 83 | <el-form-item> | 83 | <el-form-item prop="id"> |
| 84 | <el-input placeholder="请输入活动ID" v-model="activityConfig.id" clearable></el-input> | 84 | <el-input placeholder="请输入活动ID" v-model="activityConfig.id" clearable></el-input> |
| 85 | </el-form-item> | 85 | </el-form-item> |
| 86 | <el-form-item> | 86 | <el-form-item> |
| 87 | <el-select v-model="activityConfig.huanjing" placeholder="单选是查询,多选是对比"> | 87 | <el-select v-model="activityConfig.huanjing" placeholder="请选择执行环境"> |
| 88 | <el-option | 88 | <el-option |
| 89 | v-for="item in options" | 89 | v-for="item in options" |
| 90 | :key="item.value" | 90 | :key="item.value" |
| ... | @@ -102,7 +102,7 @@ | ... | @@ -102,7 +102,7 @@ |
| 102 | </el-form> | 102 | </el-form> |
| 103 | </el-col> | 103 | </el-col> |
| 104 | <el-col :span="8"> | 104 | <el-col :span="8"> |
| 105 | <el-form ref="form" :model="createCluesYoubaoe" label-width="0px"> | 105 | <el-form ref="createCluesYoubaoe" :model="createCluesYoubaoe" label-width="0px"> |
| 106 | <el-card class="aquamarine" shadow="always"> | 106 | <el-card class="aquamarine" shadow="always"> |
| 107 | <div slot="header" class="clearfix"> | 107 | <div slot="header" class="clearfix"> |
| 108 | <span>生成线索-活动类型-有预约保额</span> | 108 | <span>生成线索-活动类型-有预约保额</span> |
| ... | @@ -211,6 +211,11 @@ | ... | @@ -211,6 +211,11 @@ |
| 211 | value: 'release', | 211 | value: 'release', |
| 212 | label: '线上环境' | 212 | label: '线上环境' |
| 213 | }] | 213 | }] |
| 214 | // activityConfigRules: { | ||
| 215 | // id: [ | ||
| 216 | // { required: true, message: '请输入活动ID', trigger: 'blur' } | ||
| 217 | // ] | ||
| 218 | // } | ||
| 214 | } | 219 | } |
| 215 | }, | 220 | }, |
| 216 | methods: { | 221 | methods: { |
| ... | @@ -336,10 +341,19 @@ | ... | @@ -336,10 +341,19 @@ |
| 336 | }) | 341 | }) |
| 337 | }, | 342 | }, |
| 338 | activityConfigSubmit() { | 343 | activityConfigSubmit() { |
| 344 | // this.$refs['activityConfig'].validate((valid) => { | ||
| 345 | // if(valid) { | ||
| 346 | // const {href} = this.$router.resolve({ name:'activityConfig', query: | ||
| 347 | // {id: this.activityConfig.id, huangjing: this.activityConfig.huanjing.toString()}}) | ||
| 348 | // window.open(href, '_blank') | ||
| 349 | // } else { | ||
| 350 | // console.log('valid fail') | ||
| 351 | // return false; | ||
| 352 | // } | ||
| 353 | // }) | ||
| 339 | const {href} = this.$router.resolve({ name:'activityConfig', query: | 354 | const {href} = this.$router.resolve({ name:'activityConfig', query: |
| 340 | {id: this.activityConfig.id, huangjing: this.activityConfig.huanjing.toString()}}) | 355 | {id: this.activityConfig.id, huangjing: this.activityConfig.huanjing.toString()}}) |
| 341 | window.open(href, '_blank') | 356 | window.open(href, '_blank') |
| 342 | |||
| 343 | } | 357 | } |
| 344 | } | 358 | } |
| 345 | } | 359 | } | ... | ... |
-
Please register or sign in to post a comment