@@ -200,7 +203,7 @@
@@ -217,14 +220,14 @@
@@ -235,10 +238,10 @@
label-width="auto"
:rules="areaRules"
>
-
+
-
+
@@ -380,7 +383,7 @@ loadTreeData(true)
const customTreeData = ref([
{
id: '000',
- name: '自定义地理区域'
+ name: t('system.custom_area')
}
])
const customAreaDialog = ref(false)
@@ -428,11 +431,12 @@ const editCustomArea = (data?) => {
customAreaDialog.value = true
}
const deleteCustomArea = data => {
- ElMessageBox.confirm('该操作会导致使用了自定义区域的地图无法正常展示,确定删除?', '', {
+ ElMessageBox.confirm(t('system.delete_custom_area_tip'), '', {
type: 'warning',
confirmButtonType: 'danger',
customClass: 'area-delete-dialog',
- autofocus: false
+ autofocus: false,
+ confirmButtonText: t('common.delete')
})
.then(async () => {
await deleteCustomGeoArea(data.id)
@@ -506,14 +510,14 @@ const subAreaList = ref([])
const subAreaFormRef = ref()
const areaRules = reactive({
name: [
- { type: 'string', required: true, message: '请输入名称', trigger: 'change' },
- { min: 1, max: 50, message: '名称长度为 1~50 格字符', trigger: 'blur' }
+ { type: 'string', required: true, message: t('common.input_name'), trigger: 'change' },
+ { min: 1, max: 50, message: t('common.input_limit', [1, 50]), trigger: 'blur' }
],
scopeArr: [
{
type: 'array',
required: true,
- message: '请选择区域',
+ message: t('system.please_select_area'),
trigger: 'change'
}
]
@@ -545,11 +549,12 @@ const saveGeoSubArea = async () => {
})
}
const deleteCustomSubArea = async data => {
- ElMessageBox.confirm('确定删除该自定义区域?', '', {
+ ElMessageBox.confirm(t('system.delete_custom_sub_area_tip'), '', {
type: 'warning',
confirmButtonType: 'danger',
customClass: 'area-delete-dialog',
- autofocus: false
+ autofocus: false,
+ confirmButtonText: t('common.delete')
})
.then(async () => {
await deleteCustomGeoSubArea(data.id)