commit
Showing
1 changed file
with
101 additions
and
25 deletions
| ... | @@ -519,29 +519,19 @@ | ... | @@ -519,29 +519,19 @@ |
| 519 | </el-row> | 519 | </el-row> |
| 520 | <el-row style="margin-bottom: 15px;"> | 520 | <el-row style="margin-bottom: 15px;"> |
| 521 | <el-col :span="8"> | 521 | <el-col :span="8"> |
| 522 | <el-form ref="bizData" :model="bizData" label-width="0px"> | 522 | <el-form ref="dongjie" :model="dongjie" label-width="0px"> |
| 523 | <el-card class="darkred" shadow="always"> | 523 | <el-card class="darkred" shadow="always"> |
| 524 | <div slot="header" class="clearfix"> | 524 | <div slot="header" class="clearfix"> |
| 525 | <span>加密&解密biz_data</span> | 525 | <span>账号冻结(测试环境)</span> |
| 526 | </div> | 526 | </div> |
| 527 | <div class="text item"> | 527 | <div class="text item"> |
| 528 | <el-form-item> | 528 | <el-form-item> |
| 529 | <el-input placeholder="请输入biz_data" v-model="bizData.myData" clearable></el-input> | 529 | <el-input placeholder="请输入手机号" v-model="dongjie.phone" clearable></el-input> |
| 530 | </el-form-item> | ||
| 531 | <el-form-item> | ||
| 532 | <el-select v-model="bizData.type" placeholder="请选择算法类型"> | ||
| 533 | <el-option | ||
| 534 | v-for="item in bizDataoptions" | ||
| 535 | :key="item.value" | ||
| 536 | :label="item.label" | ||
| 537 | :value="item.value"> | ||
| 538 | </el-option> | ||
| 539 | </el-select> | ||
| 540 | </el-form-item> | 530 | </el-form-item> |
| 541 | <el-form-item> | 531 | <el-form-item> |
| 542 | <el-select v-model="bizData.version" placeholder="请选择算法版本"> | 532 | <el-select v-model="dongjie.type" placeholder="请选择冻结类型"> |
| 543 | <el-option | 533 | <el-option |
| 544 | v-for="item in bizDataversionoptions" | 534 | v-for="item in dongjieOptions" |
| 545 | :key="item.value" | 535 | :key="item.value" |
| 546 | :label="item.label" | 536 | :label="item.label" |
| 547 | :value="item.value"> | 537 | :value="item.value"> |
| ... | @@ -550,20 +540,11 @@ | ... | @@ -550,20 +540,11 @@ |
| 550 | </el-form-item> | 540 | </el-form-item> |
| 551 | <div style="margin: 15px 0;"></div> | 541 | <div style="margin: 15px 0;"></div> |
| 552 | <el-form-item> | 542 | <el-form-item> |
| 553 | <el-button round @click="bizDataSubmit">提交</el-button> | 543 | <el-button round @click="dongjieSubmit">冻结账号</el-button> |
| 554 | </el-form-item> | 544 | </el-form-item> |
| 555 | </div> | 545 | </div> |
| 556 | </el-card> | 546 | </el-card> |
| 557 | </el-form> | 547 | </el-form> |
| 558 | <el-dialog | ||
| 559 | title="biz_data" | ||
| 560 | :visible.sync="dialogVisible" | ||
| 561 | width="30%"> | ||
| 562 | <span>{{mybizdata}}</span> | ||
| 563 | <span slot="footer" class="dialog-footer"> | ||
| 564 | <el-button type="primary" v-clipboard:copy="JSON.stringify(mybizdata)" v-clipboard:success="onCopy" @click="dialogVisible = false">点击复制</el-button> | ||
| 565 | </span> | ||
| 566 | </el-dialog> | ||
| 567 | </el-col> | 548 | </el-col> |
| 568 | <el-col :span="8"> | 549 | <el-col :span="8"> |
| 569 | <el-form ref="nlpApi" :model="nlpApi" label-width="0px"> | 550 | <el-form ref="nlpApi" :model="nlpApi" label-width="0px"> |
| ... | @@ -663,6 +644,53 @@ | ... | @@ -663,6 +644,53 @@ |
| 663 | </span> | 644 | </span> |
| 664 | </el-dialog> | 645 | </el-dialog> |
| 665 | </el-col> | 646 | </el-col> |
| 647 | <el-col :span="8"> | ||
| 648 | <el-form ref="bizData" :model="bizData" label-width="0px"> | ||
| 649 | <el-card class="darkred" shadow="always"> | ||
| 650 | <div slot="header" class="clearfix"> | ||
| 651 | <span>加密&解密biz_data</span> | ||
| 652 | </div> | ||
| 653 | <div class="text item"> | ||
| 654 | <el-form-item> | ||
| 655 | <el-input placeholder="请输入biz_data" v-model="bizData.myData" clearable></el-input> | ||
| 656 | </el-form-item> | ||
| 657 | <el-form-item> | ||
| 658 | <el-select v-model="bizData.type" placeholder="请选择算法类型"> | ||
| 659 | <el-option | ||
| 660 | v-for="item in bizDataoptions" | ||
| 661 | :key="item.value" | ||
| 662 | :label="item.label" | ||
| 663 | :value="item.value"> | ||
| 664 | </el-option> | ||
| 665 | </el-select> | ||
| 666 | </el-form-item> | ||
| 667 | <el-form-item> | ||
| 668 | <el-select v-model="bizData.version" placeholder="请选择算法版本"> | ||
| 669 | <el-option | ||
| 670 | v-for="item in bizDataversionoptions" | ||
| 671 | :key="item.value" | ||
| 672 | :label="item.label" | ||
| 673 | :value="item.value"> | ||
| 674 | </el-option> | ||
| 675 | </el-select> | ||
| 676 | </el-form-item> | ||
| 677 | <div style="margin: 15px 0;"></div> | ||
| 678 | <el-form-item> | ||
| 679 | <el-button round @click="bizDataSubmit">提交</el-button> | ||
| 680 | </el-form-item> | ||
| 681 | </div> | ||
| 682 | </el-card> | ||
| 683 | </el-form> | ||
| 684 | <el-dialog | ||
| 685 | title="biz_data" | ||
| 686 | :visible.sync="dialogVisible" | ||
| 687 | width="30%"> | ||
| 688 | <span>{{mybizdata}}</span> | ||
| 689 | <span slot="footer" class="dialog-footer"> | ||
| 690 | <el-button type="primary" v-clipboard:copy="JSON.stringify(mybizdata)" v-clipboard:success="onCopy" @click="dialogVisible = false">点击复制</el-button> | ||
| 691 | </span> | ||
| 692 | </el-dialog> | ||
| 693 | </el-col> | ||
| 666 | </el-row> | 694 | </el-row> |
| 667 | </div> | 695 | </div> |
| 668 | </template> | 696 | </template> |
| ... | @@ -971,6 +999,20 @@ | ... | @@ -971,6 +999,20 @@ |
| 971 | value: '1', | 999 | value: '1', |
| 972 | label: '线上环境' | 1000 | label: '线上环境' |
| 973 | }], | 1001 | }], |
| 1002 | dongjie: { | ||
| 1003 | phone: '', | ||
| 1004 | type: [] | ||
| 1005 | }, | ||
| 1006 | dongjieOptions: [{ | ||
| 1007 | value: '1', | ||
| 1008 | label: '登录权限' | ||
| 1009 | },{ | ||
| 1010 | value: '2', | ||
| 1011 | label: '碰一碰权限' | ||
| 1012 | },{ | ||
| 1013 | value: '3', | ||
| 1014 | label: '活动报名权限' | ||
| 1015 | }] | ||
| 974 | // activityConfigRules: { | 1016 | // activityConfigRules: { |
| 975 | // id: [ | 1017 | // id: [ |
| 976 | // { required: true, message: '请输入活动ID', trigger: 'blur' } | 1018 | // { required: true, message: '请输入活动ID', trigger: 'blur' } |
| ... | @@ -1651,6 +1693,40 @@ | ... | @@ -1651,6 +1693,40 @@ |
| 1651 | const {href} = this.$router.resolve({ name:'nlpApi', query: | 1693 | const {href} = this.$router.resolve({ name:'nlpApi', query: |
| 1652 | {keyword: this.nlpApi.keyword, runtime: this.nlpApi.huanjing.toString(), platform: "0"}}) | 1694 | {keyword: this.nlpApi.keyword, runtime: this.nlpApi.huanjing.toString(), platform: "0"}}) |
| 1653 | window.open(href, '_blank') | 1695 | window.open(href, '_blank') |
| 1696 | }, | ||
| 1697 | dongjieSubmit() { | ||
| 1698 | let config = { | ||
| 1699 | headers: { | ||
| 1700 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 1701 | } | ||
| 1702 | } | ||
| 1703 | this.$http.get('/tool/dongjiequanxian?'+this.$qs.stringify({ | ||
| 1704 | phone: this.dongjie.phone, | ||
| 1705 | permission: this.dongjie.type.toString() | ||
| 1706 | }),config).then((res)=>{ | ||
| 1707 | console.log(res); | ||
| 1708 | if(res.data=='notnull') { | ||
| 1709 | this.$message({ | ||
| 1710 | showClose: true, | ||
| 1711 | message: '手机号或冻结类型不能为空', | ||
| 1712 | type: 'error' | ||
| 1713 | }); | ||
| 1714 | } else if(res.data=='success') { | ||
| 1715 | this.$message({ | ||
| 1716 | showClose: true, | ||
| 1717 | message: '冻结账号成功', | ||
| 1718 | type: 'success' | ||
| 1719 | }); | ||
| 1720 | } else { | ||
| 1721 | this.$message({ | ||
| 1722 | showClose: true, | ||
| 1723 | message: '冻结账号失败', | ||
| 1724 | type: 'error' | ||
| 1725 | }); | ||
| 1726 | } | ||
| 1727 | }).catch(error=>{ | ||
| 1728 | console.log(error); | ||
| 1729 | }) | ||
| 1654 | } | 1730 | } |
| 1655 | } | 1731 | } |
| 1656 | } | 1732 | } | ... | ... |
-
Please register or sign in to post a comment