-
坐标文件
+
+ {{ t('system.coordinate_file') }}
+
{{ selectedData.geoJson }}
@@ -145,7 +151,7 @@ const handleNodeClick = async (data: Tree) => {
}
}
const delHandler = data => {
- ElMessageBox.confirm('确定删除此节点吗', {
+ ElMessageBox.confirm(t('system.delete_this_node'), {
confirmButtonType: 'danger',
type: 'warning',
confirmButtonText: t('common.delete'),
diff --git a/core/core-frontend/src/views/system/parameter/map/GeometryEdit.vue b/core/core-frontend/src/views/system/parameter/map/GeometryEdit.vue
index 2e4a6962f9..ac10726d57 100644
--- a/core/core-frontend/src/views/system/parameter/map/GeometryEdit.vue
+++ b/core/core-frontend/src/views/system/parameter/map/GeometryEdit.vue
@@ -39,9 +39,7 @@ const formatPid = computed(() => {
const pid = state.form.pid
return pid.replace(/(0+)$/g, '').replace(/\D/g, '')
})
-const codeTips = ref(
- '国家代码由三位数字组成,省、市、区县、乡镇代码由两位数字组成;非国家区域需要再后面补0'
-)
+const codeTips = ref(t('system.at_the_end'))
const pidChange = () => {
state.form.code = null
}
@@ -50,7 +48,7 @@ const validateCode = (_: any, value: any, callback: any) => {
if (isCountry) {
const reg = /^[0-9]\d{2}$/
if (!reg.test(value) || value === '000') {
- const msg = '请输入非0的三位数字'
+ const msg = t('system.non_zero_three_digit_number')
callback(new Error(msg))
} else {
callback()
@@ -59,7 +57,7 @@ const validateCode = (_: any, value: any, callback: any) => {
const fullValue = formatPid.value + value
const reg = /^[1-9](\d{8}|\d{10})$/
if (!reg.test(fullValue)) {
- const msg = '请输入9或11位数字'
+ const msg = t('system.or_11_digits')
callback(new Error(msg))
} else {
callback()
@@ -157,7 +155,7 @@ const handleExceed: UploadProps['onExceed'] = () => {
ElMessage.warning(t('userimport.exceedMsg'))
}
const handleError = () => {
- ElMessage.warning('执行失败请联系管理员')
+ ElMessage.warning(t('system.contact_the_administrator'))
}
const setFile = (options: UploadRequestOptions) => {
geoFile.value = options.file
@@ -166,12 +164,12 @@ const setFile = (options: UploadRequestOptions) => {
const uploadValidate = file => {
const suffix = file.name.substring(file.name.lastIndexOf('.') + 1)
if (suffix !== 'json') {
- ElMessage.warning('只能上传json文件')
+ ElMessage.warning(t('system.upload_json_files'))
return false
}
if (file.size / 1024 / 1024 > 200) {
- ElMessage.warning('最大上传200M')
+ ElMessage.warning(t('system.maximum_upload_200m'))
return false
}
return true
@@ -191,7 +189,7 @@ defineExpose({
-
+
-
+
- 区域代码
+ {{ t('system.region_code') }}
-
+
-
+