commit
Showing
1 changed file
with
73 additions
and
1 deletions
| ... | @@ -101,7 +101,7 @@ | ... | @@ -101,7 +101,7 @@ |
| 101 | <el-option | 101 | <el-option |
| 102 | v-for="item in nlpTestCaseMyplatformOptions" | 102 | v-for="item in nlpTestCaseMyplatformOptions" |
| 103 | :key="item.value" | 103 | :key="item.value" |
| 104 | :label="item.label"s | 104 | :label="item.label" |
| 105 | :value="item.value"> | 105 | :value="item.value"> |
| 106 | </el-option> | 106 | </el-option> |
| 107 | </el-select> | 107 | </el-select> |
| ... | @@ -124,6 +124,43 @@ | ... | @@ -124,6 +124,43 @@ |
| 124 | </el-card> | 124 | </el-card> |
| 125 | </el-form> | 125 | </el-form> |
| 126 | </el-col> | 126 | </el-col> |
| 127 | <el-col :span="8"> | ||
| 128 | <el-form ref="bizData" :model="bizData" label-width="0px"> | ||
| 129 | <el-card class="darkred" shadow="always"> | ||
| 130 | <div slot="header" class="clearfix"> | ||
| 131 | <span>加密&解密biz_data</span> | ||
| 132 | </div> | ||
| 133 | <div class="text item"> | ||
| 134 | <el-form-item> | ||
| 135 | <el-input placeholder="请输入biz_data" v-model="bizData.myData" clearable></el-input> | ||
| 136 | </el-form-item> | ||
| 137 | <el-form-item> | ||
| 138 | <el-select v-model="bizData.type" placeholder="请选择算法类型"> | ||
| 139 | <el-option | ||
| 140 | v-for="item in bizDataoptions" | ||
| 141 | :key="item.value" | ||
| 142 | :label="item.label" | ||
| 143 | :value="item.value"> | ||
| 144 | </el-option> | ||
| 145 | </el-select> | ||
| 146 | </el-form-item> | ||
| 147 | <div style="margin: 15px 0;"></div> | ||
| 148 | <el-form-item> | ||
| 149 | <el-button round @click="bizDataSubmit">提交</el-button> | ||
| 150 | </el-form-item> | ||
| 151 | </div> | ||
| 152 | </el-card> | ||
| 153 | </el-form> | ||
| 154 | <el-dialog | ||
| 155 | title="biz_data" | ||
| 156 | :visible.sync="dialogVisible" | ||
| 157 | width="30%"> | ||
| 158 | <span>{{mybizdata}}</span> | ||
| 159 | <span slot="footer" class="dialog-footer"> | ||
| 160 | <el-button type="primary" v-clipboard:copy="JSON.stringify(mybizdata)" v-clipboard:success="onCopy" @click="dialogVisible = false">点击复制</el-button> | ||
| 161 | </span> | ||
| 162 | </el-dialog> | ||
| 163 | </el-col> | ||
| 127 | </el-row> | 164 | </el-row> |
| 128 | </div> | 165 | </div> |
| 129 | </template> | 166 | </template> |
| ... | @@ -200,6 +237,19 @@ | ... | @@ -200,6 +237,19 @@ |
| 200 | value: '1', | 237 | value: '1', |
| 201 | label: '线上环境' | 238 | label: '线上环境' |
| 202 | }], | 239 | }], |
| 240 | bizData: { | ||
| 241 | myData: '', | ||
| 242 | type: [] | ||
| 243 | }, | ||
| 244 | bizDataoptions: [{ | ||
| 245 | value: '0', | ||
| 246 | label: '加密' | ||
| 247 | }, { | ||
| 248 | value: '1', | ||
| 249 | label: '解密' | ||
| 250 | }], | ||
| 251 | dialogVisible: false, | ||
| 252 | mybizdata: '', | ||
| 203 | } | 253 | } |
| 204 | }, | 254 | }, |
| 205 | mounted() { | 255 | mounted() { |
| ... | @@ -317,6 +367,28 @@ | ... | @@ -317,6 +367,28 @@ |
| 317 | const {href} = this.$router.resolve({ name:'nlpApi', query: | 367 | const {href} = this.$router.resolve({ name:'nlpApi', query: |
| 318 | {keyword: this.nlpApi.keyword, runtime: this.nlpApi.huanjing.toString(), platform: "1"}}) | 368 | {keyword: this.nlpApi.keyword, runtime: this.nlpApi.huanjing.toString(), platform: "1"}}) |
| 319 | window.open(href, '_blank') | 369 | window.open(href, '_blank') |
| 370 | }, | ||
| 371 | bizDataSubmit() { | ||
| 372 | let config = { | ||
| 373 | headers: { | ||
| 374 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 375 | } | ||
| 376 | } | ||
| 377 | this.$http.get('/tool/bizDataAime?'+this.$qs.stringify({ | ||
| 378 | biz_data: this.bizData.myData, | ||
| 379 | type: this.bizData.type.toString() | ||
| 380 | }),config).then((res)=>{ | ||
| 381 | console.log(res); | ||
| 382 | this.mybizdata = res.data; | ||
| 383 | this.dialogVisible = true; | ||
| 384 | }).catch(error=>{ | ||
| 385 | console.log(error); | ||
| 386 | this.$message({ | ||
| 387 | showClose: true, | ||
| 388 | message: '服务器处理失败,请核对参数!', | ||
| 389 | type: 'error' | ||
| 390 | }); | ||
| 391 | }) | ||
| 320 | } | 392 | } |
| 321 | } | 393 | } |
| 322 | } | 394 | } | ... | ... |
-
Please register or sign in to post a comment