commit
Showing
5 changed files
with
369 additions
and
11 deletions
| ... | @@ -16,6 +16,13 @@ axios.defaults.baseURL = 'http://192.168.8.216:9090' | ... | @@ -16,6 +16,13 @@ axios.defaults.baseURL = 'http://192.168.8.216:9090' |
| 16 | 16 | ||
| 17 | Vue.use(Element, { size: 'small', zIndex: 3000 }); | 17 | Vue.use(Element, { size: 'small', zIndex: 3000 }); |
| 18 | 18 | ||
| 19 | router.beforeEach((to, from, next) => { | ||
| 20 | if (to.meta.title) { | ||
| 21 | document.title = to.meta.title | ||
| 22 | } | ||
| 23 | next() | ||
| 24 | }) | ||
| 25 | |||
| 19 | /* eslint-disable no-new */ | 26 | /* eslint-disable no-new */ |
| 20 | new Vue({ | 27 | new Vue({ |
| 21 | el: '#app', | 28 | el: '#app', | ... | ... |
src/page/activityConfig.vue
0 → 100644
| 1 | <template xmlns:el-col="http://www.w3.org/1999/html"> | ||
| 2 | <div> | ||
| 3 | <br/> | ||
| 4 | <a href="http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498" target="_blank">活动配置奖品表</a> | ||
| 5 | <el-table | ||
| 6 | :data="activityDialAwards" | ||
| 7 | border | ||
| 8 | style="width: 100%" | ||
| 9 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 10 | <el-table-column | ||
| 11 | prop="name" | ||
| 12 | label="奖品名称" | ||
| 13 | min-width="2"> | ||
| 14 | </el-table-column> | ||
| 15 | <el-table-column | ||
| 16 | prop="awardTotalCount" | ||
| 17 | label="奖品数量" | ||
| 18 | min-width="1"> | ||
| 19 | </el-table-column> | ||
| 20 | <el-table-column | ||
| 21 | prop="weight" | ||
| 22 | label="概率权重" | ||
| 23 | min-width="1"> | ||
| 24 | </el-table-column> | ||
| 25 | <el-table-column | ||
| 26 | prop="userGroupType" | ||
| 27 | label="用户角色" | ||
| 28 | min-width="1"> | ||
| 29 | </el-table-column> | ||
| 30 | <el-table-column | ||
| 31 | prop="userMaxCount" | ||
| 32 | label="实物互斥" | ||
| 33 | min-width="1"> | ||
| 34 | </el-table-column> | ||
| 35 | <el-table-column | ||
| 36 | prop="startTime" | ||
| 37 | label="开始时间" | ||
| 38 | min-width="2"> | ||
| 39 | </el-table-column> | ||
| 40 | <el-table-column | ||
| 41 | prop="endTime" | ||
| 42 | label="结束时间" | ||
| 43 | min-width="2"> | ||
| 44 | </el-table-column> | ||
| 45 | <el-table-column | ||
| 46 | prop="extData" | ||
| 47 | label="地区配置" | ||
| 48 | min-width="4"> | ||
| 49 | </el-table-column> | ||
| 50 | <el-table-column | ||
| 51 | prop="defAward" | ||
| 52 | label="默认奖品" | ||
| 53 | min-width="1"> | ||
| 54 | </el-table-column> | ||
| 55 | </el-table> | ||
| 56 | <br/> | ||
| 57 | <br/> | ||
| 58 | <a href="http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498" target="_blank">活动主表</a> | ||
| 59 | <el-table | ||
| 60 | :data="activityInfos" | ||
| 61 | border | ||
| 62 | style="width: 100%" | ||
| 63 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 64 | <el-table-column | ||
| 65 | prop="id" | ||
| 66 | label="活动id" | ||
| 67 | min-width="1"> | ||
| 68 | </el-table-column> | ||
| 69 | <el-table-column | ||
| 70 | prop="status" | ||
| 71 | label="上线状态" | ||
| 72 | min-width="1"> | ||
| 73 | </el-table-column> | ||
| 74 | <el-table-column | ||
| 75 | prop="name" | ||
| 76 | label="活动名称" | ||
| 77 | min-width="2"> | ||
| 78 | </el-table-column> | ||
| 79 | <el-table-column | ||
| 80 | prop="joinRoleType" | ||
| 81 | label="参与角色" | ||
| 82 | min-width="1"> | ||
| 83 | </el-table-column> | ||
| 84 | <el-table-column | ||
| 85 | prop="displayStartTime" | ||
| 86 | label="预热开始时间" | ||
| 87 | min-width="1"> | ||
| 88 | </el-table-column> | ||
| 89 | <el-table-column | ||
| 90 | prop="startTime" | ||
| 91 | label="活动开始时间" | ||
| 92 | min-width="1"> | ||
| 93 | </el-table-column> | ||
| 94 | <el-table-column | ||
| 95 | prop="endTime" | ||
| 96 | label="活动结束时间" | ||
| 97 | min-width="1"> | ||
| 98 | </el-table-column> | ||
| 99 | <el-table-column | ||
| 100 | prop="displayEndTime" | ||
| 101 | label="展示结束时间" | ||
| 102 | min-width="1"> | ||
| 103 | </el-table-column> | ||
| 104 | <el-table-column | ||
| 105 | prop="locationCodeRule" | ||
| 106 | label="机构code规则" | ||
| 107 | min-width="3"> | ||
| 108 | </el-table-column> | ||
| 109 | </el-table> | ||
| 110 | <br/> | ||
| 111 | <br/> | ||
| 112 | <a href="http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498" target="_blank">抽奖规则设置表</a> | ||
| 113 | <el-table | ||
| 114 | :data="activityDialConfigs" | ||
| 115 | border | ||
| 116 | style="width: 100%" | ||
| 117 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 118 | <el-table-column | ||
| 119 | prop="dayLotteryTimes" | ||
| 120 | label="每日默认次数" | ||
| 121 | min-width="1"> | ||
| 122 | </el-table-column> | ||
| 123 | <el-table-column | ||
| 124 | prop="dayShareLotteryTimes" | ||
| 125 | label="分享可得抽奖次数" | ||
| 126 | min-width="1"> | ||
| 127 | </el-table-column> | ||
| 128 | </el-table> | ||
| 129 | <br/> | ||
| 130 | <br/> | ||
| 131 | <a href="http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498" target="_blank">活动弹板表</a> | ||
| 132 | <el-table | ||
| 133 | :data="activityPopPanels" | ||
| 134 | border | ||
| 135 | style="width: 100%" | ||
| 136 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 137 | <el-table-column | ||
| 138 | prop="htmlContent" | ||
| 139 | label="内容" | ||
| 140 | min-width="2"> | ||
| 141 | </el-table-column> | ||
| 142 | <el-table-column | ||
| 143 | prop="tts" | ||
| 144 | label="TTS" | ||
| 145 | min-width="1"> | ||
| 146 | </el-table-column> | ||
| 147 | <el-table-column | ||
| 148 | prop="hrefButtonUrl" | ||
| 149 | label="连接地址" | ||
| 150 | min-width="3"> | ||
| 151 | </el-table-column> | ||
| 152 | </el-table> | ||
| 153 | <br/> | ||
| 154 | <br/> | ||
| 155 | <a href="http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498" target="_blank">活动入口图配置</a> | ||
| 156 | <el-table | ||
| 157 | :data="operateMsgInfos" | ||
| 158 | border | ||
| 159 | style="width: 100%" | ||
| 160 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 161 | <el-table-column | ||
| 162 | prop="actId" | ||
| 163 | label="活动id" | ||
| 164 | min-width="1"> | ||
| 165 | </el-table-column> | ||
| 166 | <el-table-column | ||
| 167 | prop="msgType" | ||
| 168 | label="展示类型" | ||
| 169 | min-width="1"> | ||
| 170 | </el-table-column> | ||
| 171 | <el-table-column | ||
| 172 | prop="archiveType" | ||
| 173 | label="是否需要填写资料" | ||
| 174 | min-width="1"> | ||
| 175 | </el-table-column> | ||
| 176 | <el-table-column | ||
| 177 | prop="beginTime" | ||
| 178 | label="开始时间" | ||
| 179 | min-width="1"> | ||
| 180 | </el-table-column> | ||
| 181 | <el-table-column | ||
| 182 | prop="endTime" | ||
| 183 | label="结束时间" | ||
| 184 | min-width="1"> | ||
| 185 | </el-table-column> | ||
| 186 | <el-table-column | ||
| 187 | prop="locationCodeRule" | ||
| 188 | label="机构code规则" | ||
| 189 | min-width="5"> | ||
| 190 | </el-table-column> | ||
| 191 | <el-table-column | ||
| 192 | prop="keywordData" | ||
| 193 | label="秘语json数据" | ||
| 194 | min-width="1"> | ||
| 195 | </el-table-column> | ||
| 196 | <el-table-column | ||
| 197 | prop="url" | ||
| 198 | label="跳转链接地址" | ||
| 199 | min-width="3"> | ||
| 200 | </el-table-column> | ||
| 201 | </el-table> | ||
| 202 | <br/> | ||
| 203 | <br/> | ||
| 204 | <a href="http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498" target="_blank">运营banner表</a> | ||
| 205 | <el-table | ||
| 206 | :data="operateMsgInfos" | ||
| 207 | border | ||
| 208 | style="width: 100%" | ||
| 209 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 210 | <el-table-column | ||
| 211 | prop="actId" | ||
| 212 | label="活动id" | ||
| 213 | min-width="1"> | ||
| 214 | </el-table-column> | ||
| 215 | <el-table-column | ||
| 216 | prop="content" | ||
| 217 | label="名称" | ||
| 218 | min-width="1"> | ||
| 219 | </el-table-column> | ||
| 220 | <el-table-column | ||
| 221 | prop="beginTime" | ||
| 222 | label="开始时间" | ||
| 223 | min-width="1"> | ||
| 224 | </el-table-column> | ||
| 225 | <el-table-column | ||
| 226 | prop="endTime" | ||
| 227 | label="结束时间" | ||
| 228 | min-width="1"> | ||
| 229 | </el-table-column> | ||
| 230 | <el-table-column | ||
| 231 | prop="locationCodeRule" | ||
| 232 | label="机构code规则" | ||
| 233 | min-width="5"> | ||
| 234 | </el-table-column> | ||
| 235 | <el-table-column | ||
| 236 | prop="url" | ||
| 237 | label="跳转链接地址" | ||
| 238 | min-width="3"> | ||
| 239 | </el-table-column> | ||
| 240 | </el-table> | ||
| 241 | </div> | ||
| 242 | </template> | ||
| 243 | |||
| 244 | <script> | ||
| 245 | export default { | ||
| 246 | data() { | ||
| 247 | return { | ||
| 248 | actid: this.$route.query.id, | ||
| 249 | huangjing: this.$route.query.huangjing, | ||
| 250 | activityDialAwards: [], | ||
| 251 | activityDialConfigs: [], | ||
| 252 | activityInfos: [], | ||
| 253 | activityPopPanels: [], | ||
| 254 | operateBannerInfos: [], | ||
| 255 | operateMsgInfos: [] | ||
| 256 | } | ||
| 257 | }, | ||
| 258 | mounted() { | ||
| 259 | this.activity() | ||
| 260 | }, | ||
| 261 | methods: { | ||
| 262 | activity() { | ||
| 263 | let config = { | ||
| 264 | headers: { | ||
| 265 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 266 | } | ||
| 267 | } | ||
| 268 | this.$http.get('/activity/router?'+this.$qs.stringify({ | ||
| 269 | act_id: this.actid, | ||
| 270 | huanjing: this.huangjing | ||
| 271 | }),config).then((res)=>{ | ||
| 272 | console.log(res.data) | ||
| 273 | this.activityDialAwards=res.data.activityDialAwards | ||
| 274 | this.activityDialConfigs=res.data.activityDialConfigs | ||
| 275 | this.activityInfos=res.data.activityInfos | ||
| 276 | this.activityPopPanels=res.data.activityPopPanels | ||
| 277 | this.operateBannerInfos=res.data.operateBannerInfos | ||
| 278 | this.operateMsgInfos=res.data.operateMsgInfos | ||
| 279 | }).catch(error=>{ | ||
| 280 | console.log(error); | ||
| 281 | this.$message({ | ||
| 282 | showClose: true, | ||
| 283 | message: '服务器处理失败,请核对参数!', | ||
| 284 | type: 'error' | ||
| 285 | }); | ||
| 286 | }) | ||
| 287 | } | ||
| 288 | } | ||
| 289 | } | ||
| 290 | </script> |
src/page/test.vue
deleted
100644 → 0
| ... | @@ -73,7 +73,35 @@ | ... | @@ -73,7 +73,35 @@ |
| 73 | </el-col> | 73 | </el-col> |
| 74 | </el-row> | 74 | </el-row> |
| 75 | <el-row style="margin-bottom: 15px;"> | 75 | <el-row style="margin-bottom: 15px;"> |
| 76 | <el-col> | 76 | <el-col :span="8"> |
| 77 | <el-form ref="form" :model="activityConfig" label-width="0px"> | ||
| 78 | <el-card class="chocolate" shadow="always"> | ||
| 79 | <div slot="header" class="clearfix"> | ||
| 80 | <span>查询活动配置</span> | ||
| 81 | </div> | ||
| 82 | <div class="text item"> | ||
| 83 | <el-form-item> | ||
| 84 | <el-input placeholder="请输入活动ID" v-model="activityConfig.id" clearable></el-input> | ||
| 85 | </el-form-item> | ||
| 86 | <el-form-item> | ||
| 87 | <el-select v-model="activityConfig.huanjing" placeholder="单选是查询,多选是对比"> | ||
| 88 | <el-option | ||
| 89 | v-for="item in options" | ||
| 90 | :key="item.value" | ||
| 91 | :label="item.label" | ||
| 92 | :value="item.value"> | ||
| 93 | </el-option> | ||
| 94 | </el-select> | ||
| 95 | </el-form-item> | ||
| 96 | <div style="margin: 15px 0;"></div> | ||
| 97 | <el-form-item> | ||
| 98 | <el-button round @click="activityConfigSubmit">查询配置</el-button> | ||
| 99 | </el-form-item> | ||
| 100 | </div> | ||
| 101 | </el-card> | ||
| 102 | </el-form> | ||
| 103 | </el-col> | ||
| 104 | <el-col :span="8"> | ||
| 77 | <el-form ref="form" :model="createCluesYoubaoe" label-width="0px"> | 105 | <el-form ref="form" :model="createCluesYoubaoe" label-width="0px"> |
| 78 | <el-card class="aquamarine" shadow="always"> | 106 | <el-card class="aquamarine" shadow="always"> |
| 79 | <div slot="header" class="clearfix"> | 107 | <div slot="header" class="clearfix"> |
| ... | @@ -138,10 +166,16 @@ | ... | @@ -138,10 +166,16 @@ |
| 138 | } | 166 | } |
| 139 | 167 | ||
| 140 | .aquamarine { | 168 | .aquamarine { |
| 141 | width: calc(440px); | 169 | width: calc(100% - 20px); |
| 142 | padding: 0px; | 170 | padding: 0px; |
| 143 | background-color: aquamarine; | 171 | background-color: aquamarine; |
| 144 | } | 172 | } |
| 173 | |||
| 174 | .chocolate { | ||
| 175 | width: calc(100% - 20px); | ||
| 176 | padding: 0px; | ||
| 177 | background-color: chocolate; | ||
| 178 | } | ||
| 145 | </style> | 179 | </style> |
| 146 | 180 | ||
| 147 | <script> | 181 | <script> |
| ... | @@ -165,7 +199,18 @@ | ... | @@ -165,7 +199,18 @@ |
| 165 | agentUid: '', | 199 | agentUid: '', |
| 166 | customUid: '', | 200 | customUid: '', |
| 167 | actId: '' | 201 | actId: '' |
| 168 | } | 202 | }, |
| 203 | activityConfig: { | ||
| 204 | id: '', | ||
| 205 | huanjing: [] | ||
| 206 | }, | ||
| 207 | options: [{ | ||
| 208 | value: 'debug', | ||
| 209 | label: '测试环境' | ||
| 210 | }, { | ||
| 211 | value: 'release', | ||
| 212 | label: '线上环境' | ||
| 213 | }] | ||
| 169 | } | 214 | } |
| 170 | }, | 215 | }, |
| 171 | methods: { | 216 | methods: { |
| ... | @@ -290,6 +335,12 @@ | ... | @@ -290,6 +335,12 @@ |
| 290 | }); | 335 | }); |
| 291 | }) | 336 | }) |
| 292 | }, | 337 | }, |
| 338 | activityConfigSubmit() { | ||
| 339 | const {href} = this.$router.resolve({ name:'activityConfig', query: | ||
| 340 | {id: this.activityConfig.id, huangjing: this.activityConfig.huanjing.toString()}}) | ||
| 341 | window.open(href, '_blank') | ||
| 342 | |||
| 343 | } | ||
| 293 | } | 344 | } |
| 294 | } | 345 | } |
| 295 | </script> | 346 | </script> | ... | ... |
| ... | @@ -2,7 +2,7 @@ import Vue from 'vue' | ... | @@ -2,7 +2,7 @@ import Vue from 'vue' |
| 2 | import Router from 'vue-router' | 2 | import Router from 'vue-router' |
| 3 | import index from '@/page/index' | 3 | import index from '@/page/index' |
| 4 | import tool from '@/page/tool' | 4 | import tool from '@/page/tool' |
| 5 | import test from '@/page/test' | 5 | import activityConfig from '@/page/activityConfig' |
| 6 | 6 | ||
| 7 | Vue.use(Router) | 7 | Vue.use(Router) |
| 8 | 8 | ||
| ... | @@ -11,18 +11,31 @@ export default new Router({ | ... | @@ -11,18 +11,31 @@ export default new Router({ |
| 11 | { | 11 | { |
| 12 | path: '/', | 12 | path: '/', |
| 13 | component: index, | 13 | component: index, |
| 14 | meta: { | ||
| 15 | title: '测试工具平台' | ||
| 16 | }, | ||
| 14 | children:[ | 17 | children:[ |
| 15 | { | 18 | { |
| 16 | path:'/', | 19 | path:'/', |
| 17 | component:tool | 20 | component:tool, |
| 21 | meta: { | ||
| 22 | title: '测试工具平台' | ||
| 23 | } | ||
| 18 | }, | 24 | }, |
| 19 | { | 25 | { |
| 20 | path: '/tool', | 26 | path: '/tool', |
| 21 | component: tool | 27 | component: tool, |
| 28 | meta: { | ||
| 29 | title: '测试工具平台' | ||
| 30 | } | ||
| 22 | }, | 31 | }, |
| 23 | { | 32 | { |
| 24 | path: '/test', | 33 | path: '/activityConfig', |
| 25 | component: test | 34 | component: activityConfig, |
| 35 | name: 'activityConfig', | ||
| 36 | meta: { | ||
| 37 | title: '测试工具平台' | ||
| 38 | } | ||
| 26 | } | 39 | } |
| 27 | ] | 40 | ] |
| 28 | } | 41 | } | ... | ... |
-
Please register or sign in to post a comment