|
@@ -10,7 +10,7 @@
|
|
|
<div v-if="authTabs.length">
|
|
|
<el-input
|
|
|
v-model="searchForm.key_word"
|
|
|
- :placeholder="default_tab === 5 ? '请输入图表名称' : '请输入指标Id/指标名称'"
|
|
|
+ :placeholder="default_tab === 5 ? this.$t('SystemManage.OperateAuth.placeholder01') : this.$t('SystemManage.OperateAuth.placeholder02')"
|
|
|
style="width: 300px;margin-right:20px;"
|
|
|
@change="changeUser"
|
|
|
clearable
|
|
@@ -35,7 +35,7 @@
|
|
|
clearable
|
|
|
filterable
|
|
|
@change="changeUser"
|
|
|
- placeholder="请选择分类"
|
|
|
+ :placeholder="this.$t('SystemManage.OperateAuth.placeholder03')"
|
|
|
style="width: 250px;"
|
|
|
/>
|
|
|
<el-cascader
|
|
@@ -52,15 +52,15 @@
|
|
|
clearable
|
|
|
@change="changeUser"
|
|
|
filterable
|
|
|
- placeholder="请选择用户"
|
|
|
+ :placeholder="this.$t('SystemManage.OperateAuth.placeholder04')"
|
|
|
style="margin: 0 20px"
|
|
|
/>
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-button type="primary" @click="editAuthHandle({},'multiple')"
|
|
|
- v-if="[3,4].includes(default_tab)?authBtn('edit'):authTabs.length">批量编辑</el-button>
|
|
|
+ v-if="[3,4].includes(default_tab)?authBtn('edit'):authTabs.length">{{$t('SystemManage.OperateAuth.btn_text01')}}</el-button>
|
|
|
<el-button type="primary" @click="edbAuthSetHandle({},'multiple')" v-if="[3,4].includes(default_tab
|
|
|
- )&&authBtn('auth')">权限设置</el-button>
|
|
|
+ )&&authBtn('auth')">{{$t('SystemManage.OperateAuth.btn_text02')}}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-table
|
|
@@ -97,7 +97,7 @@
|
|
|
</el-table-column>
|
|
|
|
|
|
<div slot="empty" style="padding: 100px 0">
|
|
|
- <tableNoData text="暂无数据" size="mini"/>
|
|
|
+ <tableNoData :text="$t('Table.prompt_slogan')" size="mini"/>
|
|
|
</div>
|
|
|
</el-table>
|
|
|
<el-col :span="24" style="height:35px;text-align: right;float: none;">
|
|
@@ -126,10 +126,10 @@
|
|
|
:rules="dialogFormRules"
|
|
|
@close="cancelDialogHandle"
|
|
|
>
|
|
|
- <el-form-item label="原创建人">
|
|
|
+ <el-form-item :label="$t('SystemManage.OperateAuth.original_creator')">
|
|
|
<span>{{ dialogForm.old_user_name }}</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="新创建人" prop="new_user">
|
|
|
+ <el-form-item :label="$t('SystemManage.OperateAuth.new_creator')" prop="new_user">
|
|
|
<el-cascader
|
|
|
v-model="dialogForm.new_user"
|
|
|
:options="userList"
|
|
@@ -143,7 +143,7 @@
|
|
|
:show-all-levels="false"
|
|
|
clearable
|
|
|
filterable
|
|
|
- placeholder="请选择用户"
|
|
|
+ :placeholder="$t('SystemManage.OperateAuth.placeholder04')"
|
|
|
style="width: 250px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -154,10 +154,10 @@
|
|
|
type="primary"
|
|
|
style="margin-right: 60px"
|
|
|
@click="saveHandle"
|
|
|
- >保存</el-button
|
|
|
+ >{{$t('Dialog.confirm_save_btn')}}</el-button
|
|
|
>
|
|
|
<el-button type="primary" plain @click="cancelDialogHandle"
|
|
|
- >取消</el-button
|
|
|
+ >{{$t('Dialog.cancel_btn')}}</el-button
|
|
|
>
|
|
|
</div>
|
|
|
</m-dialog>
|
|
@@ -184,15 +184,15 @@ export default {
|
|
|
computed: {
|
|
|
tableColums() {
|
|
|
return this.default_tab === 5 ? [
|
|
|
- { label: '图表名称',key: 'Name' },
|
|
|
- { label: '图分类',key: 'ClassifyName' },
|
|
|
- { label: '创建人',key: 'CreateUserName' },
|
|
|
- { label: '操作',key: 'handle' },
|
|
|
+ { label: this.$t('SystemManage.OperateAuth.table_col_name01'),key: 'Name' },
|
|
|
+ { label: this.$t('SystemManage.OperateAuth.table_col_name02'),key: 'ClassifyName' },
|
|
|
+ { label: this.$t('SystemManage.OperateAuth.table_col_name03'),key: 'CreateUserName' },
|
|
|
+ { label: this.$t('Table.column_operations'),key: 'handle' },
|
|
|
] : [
|
|
|
- { label: '指标ID',key: 'Code' },
|
|
|
- { label: '指标名称',key: 'Name' },
|
|
|
- { label: '创建人',key: 'CreateUserName' },
|
|
|
- { label: '操作',key: 'handle' },
|
|
|
+ { label: this.$t('SystemManage.OperateAuth.table_col_name04'),key: 'Code' },
|
|
|
+ { label: this.$t('SystemManage.OperateAuth.table_col_name05'),key: 'Name' },
|
|
|
+ { label: this.$t('SystemManage.OperateAuth.table_col_name03'),key: 'CreateUserName' },
|
|
|
+ { label: this.$t('Table.column_operations'),key: 'handle' },
|
|
|
]
|
|
|
},
|
|
|
//权限配置化后的tabs
|
|
@@ -216,11 +216,11 @@ export default {
|
|
|
},
|
|
|
tabs(){
|
|
|
return [
|
|
|
- { label: '手工数据指标', key: 1 },
|
|
|
- { label: '钢联化工数据库', key: 2 },
|
|
|
- { label: 'ETA指标库', key: 3 },
|
|
|
- { label: 'ETA预测指标', key: 4 },
|
|
|
- { label: '图库', key: 5 }
|
|
|
+ { label: this.$t('SystemManage.OperateAuth.tab01'), key: 1 },
|
|
|
+ { label: this.$t('SystemManage.OperateAuth.tab02'), key: 2 },
|
|
|
+ { label: this.$t('SystemManage.OperateAuth.tab03'), key: 3 },
|
|
|
+ { label: this.$t('SystemManage.OperateAuth.tab04'), key: 4 },
|
|
|
+ { label: this.$t('SystemManage.OperateAuth.tab05'), key: 5 }
|
|
|
]
|
|
|
}
|
|
|
},
|
|
@@ -350,10 +350,10 @@ export default {
|
|
|
|
|
|
/* 编辑 */
|
|
|
editAuthHandle({DataId,CreateUserName,},type='single') {
|
|
|
- if(type === 'multiple' && !this.selectedArr.length) return this.$message.warning('请至少勾选一个')
|
|
|
+ if(type === 'multiple' && !this.selectedArr.length) return this.$message.warning(this.$t('SystemManage.OperateAuth.msg01'))
|
|
|
|
|
|
this.dialogForm = {
|
|
|
- title: type === 'multiple' ? '批量编辑权限' : '编辑权限',
|
|
|
+ title: type === 'multiple' ? this.$t('SystemManage.OperateAuth.edit_title02') : this.$t('SystemManage.OperateAuth.edit_title01'),
|
|
|
old_user_name: type === 'multiple' ? this.selectedArr[0].CreateUserName : CreateUserName,
|
|
|
ids: type === 'multiple' ? this.selectedArr.map(_ => _.DataId) : [DataId],
|
|
|
new_user: ''
|
|
@@ -378,11 +378,11 @@ export default {
|
|
|
|
|
|
/* 指标权限配置 */
|
|
|
edbAuthSetHandle({DataId,CreateUserId},type='') {
|
|
|
- if(type === 'multiple' && !this.selectedArr.length) return this.$message.warning('请至少勾选一个')
|
|
|
+ if(type === 'multiple' && !this.selectedArr.length) return this.$message.warning(this.$t('SystemManage.OperateAuth.msg01'))
|
|
|
if(type === 'multiple' && this.selectedArr.some(_ => this.selectedArr[0].CreateUserId!==_.CreateUserId)) return this.$message.warning('所选指标创建人不是同一用户,请重新选择!')
|
|
|
|
|
|
this.edbForm = {
|
|
|
- title: type === 'multiple' ? '批量权限设置' : '权限设置',
|
|
|
+ title: type === 'multiple' ? this.$t('SystemManage.OperateAuth.permission_title02') : this.$t('SystemManage.OperateAuth.permission_title01'),
|
|
|
createId: type === 'multiple' ? this.selectedArr[0].CreateUserId : CreateUserId,
|
|
|
ids: type === 'multiple' ? this.selectedArr.map(_ => _.DataId) : [DataId],
|
|
|
}
|