|
@@ -3,38 +3,39 @@
|
|
|
<!-- 新增知识点弹窗 -->
|
|
|
<Modal
|
|
|
id="hiteachAuth-modal"
|
|
|
- v-model="isOpenRemove"
|
|
|
- :title="'確定解除授權'"
|
|
|
ref="pointRef"
|
|
|
+ v-model="isOpenRemove"
|
|
|
+ :title="title"
|
|
|
+
|
|
|
>
|
|
|
- <p>當前您所選中的PC【{{ currentConfirmRemovePC }}】,確定解除授權?</p>
|
|
|
- <p>解除授權後,可在教室中的電腦再次進行綁定授權。</p>
|
|
|
+ <p>{{$t("serviceDriveAuth['當前您所選中的PC']")}}【{{ currentConfirmRemovePC }}】{{$t("serviceDriveAuth[',確定解除授權?']")}}</p>
|
|
|
+ <p>{{$t("serviceDriveAuth['解除授權後,可在教室中的電腦再次進行綁定授權。']")}}</p>
|
|
|
|
|
|
<div slot="footer">
|
|
|
- <Button type="text" @click="isOpenRemove = false">取消</Button>
|
|
|
+ <Button type="text" @click="isOpenRemove = false">{{$t("serviceDriveAuth['取消']")}}</Button>
|
|
|
<Button type="primary" @click="removeUserPC(currentConfirmRemovePC)"
|
|
|
- >確定</Button
|
|
|
+ >{{$t("serviceDriveAuth['確定']")}}</Button
|
|
|
>
|
|
|
</div>
|
|
|
</Modal>
|
|
|
<Loading v-if="isloading == true"></Loading>
|
|
|
<div class="service-list">
|
|
|
- <div class="service-listTitle"><span class="title-item" @click="setTab(0)">服務授權列表</span> <span class="title-item" @click="setTab(1)" :class="{ 'title-checked': true }" >智慧教室授權管理<span class="title-checked-line"></span></span></div>
|
|
|
+ <div class="service-listTitle"><span class="title-item" @click="setTab(0)">{{$t("serviceDriveAuth['服務授權列表']")}}</span> <span class="title-item" @click="setTab(1)" :class="{ 'title-checked': true }" >{{$t("serviceDriveAuth['智慧教室授權管理']")}}<span class="title-checked-line"></span></span></div>
|
|
|
<Row>
|
|
|
<i-col :xs="24" :sm="24" :md="24" :lg="19">
|
|
|
<Row>
|
|
|
<i-col :xs="24" :sm="24" :md="24" :lg="13">
|
|
|
<div class="hiteach-info">
|
|
|
- <p class="nomal-text">Hiteach序號數</p>
|
|
|
+ <p class="nomal-text">{{$t("serviceDriveAuth['Hiteach序號數']")}}</p>
|
|
|
<Row>
|
|
|
<i-col :xs="24" :sm="24" :md="24" :lg="12">
|
|
|
- <p class="device-max">大量</p>
|
|
|
- <span class="nomal-text">授權</span>
|
|
|
+ <p class="device-max">{{$t("serviceDriveAuth['大量']")}}</p>
|
|
|
+ <span class="nomal-text">{{$t("serviceDriveAuth['授權']")}}</span>
|
|
|
<p class="info-num-small">{{ serialInfo.multiAuthNum }}</p>
|
|
|
</i-col>
|
|
|
<i-col :xs="24" :sm="24" :md="24" :lg="12">
|
|
|
- <p class="device-max">單一</p>
|
|
|
- <span class="nomal-text">授權</span>
|
|
|
+ <p class="device-max">{{$t("serviceDriveAuth['單一']")}}</p>
|
|
|
+ <span class="nomal-text">{{$t("serviceDriveAuth['授權']")}}</span>
|
|
|
<p class="info-num-small">{{ serialInfo.singleAuthNum }}</p>
|
|
|
</i-col>
|
|
|
</Row>
|
|
@@ -44,7 +45,7 @@
|
|
|
</i-col>
|
|
|
<i-col :xs="24" :sm="24" :md="24" :lg="5">
|
|
|
<div class="hiteach-info">
|
|
|
- <p class="nomal-text">可啟用裝置數</p>
|
|
|
+ <p class="nomal-text">{{$t("serviceDriveAuth['可啟用裝置數']")}}</p>
|
|
|
<p class="info-num">
|
|
|
{{ serialInfo.couldActiveNum }}
|
|
|
</p>
|
|
@@ -52,7 +53,7 @@
|
|
|
</i-col>
|
|
|
<i-col :xs="24" :sm="24" :md="24" :lg="6">
|
|
|
<div class="hiteach-info">
|
|
|
- <p class="nomal-text">已啟用裝置數</p>
|
|
|
+ <p class="nomal-text">{{$t("serviceDriveAuth['已啟用裝置數']")}}</p>
|
|
|
<p class="info-num">
|
|
|
{{ serialInfo.activeNum }}
|
|
|
</p>
|
|
@@ -62,7 +63,7 @@
|
|
|
>
|
|
|
<i-col :xs="24" :sm="24" :md="24" :lg="5">
|
|
|
<div class="action-btn" @click="gotoHiteachMgmt()">
|
|
|
- 管理Hiteach教室
|
|
|
+ {{$t("serviceDriveAuth['管理Hiteach教室']")}}
|
|
|
</div>
|
|
|
</i-col>
|
|
|
</Row>
|
|
@@ -100,7 +101,7 @@
|
|
|
class="no-data-text"
|
|
|
>
|
|
|
<img src="../../../assets/icon/no_data.png" width="120" />
|
|
|
- <p style="color: #808080">暂无数据</p>
|
|
|
+ <p style="color: #808080">{{$t("serviceDriveAuth['暂无数据']")}}</p>
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -144,7 +145,7 @@
|
|
|
<span v-if="i.prodCode === '3222C6D2'" >HiTeach TBL </span>
|
|
|
<span v-if="i.prodCode === 'J223IZAM'" >HiTeach PRO </span>
|
|
|
<span class="device-max">{{
|
|
|
- i.deviceMax == 1 ? "單一" : "大量"
|
|
|
+ i.deviceMax == 1 ? $t("serviceDriveAuth['單一']") : $t("serviceDriveAuth['大量']")
|
|
|
}}</span>
|
|
|
</p>
|
|
|
<p
|
|
@@ -169,20 +170,20 @@
|
|
|
<Row>
|
|
|
<i-col :xs="24" :sm="24" :md="24" :lg="7">
|
|
|
<p class="nomal-text">
|
|
|
- 序號到期日:<span
|
|
|
+ {{$t("serviceDriveAuth['序號到期日']") }}<span
|
|
|
class="strong-text"
|
|
|
v-if="i.expireStatus == 'A' || i.expireStatus === ''"
|
|
|
- >{{ i.endDate == 0 ? "無到期日" : converTime(i.endDate) }}
|
|
|
+ >{{ i.endDate == 0 ? $t("serviceDriveAuth['無到期日']") : converTime(i.endDate) }}
|
|
|
</span>
|
|
|
<!--span class="strong-text" v-if="i.expireStatus === ''">(未啟用)</span-->
|
|
|
<span class="strong-text" v-if="i.expireStatus == 'F'"
|
|
|
- >已到期</span
|
|
|
+ >{{$t("serviceDriveAuth['已到期']")}}</span
|
|
|
>
|
|
|
</p>
|
|
|
</i-col>
|
|
|
<i-col :xs="24" :sm="24" :md="24" :lg="17"
|
|
|
><p class="nomal-text" style="margin-left: 4%">
|
|
|
- 序號使用狀況:<span class="strong-text"
|
|
|
+ {{$t("serviceDriveAuth['序號使用狀況']")}}<span class="strong-text"
|
|
|
>{{ i.deviceBound.length }} / {{ i.deviceMax }} ({{
|
|
|
(i.deviceBound.length > i.deviceMax
|
|
|
? 100
|
|
@@ -211,7 +212,7 @@
|
|
|
class="pclist-item"
|
|
|
>
|
|
|
<p class="pc-title">
|
|
|
- {{ pc.pcname == null ? "未命名機台" : pc.pcname }}
|
|
|
+ {{ pc.pcname == null ? $t("serviceDriveAuth['未命名機台']") : pc.pcname }}
|
|
|
</p>
|
|
|
<p class="nomal-text" v-if="pc.ip!==null">
|
|
|
{{ pc.ip }} | {{ pc.uuid != null ? pc.uuid : pc.uuid2 }}
|
|
@@ -228,7 +229,7 @@
|
|
|
class="action-btn"
|
|
|
@click="comfirmRemovePC(pc.uuid != null ? pc.uuid : pc.uuid2)"
|
|
|
>
|
|
|
- <Icon type="md-close" /> 解除授權
|
|
|
+ <Icon type="md-close" /> {{$t("serviceDriveAuth['解除授權']")}}
|
|
|
</div>
|
|
|
</li>
|
|
|
<!--div v-if="i.deviceBound==0" class='pclist-empty' >尚未綁定任何機台</div-->
|
|
@@ -252,49 +253,55 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- filterListItem: [
|
|
|
+
|
|
|
+ tempRemovePCs: [], //暫存解綁的UserPC的Mac
|
|
|
+ hiteachListItemIsOpen: {},
|
|
|
+ filterType: "1",
|
|
|
+ currentConfirmRemovePC: "", //暫存讓使用者確認的UserPC
|
|
|
+ isOpenRemove: false,
|
|
|
+ isloading: false,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.hiteachListItemIsOpen = this.hiteachListItemIsOpenVuex;
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters({
|
|
|
+ serialInfo: "serviceDriveAuth/getHiteachAuthListInfo",
|
|
|
+ aprules: "schoolBaseInfo/getAprules", //讀取周邊產品列表
|
|
|
+ hiteachListItemIsOpenVuex: "serviceDriveAuth/getHiteachListItemIsOpen",
|
|
|
+ }),
|
|
|
+ title:function(){
|
|
|
+ return this.$t('serviceDriveAuth["確定解除授權"]')
|
|
|
+ },
|
|
|
+ filterListItem:function(){
|
|
|
+ return [
|
|
|
{
|
|
|
name: 1,
|
|
|
- text: "顯示全部",
|
|
|
+ text: this.$t('serviceDriveAuth["顯示全部"]'),
|
|
|
},
|
|
|
{
|
|
|
name: 2,
|
|
|
- text: "僅顯示HiTeach STD序號",
|
|
|
+ text: this.$t('serviceDriveAuth["僅顯示HiTeach STD序號"]'),
|
|
|
},
|
|
|
{
|
|
|
name: 3,
|
|
|
- text: "僅顯示HiTeach PRO序號",
|
|
|
+ text: this.$t('serviceDriveAuth["僅顯示HiTeach PRO序號"]'),
|
|
|
},
|
|
|
{
|
|
|
name: 4,
|
|
|
- text: "僅顯示HiTeach TBL序號",
|
|
|
+ text: this.$t('serviceDriveAuth["僅顯示HiTeach TBL序號"]'),
|
|
|
},
|
|
|
{
|
|
|
name: 5,
|
|
|
- text: "僅顯示已完成綁定的序號",
|
|
|
+ text: this.$t('serviceDriveAuth["僅顯示已完成綁定的序號"]'),
|
|
|
},
|
|
|
{
|
|
|
name: 6,
|
|
|
- text: "僅顯示已到期序號",
|
|
|
+ text: this.$t('serviceDriveAuth["僅顯示已到期序號"]'),
|
|
|
},
|
|
|
- ],
|
|
|
- tempRemovePCs: [], //暫存解綁的UserPC的Mac
|
|
|
- hiteachListItemIsOpen: {},
|
|
|
- filterType: "1",
|
|
|
- currentConfirmRemovePC: "", //暫存讓使用者確認的UserPC
|
|
|
- isOpenRemove: false,
|
|
|
- isloading: false,
|
|
|
- };
|
|
|
- },
|
|
|
- created() {
|
|
|
- this.hiteachListItemIsOpen = this.hiteachListItemIsOpenVuex;
|
|
|
- },
|
|
|
- computed: {
|
|
|
- ...mapGetters({
|
|
|
- serialInfo: "serviceDriveAuth/getHiteachAuthListInfo",
|
|
|
- aprules: "schoolBaseInfo/getAprules", //讀取周邊產品列表
|
|
|
- hiteachListItemIsOpenVuex: "serviceDriveAuth/getHiteachListItemIsOpen",
|
|
|
- }),
|
|
|
+ ]
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
hiteachAuthList: function (value) {
|
|
@@ -333,7 +340,7 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
document.getElementById(`PC${mac}`).style.display = "none";
|
|
|
|
|
|
- this.$Message.success("已成功解除授權!");
|
|
|
+ this.$Message.success(this.$t('serviceDriveAuth["已成功解除授權"]'));
|
|
|
}, 1800);
|
|
|
this.isloading = true;
|
|
|
setTimeout(() => {
|