account mgmt

This commit is contained in:
MaxKey 2021-11-06 21:45:46 +08:00
parent bdaf0ac7ee
commit 86aa0f9ed9
10 changed files with 73 additions and 27 deletions

View File

@ -141,6 +141,9 @@ public class Apps extends JpaBaseEntity implements Serializable {
@Column @Column
private String adapter; private String adapter;
@Column
protected int accountMgmt;
protected Accounts appUser; protected Accounts appUser;
@Column @Column
protected int sortIndex; protected int sortIndex;
@ -583,6 +586,14 @@ public class Apps extends JpaBaseEntity implements Serializable {
this.adapterName = adapterName; this.adapterName = adapterName;
} }
public int getAccountMgmt() {
return accountMgmt;
}
public void setAccountMgmt(int accountMgmt) {
this.accountMgmt = accountMgmt;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();

View File

@ -21,6 +21,10 @@
<if test="vendor != null and vendor != ''"> <if test="vendor != null and vendor != ''">
and vendor = #{vendor} and vendor = #{vendor}
</if> </if>
<if test="accountMgmt == 1 or accountMgmt == 2">
and accountmgmt = #{accountMgmt}
</if>
</sql> </sql>
@ -67,6 +71,7 @@
principal, principal,
credentials, credentials,
accountmgmt,
visible, visible,
@ -108,6 +113,7 @@
#{principal}, #{principal},
#{credentials}, #{credentials},
#{accountMgmt},
#{visible}, #{visible},
@ -156,6 +162,7 @@
</if> </if>
principal = #{principal}, principal = #{principal},
credentials = #{credentials}, credentials = #{credentials},
accountmgmt = #{accountMgmt},
visible = #{visible}, visible = #{visible},
sortindex = #{sortIndex}, sortindex = #{sortIndex},

View File

@ -33,6 +33,7 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
@ -48,8 +49,14 @@ public class ApplicationsController extends BaseAppContorller {
} }
@RequestMapping(value={"/select"}) @RequestMapping(value={"/select"})
public ModelAndView select(){ public ModelAndView select(@RequestParam(name="accountMgmt",required=false) String accountMgmt){
return new ModelAndView("apps/selectAppsList"); ModelAndView modelAndView=new ModelAndView("apps/selectAppsList");
if(accountMgmt != null) {
modelAndView.addObject("accountMgmt", accountMgmt);
}else {
modelAndView.addObject("accountMgmt", 3);
}
return modelAndView;
} }

View File

@ -313,6 +313,7 @@ apps.extendAttr.parameter.type=\u7c7b\u578b
apps.extendAttr.parameter.value=\u503c apps.extendAttr.parameter.value=\u503c
apps.principal=\u51ed\u8bc1 apps.principal=\u51ed\u8bc1
apps.credentials=\u79d8\u94a5 apps.credentials=\u79d8\u94a5
apps.accountMgmt=\u8D26\u53F7\u7BA1\u7406
#adapter #adapter
apps.adapter.name=\u540D\u79F0 apps.adapter.name=\u540D\u79F0
apps.adapter.adapter=\u9002\u914D\u5668 apps.adapter.adapter=\u9002\u914D\u5668

View File

@ -316,6 +316,7 @@ apps.extendAttr.parameter.type=type
apps.extendAttr.parameter.value=value apps.extendAttr.parameter.value=value
apps.principal=principal apps.principal=principal
apps.credentials=credentials apps.credentials=credentials
apps.accountMgmt=AccountMgmt
#adapter #adapter
apps.adapter.name=name apps.adapter.name=name

View File

@ -315,7 +315,7 @@ apps.extendAttr.parameter.type=\u7c7b\u578b
apps.extendAttr.parameter.value=\u503c apps.extendAttr.parameter.value=\u503c
apps.principal=\u51ed\u8bc1 apps.principal=\u51ed\u8bc1
apps.credentials=\u79d8\u94a5 apps.credentials=\u79d8\u94a5
apps.accountMgmt=\u8D26\u53F7\u7BA1\u7406
apps.adapter.name=\u540D\u79F0 apps.adapter.name=\u540D\u79F0
apps.adapter.adapter=\u9002\u914D\u5668 apps.adapter.adapter=\u9002\u914D\u5668
apps.adapter.protocol=\u534F\u8BAE apps.adapter.protocol=\u534F\u8BAE

View File

@ -73,7 +73,7 @@
</td> </td>
<td> <td>
<input class="button btn btn-primary mr-3 window" type="button" id="selectAppsubmitBtn" value="<@locale code="button.text.select" />" <input class="button btn btn-primary mr-3 window" type="button" id="selectAppsubmitBtn" value="<@locale code="button.text.select" />"
wurl="<@base/>/apps/select" wurl="<@base/>/apps/select?accountMgmt=1"
wwidth="800" wwidth="800"
wheight="620" wheight="620"
target="window"/> target="window"/>

View File

@ -31,8 +31,17 @@
</tr> </tr>
<tr> <tr>
<th><@locale code="apps.logoutUrl"/></th> <th><@locale code="apps.logoutUrl"/></th>
<td colspan="3">
<input type="text" class="form-control" id="logoutUrl" name="logoutUrl" size="100" title="" value="" required="" />
</td>
</tr>
<tr>
<th><@locale code="apps.accountMgmt"/></th>
<td> <td>
<input type="text" id="logoutUrl" class="form-control" name="logoutUrl" title="" value=""/> <select id="accountMgmt" name="accountMgmt" class="form-control form-select" >
<option value="1" ><@locale code="common.text.status.enabled"/></option>
<option value="2" selected ><@locale code="common.text.status.disabled"/></option>
</select>
</td> </td>
<th><@locale code="apps.logoutType"/></th> <th><@locale code="apps.logoutType"/></th>
<td> <td>

View File

@ -31,8 +31,17 @@
</tr> </tr>
<tr> <tr>
<th><@locale code="apps.logoutUrl"/></th> <th><@locale code="apps.logoutUrl"/></th>
<td colspan="3">
<input type="text" class="form-control" id="logoutUrl" name="logoutUrl" title="" value="${model.logoutUrl!}" required="" />
</td>
</tr>
<tr>
<th><@locale code="apps.accountMgmt"/></th>
<td> <td>
<input type="text" id="logoutUrl" class="form-control" name="logoutUrl" title="" value="${model.logoutUrl!}"/> <select id="accountMgmt" name="accountMgmt" class="form-control form-select" >
<option value="1" <#if 1==model.accountMgmt!>selected</#if> ><@locale code="common.text.status.enabled"/></option>
<option value="2" <#if 2==model.accountMgmt!>selected</#if> ><@locale code="common.text.status.disabled"/></option>
</select>
</td> </td>
<th><@locale code="apps.logoutType"/></th> <th><@locale code="apps.logoutType"/></th>
<td> <td>

View File

@ -31,6 +31,7 @@
<td width="300px" nowrap> <td width="300px" nowrap>
<form id="basic_search_form"> <form id="basic_search_form">
<input type="text" class="form-control" name="name" > <input type="text" class="form-control" name="name" >
<input type="hidden" class="form-control" name="accountMgmt" value="${accountMgmt}">
</form> </form>
</td> </td>
<td colspan="2"> <td colspan="2">