| | |
| | | > |
| | | </div> |
| | | |
| | | <el-dialog title="激活SmartAI" :visible.sync="dialogVisible" width="750px" :show-close="false" :close-on-click-modal="false" :close-on-press-escape="false"> |
| | | <el-dialog |
| | | title="激活SmartAI" |
| | | :visible.sync="dialogVisible" |
| | | width="750px" |
| | | :show-close="false" |
| | | :close-on-click-modal="false" |
| | | :close-on-press-escape="false" |
| | | > |
| | | <div class="ver"><span class="ver-text">版本:</span>{{ version }}</div> |
| | | <div class="ver"> |
| | | <span class="ver-text">状态:</span>{{ versionState }} |
| | |
| | | > |
| | | 购买。 |
| | | </div> |
| | | |
| | | <!-- <img class="qr-code-img" src="/images/desktop/weather.png" /> --> |
| | | <!-- <img class="qr-code-img" src="http://192.168.8.10:7009/version/offline/qrcode" /> --> |
| | | <img |
| | | class="qr-code-img" |
| | | src="http://192.168.20.189:7009/version/offline/qrcode" |
| | | /> |
| | | |
| | | <img class="qr-code-img" src="/version/offline/qrcode" /> |
| | | <el-divider></el-divider> |
| | | |
| | | <div class="ask"> |
| | |
| | | |
| | | <div class="validate"> |
| | | <form id="myForm"> |
| | | <!-- <el-input |
| | | class="single-input" |
| | | size="small" |
| | | ref="secrectKey" |
| | | :maxlength="4" |
| | | v-model="secrectKey" |
| | | placeholder="" |
| | | @input="onInput(1)" |
| | | ></el-input |
| | | >- |
| | | <el-input |
| | | class="single-input" |
| | | size="small" |
| | | ref="input2" |
| | | :maxlength="4" |
| | | v-model="input2" |
| | | placeholder="" |
| | | @input="onInput(2)" |
| | | ></el-input |
| | | >- |
| | | <el-input |
| | | class="single-input" |
| | | size="small" |
| | | ref="input3" |
| | | :maxlength="4" |
| | | v-model="input3" |
| | | placeholder="" |
| | | @input="onInput(3)" |
| | | ></el-input> |
| | | - |
| | | <el-input |
| | | class="single-input" |
| | | size="small" |
| | | ref="input4" |
| | | :maxlength="4" |
| | | v-model="input4" |
| | | placeholder="" |
| | | @input="onInput(4)" |
| | | ></el-input |
| | | >- |
| | | <el-input |
| | | class="single-input" |
| | | size="small" |
| | | ref="input5" |
| | | :maxlength="4" |
| | | v-model="input5" |
| | | placeholder="" |
| | | @input="onInput(5)" |
| | | ></el-input> --> |
| | | |
| | | <el-input |
| | | type="textarea" |
| | | autosize |
| | |
| | | :show-file-list="false" |
| | | > |
| | | <el-button size="small" type="primary">导入产品密钥文件</el-button> |
| | | |
| | | <!-- <div class="el-upload__tip" slot="tip"></div> --> |
| | | </el-upload> |
| | | </div> |
| | | |
| | |
| | | }; |
| | | }, |
| | | mounted() { |
| | | getSN().then((res) => { |
| | | this.showFreeVersion = res.data.sn !== ""; |
| | | }); |
| | | this.validateSn(); |
| | | }, |
| | | methods: { |
| | | validateSn() { |
| | | getSN().then((res) => { |
| | | this.showFreeVersion = res.data.sn == ""; |
| | | }); |
| | | }, |
| | | activateVersion() { |
| | | if (this.secrectKey.trim()=="") { |
| | | this.$message.warning("请先填写产品密钥") |
| | | return |
| | | if (this.secrectKey.trim() == "") { |
| | | this.$message.warning("请先填写产品密钥"); |
| | | return; |
| | | } |
| | | activateVersion({code:this.secrectKey.trim()}).then((res) => { |
| | | debugger |
| | | if (res.code==200) { |
| | | this.$notify.success("激活成功") |
| | | this.goToSysInfo() |
| | | this.dialogVisible = false; |
| | | |
| | | }else{ |
| | | this.$notify.error(res.msg) |
| | | } |
| | | }).catch((err) => { |
| | | this.$notify.error(err.msg) |
| | | }) |
| | | activateVersion({ code: this.secrectKey.trim() }) |
| | | .then((res) => { |
| | | if (res.code == 200) { |
| | | this.$notify.success("激活成功"); |
| | | this.validateSn(); |
| | | this.goToSysInfo(); |
| | | this.dialogVisible = false; |
| | | } else { |
| | | this.$notify.error(res.msg); |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | this.$notify.error(err.msg); |
| | | }); |
| | | }, |
| | | goToSysInfo() { |
| | | window.parent.postMessage({ msg: `toVindicate?menu=系统信息` }, "*"); |
| | | }, |
| | | gotoActive() { |
| | | // this.showFreeVersion = false; |
| | | this.dialogVisible = true; |
| | | }, |
| | | uploadKey(params) { |