| | |
| | | actSdk (id) {
|
| | | this.actSdkId = id;
|
| | | this.actDrawerShow = true;
|
| | | this.actStep = 0;
|
| | | this.activeCode = '';
|
| | | this.activedSdk = this.newActInfo()
|
| | | },
|
| | | newActInfo(){
|
| | | return {
|
| | | activateCode: '',
|
| | | productName: '',
|
| | | setting: '',
|
| | | expireTime: '',
|
| | | licence: '',
|
| | | devIds: ''
|
| | | }
|
| | | },
|
| | | getUnActivedList () {
|
| | | getUnActivedSdk().then(res => {
|
| | |
| | | return percentage === 100 ? '安装成功' : `${percentage}%`;
|
| | | },
|
| | | actived () {
|
| | | //this.activeCode
|
| | | this.actStep++
|
| | | let _this = this;
|
| | | actPageAlg(this.actSdkId, this.activeCode).then(res => {
|
| | | if (res.code == 200) {
|
| | | // this.activedSdk: {
|
| | | // activateCode:'',
|
| | | // productName:'',
|
| | | // setting:'',
|
| | | // expireTime:'',
|
| | | // licence:'',
|
| | | // devIds:''
|
| | | // },
|
| | | debugger
|
| | | this.activedSdk = res.data.successMsg
|
| | | this.actStep++
|
| | | if (res.data.isSuccess) {
|
| | | _this.activedSdk = res.data.successMsg;
|
| | | _this.actStep++;
|
| | | _this.getUnActivedList();
|
| | | _this.findAllSdk();
|
| | | }else{
|
| | | _this.$notify({
|
| | | type:'error',
|
| | | message:res.data.failMsg.failMsg
|
| | | });
|
| | | }
|
| | | }).catch(e => {
|
| | | console.log(e)
|