diff --git a/crmeb/app/services/system/lang/LangCountryServices.php b/crmeb/app/services/system/lang/LangCountryServices.php index b1f5736ab..d7c062f63 100644 --- a/crmeb/app/services/system/lang/LangCountryServices.php +++ b/crmeb/app/services/system/lang/LangCountryServices.php @@ -57,12 +57,16 @@ class LangCountryServices extends BaseServices { if ($id) $info = $this->dao->get($id); $field = []; - $field[] = Form::input('name', '所属地区', $info['name'] ?? '')->required('请填写所属地区'); + $field[] = Form::input('name', '所属地区', $info['name'] ?? '')->required('请填写所属地区')->appendRule('suffix', [ + 'type' => 'div', + 'class' => 'tips-info', + 'domProps' => ['innerHTML' => '例如:中国、香港、德国'] + ]); $field[] = Form::input('code', '语言识别码', $info['code'] ?? '')->required('请填写浏览器语言识别码')->appendRule('suffix', [ 'type' => 'div', 'class' => 'tips-info', 'domProps' => ['innerHTML' => '浏览器语言识别码'] - ]);; + ]); /** @var LangTypeServices $langTypeServices */ $langTypeServices = app()->make(LangTypeServices::class); $list = $langTypeServices->getColumn(['is_del' => 0, 'status' => 1], 'language_name,file_name,id', 'id'); @@ -73,7 +77,11 @@ class LangCountryServices extends BaseServices } return $menus; }; - $field[] = Form::select('type_id', '语言类型', $info['type_id'] ?? 0)->setOptions(Form::setOptions($setOption))->filterable(true); + $field[] = Form::select('type_id', '关联语言', $info['type_id'] ?? 0)->setOptions(Form::setOptions($setOption))->filterable(true)->appendRule('suffix', [ + 'type' => 'div', + 'class' => 'tips-info', + 'domProps' => ['innerHTML' => '请选择关联语言,语言类型是由您自行添加的'] + ]); return create_form($id ? '修改语言地区' : '新增语言地区', $field, Url::buildUrl('/setting/lang_country/save/' . $id), 'POST'); } diff --git a/crmeb/app/services/system/lang/LangTypeServices.php b/crmeb/app/services/system/lang/LangTypeServices.php index 2b7d77a4e..a1d65bc7a 100644 --- a/crmeb/app/services/system/lang/LangTypeServices.php +++ b/crmeb/app/services/system/lang/LangTypeServices.php @@ -46,7 +46,11 @@ class LangTypeServices extends BaseServices if ($id) $info = $this->dao->get($id); $field = []; $field[] = Form::input('language_name', '语言名称', $info['language_name'] ?? '')->required('请填写语言名称'); - $field[] = Form::input('file_name', '语言标识', $info['file_name'] ?? '')->required('请填写语言标识'); + $field[] = Form::input('file_name', '语言标识', $info['file_name'] ?? '')->required('请填写语言标识')->appendRule('suffix', [ + 'type' => 'div', + 'class' => 'tips-info', + 'domProps' => ['innerHTML' => '请选择或输入浏览器标识'] + ]); $field[] = Form::radio('is_default', '是否默认', $info['is_default'] ?? 0)->options([['label' => '开启', 'value' => 1], ['label' => '关闭', 'value' => 0]]); $field[] = Form::radio('status', '状态', $info['status'] ?? 1)->options([['label' => '开启', 'value' => 1], ['label' => '关闭', 'value' => 0]]); return create_form($id ? '修改语言类型' : '新增语言类型', $field, Url::buildUrl('/setting/lang_type/save/' . $id), 'POST'); @@ -128,4 +132,4 @@ class LangTypeServices extends BaseServices $this->setDefaultLangName(); return true; } -} \ No newline at end of file +}