Sfoglia il codice sorgente

[BI]1.追加取得IOT資料Access權限:蘇格拉底 2.用戶相關頁面追加多國語字串(進行中)

jeff 10 mesi fa
parent
commit
7f6b4b9d33

+ 9 - 0
TEAMModelBI/ClientApp/src/language/lang/zh-cn.js

@@ -819,6 +819,15 @@ const zh_cn = {
         message1_1: '当前查询人数仅支持小于或等于',
         message1_1: '当前查询人数仅支持小于或等于',
         message1_2: '名用户',
         message1_2: '名用户',
     },
     },
+    userInquire: {
+        smartEducation: '智慧教育',
+        userSearch: '用户查询',
+        dataSearching: '数据搜索中',
+        input: '输入',
+        selfphoneNumber: '手机号码',
+        tmid: '醍摩豆账号',
+        doSearch: '进行搜索',
+    },
     purchase: {
     purchase: {
         purchasePlatform: '统购平台',
         purchasePlatform: '统购平台',
         productManagement: '县市产品名额',
         productManagement: '县市产品名额',

+ 9 - 0
TEAMModelBI/ClientApp/src/language/lang/zh-tw.js

@@ -812,6 +812,15 @@ const zh_tw = {
         message1_1: '當前查詢人數僅支持小於或等於',
         message1_1: '當前查詢人數僅支持小於或等於',
         message1_2: '名用戶',
         message1_2: '名用戶',
     },
     },
+    userInquire: {
+        smartEducation: '智慧教育',
+        userSearch: '用戶查詢',
+        dataSearching: '數據搜索中',
+        input: '輸入',
+        selfphoneNumber: '手機號碼',
+        tmid: '醍摩豆賬號',
+        doSearch: '進行搜索',
+    },
     purchase: {
     purchase: {
         purchasePlatform: '統購平台',
         purchasePlatform: '統購平台',
         productManagement: '縣市產品名額',
         productManagement: '縣市產品名額',

+ 1 - 1
TEAMModelBI/ClientApp/src/view/product/index.vue

@@ -1288,7 +1288,7 @@ function exportExcel () {
     { label: proxy.$t(`product.difference`) + proxy.$t(`product.type`), key: 'lTypeDif' },
     { label: proxy.$t(`product.difference`) + proxy.$t(`product.type`), key: 'lTypeDif' },
     { label: proxy.$t(`product.exam`) + proxy.$t(`product.type`), key: 'lTypeTst' },
     { label: proxy.$t(`product.exam`) + proxy.$t(`product.type`), key: 'lTypeTst' },
     { label: proxy.$t(`product.teachMaterial`), key: 'lTypeNone' },
     { label: proxy.$t(`product.teachMaterial`), key: 'lTypeNone' },
-    { label: proxy.$t(`product.whiteBoardApp`), key: 'lTypeNone' },
+    { label: proxy.$t(`product.whiteBoardApp`), key: 'lessonLeng0' },
   ]
   ]
   fieldList.value.forEach((item) => {
   fieldList.value.forEach((item) => {
     exportList.value.forEach((items) => {
     exportList.value.forEach((items) => {

+ 5 - 5
TEAMModelBI/ClientApp/src/view/userInquire/index.vue

@@ -1,17 +1,17 @@
 <template>
 <template>
     <div class="inquirebox" >
     <div class="inquirebox" >
         <div class="inquire-title">
         <div class="inquire-title">
-            <p>TEAM Model 智慧教育</p>
+            <p>TEAM Model {{$t(`userInquire.smartEducation`)}}</p>
         </div>
         </div>
         <el-tabs v-if="pageShow ==='default'" style="width: 100%;height:100%;" type="card" class="demo-tabs" v-model="activeTab">
         <el-tabs v-if="pageShow ==='default'" style="width: 100%;height:100%;" type="card" class="demo-tabs" v-model="activeTab">
-            <el-tab-pane label="用户查询" style="padding: 1%;display: flex;justify-content: center;" name="tab1">
-                <div class="searchbox" v-loading="searchLoading" element-loading-text="数据搜索中...">
+            <el-tab-pane :label="$t(`userInquire.userSearch`)" style="padding: 1%;display: flex;justify-content: center;" name="tab1">
+                <div class="searchbox" v-loading="searchLoading" :element-loading-text="$t(`userInquire.dataSearching`)+'...'">
                     <div class="searchbox-title">
                     <div class="searchbox-title">
-                        <p>用户查询</p>
+                        <p>{{$t(`userInquire.userSearch`)}}</p>
                     </div>
                     </div>
                     <el-divider border-style="dashed" />
                     <el-divider border-style="dashed" />
                     <div class="searchbox-item">
                     <div class="searchbox-item">
-                        <el-input v-model="searchvalue" placeholder="输入手机号码/醍摩豆账号 进行搜索" class="input-with-select">
+                        <el-input v-model="searchvalue" :placeholder="$t(`userInquire.input`)+$t(`userInquire.selfphoneNumber`)+'/'+$t(`userInquire.tmid`)+' '+$t(`userInquire.doSearch`)" class="input-with-select">
                         <template #prepend>
                         <template #prepend>
                             <el-select v-model="selecttypes" placeholder="Select" style="width: 120px">
                             <el-select v-model="selecttypes" placeholder="Select" style="width: 120px">
                             <el-option label="精准查询" value="precise" />
                             <el-option label="精准查询" value="precise" />

+ 1 - 1
TEAMModelBI/Controllers/BIProductAnalysis/ProductAnalysisController.cs

@@ -57,7 +57,7 @@ namespace TEAMModelBI.Controllers.ProductAnalysis
         /// <param name="jsonElement"></param>
         /// <param name="jsonElement"></param>
         /// <returns></returns>
         /// <returns></returns>
         [ProducesDefaultResponseType]
         [ProducesDefaultResponseType]
-        [Authorize(Roles = "IES")]
+        [Authorize(Roles = "IES,Sokrates")]
         [HttpPost("get-iotstics")]
         [HttpPost("get-iotstics")]
         public async Task<IActionResult> GetIotStics(JsonElement jsonElement)
         public async Task<IActionResult> GetIotStics(JsonElement jsonElement)
         {
         {