修改:国际化调整

This commit is contained in:
fan 2019-08-19 16:35:27 +08:00
parent 30433bfcd0
commit c91a4efdcc
19 changed files with 111 additions and 109 deletions

View File

@ -322,16 +322,8 @@ export default {
skinDesignation: 'SkinName', skinDesignation: 'SkinName',
skinCoding: 'SkinCoding', skinCoding: 'SkinCoding',
coordinatesOrigin: 'CoordinatesOrigin', coordinatesOrigin: 'CoordinatesOrigin',
skinDeleteConfirmation: 'This will permanently remove the skin. Do you want to continue?',
addMapSkin: 'AddMapSkin', addMapSkin: 'AddMapSkin',
updateMapSkin: 'UpdateMapSkin', updateMapSkin: 'UpdateMapSkin',
maxScaling: '(The maximum scale is 8 steps)',
skinCodingInput: 'Please enter skin code',
skinDesignationInput: 'Please enter skin name',
coordinatesOriginInput: 'Please enter the origin coordinates',
scalingInput: 'Please enter the scale',
scalingInputPrompt: 'Please enter a valid scale',
skinCodingExist: 'Map skin codes already exist',
stationKilometerMark: 'StationKilometerMark', stationKilometerMark: 'StationKilometerMark',
arrivalTime: 'ArrivalTime', arrivalTime: 'ArrivalTime',
operationGraphPublished: 'The operation diagram is published as', operationGraphPublished: 'The operation diagram is published as',
@ -340,10 +332,8 @@ export default {
importOperationGraph: 'ImportOperationGraph', importOperationGraph: 'ImportOperationGraph',
publishOperationGraph: 'PublishOperationGraph', publishOperationGraph: 'PublishOperationGraph',
deleteOperationGraph: 'DeleteOperationGraph', deleteOperationGraph: 'DeleteOperationGraph',
underImport: 'UnderImport...',
mapList: 'MapList', mapList: 'MapList',
import: 'Import', import: 'Import',
selectImportFiles: 'Select the file you want to import',
createNewOperationGraph: 'CreateNewOperationGraph', createNewOperationGraph: 'CreateNewOperationGraph',
setOperatingSpeed: 'SetOperatingSpeed', setOperatingSpeed: 'SetOperatingSpeed',
speedClass1: 'SpeedLevel 1', speedClass1: 'SpeedLevel 1',
@ -356,29 +346,17 @@ export default {
stopTime: 'StopTime', stopTime: 'StopTime',
entranceStation: 'EntranceStation', entranceStation: 'EntranceStation',
exportStation: 'ExportStation', exportStation: 'ExportStation',
speedLevelEnter1: 'Please enter speed level 1',
speedLevelEnter2: 'Please enter speed level 2',
speedLevelEnter3: 'Please enter speed level 3',
speedLevelEnter4: 'Please enter speed level 4',
nameEnter: 'Please enter name',
drivingDirectionSelect: 'Please choose your driving direction',
timeBetweenDeparturesEnter: 'Please enter the interval',
stopTimeEnter: 'Please enter the docking time',
entranceStationSelect: 'Please select the entrance',
exportStationSelect: 'Please select the exit gate',
validityCheck: 'ValidityCheck', validityCheck: 'ValidityCheck',
setupOperationGraph: 'SetupOperationGraph', setupOperationGraph: 'SetupOperationGraph',
selectOperationGraphDataRange: 'SelectOperationGraphDataRange', selectOperationGraphDataRange: 'SelectOperationGraphDataRange',
to: 'to', to: 'to',
selectionTimeRange: 'Please select time range', selectionTimeRange: 'Please select time range',
selectDataRange: 'Please select the data range range',
pointSystem1: 'OnePointSystem', pointSystem1: 'OnePointSystem',
pointSystem2: 'TwoPointSystem', pointSystem2: 'TwoPointSystem',
pointSystem5: 'FivePointSystem', pointSystem5: 'FivePointSystem',
skinType: 'SkinType', skinType: 'SkinType',
turnoverTime: 'TurnoverTime', turnoverTime: 'TurnoverTime',
productList: 'ProductList', productList: 'ProductList',
deleteTypeHint: 'This action deletes the type. Do you want to continue?',
belongsToMapName: 'BelongsToMapName', belongsToMapName: 'BelongsToMapName',
productType: 'ProductType', productType: 'ProductType',
productCode: 'ProductCode', productCode: 'ProductCode',
@ -387,20 +365,11 @@ export default {
associateTrainingTypes: 'AssociateTrainingTypes', associateTrainingTypes: 'AssociateTrainingTypes',
createTrainingCategories: 'CreateTrainingCategories', createTrainingCategories: 'CreateTrainingCategories',
editTrainingCategories: 'EditTrainingCategories', editTrainingCategories: 'EditTrainingCategories',
productCodeEnter: 'Please enter the product code',
productNameEnter: 'Please enter product name',
productDescriptionEnter: 'Please enter product description',
trainingTypeSelect: 'Please select the associated training type',
linkWidth: 'LinkWidth', linkWidth: 'LinkWidth',
maxLinkWidth: '(Link width is at most 20)', maxLinkWidth: '(Link width is at most 20)',
sectionWidth: 'SectionWidth', sectionWidth: 'SectionWidth',
maxSectionWidth: '(Section width is maximum 30)', maxSectionWidth: '(Section width is maximum 30)',
showWatermarkOrNot: 'ShowWatermarkOrNot', showWatermarkOrNot: 'ShowWatermarkOrNot',
linkWidthInput: 'Please enter Link width',
linkWidthInputPrompt: 'Please enter a valid Link width',
sectionWidthInput: 'Please enter section width',
sectionWidthInputPrompt: 'Please enter a valid segment width',
selectShowWatermark: 'Select whether or not to watermark',
stationstandName: 'Select station name:', stationstandName: 'Select station name:',
stationstandDirection: 'Direction of the platform:', stationstandDirection: 'Direction of the platform:',
stationstandHasDoor: 'Whether to display screen door:', stationstandHasDoor: 'Whether to display screen door:',

View File

@ -70,7 +70,6 @@ export default {
addRecords: 'AddRecords', addRecords: 'AddRecords',
totalNumber: 'TotalNumber', totalNumber: 'TotalNumber',
permissionToDistributeQRCode: 'Permission to distribute qr code', permissionToDistributeQRCode: 'Permission to distribute qr code',
selectPackagingRecord: 'Please select the packaging record',
editPermissionRules: 'Edit permission rules', editPermissionRules: 'Edit permission rules',
addGoods: 'AddGoods', addGoods: 'AddGoods',
updateGoods: 'UpdateGoods', updateGoods: 'UpdateGoods',

View File

@ -176,5 +176,32 @@ export default {
unitOfTimeRadio: 'Please select a time unit', unitOfTimeRadio: 'Please select a time unit',
goodsDescribtionInput: 'Please enter product description', goodsDescribtionInput: 'Please enter product description',
userNameInput: 'Please enter user name', userNameInput: 'Please enter user name',
permissionTypeInput: 'Please select the permission type' permissionTypeInput: 'Please select the permission type',
maxScaling: '(The maximum scale is 8 steps)',
skinCodingInput: 'Please enter skin code',
skinDesignationInput: 'Please enter skin name',
coordinatesOriginInput: 'Please enter the origin coordinates',
scalingInput: 'Please enter the scale',
scalingInputPrompt: 'Please enter a valid scale',
selectImportFiles: 'Select the file you want to import',
speedLevelEnter1: 'Please enter speed level 1',
speedLevelEnter2: 'Please enter speed level 2',
speedLevelEnter3: 'Please enter speed level 3',
speedLevelEnter4: 'Please enter speed level 4',
drivingDirectionSelect: 'Please choose your driving direction',
timeBetweenDeparturesEnter: 'Please enter the interval',
stopTimeEnter: 'Please enter the docking time',
entranceStationSelect: 'Please select the entrance',
exportStationSelect: 'Please select the exit gate',
selectDataRange: 'Please select the data range range',
productCodeEnter: 'Please enter the product code',
productNameEnter: 'Please enter product name',
productDescriptionEnter: 'Please enter product description',
trainingTypeSelect: 'Please select the associated training type',
linkWidthInput: 'Please enter Link width',
linkWidthInputPrompt: 'Please enter a valid Link width',
sectionWidthInput: 'Please enter section width',
sectionWidthInputPrompt: 'Please enter a valid segment width',
selectShowWatermark: 'Select whether or not to watermark'
}; };

View File

@ -83,5 +83,11 @@ export default {
updatePrivilegeTip: 'This action will modify the permission status. Do you want to continue?', updatePrivilegeTip: 'This action will modify the permission status. Do you want to continue?',
addOrganizationPrefix: 'Whether to add "', addOrganizationPrefix: 'Whether to add "',
addOrganizationSuffix: '" Organization/enterprise entry information?', addOrganizationSuffix: '" Organization/enterprise entry information?',
packagingFailed: 'Authority distribution packaging failed' packagingFailed: 'Authority distribution packaging failed',
selectPackagingRecord: 'Please select the packaging record',
skinDeleteConfirmation: 'This will permanently remove the skin. Do you want to continue?',
skinCodingExist: 'Map skin codes already exist',
underImport: 'UnderImport...',
deleteTypeHint: 'This action deletes the type. Do you want to continue?'
}; };

View File

@ -442,16 +442,8 @@ export default {
skinDesignation: '皮肤名称', skinDesignation: '皮肤名称',
skinCoding: '皮肤编码', skinCoding: '皮肤编码',
coordinatesOrigin: '坐标原点', coordinatesOrigin: '坐标原点',
skinDeleteConfirmation: '此操作将永久删除该皮肤, 是否继续?',
addMapSkin: '添加地图皮肤', addMapSkin: '添加地图皮肤',
updateMapSkin: '更新地图皮肤', updateMapSkin: '更新地图皮肤',
maxScaling: '(缩放比例最大为8级)',
skinCodingInput: '请输入皮肤编码',
skinDesignationInput: '请输入皮肤名称',
coordinatesOriginInput: '请输入原点坐标',
scalingInput: '请输入缩放比例',
scalingInputPrompt: '请输入有效的缩放比例',
skinCodingExist: '地图皮肤编码已存在',
stationKilometerMark: '车站公里标', stationKilometerMark: '车站公里标',
arrivalTime: '到站时间', arrivalTime: '到站时间',
operationGraphPublished: '运行图发布为', operationGraphPublished: '运行图发布为',
@ -460,10 +452,8 @@ export default {
importOperationGraph: '导入运行图', importOperationGraph: '导入运行图',
publishOperationGraph: '发布运行图', publishOperationGraph: '发布运行图',
deleteOperationGraph: '删除运行图', deleteOperationGraph: '删除运行图',
underImport: '正在导入中...',
mapList: '地图列表', mapList: '地图列表',
import: '导入', import: '导入',
selectImportFiles: '请选择需要导入的文件',
createNewOperationGraph: '新建运行图', createNewOperationGraph: '新建运行图',
setOperatingSpeed: '设置运行速度', setOperatingSpeed: '设置运行速度',
speedClass1: '速度等级1', speedClass1: '速度等级1',
@ -476,29 +466,17 @@ export default {
stopTime: '停靠时间', stopTime: '停靠时间',
entranceStation: '入口车站', entranceStation: '入口车站',
exportStation: '出口车站', exportStation: '出口车站',
speedLevelEnter1: '请输入速度等级1',
speedLevelEnter2: '请输入速度等级2',
speedLevelEnter3: '请输入速度等级3',
speedLevelEnter4: '请输入速度等级4',
nameEnter: '请输入名称',
drivingDirectionSelect: '请选择行驶方向',
timeBetweenDeparturesEnter: '请输入发车间隔时间',
stopTimeEnter: '请输入停靠时间',
entranceStationSelect: '请选择入站口',
exportStationSelect: '请选择出站口',
validityCheck: '有效性检查', validityCheck: '有效性检查',
setupOperationGraph: '设置运行图', setupOperationGraph: '设置运行图',
selectOperationGraphDataRange: '选取运行图数据范围', selectOperationGraphDataRange: '选取运行图数据范围',
to: '至', to: '至',
selectionTimeRange: '选择时间范围', selectionTimeRange: '选择时间范围',
selectDataRange: '请选择数据范围区间',
pointSystem1: '1分制', pointSystem1: '1分制',
pointSystem2: '2分制', pointSystem2: '2分制',
pointSystem5: '5分制', pointSystem5: '5分制',
skinType: '皮肤风格', skinType: '皮肤风格',
turnoverTime: '更新时间', turnoverTime: '更新时间',
productList: '产品列表', productList: '产品列表',
deleteTypeHint: '此操作将删除该类型, 是否继续?',
belongsToMapName: '所属地图名称', belongsToMapName: '所属地图名称',
productType: '产品类型', productType: '产品类型',
productCode: '产品编码', productCode: '产品编码',
@ -507,20 +485,11 @@ export default {
associateTrainingTypes: '关联实训类型', associateTrainingTypes: '关联实训类型',
createTrainingCategories: '创建实训类目', createTrainingCategories: '创建实训类目',
editTrainingCategories: '编辑实训类目', editTrainingCategories: '编辑实训类目',
productCodeEnter: '请输入产品编码',
productNameEnter: '请输入产品名称',
productDescriptionEnter: '请输入产品说明',
trainingTypeSelect: '请选择关联实训类型',
linkWidth: 'link宽度', linkWidth: 'link宽度',
maxLinkWidth: '(Link宽度最大为20)', maxLinkWidth: '(Link宽度最大为20)',
sectionWidth: '区段宽度', sectionWidth: '区段宽度',
maxSectionWidth: '(区段宽度最大为30)', maxSectionWidth: '(区段宽度最大为30)',
showWatermarkOrNot: '是否显示水印', showWatermarkOrNot: '是否显示水印',
linkWidthInput: '请输入Link宽度',
linkWidthInputPrompt: '请输入有效Link宽度',
sectionWidthInput: '请输入区段宽度',
sectionWidthInputPrompt: '请输入有效区段宽度',
selectShowWatermark: '请选择是否水印',
routingCode: '交路code', routingCode: '交路code',
routingName: '交路名称', routingName: '交路名称',
startStationCodeColon: '起始站:', startStationCodeColon: '起始站:',

View File

@ -71,7 +71,6 @@ export default {
addRecords: '添加记录', addRecords: '添加记录',
totalNumber: '总数', totalNumber: '总数',
permissionToDistributeQRCode: '权限分发二维码', permissionToDistributeQRCode: '权限分发二维码',
selectPackagingRecord: '请选择打包记录',
editPermissionRules: '编辑权限规则', editPermissionRules: '编辑权限规则',
addGoods: '添加商品', addGoods: '添加商品',
updateGoods: '修改商品', updateGoods: '修改商品',

View File

@ -176,5 +176,32 @@ export default {
unitOfTimeRadio: '请选择时间单位', unitOfTimeRadio: '请选择时间单位',
goodsDescribtionInput: '请输入商品描述', goodsDescribtionInput: '请输入商品描述',
userNameInput: '请输入用户名称', userNameInput: '请输入用户名称',
permissionTypeInput: '请选择权限类型' permissionTypeInput: '请选择权限类型',
maxScaling: '(缩放比例最大为8级)',
skinCodingInput: '请输入皮肤编码',
skinDesignationInput: '请输入皮肤名称',
coordinatesOriginInput: '请输入原点坐标',
scalingInput: '请输入缩放比例',
scalingInputPrompt: '请输入有效的缩放比例',
selectImportFiles: '请选择需要导入的文件',
speedLevelEnter1: '请输入速度等级1',
speedLevelEnter2: '请输入速度等级2',
speedLevelEnter3: '请输入速度等级3',
speedLevelEnter4: '请输入速度等级4',
drivingDirectionSelect: '请选择行驶方向',
timeBetweenDeparturesEnter: '请输入发车间隔时间',
stopTimeEnter: '请输入停靠时间',
entranceStationSelect: '请选择入站口',
exportStationSelect: '请选择出站口',
selectDataRange: '请选择数据范围区间',
productCodeEnter: '请输入产品编码',
productNameEnter: '请输入产品名称',
productDescriptionEnter: '请输入产品说明',
trainingTypeSelect: '请选择关联实训类型',
linkWidthInput: '请输入Link宽度',
linkWidthInputPrompt: '请输入有效Link宽度',
sectionWidthInput: '请输入区段宽度',
sectionWidthInputPrompt: '请输入有效区段宽度',
selectShowWatermark: '请选择是否水印'
}; };

View File

@ -83,6 +83,12 @@ export default {
updatePrivilegeTip: '此操作将修改权限状态,是否继续?', updatePrivilegeTip: '此操作将修改权限状态,是否继续?',
addOrganizationPrefix: '是否添加 "', addOrganizationPrefix: '是否添加 "',
addOrganizationSuffix: '" 组织/企业条目信息?', addOrganizationSuffix: '" 组织/企业条目信息?',
packagingFailed: '权限分发打包失败' packagingFailed: '权限分发打包失败',
selectPackagingRecord: '请选择打包记录',
skinDeleteConfirmation: '此操作将永久删除该皮肤, 是否继续?',
skinCodingExist: '地图皮肤编码已存在',
underImport: '正在导入中...',
deleteTypeHint: '此操作将删除该类型, 是否继续?'
}; };

View File

@ -127,16 +127,16 @@ export default {
baseRules() { baseRules() {
return { return {
code: [ code: [
{ required: true, message: this.$t('map.productCodeEnter'), trigger: 'change' } { required: true, message: this.$t('rules.productCodeEnter'), trigger: 'change' }
], ],
name: [ name: [
{ required: true, message: this.$t('map.productNameEnter'), trigger: 'change' } { required: true, message: this.$t('rules.productNameEnter'), trigger: 'change' }
], ],
remarks: [ remarks: [
{ required: true, message: this.$t('map.productDescriptionEnter'), trigger: 'change' } { required: true, message: this.$t('rules.productDescriptionEnter'), trigger: 'change' }
], ],
trainTypes: [ trainTypes: [
{ required: true, message: this.$t('map.trainingTypeSelect'), trigger: 'change' } { required: true, message: this.$t('rules.trainingTypeSelect'), trigger: 'change' }
] ]
}; };
} }

View File

@ -130,7 +130,7 @@ export default {
// //
handleDelete(index, row) { handleDelete(index, row) {
this.$confirm(this.$t('map.deleteTypeHint'), this.$t('tip.hint'), { this.$confirm(this.$t('tip.deleteTypeHint'), this.$t('tip.hint'), {
confirmButtonText: this.$t('tip.confirm'), confirmButtonText: this.$t('tip.confirm'),
cancelButtonText: this.$t('tip.cancel'), cancelButtonText: this.$t('tip.cancel'),
type: 'warning' type: 'warning'

View File

@ -36,7 +36,7 @@
rules() { rules() {
return { return {
timeArea: [ timeArea: [
{ required: true, message: this.$t('map.selectDataRange'), trigger: 'change' } { required: true, message: this.$t('rules.selectDataRange'), trigger: 'change' }
] ]
} }
} }

View File

@ -163,29 +163,29 @@ export default {
levelRules() { levelRules() {
return { return {
level1: [ level1: [
{ required: true, message: this.$t('map.speedLevelEnter1'), trigger: 'change' } { required: true, message: this.$t('rules.speedLevelEnter1'), trigger: 'change' }
], ],
level2: [ level2: [
{ required: true, message: this.$t('map.speedLevelEnter2'), trigger: 'change' } { required: true, message: this.$t('rules.speedLevelEnter2'), trigger: 'change' }
], ],
level3: [ level3: [
{ required: true, message: this.$t('map.speedLevelEnter3'), trigger: 'change' } { required: true, message: this.$t('rules.speedLevelEnter3'), trigger: 'change' }
], ],
level4: [ level4: [
{ required: true, message: this.$t('map.speedLevelEnter4'), trigger: 'change' } { required: true, message: this.$t('rules.speedLevelEnter4'), trigger: 'change' }
] ]
}; };
}, },
chartRules() { chartRules() {
return { return {
name: [ name: [
{ required: true, message: this.$t('map.nameEnter'), trigger: 'blur' } { required: true, message: this.$t('rules.pleaseInputName'), trigger: 'blur' }
], ],
direct: [ direct: [
{ required: true, message: this.$t('map.drivingDirectionSelect'), trigger: 'change' } { required: true, message: this.$t('rules.drivingDirectionSelect'), trigger: 'change' }
], ],
timeInterval: [ timeInterval: [
{ required: true, message: this.$t('map.timeBetweenDeparturesEnter'), trigger: 'blur' } { required: true, message: this.$t('rules.timeBetweenDeparturesEnter'), trigger: 'blur' }
], ],
startTime: [ startTime: [
{ required: true, message: this.$t('global.enterStartTime'), trigger: 'blur' } { required: true, message: this.$t('global.enterStartTime'), trigger: 'blur' }
@ -194,13 +194,13 @@ export default {
{ required: true, message: this.$t('global.enterEndTime'), trigger: 'blur' } { required: true, message: this.$t('global.enterEndTime'), trigger: 'blur' }
], ],
parkingTime: [ parkingTime: [
{ required: true, message: this.$t('map.stopTimeEnter'), trigger: 'blur' } { required: true, message: this.$t('rules.stopTimeEnter'), trigger: 'blur' }
], ],
entrance: [ entrance: [
{ required: true, message: this.$t('map.entranceStationSelect'), trigger: 'change' } { required: true, message: this.$t('rules.entranceStationSelect'), trigger: 'change' }
], ],
exit: [ exit: [
{ required: true, message: this.$t('map.exportStationSelect'), trigger: 'change' } { required: true, message: this.$t('rules.exportStationSelect'), trigger: 'change' }
] ]
}; };
} }

View File

@ -36,7 +36,7 @@ export default {
rules() { rules() {
return { return {
filename: [ filename: [
{ required: true, message: this.$t('map.selectImportFiles'), trigger: 'change' } { required: true, message: this.$t('rules.selectImportFiles'), trigger: 'change' }
] ]
}; };
} }
@ -57,7 +57,7 @@ export default {
if (file) { if (file) {
const loading = this.$loading({ const loading = this.$loading({
lock: true, lock: true,
text: this.$t('map.underImport'), text: this.$t('tip.underImport'),
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}); });

View File

@ -129,7 +129,7 @@ export default {
const loading = this.$loading({ const loading = this.$loading({
lock: true, lock: true,
visible: true, visible: true,
text: this.$t('map.underImport'), text: this.$t('tip.underImport'),
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}); });

View File

@ -71,7 +71,7 @@ export default {
{ prop: 'code', label: this.$t('map.skinCoding'), type: 'text', required: false, disabled: this.isDisabled }, { prop: 'code', label: this.$t('map.skinCoding'), type: 'text', required: false, disabled: this.isDisabled },
{ prop: 'name', label: this.$t('map.skinDesignation'), type: 'text', required: false }, { prop: 'name', label: this.$t('map.skinDesignation'), type: 'text', required: false },
{ prop: 'origin', label: this.$t('map.coordinatesOrigin'), type: 'point', required: false }, { prop: 'origin', label: this.$t('map.coordinatesOrigin'), type: 'point', required: false },
{ prop: 'scaling', label: this.$t('map.scaling'), type: 'number', required: false, message: this.$t('map.maxScaling') } { prop: 'scaling', label: this.$t('map.scaling'), type: 'number', required: false, message: this.$t('rules.maxScaling') }
] ]
}; };
return form; return form;
@ -80,22 +80,22 @@ export default {
rules() { rules() {
const baseRules = { const baseRules = {
code: [ code: [
{ required: true, message: this.$t('map.skinCodingInput'), trigger: 'blur' } { required: true, message: this.$t('rules.skinCodingInput'), trigger: 'blur' }
], ],
name: [ name: [
{ required: true, message: this.$t('map.skinDesignationInput'), trigger: 'blur' } { required: true, message: this.$t('rules.skinDesignationInput'), trigger: 'blur' }
], ],
origin: [ origin: [
{ required: true, message: this.$t('map.coordinatesOriginInput'), trigger: 'blur' } { required: true, message: this.$t('rules.coordinatesOriginInput'), trigger: 'blur' }
], ],
scaling: [ scaling: [
{ required: true, message: this.$t('map.scalingInput'), trigger: 'blur' }, { required: true, message: this.$t('rules.scalingInput'), trigger: 'blur' },
{ {
validator(rule, value, callback) { validator(rule, value, callback) {
if (Number(value) >= 1 && Number(value) <= 8) { if (Number(value) >= 1 && Number(value) <= 8) {
callback(); callback();
} else { } else {
callback(new Error(this.$t('map.scalingInputPrompt'))); callback(new Error(this.$t('rules.scalingInputPrompt')));
} }
}, },
trigger: 'blur' trigger: 'blur'
@ -151,7 +151,7 @@ export default {
this.$messageBox(this.$t('tip.creatingFailed')); this.$messageBox(this.$t('tip.creatingFailed'));
}); });
}).catch(() => { }).catch(() => {
this.$messageBox(this.$t('map.skinCodingExist')); this.$messageBox(this.$t('tip.skinCodingExist'));
}); });
}); });
}, },

View File

@ -103,7 +103,7 @@ export default {
this.$router.push(`${UrlConfig.map.skinCodeDraft}/edit/${row.id}`); this.$router.push(`${UrlConfig.map.skinCodeDraft}/edit/${row.id}`);
}, },
handleDelete(index, row) { handleDelete(index, row) {
this.$confirm(this.$t('map.skinDeleteConfirmation'), this.$t('tip.hint'), { this.$confirm(this.$t('tip.skinDeleteConfirmation'), this.$t('tip.hint'), {
confirmButtonText: this.$t('tip.confirm'), confirmButtonText: this.$t('tip.confirm'),
cancelButtonText: this.$t('tip.cancel'), cancelButtonText: this.$t('tip.cancel'),
type: 'warning' type: 'warning'

View File

@ -74,7 +74,7 @@ export default {
{ prop: 'code', label: this.$t('map.skinCoding'), type: 'text', required: false, disabled: this.isDisabled }, { prop: 'code', label: this.$t('map.skinCoding'), type: 'text', required: false, disabled: this.isDisabled },
{ prop: 'name', label: this.$t('map.skinDesignation'), type: 'text', required: false }, { prop: 'name', label: this.$t('map.skinDesignation'), type: 'text', required: false },
{ prop: 'origin', label: this.$t('map.coordinatesOrigin'), type: 'point', required: false }, { prop: 'origin', label: this.$t('map.coordinatesOrigin'), type: 'point', required: false },
{ prop: 'scaling', label: this.$t('map.scaling'), type: 'number', required: false, message: this.$t('map.maxScaling') }, { prop: 'scaling', label: this.$t('map.scaling'), type: 'number', required: false, message: this.$t('rules.maxScaling') },
{ prop: 'linkWidth', label: this.$t('map.linkWidth'), type: 'number', required: false, message: this.$t('map.maxLinkWidth') }, { prop: 'linkWidth', label: this.$t('map.linkWidth'), type: 'number', required: false, message: this.$t('map.maxLinkWidth') },
{ prop: 'zoneWidth', label: this.$t('map.sectionWidth'), type: 'number', required: false, message: this.$t('map.maxSectionWidth') }, { prop: 'zoneWidth', label: this.$t('map.sectionWidth'), type: 'number', required: false, message: this.$t('map.maxSectionWidth') },
{ prop: 'watermarkShow', label: this.$t('map.showWatermarkOrNot'), type: 'radio', required: false, options: this.$ConstSelect.Whether } { prop: 'watermarkShow', label: this.$t('map.showWatermarkOrNot'), type: 'radio', required: false, options: this.$ConstSelect.Whether }
@ -86,55 +86,55 @@ export default {
rules() { rules() {
const baseRules = { const baseRules = {
code: [ code: [
{ required: true, message: this.$t('map.skinCodingInput'), trigger: 'blur' } { required: true, message: this.$t('rules.skinCodingInput'), trigger: 'blur' }
], ],
name: [ name: [
{ required: true, message: this.$t('map.skinDesignationInput'), trigger: 'blur' } { required: true, message: this.$t('rules.skinDesignationInput'), trigger: 'blur' }
], ],
origin: [ origin: [
{ required: true, message: this.$t('map.coordinatesOriginInput'), trigger: 'blur' } { required: true, message: this.$t('rules.coordinatesOriginInput'), trigger: 'blur' }
], ],
scaling: [ scaling: [
{ required: true, message: this.$t('map.scalingInput'), trigger: 'blur' }, { required: true, message: this.$t('rules.scalingInput'), trigger: 'blur' },
{ {
validator(rule, value, callback) { validator(rule, value, callback) {
if (Number(value) >= 1 && Number(value) <= 8) { if (Number(value) >= 1 && Number(value) <= 8) {
callback(); callback();
} else { } else {
callback(new Error(this.$t('map.scalingInputPrompt'))); callback(new Error(this.$t('rules.scalingInputPrompt')));
} }
}, },
trigger: 'blur' trigger: 'blur'
} }
], ],
linkWidth: [ linkWidth: [
{ required: true, message: this.$t('map.linkWidthInput'), trigger: 'blur' }, { required: true, message: this.$t('rules.linkWidthInput'), trigger: 'blur' },
{ {
validator(rule, value, callback) { validator(rule, value, callback) {
if (Number.isInteger(Number(value)) && Number(value) >= 5 && Number(value) <= 20) { if (Number.isInteger(Number(value)) && Number(value) >= 5 && Number(value) <= 20) {
callback(); callback();
} else { } else {
callback(new Error(this.$t('map.linkWidthInputPrompt'))); callback(new Error(this.$t('rules.linkWidthInputPrompt')));
} }
}, },
trigger: 'blur' trigger: 'blur'
} }
], ],
zoneWidth: [ zoneWidth: [
{ required: true, message: this.$t('map.sectionWidthInput'), trigger: 'blur' }, { required: true, message: this.$t('rules.sectionWidthInput'), trigger: 'blur' },
{ {
validator(rule, value, callback) { validator(rule, value, callback) {
if (Number.isInteger(Number(value)) && Number(value) >= 5 && Number(value) <= 30) { if (Number.isInteger(Number(value)) && Number(value) >= 5 && Number(value) <= 30) {
callback(); callback();
} else { } else {
callback(new Error(this.$t('map.sectionWidthInputPrompt'))); callback(new Error(this.$t('rules.sectionWidthInputPrompt')));
} }
}, },
trigger: 'blur' trigger: 'blur'
} }
], ],
watermarkShow: [ watermarkShow: [
{ required: true, message: this.$t('map.selectShowWatermark'), trigger: 'change' } { required: true, message: this.$t('rules.selectShowWatermark'), trigger: 'change' }
] ]
}; };
@ -189,7 +189,7 @@ export default {
this.$messageBox(this.$t('tip.creatingFailed')); this.$messageBox(this.$t('tip.creatingFailed'));
}); });
}).catch(() => { }).catch(() => {
this.$messageBox(this.$t('map.skinCodingExist')); this.$messageBox(this.$t('tip.skinCodingExist'));
}); });
}); });
}, },

View File

@ -120,7 +120,7 @@ export default {
this.$router.push(`${UrlConfig.map.skinCodeDraft}/edit/${row.id}`); this.$router.push(`${UrlConfig.map.skinCodeDraft}/edit/${row.id}`);
}, },
handleDelete(index, row) { handleDelete(index, row) {
this.$confirm(this.$t('map.skinDeleteConfirmation'), this.$t('tip.hint'), { this.$confirm(this.$t('tip.skinDeleteConfirmation'), this.$t('tip.hint'), {
confirmButtonText: this.$t('tip.confirm'), confirmButtonText: this.$t('tip.confirm'),
cancelButtonText: this.$t('tip.cancel'), cancelButtonText: this.$t('tip.cancel'),
type: 'warning' type: 'warning'

View File

@ -171,7 +171,7 @@ export default {
this.$messageBox(this.$t('tip.packagingFailed')); this.$messageBox(this.$t('tip.packagingFailed'));
}); });
} else { } else {
this.$messageBox(this.$t('orderAuthor.selectPackagingRecord')); this.$messageBox(this.$t('tip.selectPackagingRecord'));
} }
}, },
qrCodeShow() { qrCodeShow() {