diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index 2d0497b0f8..bb75213b35 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -3376,6 +3376,7 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr empty_desc: 'Please enter information on the left and save' }, setting_basic: { + third_platform_settings: 'Third-party platform settings', autoCreateUser: 'Third party automatically creates users', dsIntervalTime: 'Data source detection time interval', dsExecuteTime: 'Data source detection frequency', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index 4ad52b455e..f8de51bbbb 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -3290,13 +3290,14 @@ export default { empty_desc: '請在左側輸入訊息然後儲存' }, setting_basic: { + third_platform_settings: '第三方平台設置', autoCreateUser: '第三方自動建立使用者', dsIntervalTime: '資料來源偵測時間間隔', dsExecuteTime: '資料來源偵測頻率', - frontTimeOut: '請求超時時間(秒)', - logLiveTime: '操作日誌保留時間(天)', - thresholdLogLiveTime: '閾值警告記錄保留時間(天)', - exportFileLiveTime: '後台匯出檔案保留時間(天)', + frontTimeOut: '請求超時時間 (秒)', + logLiveTime: '操作日誌保留時間 (天)', + thresholdLogLiveTime: '閾值警告記錄保留時間 (天)', + exportFileLiveTime: '後台匯出檔案保留時間 (天)', platformOid: '第三方平台使用者組織', platformRid: '第三方平台使用者角色', pwdStrategy: '開啟密碼策略', @@ -3308,8 +3309,8 @@ export default { defaultSort: '資源預設排序方式', defaultOpen: '頁面開啟方式', loginLimit: '限制登入', - loginLimitRate: '限制登入失敗次數(次)', - loginLimitTime: '限制登入失敗時間(分)' + loginLimitRate: '限制登入失敗次數 (次)', + loginLimitTime: '限制登入失敗時間 (分)' }, resource_sort: { time_asc: '按建立時間升序', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 14a99cc653..13b331bbff 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -3292,13 +3292,14 @@ export default { empty_desc: '请在左侧输入信息然后保存' }, setting_basic: { + third_platform_settings: '第三方平台设置', autoCreateUser: '第三方自动创建用户', dsIntervalTime: '数据源检测时间间隔', dsExecuteTime: '数据源检测频率', - frontTimeOut: '请求超时时间(秒)', - logLiveTime: '操作日志保留时间(天)', - thresholdLogLiveTime: '阈值告警记录保留时间(天)', - exportFileLiveTime: '后台导出文件保留时间(天)', + frontTimeOut: '请求超时时间 (秒)', + logLiveTime: '操作日志保留时间 (天)', + thresholdLogLiveTime: '阈值告警记录保留时间 (天)', + exportFileLiveTime: '后台导出文件保留时间 (天)', platformOid: '第三方平台用户组织', platformRid: '第三方平台用户角色', pwdStrategy: '开启密码策略', @@ -3310,8 +3311,8 @@ export default { defaultSort: '资源默认排序方式', defaultOpen: '页面打开方式', loginLimit: '限制登录', - loginLimitRate: '限制登录失败次数(次)', - loginLimitTime: '限制登录失败时间(分)' + loginLimitRate: '限制登录失败次数 (次)', + loginLimitTime: '限制登录失败时间 (分)' }, resource_sort: { time_asc: '按创建时间升序', diff --git a/core/core-frontend/src/views/system/common/InfoTemplate.vue b/core/core-frontend/src/views/system/common/InfoTemplate.vue index f0e4c81d5a..18b7787dfc 100644 --- a/core/core-frontend/src/views/system/common/InfoTemplate.vue +++ b/core/core-frontend/src/views/system/common/InfoTemplate.vue @@ -223,6 +223,8 @@ formatLabel() } .info-template-container { padding: 24px 24px 0; + background: var(--ContentBG, #ffffff); + border-radius: 4px; .info-template-header { display: flex; margin-top: -4px; diff --git a/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue b/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue index 3b7bae9372..eb9706f911 100644 --- a/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue +++ b/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue @@ -113,6 +113,7 @@ const submitForm = async (formEl: FormInstance | undefined) => { const resetForm = (formEl: FormInstance | undefined) => { state.settingList = [] + settingList.value = [] if (!formEl) return formEl.resetFields() dialogVisible.value = false @@ -128,8 +129,19 @@ const showLoading = () => { const closeLoading = () => { loadingInstance.value?.close() } - -const edit = (list, orgOptions, roleOptions, loginOptions, sortOptions, openOptions) => { +const title = ref() +const settingList = ref([]) +const edit = ( + list, + orgOptions, + roleOptions, + loginOptions, + sortOptions, + openOptions, + titleVal, + settingListVal +) => { + title.value = titleVal state.orgOptions = orgOptions || [] state.roleOptions = roleOptions || [] state.loginOptions = loginOptions || [] @@ -185,6 +197,8 @@ const edit = (list, orgOptions, roleOptions, loginOptions, sortOptions, openOpti state.form[item['pkey']] = pval || state.form[item['pkey']] return item }) + + settingList.value = state.settingList.filter(ele => settingListVal.includes(ele.pkey)) dialogVisible.value = true } const loadRoleOptions = async () => { @@ -222,7 +236,7 @@ defineExpose({ ele.pkey.split('.')[1]) + ) + " /> ele.pkey.split('.')[1]) + ) + " + /> + + ele.pkey.split('.')[1]) + ) + " /> @@ -32,6 +57,7 @@ const { t } = useI18n() const editor = ref() const infoTemplate = ref() const loginTemplate = ref() +const thirdTemplate = ref() const showDefaultLogin = ref(false) const pvpOptions = [ { value: '0', label: t('commons.date.permanent') }, @@ -66,6 +92,12 @@ const loginSettings = [ 'setting_basic.loginLimitRate', 'setting_basic.loginLimitTime' ] + +const thirdSettings = [ + 'setting_basic.autoCreateUser', + 'setting_basic.platformOid', + 'setting_basic.platformRid' +] const state = reactive({ templateList: [] as SettingRecord[], orgOptions: [], @@ -109,11 +141,14 @@ const selectedRName = ref([]) const selectedPvp = ref('0') const baseInfoSettings = computed(() => - state.templateList.filter(item => !loginSettings.includes(item.pkey)) + state.templateList.filter(item => !loginSettings.concat(thirdSettings).includes(item.pkey)) +) + +const thirdInfoSettings = computed(() => + state.templateList.filter(item => thirdSettings.includes(item.pkey)) ) const loginInoSettings = computed(() => { const list = state.templateList.filter(item => loginSettings.includes(item.pkey)) - console.log(list) return list }) @@ -212,19 +247,22 @@ const refresh = () => { nextTick(() => { infoTemplate?.value.init() loginTemplate?.value.init() + thirdTemplate?.value.init() }) }) } refresh() -const edit = () => { +const edit = (val, arr) => { editor?.value.edit( cloneDeep(originData), cloneDeep(state.orgOptions), cloneDeep(state.roleOptions), cloneDeep(state.loginOptions), cloneDeep(state.sortOptions), - cloneDeep(state.openOptions) + cloneDeep(state.openOptions), + val, + arr ) } const loadOrgOptions = async () => { @@ -311,9 +349,6 @@ const resetDefaultLogin = () => { diff --git a/core/core-frontend/src/views/system/parameter/index.vue b/core/core-frontend/src/views/system/parameter/index.vue index 3310b521d7..bd1eb188fe 100644 --- a/core/core-frontend/src/views/system/parameter/index.vue +++ b/core/core-frontend/src/views/system/parameter/index.vue @@ -4,7 +4,10 @@ - + @@ -64,6 +67,9 @@ const addTable = tab => { overflow-y: auto; background: var(--ContentBG, #ffffff); border-radius: 4px; + &.basic-info_bg { + background: none; + } } .setting-max-h { height: 100% !important;