于继渤 2 лет назад
Родитель
Сommit
84c728c50c

+ 16 - 3
i18n/zh-CN.js

@@ -3,6 +3,16 @@ const button = {
  add:'新建',
  cancel:'取消',
  search:'搜索',
+ enable:'启用',
+ deactivate:'停用',
+ allEnable:'全部启用',
+ allDeactivate:'全部停用',
+ allEnableVisible:'全部启用可见',
+ allDeactivateVisible:'全部启用可见',
+ enableDeactivate:'启用/停用',
+ copyAndAdd:'复制新增',
+ setUp:'已设置',
+ notSet:'未设置',
 }
 
 //  首页
@@ -20,12 +30,15 @@ const basicData = {
   staffName:'员工姓名',
   orgId:'业务部门',
   roleId:'所属角色',
-}
-const  role = {
   roleName:'角色名称',
+  roleCode:'角色编码',
   roleFunName:'功能名称',
   sensitiveName:'数据名称',
+  functionalPermissions:'功能权限',
+  sensitiveData:'敏感数据',
 }
+
+
 // 列
 const columns = {
   null:'',
@@ -96,5 +109,5 @@ const org = {
   
 }
 module.exports  = {
-  items:Object.assign({},home,basicData,columns,saleOrder,button,messages,others,accountsManage,role,org)
+  items:Object.assign({},home,basicData,columns,saleOrder,button,messages,others,accountsManage,org)
 }

+ 2 - 2
package-base-select/pages/select-functional-permissions/select-functional-permissions.wxml

@@ -1,6 +1,6 @@
 <!-- 前台导入wxmlUtil.wxs -->
 <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
-<loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
+<loading wx:if="{{loading}}" loadingName="{{$t['loading']}}" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
 <van-sticky scroll-top="0">
   <!-- 查询条件 -->
   <dk-dropdown-menu model:searchForm="{{searchForm}}"  bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['roleFunName'])}}">
@@ -14,7 +14,7 @@
     </view>
     <view style="width: 50%;text-align: right;">
       <view style="display: flex;">
-        <view class="font" style="width: 40%;text-align: center;">{{ formData.checked ? '全部启用':'全部停用' }}</view>
+        <view class="font" style="width: 40%;text-align: center;">{{ formData.checked ? $t['allEnable']:$t['allDeactivate'] }}</view>
         <view style="width: 50%;text-align: right;">
           <van-switch bind:change="onChangeSwitch" active-color="#00A7B5" checked="{{ formData.checked }}" size="18px"></van-switch>
         </view>

+ 2 - 2
package-base-select/pages/select-sensitive-data/select-sensitive-data.wxml

@@ -1,6 +1,6 @@
 <!-- 前台导入wxmlUtil.wxs -->
 <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
-<loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
+<loading wx:if="{{loading}}" loadingName="{{$t['loading']}}" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
 <van-sticky scroll-top="0">
   <!-- 查询条件 -->
   <dk-dropdown-menu model:searchForm="{{searchForm}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['sensitiveName'])}}">
@@ -14,7 +14,7 @@
     </view>
     <view style="width: 50%;text-align: right;">
       <view style="display: flex;">
-        <view class="font" style="width: 60%;text-align: center;">{{ formData.checked ? '全部启用可见':'全部停用可见' }}</view>
+        <view class="font" style="width: 60%;text-align: center;">{{ formData.checked ?$t['allEnableVisible']:$t['allDeactivateVisible']  }}</view>
         <view style="width: 40%;text-align: right;">
           <van-switch bind:change="onChangeSwitch" active-color="#00A7B5" checked="{{ formData.checked }}" size="18px"></van-switch>
         </view>

+ 2 - 2
package-basic-data/pages/role/add/add.wxml

@@ -8,10 +8,10 @@
 </dk-form-more-items>
 <view style="margin: 0px 32rpx 10px 32rpx;">
   <view class="dk-card-class" >
-    <van-field label-class="red-label" is-link value="{{}}" label="功能权限" autosize border="{{ false }}" readonly="{{true}}" data-key="{{ route.selectFunctionalPermissions.url}}" placeholder="{{selectFunctionalPermissionsFlag ? '已设置':'未设置'}}"  input-class="dk-cell-value-right-class" catchtap="openObjPop">
+    <van-field label-class="red-label" is-link value="{{}}" label="{{$t['functionalPermissions']}}" autosize border="{{ false }}" readonly="{{true}}" data-key="{{ route.selectFunctionalPermissions.url}}" placeholder="{{selectFunctionalPermissionsFlag ? $t['setUp']:$t['notSet']}}"  input-class="dk-cell-value-right-class" catchtap="openObjPop">
     </van-field>
     
-    <van-field label-class="red-label" is-link value="{{ form[objCol]}}" label="敏感数据" autosize border="{{ false }}" readonly="{{true}}" data-key="{{ route.selectSensitiveData.url}}" placeholder="{{selectSensitiveDataFlag ? '已设置':'未设置'}}"input-class="dk-cell-value-right-class" catchtap="openObjPop">
+    <van-field label-class="red-label" is-link value="{{ form[objCol]}}" label="{{$t['sensitiveData']}}" autosize border="{{ false }}" readonly="{{true}}" data-key="{{ route.selectSensitiveData.url}}" placeholder="{{selectSensitiveDataFlag ?  $t['setUp']:$t['notSet']}}"input-class="dk-cell-value-right-class" catchtap="openObjPop">
     </van-field>
   </view>
 </view>

+ 3 - 3
package-basic-data/pages/role/role.wxml

@@ -1,17 +1,17 @@
 <!-- 前台导入wxmlUtil.wxs -->
 <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
-<loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
+<loading wx:if="{{loading}}" loadingName="{{$t['loading']}}" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
 <van-sticky scroll-top="0">
   <!-- 查询条件 -->
   <dk-dropdown-menu model:searchForm="{{searchForm}}"  bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['roleName'])}}">
   </dk-dropdown-menu>
 </van-sticky>
 <!-- 暂无数据 -->
-<van-empty wx:if="{{tableData.length<=0}}" description="暂无数据" />
+<van-empty wx:if="{{tableData.length<=0}}" description="{{$t['nodata']}}" />
 <!-- 列表区 -->
 <dk-list list="{{tableData}}" titleCorner="" title="roleName" status="displayStatus" content="{{contentList}}" collectCol="sumAccount" collectName="" contentObj="{{contentObj}}" contentCol="" footerAmount="{{footerAmount}}" footerInfo="{{footerInfo}}" bind:toDetail="toDetail" bind:toTitle="toTitle" bind:toStatus="toStatus" bind:toPoint="toPoint" routeObjName="{{routeObjName}}" buttonList="{{buttonList}}" bind:open="open"></dk-list>
 
-<van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">到底了~</van-divider>
+<van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">{{$t['noMore']}}</van-divider>
 
 <view style="height: 200rpx;"></view>