mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 17:38:32 +08:00
account mgmt
This commit is contained in:
parent
bdaf0ac7ee
commit
86aa0f9ed9
@ -141,6 +141,9 @@ public class Apps extends JpaBaseEntity implements Serializable {
|
||||
@Column
|
||||
private String adapter;
|
||||
|
||||
@Column
|
||||
protected int accountMgmt;
|
||||
|
||||
protected Accounts appUser;
|
||||
@Column
|
||||
protected int sortIndex;
|
||||
@ -583,6 +586,14 @@ public class Apps extends JpaBaseEntity implements Serializable {
|
||||
this.adapterName = adapterName;
|
||||
}
|
||||
|
||||
public int getAccountMgmt() {
|
||||
return accountMgmt;
|
||||
}
|
||||
|
||||
public void setAccountMgmt(int accountMgmt) {
|
||||
this.accountMgmt = accountMgmt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
|
||||
@ -21,6 +21,10 @@
|
||||
<if test="vendor != null and vendor != ''">
|
||||
and vendor = #{vendor}
|
||||
</if>
|
||||
<if test="accountMgmt == 1 or accountMgmt == 2">
|
||||
and accountmgmt = #{accountMgmt}
|
||||
</if>
|
||||
|
||||
</sql>
|
||||
|
||||
|
||||
@ -67,6 +71,7 @@
|
||||
|
||||
principal,
|
||||
credentials,
|
||||
accountmgmt,
|
||||
|
||||
visible,
|
||||
|
||||
@ -108,6 +113,7 @@
|
||||
|
||||
#{principal},
|
||||
#{credentials},
|
||||
#{accountMgmt},
|
||||
|
||||
#{visible},
|
||||
|
||||
@ -156,6 +162,7 @@
|
||||
</if>
|
||||
principal = #{principal},
|
||||
credentials = #{credentials},
|
||||
accountmgmt = #{accountMgmt},
|
||||
visible = #{visible},
|
||||
sortindex = #{sortIndex},
|
||||
|
||||
|
||||
@ -33,6 +33,7 @@ import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
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.servlet.ModelAndView;
|
||||
|
||||
@ -48,8 +49,14 @@ public class ApplicationsController extends BaseAppContorller {
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/select"})
|
||||
public ModelAndView select(){
|
||||
return new ModelAndView("apps/selectAppsList");
|
||||
public ModelAndView select(@RequestParam(name="accountMgmt",required=false) String accountMgmt){
|
||||
ModelAndView modelAndView=new ModelAndView("apps/selectAppsList");
|
||||
if(accountMgmt != null) {
|
||||
modelAndView.addObject("accountMgmt", accountMgmt);
|
||||
}else {
|
||||
modelAndView.addObject("accountMgmt", 3);
|
||||
}
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -313,6 +313,7 @@ apps.extendAttr.parameter.type=\u7c7b\u578b
|
||||
apps.extendAttr.parameter.value=\u503c
|
||||
apps.principal=\u51ed\u8bc1
|
||||
apps.credentials=\u79d8\u94a5
|
||||
apps.accountMgmt=\u8D26\u53F7\u7BA1\u7406
|
||||
#adapter
|
||||
apps.adapter.name=\u540D\u79F0
|
||||
apps.adapter.adapter=\u9002\u914D\u5668
|
||||
|
||||
@ -316,6 +316,7 @@ apps.extendAttr.parameter.type=type
|
||||
apps.extendAttr.parameter.value=value
|
||||
apps.principal=principal
|
||||
apps.credentials=credentials
|
||||
apps.accountMgmt=AccountMgmt
|
||||
|
||||
#adapter
|
||||
apps.adapter.name=name
|
||||
|
||||
@ -315,7 +315,7 @@ apps.extendAttr.parameter.type=\u7c7b\u578b
|
||||
apps.extendAttr.parameter.value=\u503c
|
||||
apps.principal=\u51ed\u8bc1
|
||||
apps.credentials=\u79d8\u94a5
|
||||
|
||||
apps.accountMgmt=\u8D26\u53F7\u7BA1\u7406
|
||||
apps.adapter.name=\u540D\u79F0
|
||||
apps.adapter.adapter=\u9002\u914D\u5668
|
||||
apps.adapter.protocol=\u534F\u8BAE
|
||||
|
||||
@ -73,7 +73,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<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"
|
||||
wheight="620"
|
||||
target="window"/>
|
||||
|
||||
@ -31,8 +31,17 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
<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>
|
||||
<th><@locale code="apps.logoutType"/></th>
|
||||
<td>
|
||||
|
||||
@ -31,8 +31,17 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
<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>
|
||||
<th><@locale code="apps.logoutType"/></th>
|
||||
<td>
|
||||
|
||||
@ -31,6 +31,7 @@
|
||||
<td width="300px" nowrap>
|
||||
<form id="basic_search_form">
|
||||
<input type="text" class="form-control" name="name" >
|
||||
<input type="hidden" class="form-control" name="accountMgmt" value="${accountMgmt}">
|
||||
</form>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user