8282 </template >
8383 </el-input >
8484 </el-form-item >
85+ <el-form-item :label =" $t('setting.systemIP')" prop =" systemIP" >
86+ <el-input disabled v-if =" form.systemIP" v-model =" form.systemIP" >
87+ <template #append >
88+ <el-button @click =" onChangeSystemIP" icon =" Setting" >
89+ {{ $t('commons.button.set') }}
90+ </el-button >
91+ </template >
92+ </el-input >
93+ <el-input disabled v-if =" !form.systemIP" v-model =" unset" >
94+ <template #append >
95+ <el-button @click =" onChangeSystemIP" icon =" Setting" >
96+ {{ $t('commons.button.set') }}
97+ </el-button >
98+ </template >
99+ </el-input >
100+ </el-form-item >
85101 <el-form-item :label =" $t('setting.syncTime')" >
86102 <el-input disabled v-model =" form.localTime" >
87103 <template #append >
100116 <Password ref =" passwordRef" />
101117 <UserName ref =" userNameRef" />
102118 <PanelName ref =" panelNameRef" @search =" search()" />
119+ <SystemIP ref =" systemIPRef" @search =" search()" />
103120 <Timeout ref =" timeoutRef" @search =" search()" />
104121 <TimeZone ref =" timezoneRef" @search =" search()" />
105122 <Ntp ref =" ntpRef" @search =" search()" />
@@ -118,6 +135,7 @@ import Password from '@/views/setting/panel/password/index.vue';
118135import UserName from ' @/views/setting/panel/username/index.vue' ;
119136import Timeout from ' @/views/setting/panel/timeout/index.vue' ;
120137import PanelName from ' @/views/setting/panel/name/index.vue' ;
138+ import SystemIP from ' @/views/setting/panel/systemip/index.vue' ;
121139import TimeZone from ' @/views/setting/panel/timezone/index.vue' ;
122140import Ntp from ' @/views/setting/panel/ntp/index.vue' ;
123141
@@ -136,6 +154,7 @@ const form = reactive({
136154 timeZone: ' ' ,
137155 ntpSite: ' ' ,
138156 panelName: ' ' ,
157+ systemIP: ' ' ,
139158 theme: ' ' ,
140159 language: ' ' ,
141160 complexityVerification: ' ' ,
@@ -146,9 +165,11 @@ const show = ref();
146165const userNameRef = ref ();
147166const passwordRef = ref ();
148167const panelNameRef = ref ();
168+ const systemIPRef = ref ();
149169const timeoutRef = ref ();
150170const ntpRef = ref ();
151171const timezoneRef = ref ();
172+ const unset = ref (i18n .t (' setting.unSetting' ));
152173
153174const search = async () => {
154175 const res = await getSettingInfo ();
@@ -159,6 +180,7 @@ const search = async () => {
159180 form .timeZone = res .data .timeZone ;
160181 form .ntpSite = res .data .ntpSite ;
161182 form .panelName = res .data .panelName ;
183+ form .systemIP = res .data .systemIP ;
162184 form .theme = res .data .theme ;
163185 form .language = res .data .language ;
164186 form .complexityVerification = res .data .complexityVerification ;
@@ -176,6 +198,9 @@ const onChangeTitle = () => {
176198const onChangeTimeout = () => {
177199 timeoutRef .value .acceptParams ({ sessionTimeout: form .sessionTimeout });
178200};
201+ const onChangeSystemIP = () => {
202+ systemIPRef .value .acceptParams ({ systemIP: form .systemIP });
203+ };
179204const onChangeTimeZone = () => {
180205 timezoneRef .value .acceptParams ({ timeZone: form .timeZone });
181206};
0 commit comments