国际化调整
This commit is contained in:
parent
b06f4d1ad4
commit
7a284fea4a
@ -143,6 +143,7 @@ export default {
|
|||||||
temporarilyNoData: 'Temporarily no data',
|
temporarilyNoData: 'Temporarily no data',
|
||||||
second: 'Second',
|
second: 'Second',
|
||||||
amount: 'Amount',
|
amount: 'Amount',
|
||||||
yes: 'yes',
|
yes: 'Yes',
|
||||||
no: 'no'
|
no: 'No',
|
||||||
|
details: 'Details'
|
||||||
};
|
};
|
||||||
|
@ -20,6 +20,7 @@ import exam from './exam';
|
|||||||
import dashboard from './dashboard';
|
import dashboard from './dashboard';
|
||||||
import jlmap3d from './jlmap3d';
|
import jlmap3d from './jlmap3d';
|
||||||
import display from './display';
|
import display from './display';
|
||||||
|
import joinTraining from './joinTraining';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
...enLocale,
|
...enLocale,
|
||||||
@ -43,5 +44,6 @@ export default {
|
|||||||
exam,
|
exam,
|
||||||
dashboard,
|
dashboard,
|
||||||
jlmap3d,
|
jlmap3d,
|
||||||
display
|
display,
|
||||||
|
joinTraining
|
||||||
};
|
};
|
||||||
|
@ -87,6 +87,14 @@ export default {
|
|||||||
chooseGoods: 'Choose goods',
|
chooseGoods: 'Choose goods',
|
||||||
permissionName: 'Permission Name',
|
permissionName: 'Permission Name',
|
||||||
receivingPermission: 'Receiving permission',
|
receivingPermission: 'Receiving permission',
|
||||||
isPackage: 'Whether package permissions',
|
isPackage: 'Whether the permission package',
|
||||||
modifyPermissionContent: 'Modify permission content'
|
modifyPermissionContent: 'Modify permission content',
|
||||||
|
addPermissions: 'Add permissions',
|
||||||
|
modifyPermissions: 'Modify permissions',
|
||||||
|
createPermission: 'Create permission',
|
||||||
|
oneClickGenerationPermission: 'One-click generation permission',
|
||||||
|
packingDetails: 'Packing details',
|
||||||
|
belongsToMap: 'Belongs to map',
|
||||||
|
oneClickGeneration: 'One-click generation',
|
||||||
|
selectPermission: 'Select Permission'
|
||||||
};
|
};
|
||||||
|
@ -250,5 +250,7 @@ export default {
|
|||||||
enterKeyword: 'Please enter a keyword',
|
enterKeyword: 'Please enter a keyword',
|
||||||
successfullyModified: 'Successfully modified',
|
successfullyModified: 'Successfully modified',
|
||||||
modifyTheFailure: 'Modify the failure',
|
modifyTheFailure: 'Modify the failure',
|
||||||
selectTheCourseNameFirst: 'Please select the course name first'
|
selectTheCourseNameFirst: 'Please select the course name first',
|
||||||
|
selectMultiplePermissions: 'Please select multiple permissions',
|
||||||
|
enterPermissionName: 'Please enter a permission name'
|
||||||
};
|
};
|
||||||
|
@ -135,5 +135,7 @@ export default {
|
|||||||
deleteListHint: 'This will delete the list, will it continue?',
|
deleteListHint: 'This will delete the list, will it continue?',
|
||||||
setUpASubscriptionMapSuccessfully: 'Setting up a subscription map successfully!',
|
setUpASubscriptionMapSuccessfully: 'Setting up a subscription map successfully!',
|
||||||
setUpASubscriptionMapFailed: 'Setting up a subscription map failed!',
|
setUpASubscriptionMapFailed: 'Setting up a subscription map failed!',
|
||||||
getMapStateDataException: 'Get map state data exception, please refresh the page to reload. If you encounter such problems many times, please contact the development team in an emergency!'
|
getMapStateDataException: 'Get map state data exception, please refresh the page to reload. If you encounter such problems many times, please contact the development team in an emergency!',
|
||||||
|
packagedSuccessfully: 'Packaged successfully',
|
||||||
|
oneKeyGeneratedSuccessfully: 'One key generated successfully!'
|
||||||
};
|
};
|
||||||
|
@ -150,5 +150,6 @@ export default {
|
|||||||
second: '秒',
|
second: '秒',
|
||||||
amount: '总数量',
|
amount: '总数量',
|
||||||
yes: '是',
|
yes: '是',
|
||||||
no: '否'
|
no: '否',
|
||||||
|
details: '详情'
|
||||||
};
|
};
|
||||||
|
@ -20,6 +20,7 @@ import exam from './exam';
|
|||||||
import dashboard from './dashboard';
|
import dashboard from './dashboard';
|
||||||
import jlmap3d from './jlmap3d';
|
import jlmap3d from './jlmap3d';
|
||||||
import display from './display';
|
import display from './display';
|
||||||
|
import joinTraining from './joinTraining';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
...cnLocale,
|
...cnLocale,
|
||||||
|
@ -87,6 +87,14 @@ export default {
|
|||||||
chooseGoods: '选择商品',
|
chooseGoods: '选择商品',
|
||||||
permissionName: '权限名称',
|
permissionName: '权限名称',
|
||||||
receivingPermission: '领取权限',
|
receivingPermission: '领取权限',
|
||||||
isPackage: '是否包权限',
|
isPackage: '是否权限包',
|
||||||
modifyPermissionContent: '修改权限内容'
|
modifyPermissionContent: '修改权限内容',
|
||||||
|
addPermissions: '添加权限',
|
||||||
|
modifyPermissions: '修改权限',
|
||||||
|
createPermission: '新建权限',
|
||||||
|
oneClickGenerationPermission: '一键生成权限',
|
||||||
|
packingDetails: '打包详情',
|
||||||
|
belongsToMap: '所属地图',
|
||||||
|
oneClickGeneration: '一键生成',
|
||||||
|
selectPermission: '选择权限'
|
||||||
};
|
};
|
||||||
|
@ -260,5 +260,7 @@ export default {
|
|||||||
enterKeyword: '请输入关键词',
|
enterKeyword: '请输入关键词',
|
||||||
successfullyModified: '修改成功',
|
successfullyModified: '修改成功',
|
||||||
modifyTheFailure: '修改失败',
|
modifyTheFailure: '修改失败',
|
||||||
selectTheCourseNameFirst: '请先选择课程名称'
|
selectTheCourseNameFirst: '请先选择课程名称',
|
||||||
|
selectMultiplePermissions: '请选择多个权限',
|
||||||
|
enterPermissionName: '请输入权限名称'
|
||||||
};
|
};
|
||||||
|
@ -139,5 +139,7 @@ export default {
|
|||||||
deleteListHint: '此操作将删除该列表, 是否继续?',
|
deleteListHint: '此操作将删除该列表, 是否继续?',
|
||||||
setUpASubscriptionMapSuccessfully: '设置订阅地图成功!',
|
setUpASubscriptionMapSuccessfully: '设置订阅地图成功!',
|
||||||
setUpASubscriptionMapFailed: '设置订阅地图失败!',
|
setUpASubscriptionMapFailed: '设置订阅地图失败!',
|
||||||
getMapStateDataException: '获取地图状态数据异常,请刷新页面重新加载。若多次遇到此类问题,请急时联系开发团队处理!'
|
getMapStateDataException: '获取地图状态数据异常,请刷新页面重新加载。若多次遇到此类问题,请急时联系开发团队处理!',
|
||||||
|
packagedSuccessfully: '打包成功',
|
||||||
|
oneKeyGeneratedSuccessfully: '一键生成成功!'
|
||||||
};
|
};
|
||||||
|
@ -84,11 +84,11 @@ export default {
|
|||||||
duration: this.formModel.duration
|
duration: this.formModel.duration
|
||||||
};
|
};
|
||||||
putSimulationStats(parma).then(response => {
|
putSimulationStats(parma).then(response => {
|
||||||
self.$message.success(this.$t('rules.successfullyModified'));
|
self.$message.success(this.$t('tip.successfullyModified'));
|
||||||
self.handleClose();
|
self.handleClose();
|
||||||
self.$emit('reloadTable');
|
self.$emit('reloadTable');
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
self.$message.error(this.$t('rules.modifyTheFailure') + error.message);
|
self.$message.error(this.$t('tip.modifyTheFailure') + error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleClose(done) {
|
handleClose(done) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog title="一键生成权限" :visible.sync="dialogShow" width="420px" :before-close="handleClose">
|
<el-dialog :title="this.$t('orderAuthor.oneClickGenerationPermission')" :visible.sync="dialogShow" width="420px" :before-close="handleClose">
|
||||||
<div>
|
<div>
|
||||||
<el-form
|
<el-form
|
||||||
ref="form"
|
ref="form"
|
||||||
@ -10,7 +10,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@submit.native.prevent
|
@submit.native.prevent
|
||||||
>
|
>
|
||||||
<el-form-item label="地图名称" prop="mapId">
|
<el-form-item :label="this.$t('orderAuthor.mapName')" prop="mapId">
|
||||||
<el-select v-model="editModel.mapId" :placeholder="$t('map.pleaseSelect')">
|
<el-select v-model="editModel.mapId" :placeholder="$t('map.pleaseSelect')">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in mapList"
|
v-for="item in mapList"
|
||||||
@ -89,7 +89,7 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
postPermissonList(this.editModel.mapId).then(response => {
|
postPermissonList(this.editModel.mapId).then(response => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$message.success('一键生成成功!');
|
this.$message.success(this.$t('tip.oneKeyGeneratedSuccessfully'));
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
this.close();
|
this.close();
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog title="打包详情" :visible.sync="dialogShow" width="700px" :before-close="close">
|
<el-dialog :title="this.$t('orderAuthor.packingDetails')" :visible.sync="dialogShow" width="700px" :before-close="close">
|
||||||
<div>
|
<div>
|
||||||
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
||||||
</div>
|
</div>
|
||||||
@ -38,7 +38,7 @@ export default {
|
|||||||
indexShow: true,
|
indexShow: true,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: '权限名称',
|
title: this.$t('orderAuthor.permissionName'),
|
||||||
prop: 'name'
|
prop: 'name'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@submit.native.prevent
|
@submit.native.prevent
|
||||||
>
|
>
|
||||||
<el-form-item :label="$t('map.mapName')" prop="name">
|
<el-form-item :label="this.$t('map.mapName')" prop="name">
|
||||||
<el-input v-model="editModel.name" />
|
<el-input v-model="editModel.name" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="this.$t('orderAuthor.describtion')" prop="remarks">
|
<el-form-item :label="this.$t('orderAuthor.describtion')" prop="remarks">
|
||||||
@ -19,14 +19,14 @@
|
|||||||
v-model="editModel.remarks"
|
v-model="editModel.remarks"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rows="2"
|
:rows="2"
|
||||||
placeholder="请输入内容"
|
:placeholder="this.$t('orderAuthor.pleaseEnterContent')"
|
||||||
maxlength="60"
|
maxlength="60"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div v-show="isPackage">
|
<div v-show="isPackage">
|
||||||
<div class="form_title">地图名称:</div>
|
<div class="form_title">{{$t('orderAuthor.mapName')}}:</div>
|
||||||
<el-select v-model="editModel.mapId" size="mini" :disabled="ruleList.length ? true : false">
|
<el-select v-model="editModel.mapId" size="mini" :disabled="ruleList.length ? true : false">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in mapList"
|
v-for="item in mapList"
|
||||||
@ -35,14 +35,14 @@
|
|||||||
:value="item.value"
|
:value="item.value"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button class="addList" size="small" @click="dialogSelect">添加权限</el-button>
|
<el-button class="addList" size="small" @click="dialogSelect">{{$t('orderAuthor.addPermissions')}}</el-button>
|
||||||
<el-table
|
<el-table
|
||||||
:data="ruleList"
|
:data="ruleList"
|
||||||
border
|
border
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:height="200"
|
:height="200"
|
||||||
>
|
>
|
||||||
<el-table-column prop="name" label="权限名称" />
|
<el-table-column prop="name" :label="this.$t('orderAuthor.permissionName')" />
|
||||||
<el-table-column prop="type" :label="this.$t('orderAuthor.permissionType')">
|
<el-table-column prop="type" :label="this.$t('orderAuthor.permissionType')">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ computedName(PermissionTypeList, scope.row.type) }}
|
{{ computedName(PermissionTypeList, scope.row.type) }}
|
||||||
@ -149,7 +149,7 @@ export default {
|
|||||||
if (this.editModel.mapId) {
|
if (this.editModel.mapId) {
|
||||||
this.$refs.choosePermission.doShow(this.editModel.mapId);
|
this.$refs.choosePermission.doShow(this.editModel.mapId);
|
||||||
} else {
|
} else {
|
||||||
this.$messageBox('请选择地图');
|
this.$messageBox(this.$t('rules.mapInput'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async doShow(data) {
|
async doShow(data) {
|
||||||
@ -187,7 +187,7 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
putPermissonDetail(this.editModel).then(response => {
|
putPermissonDetail(this.editModel).then(response => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$message.success('修改成功!');
|
this.$message.success(this.$t('tip.successfullyModified'));
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
this.close();
|
this.close();
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
@ -203,7 +203,7 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
putPermissonDetail(this.editModel).then(response => {
|
putPermissonDetail(this.editModel).then(response => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$message.success('修改成功!');
|
this.$message.success(this.$t('tip.successfullyModified'));
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
this.close();
|
this.close();
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
@ -211,7 +211,7 @@ export default {
|
|||||||
this.$messageBox(this.$t('map.saveFailed'));
|
this.$messageBox(this.$t('map.saveFailed'));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$messageBox('请选择多个权限');
|
this.$messageBox(this.$t('rules.selectMultiplePermissions'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -8,20 +8,20 @@
|
|||||||
</el-steps>
|
</el-steps>
|
||||||
<el-card class="forms pack-rule">
|
<el-card class="forms pack-rule">
|
||||||
<el-form ref="formData" label-width="130px" :model="addModel" size="mini" :rules="rules" class="rule_box">
|
<el-form ref="formData" label-width="130px" :model="addModel" size="mini" :rules="rules" class="rule_box">
|
||||||
<el-form-item label="权限名称:" prop="name">
|
<el-form-item :label="this.$t('orderAuthor.permissionName') + ':'" prop="name">
|
||||||
<el-input v-model="addModel.name" size="small" />
|
<el-input v-model="addModel.name" size="small" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="描述" prop="remarks">
|
<el-form-item :label="this.$t('orderAuthor.describtion') + ':'" prop="remarks">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="addModel.remarks"
|
v-model="addModel.remarks"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rows="2"
|
:rows="2"
|
||||||
placeholder="请输入内容"
|
:placeholder="this.$t('orderAuthor.pleaseEnterContent')"
|
||||||
maxlength="60"
|
maxlength="60"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-show="isPackage" label="地图名称:">
|
<el-form-item v-show="isPackage" :label=" this.$t('orderAuthor.mapName') + ':'">
|
||||||
<el-select v-model="addModel.mapId" :disabled="ruleList.length ? true : false">
|
<el-select v-model="addModel.mapId" :disabled="ruleList.length ? true : false">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in mapList"
|
v-for="item in mapList"
|
||||||
@ -33,14 +33,14 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div v-show="isPackage">
|
<div v-show="isPackage">
|
||||||
<el-button class="addList" size="small" @click="dialogSelect">添加权限</el-button>
|
<el-button class="addList" size="small" @click="dialogSelect">{{$t('orderAuthor.addPermissions')}}</el-button>
|
||||||
<el-table
|
<el-table
|
||||||
:data="ruleList"
|
:data="ruleList"
|
||||||
border
|
border
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:height="height-450"
|
:height="height-450"
|
||||||
>
|
>
|
||||||
<el-table-column prop="name" label="权限名称" />
|
<el-table-column prop="name" :label="this.$t('orderAuthor.permissionName')" />
|
||||||
<el-table-column prop="type" :label="this.$t('orderAuthor.permissionType')">
|
<el-table-column prop="type" :label="this.$t('orderAuthor.permissionType')">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ computedName(PermissionTypeList, scope.row.type) }}
|
{{ computedName(PermissionTypeList, scope.row.type) }}
|
||||||
@ -58,7 +58,7 @@
|
|||||||
<div class="draft">
|
<div class="draft">
|
||||||
<el-button-group>
|
<el-button-group>
|
||||||
<el-button v-if="!$route.query.id" type="primary" @click="packForm">{{ $t('orderAuthor.packaging') }}</el-button>
|
<el-button v-if="!$route.query.id" type="primary" @click="packForm">{{ $t('orderAuthor.packaging') }}</el-button>
|
||||||
<el-button v-if="$route.query.id" type="primary" @click="update">更新</el-button>
|
<el-button v-if="$route.query.id" type="primary" @click="update">{{$t('global.update')}}</el-button>
|
||||||
<el-button type="primary" @click="turnback">{{ $t('global.back') }}</el-button>
|
<el-button type="primary" @click="turnback">{{ $t('global.back') }}</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
</div>
|
</div>
|
||||||
@ -98,7 +98,7 @@ export default {
|
|||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
name: [
|
name: [
|
||||||
{ required: true, message: '请输入权限名称', trigger: 'blur' }
|
{ required: true, message: this.$t('rules.enterPermissionName'), trigger: 'blur' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
urlInfo: {},
|
urlInfo: {},
|
||||||
@ -114,7 +114,7 @@ export default {
|
|||||||
return this.$store.state.app.height - 65;
|
return this.$store.state.app.height - 65;
|
||||||
},
|
},
|
||||||
title() {
|
title() {
|
||||||
return this.$route.query.id ? '修改权限' : '新建权限';
|
return this.$route.query.id ? this.$t('orderAuthor.modifyPermissions') : this.$t('orderAuthor.createPermission');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -169,7 +169,7 @@ export default {
|
|||||||
if (this.addModel.mapId) {
|
if (this.addModel.mapId) {
|
||||||
this.$refs.choosePermission.doShow(this.addModel.mapId);
|
this.$refs.choosePermission.doShow(this.addModel.mapId);
|
||||||
} else {
|
} else {
|
||||||
this.$messageBox('请选择地图');
|
this.$messageBox(this.$t('rules.mapInput'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deleteForm(index, row) {
|
deleteForm(index, row) {
|
||||||
@ -196,7 +196,7 @@ export default {
|
|||||||
relPermissions: arr
|
relPermissions: arr
|
||||||
};
|
};
|
||||||
createLessonPermisson(data).then(resp => {
|
createLessonPermisson(data).then(resp => {
|
||||||
this.$message.success('打包成功');
|
this.$message.success(this.$t('tip.packagedSuccessfully'));
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.push({ path: `${UrlConfig.orderauthor.authorMange}` });
|
this.$router.push({ path: `${UrlConfig.orderauthor.authorMange}` });
|
||||||
}, 500);
|
}, 500);
|
||||||
@ -204,7 +204,7 @@ export default {
|
|||||||
this.$messageBox(this.$t('tip.packagingFailed'));
|
this.$messageBox(this.$t('tip.packagingFailed'));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$messageBox('请选择多个权限');
|
this.$messageBox(this.$t('rules.selectMultiplePermissions'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
update() {
|
update() {
|
||||||
@ -220,7 +220,7 @@ export default {
|
|||||||
relPermissions: arr
|
relPermissions: arr
|
||||||
};
|
};
|
||||||
putPermissonDetail(data).then(response => {
|
putPermissonDetail(data).then(response => {
|
||||||
this.$message.success('修改成功!');
|
this.$message.success(this.$t('tip.successfullyModified'));
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.push({ path: `${UrlConfig.orderauthor.authorMange}` });
|
this.$router.push({ path: `${UrlConfig.orderauthor.authorMange}` });
|
||||||
}, 500);
|
}, 500);
|
||||||
@ -228,7 +228,7 @@ export default {
|
|||||||
this.$messageBox(this.$t('map.saveFailed'));
|
this.$messageBox(this.$t('map.saveFailed'));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$messageBox('请选择多个权限');
|
this.$messageBox(this.$t('rules.selectMultiplePermissions'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,8 @@ export default {
|
|||||||
PermissionTypeList: [],
|
PermissionTypeList: [],
|
||||||
mapList: [],
|
mapList: [],
|
||||||
ruleList: [
|
ruleList: [
|
||||||
{ value: true, label: '是' },
|
{ value: true, label: this.$t('global.yes') },
|
||||||
{ value: false, label: '否' }
|
{ value: false, label: this.$t('global.no') }
|
||||||
],
|
],
|
||||||
pagerConfig: {
|
pagerConfig: {
|
||||||
pageSize: 'pageSize',
|
pageSize: 'pageSize',
|
||||||
@ -40,7 +40,7 @@ export default {
|
|||||||
queryObject: {
|
queryObject: {
|
||||||
'name': {
|
'name': {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: '权限名称'
|
label: this.$t('orderAuthor.permissionName')
|
||||||
},
|
},
|
||||||
'type': {
|
'type': {
|
||||||
type: 'select',
|
type: 'select',
|
||||||
@ -51,11 +51,11 @@ export default {
|
|||||||
},
|
},
|
||||||
'isPackage': {
|
'isPackage': {
|
||||||
type: 'select',
|
type: 'select',
|
||||||
label: '是否权限包',
|
label: this.$t('orderAuthor.isPackage'),
|
||||||
config: {
|
config: {
|
||||||
data: [
|
data: [
|
||||||
{ value: true, label: '是' },
|
{ value: true, label: this.$t('global.yes') },
|
||||||
{ value: false, label: '否' }
|
{ value: false, label: this.$t('global.no') }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -74,19 +74,19 @@ export default {
|
|||||||
indexShow: true,
|
indexShow: true,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: '权限名称',
|
title: this.$t('orderAuthor.permissionName'),
|
||||||
width: '240',
|
width: '240',
|
||||||
prop: 'name'
|
prop: 'name'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '是否权限包',
|
title: this.$t('orderAuthor.isPackage'),
|
||||||
prop: 'isPackage',
|
prop: 'isPackage',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
columnValue: (row) => { return this.$convertField(row.isPackage, this.ruleList, ['value', 'label']); },
|
columnValue: (row) => { return this.$convertField(row.isPackage, this.ruleList, ['value', 'label']); },
|
||||||
tagType: (row) => { return ''; }
|
tagType: (row) => { return ''; }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '所属地图',
|
title: this.$t('orderAuthor.belongsToMap'),
|
||||||
prop: 'mapId',
|
prop: 'mapId',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
columnValue: (row) => { return this.$convertField(row.mapId, this.mapList, ['value', 'label']); },
|
columnValue: (row) => { return this.$convertField(row.mapId, this.mapList, ['value', 'label']); },
|
||||||
@ -100,15 +100,15 @@ export default {
|
|||||||
tagType: (row) => { return ''; }
|
tagType: (row) => { return ''; }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: this.$t('orderAuthor.creationTime'),
|
||||||
prop: 'createTime'
|
prop: 'createTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建者',
|
title: this.$t('orderAuthor.founder'),
|
||||||
prop: 'creatorUserName'
|
prop: 'creatorUserName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '描述',
|
title: this.$t('orderAuthor.describtion'),
|
||||||
width: '420',
|
width: '420',
|
||||||
prop: 'remarks'
|
prop: 'remarks'
|
||||||
},
|
},
|
||||||
@ -118,12 +118,12 @@ export default {
|
|||||||
width: '250',
|
width: '250',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
name: '编辑',
|
name: this.$t('global.edit'),
|
||||||
handleClick: this.handleEdit,
|
handleClick: this.handleEdit,
|
||||||
type: ''
|
type: ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '详情',
|
name: this.$t('global.details'),
|
||||||
handleClick: this.handleRulesDetail,
|
handleClick: this.handleRulesDetail,
|
||||||
type: '',
|
type: '',
|
||||||
showControl: (row) => { return row.isPackage; }
|
showControl: (row) => { return row.isPackage; }
|
||||||
@ -132,8 +132,8 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
actions: [
|
actions: [
|
||||||
{ text: '打包', handler: this.handleAdd },
|
{ text: this.$t('orderAuthor.packaging'), handler: this.handleAdd },
|
||||||
{ text: '一键生成', handler: this.create }
|
{ text: this.$t('orderAuthor.oneClickGeneration'), handler: this.create }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="选择权限"
|
:title="this.$t('orderAuthor.selectPermission')"
|
||||||
:visible.sync="show"
|
:visible.sync="show"
|
||||||
top="20px"
|
top="20px"
|
||||||
width="90%"
|
width="90%"
|
||||||
@ -35,8 +35,8 @@ export default {
|
|||||||
show: false,
|
show: false,
|
||||||
PermissionTypeList: [],
|
PermissionTypeList: [],
|
||||||
ruleLists: [
|
ruleLists: [
|
||||||
{ value: true, label: '是' },
|
{ value: true, label: this.$t('global.yes') },
|
||||||
{ value: false, label: '否' }
|
{ value: false, label: this.$t('global.no') }
|
||||||
],
|
],
|
||||||
pagerConfig: {
|
pagerConfig: {
|
||||||
pageSize: 'pageSize',
|
pageSize: 'pageSize',
|
||||||
@ -48,7 +48,7 @@ export default {
|
|||||||
queryObject: {
|
queryObject: {
|
||||||
name: {
|
name: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: '权限名称'
|
label: this.$t('orderAuthor.permissionName')
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
type: 'select',
|
type: 'select',
|
||||||
@ -65,11 +65,11 @@ export default {
|
|||||||
indexShow: true,
|
indexShow: true,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: '权限名称',
|
title: this.$t('orderAuthor.permissionName'),
|
||||||
prop: 'name'
|
prop: 'name'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '是否包权限',
|
title: this.$t('orderAuthor.isPackage'),
|
||||||
prop: 'isPackage',
|
prop: 'isPackage',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
columnValue: (row) => { return this.$convertField(row.isPackage, this.ruleLists, ['value', 'label']); },
|
columnValue: (row) => { return this.$convertField(row.isPackage, this.ruleLists, ['value', 'label']); },
|
||||||
@ -83,11 +83,11 @@ export default {
|
|||||||
tagType: (row) => { return ''; }
|
tagType: (row) => { return ''; }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建者',
|
title: this.$t('orderAuthor.founder'),
|
||||||
prop: 'creatorUserName'
|
prop: 'creatorUserName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: this.$t('orderAuthor.creationTime'),
|
||||||
prop: 'createTime'
|
prop: 'createTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user