|
|
@ -18,7 +18,14 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{{ $t('commons.button.sync') }}
|
|
|
|
{{ $t('commons.button.sync') }}
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button type="primary" class="ml-3" plain @click="onUnBind()" size="small">
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="!license.offline"
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
class="ml-3"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
@click="onUnBind()"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
>
|
|
|
|
{{ $t('license.unbind') }}
|
|
|
|
{{ $t('license.unbind') }}
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</el-descriptions-item>
|
|
|
|
</el-descriptions-item>
|
|
|
@ -124,6 +131,7 @@ const hasLicense = ref();
|
|
|
|
const license = reactive({
|
|
|
|
const license = reactive({
|
|
|
|
licenseName: '',
|
|
|
|
licenseName: '',
|
|
|
|
trial: true,
|
|
|
|
trial: true,
|
|
|
|
|
|
|
|
offline: true,
|
|
|
|
expiresAt: '',
|
|
|
|
expiresAt: '',
|
|
|
|
assigneeName: '',
|
|
|
|
assigneeName: '',
|
|
|
|
productName: '',
|
|
|
|
productName: '',
|
|
|
@ -207,6 +215,7 @@ const search = async () => {
|
|
|
|
license.message = res.data.message;
|
|
|
|
license.message = res.data.message;
|
|
|
|
license.assigneeName = res.data.assigneeName;
|
|
|
|
license.assigneeName = res.data.assigneeName;
|
|
|
|
license.trial = res.data.trial;
|
|
|
|
license.trial = res.data.trial;
|
|
|
|
|
|
|
|
license.offline = res.data.offline;
|
|
|
|
if (res.data.productPro) {
|
|
|
|
if (res.data.productPro) {
|
|
|
|
license.productName = 'product-1panel-pro';
|
|
|
|
license.productName = 'product-1panel-pro';
|
|
|
|
license.expiresAt =
|
|
|
|
license.expiresAt =
|
|
|
@ -221,7 +230,7 @@ const search = async () => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const showSync = () => {
|
|
|
|
const showSync = () => {
|
|
|
|
return license.status.indexOf('Lost') !== -1 || license.status === 'Disable';
|
|
|
|
return (license.status.indexOf('Lost') !== -1 || license.status === 'Disable') && !license.offline;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const toUpload = () => {
|
|
|
|
const toUpload = () => {
|
|
|
|