From: Xia Kaixiang Date: Fri, 5 Jul 2019 02:19:49 +0000 (+0800) Subject: 一些测试bug修改 X-Git-Tag: 1.0.0^2~114 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=6243388d70f32306457b8c0757420842ec225ec6;p=epayment%2Ffood_payapi.git 一些测试bug修改 --- diff --git a/config/application-devel-pg.properties b/config/application-devel-pg.properties index 11d486d2..057303b3 100644 --- a/config/application-devel-pg.properties +++ b/config/application-devel-pg.properties @@ -5,9 +5,11 @@ spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false # Postgresql settings spring.datasource.platform=postgresql -spring.datasource.url=jdbc:postgresql://172.28.201.70:15432/payapi +spring.datasource.url=jdbc:postgresql://172.28.201.70:15432/payapidev spring.datasource.username=payapi spring.datasource.password=123456 +spring.datasource.continue-on-error=true +#spring.datasource.initialization-mode=always # Redis settings redis.server=172.28.201.101 redis.port=16379 diff --git a/src/main/java/com/supwisdom/dlpay/framework/dao/RoleFunctionDao.java b/src/main/java/com/supwisdom/dlpay/framework/dao/RoleFunctionDao.java index d1f2d379..e125f7a9 100644 --- a/src/main/java/com/supwisdom/dlpay/framework/dao/RoleFunctionDao.java +++ b/src/main/java/com/supwisdom/dlpay/framework/dao/RoleFunctionDao.java @@ -18,11 +18,12 @@ public interface RoleFunctionDao extends JpaRepository { List findByRoleId(String roleId); - @Query(value = " select f.id||'' as id ,f.parentid||'' as pid,f.name,case when rf.id is null then 0 else 1 end as checked,case when f.parentid=-1 then 1 else 0 end as open from tb_function f " + + @Query(value = "select tt.id,tt.pid,tt.name,tt.checked,tt.open from " + + " ( select f.id||'' as id ,f.parentid||'' as pid,f.name,case when rf.id is null then 0 else 1 end as checked,case when f.parentid=-1 then 1 else 0 end as open from tb_function f " + " left join tb_role_function rf on rf.functionid = f.id and rf.roleid=?1 " + " union all " + " select r.id||'_res' as id,r.function_id||'' as pid,r.name,case when p.id is null then 0 else 1 end as checked,0 as open from tb_resource r " + - " left join tb_permission p on p.resid = r.id and p.roleid=?1 " , nativeQuery = true) + " left join tb_permission p on p.resid = r.id and p.roleid=?1 ) tt order by tt.id " , nativeQuery = true) List findByRoleIdNative(String roleId); void deleteByRoleId(String roleId); diff --git a/src/main/java/com/supwisdom/dlpay/framework/domain/TOperator.java b/src/main/java/com/supwisdom/dlpay/framework/domain/TOperator.java index 9d250ac3..22fadc97 100644 --- a/src/main/java/com/supwisdom/dlpay/framework/domain/TOperator.java +++ b/src/main/java/com/supwisdom/dlpay/framework/domain/TOperator.java @@ -61,6 +61,10 @@ public class TOperator implements UserDetails { @NotNull private String tenantId; + @Column(name = "thirdadmin", length = 20) + @NotNull + private String thirdadmin; + @Transient private Collection authorities; //权限 @@ -228,4 +232,12 @@ public class TOperator implements UserDetails { public void setTenantId(String tenantId) { this.tenantId = tenantId; } + + public String getThirdadmin() { + return thirdadmin; + } + + public void setThirdadmin(String thirdadmin) { + this.thirdadmin = thirdadmin; + } } diff --git a/src/main/java/com/supwisdom/dlpay/framework/tenant/HibernateConfig.java b/src/main/java/com/supwisdom/dlpay/framework/tenant/HibernateConfig.java index 5070d623..5c28d840 100644 --- a/src/main/java/com/supwisdom/dlpay/framework/tenant/HibernateConfig.java +++ b/src/main/java/com/supwisdom/dlpay/framework/tenant/HibernateConfig.java @@ -1,23 +1,10 @@ package com.supwisdom.dlpay.framework.tenant; -import lombok.extern.slf4j.Slf4j; -import org.hibernate.MultiTenancyStrategy; -import org.hibernate.cfg.Environment; -import org.hibernate.context.spi.CurrentTenantIdentifierResolver; -import org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties; -import org.springframework.boot.autoconfigure.orm.jpa.HibernateSettings; -import org.springframework.boot.autoconfigure.orm.jpa.JpaProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.orm.jpa.JpaVendorAdapter; -import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean; -import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter; - -import javax.sql.DataSource; import java.util.HashMap; import java.util.Map; +import javax.sql.DataSource; +import org.springframework.beans.factory.annotation.Autowired; + @Configuration @Slf4j @@ -57,6 +44,7 @@ public class HibernateConfig { em.setPackagesToScan("com.supwisdom"); em.setJpaPropertyMap(properties); em.setJpaVendorAdapter(getJpaVendorAdapter()); + log.info("setup multi-tenant entityManagerFactor"); return em; } diff --git a/src/main/java/com/supwisdom/dlpay/system/controller/OperatorController.java b/src/main/java/com/supwisdom/dlpay/system/controller/OperatorController.java index dc0ef579..37691181 100644 --- a/src/main/java/com/supwisdom/dlpay/system/controller/OperatorController.java +++ b/src/main/java/com/supwisdom/dlpay/system/controller/OperatorController.java @@ -5,6 +5,7 @@ import com.supwisdom.dlpay.framework.domain.*; import com.supwisdom.dlpay.framework.security.OperUtil; import com.supwisdom.dlpay.framework.util.PageResult; import com.supwisdom.dlpay.framework.util.StringUtil; +import com.supwisdom.dlpay.framework.util.TradeDict; import com.supwisdom.dlpay.framework.util.WebConstant; import com.supwisdom.dlpay.system.bean.FunctionSearchBean; import com.supwisdom.dlpay.system.bean.LogBean; @@ -95,7 +96,8 @@ public class OperatorController { public JsonResult add(@RequestParam("operid") String operid, @RequestParam("opercode") String opercode, @RequestParam("opername") String opername, @RequestParam("sex") String sex, @RequestParam("mobile") String mobile, @RequestParam("email") String email, - @RequestParam("roleId") String roleId, Model map) { + @RequestParam("roleId") String roleId, @RequestParam(value = "thirdadmin", required = false) String thirdadmin, + Model map) { if (operatorService.checkOpercodeExists(opercode, operid)) { return JsonResult.error("账号重复"); } @@ -106,6 +108,7 @@ public class OperatorController { operator.setMobile(mobile); operator.setEmail(email); operator.setSex(sex); + operator.setThirdadmin("yes".equalsIgnoreCase(thirdadmin) ? "yes" : "no"); boolean ret = operatorService.saveOperator(operator, roleId); if (ret) { return JsonResult.ok("操作成功"); diff --git a/src/main/java/com/supwisdom/dlpay/system/controller/ParamController.java b/src/main/java/com/supwisdom/dlpay/system/controller/ParamController.java index 7a16f3b8..cdc4a4ab 100644 --- a/src/main/java/com/supwisdom/dlpay/system/controller/ParamController.java +++ b/src/main/java/com/supwisdom/dlpay/system/controller/ParamController.java @@ -230,11 +230,11 @@ public class ParamController { @PreAuthorize("hasPermission('/param/load4addapiclient','')") public String load4AddApiclientPara(Model model) { Map roles = new HashMap<>(0); - roles.put("ROLE_THIRD_COMMON", "ROLE_THIRD_COMMON"); - roles.put("ROLE_THIRD_CONSUME", "ROLE_THIRD_CONSUME"); - roles.put("ROLE_THIRD_DEPOSIT", "ROLE_THIRD_DEPOSIT"); - roles.put("ROLE_THIRD_SHOP", "ROLE_THIRD_SHOP"); - roles.put("ROLE_THIRD_ADMIN", "ROLE_THIRD_ADMIN"); + roles.put("ROLE_THIRD_COMMON", "调用通用接口权限"); + roles.put("ROLE_THIRD_CONSUME", "调用消费接口权限"); + roles.put("ROLE_THIRD_DEPOSIT", "调用充值接口权限"); + roles.put("ROLE_THIRD_SHOP", "调用商户接口权限"); + roles.put("ROLE_THIRD_ADMIN", "调用用户接口权限"); model.addAttribute("rolelist", roles); return "system/param/apiclientform"; } @@ -389,7 +389,7 @@ public class ParamController { @RequestParam("state") Boolean state, @RequestParam(value = "optype", required = false) String optype) { if (StringUtil.isEmpty(paytype) - || (!StringUtil.isEmpty(optype) && !"charge".equals(optype) && !"consume".equals(optype) && !"anonymous".equals(optype))) { + || (!StringUtil.isEmpty(optype) && !"charge".equals(optype) && !"consume".equals(optype) && !"anonymous".equals(optype) && !"reversable".equals(optype) && !"checkable".equals(optype))) { return JsonResult.error("参数传递错误"); } try { @@ -412,7 +412,17 @@ public class ParamController { return JsonResult.error("状态错误,请重新查询后操作"); } tPaytype.setAnonymousEnable(state); - } else { + } else if("reversable".equals(optype)){ + if(state.equals(tPaytype.getReversable())){ + return JsonResult.error("状态错误,请重新查询后操作"); + } + tPaytype.setReversable(state); + }else if("checkable".equals(optype)){ + if(state.equals(tPaytype.getCheckable())){ + return JsonResult.error("状态错误,请重新查询后操作"); + } + tPaytype.setCheckable(state); + }else{ if (state.equals(tPaytype.getEnable())) { return JsonResult.error("状态错误,请重新查询后操作"); } @@ -483,6 +493,8 @@ public class ParamController { @RequestParam(value = "chargeEnable", required = false, defaultValue = "no") String chargeEnable, @RequestParam(value = "consumeEnable", required = false, defaultValue = "no") String consumeEnable, @RequestParam(value = "anonymousEnable", required = false, defaultValue = "no") String anonymousEnable, + @RequestParam(value = "reversable", required = false, defaultValue = "no") String reversable, + @RequestParam(value = "checkable", required = false, defaultValue = "no") String checkable, @RequestParam("paydesc") String paydesc) { try { TSourceType tPaytype = paramService.getSourceType(paytype); @@ -497,6 +509,8 @@ public class ParamController { tPaytype.setChargeEnable(ConstantUtil.ENABLE_YES.equalsIgnoreCase(chargeEnable)); tPaytype.setConsumeEnable(ConstantUtil.ENABLE_YES.equalsIgnoreCase(consumeEnable)); tPaytype.setAnonymousEnable(ConstantUtil.ENABLE_YES.equalsIgnoreCase(anonymousEnable)); + tPaytype.setReversable(ConstantUtil.ENABLE_YES.equalsIgnoreCase(reversable)); + tPaytype.setCheckable(ConstantUtil.ENABLE_YES.equalsIgnoreCase(checkable)); if (paramService.saveOrUpdateSourceType(tPaytype)) { return JsonResult.ok("新增成功"); } else { diff --git a/src/main/java/com/supwisdom/dlpay/system/service/impl/OperatorServiceImpl.java b/src/main/java/com/supwisdom/dlpay/system/service/impl/OperatorServiceImpl.java index 0842e665..8a5a1c16 100644 --- a/src/main/java/com/supwisdom/dlpay/system/service/impl/OperatorServiceImpl.java +++ b/src/main/java/com/supwisdom/dlpay/system/service/impl/OperatorServiceImpl.java @@ -101,7 +101,7 @@ public class OperatorServiceImpl implements OperatorService { op.setMobile(operator.getMobile()); op.setOpername(operator.getOpername()); op.setOpercode(operator.getOpercode()); - op.setTenantId(operator.getTenantId()); + op.setThirdadmin(operator.getThirdadmin()); operatorDao.save(op); operRoleDao.deleteByOperid(op.getOperid()); String[] roleids = roles.split(","); diff --git a/src/main/java/com/supwisdom/dlpay/system/service/impl/ParamServiceImpl.java b/src/main/java/com/supwisdom/dlpay/system/service/impl/ParamServiceImpl.java index f45beb7f..a0f86cd2 100644 --- a/src/main/java/com/supwisdom/dlpay/system/service/impl/ParamServiceImpl.java +++ b/src/main/java/com/supwisdom/dlpay/system/service/impl/ParamServiceImpl.java @@ -178,9 +178,10 @@ public class ParamServiceImpl implements ParamService { } @Override - @Cacheable(cacheNames = "source_type_cache", key = "#paytype.sourceType") + @CacheEvict(cacheNames = "source_type_cache", key = "#paytype.sourceType") public boolean saveOrUpdateSourceType(TSourceType paytype) { if (null != paytype) { + paytype.setTenantid(TenantContext.getTenantSchema()); sourceTypeDao.save(paytype); return true; } diff --git a/src/main/java/com/supwisdom/dlpay/system/service/impl/RoleServiceImpl.java b/src/main/java/com/supwisdom/dlpay/system/service/impl/RoleServiceImpl.java index 88178c8a..3d83ae55 100644 --- a/src/main/java/com/supwisdom/dlpay/system/service/impl/RoleServiceImpl.java +++ b/src/main/java/com/supwisdom/dlpay/system/service/impl/RoleServiceImpl.java @@ -139,6 +139,7 @@ public class RoleServiceImpl implements RoleService { permission.setTenantId(TenantContext.getTenantSchema()); permissionDao.save(permission); } else { + if("-1".equals(func)) continue; //全选排除 TRoleFunction roleFunction = new TRoleFunction(); roleFunction.setFunctionId(Integer.valueOf(func)); roleFunction.setRoleId(roleId); @@ -153,15 +154,24 @@ public class RoleServiceImpl implements RoleService { public List findByRoleIdNative(String roleId) { List nodeData = roleFunctionDao.findByRoleIdNative(roleId); List ret = new ArrayList<>(); + boolean allChecked = true; for (NodeData data : nodeData) { ZTreeNode zTreeNode = new ZTreeNode(); zTreeNode.setpId(data.getPid()); zTreeNode.setId(data.getId()); zTreeNode.setName(data.getName()); zTreeNode.setChecked(data.getChecked() == 0 ? false : true); + if (allChecked && !zTreeNode.isChecked()) allChecked = false; zTreeNode.setOpen(data.getOpen() == 0 ? false : true); ret.add(zTreeNode); } + ZTreeNode root = new ZTreeNode(); + root.setId("-1"); + root.setpId("-99"); + root.setName("选择全部功能"); + root.setChecked(allChecked); + root.setOpen(true); + ret.add(root); return ret; } diff --git a/src/main/resources/data.sql b/src/main/resources/data.sql index e434042c..37daf22e 100644 --- a/src/main/resources/data.sql +++ b/src/main/resources/data.sql @@ -1,8 +1,8 @@ INSERT INTO tb_tenantconfig(cfgid, tenantid, datacenter_id) values ('main', '{tenantid}', '01'); -INSERT INTO tb_operator(operid, closedate, opendate, opercode, opername, operpwd, opertype, status, tenantid) -VALUES ('LOR2IwRkbOjp+sVG9KR2BpHZbwGKepS4', '20500101', '20190101', 'system', '系统管理员', '$2a$10$Ex9xp11.vCaD8D0a7ahiUOKqDij1TcCUBwRAmrqXeDvAkmzLibn4.', 'oper', 'normal', '{tenantid}'); +INSERT INTO tb_operator(operid, closedate, opendate, opercode, opername, operpwd, opertype, status, thirdadmin, tenantid) +VALUES ('LOR2IwRkbOjp+sVG9KR2BpHZbwGKepS4', '20500101', '20190101', 'system', '系统管理员', '$2a$10$Ex9xp11.vCaD8D0a7ahiUOKqDij1TcCUBwRAmrqXeDvAkmzLibn4.', 'oper', 'normal', 'no', '{tenantid}'); INSERT INTO tb_role(roleid, createtime, editflag, lastsaved, rolecode, roledesc, rolename, tenantid) @@ -367,6 +367,10 @@ INSERT INTO "tb_permission" ("id", "resid", "role_func_id", "roleid", "tenantid VALUES ('ff8080816b7947ed016b795577370087', 45, NULL, 'd1yctWs5+ks0iQN3m9bUvRHus6HbKbrs', '{tenantid}'); INSERT INTO "tb_permission" ("id", "resid", "role_func_id", "roleid", "tenantid") VALUES ('ff8080816b7947ed016b795577370088', 43, NULL, 'd1yctWs5+ks0iQN3m9bUvRHus6HbKbrs', '{tenantid}'); +INSERT INTO "tb_permission" ("id", "resid", "role_func_id", "roleid", "tenantid") +VALUES ('ff8080816bbb130c016bbb6ea2f700c9', 76, NULL, 'd1yctWs5+ks0iQN3m9bUvRHus6HbKbrs', '{tenantid}'); +INSERT INTO "tb_permission" ("id", "resid", "role_func_id", "roleid", "tenantid") +VALUES ('ff8080816bbb130c016bbb6ea2f600b3', 26, NULL, 'd1yctWs5+ks0iQN3m9bUvRHus6HbKbrs', '{tenantid}'); INSERT INTO "tb_subject" ("subjno", "balflag", "displayflag", "endflag", "fsubjno", "opendate", "subjlevel", "subjname", "subjtype", "tenantid") diff --git a/src/main/resources/templates/home/console.html b/src/main/resources/templates/home/console.html index 94a54a55..63cb2607 100755 --- a/src/main/resources/templates/home/console.html +++ b/src/main/resources/templates/home/console.html @@ -1,48 +1,5 @@
-
-
-
- 访问量周 -
-
-

9,999,666

-

总计访问量88万

-
-
-
-
-
-
- 下载月 -
-
-

33,555

-

新下载10%

-
-
-
-
-
-
- Start周 -
-
-

999,666

-

总Start数88万

-
-
-
-
-
-
- 活跃用户月 -
-
-

66,666

-

最近一个月15%

-
-
-
+
diff --git a/src/main/resources/templates/home/theme.html b/src/main/resources/templates/home/theme.html index 67cb12a3..392a02ae 100755 --- a/src/main/resources/templates/home/theme.html +++ b/src/main/resources/templates/home/theme.html @@ -7,8 +7,8 @@

设置主题:

diff --git a/src/main/resources/templates/system/dtl/shopdtl.html b/src/main/resources/templates/system/dtl/shopdtl.html index 92e7f600..644a6a7d 100644 --- a/src/main/resources/templates/system/dtl/shopdtl.html +++ b/src/main/resources/templates/system/dtl/shopdtl.html @@ -1,4 +1,4 @@ -
+

商户流水查询

@@ -8,7 +8,7 @@
-
+
@@ -24,17 +24,9 @@
-
- -
- -
-
-
-
+
-
+
@@ -73,7 +65,7 @@
-
+
@@ -82,7 +74,7 @@
-
+
+
+ +
+
+ +
+ +
+
-
+
@@ -34,7 +34,7 @@
-
+
- - -   -
-
-
+
@@ -72,16 +61,19 @@
- -
- + +
+
-
+
+
+
+
+ +
+ +
+
diff --git a/src/main/resources/templates/system/function/index.html b/src/main/resources/templates/system/function/index.html index 93d53ac5..2e85a8c4 100755 --- a/src/main/resources/templates/system/function/index.html +++ b/src/main/resources/templates/system/function/index.html @@ -54,7 +54,7 @@ } }, { - field: 'id', align: 'center', title: '操作', fixed: 'right', templet: function (item) { + field: 'id', align: 'center', title: '操作', fixed: 'right', width:350, templet: function (item) { if (item.isLeaf == 0) { return ' 编辑 ' + ' 添加子功能 ' + diff --git a/src/main/resources/templates/system/operator/index.html b/src/main/resources/templates/system/operator/index.html index 96ba2bc4..49e4ab19 100644 --- a/src/main/resources/templates/system/operator/index.html +++ b/src/main/resources/templates/system/operator/index.html @@ -31,10 +31,10 @@ @@ -61,8 +61,8 @@ page: true, cols: [ [ - {type: 'numbers', fixed: 'left'}, - {field: 'opercode', title: '管理员账号', fixed: 'left', sort: true}, + {type: 'numbers', fixed: 'left', width: 50}, + {field: 'opercode', title: '管理员账号', fixed: 'left',width: 150, sort: true}, {field: 'opername', title: '管理员名称', sort: true}, {field: 'transStatus', title: '状态', sort: true, width: 100, templet: '#oper-tpl-state'}, { @@ -78,8 +78,10 @@ }, {field: 'mobile', sort: true, title: '手机号'}, {field: 'email', sort: true, title: '电子邮箱'}, - {field: 'opendate', sort: true, width: 120, title: '注册日期'}, - {align: 'center', toolbar: '#oper-table-bar', title: '操作', fixed: 'right'} + {field: 'opendate', sort: true, width: 120, title: '注册日期', align: 'center', templet: function (d) { + return admin.formatDate(d.opendate); + }}, + {align: 'center', toolbar: '#oper-table-bar', title: '操作',width: 160, fixed: 'right'} ] ] }); @@ -100,7 +102,7 @@ // 显示表单弹窗 var showEditModel = function (data) { var title = data ? '修改用户' : '添加用户'; - admin.putTempData('t_user', data); + admin.putTempData('tmp_user', data); admin.popupCenter({ title: title, path: '[[@{/operator/load4add}]]', diff --git a/src/main/resources/templates/system/operator/logs.html b/src/main/resources/templates/system/operator/logs.html index 207b4ea6..3f6f6ff1 100644 --- a/src/main/resources/templates/system/operator/logs.html +++ b/src/main/resources/templates/system/operator/logs.html @@ -9,8 +9,8 @@
搜索: -   -
@@ -30,11 +30,11 @@ cols: [ [ {field: 'opername', title: '管理员账号', width: 160,fixed: 'left', sort: true}, - {field: 'functionname', title: '所属功能', width: 160,fixed: 'left', sort: true}, - {field: 'resname', title: '操作内容', width: 160,fixed: 'left', sort: true}, - {field: 'respath', title: '操作路径', width: 200,}, + {field: 'functionname', title: '所属功能', sort: true}, + {field: 'resname', title: '操作内容', sort: true}, + {field: 'respath', title: '操作路径'}, { - field: 'logdate', align: 'center', title: '操作时间', fixed: 'right', templet: function (item) { + field: 'logdate', align: 'center', title: '操作时间', width: 200, fixed: 'right', templet: function (item) { return admin.formatDate(item.logdate); } } @@ -42,8 +42,8 @@ ] }); // 搜索按钮点击事件 - $('#btn-search').click(function () { - let key = $('#search-value').val(); + $('#btn-operlog-search').click(function () { + let key = $('#search-operlog-value').val(); table.reload('logtable', {where: {searchkey: key}, page: {curr: 1}}); }); }); diff --git a/src/main/resources/templates/system/operator/operator.html b/src/main/resources/templates/system/operator/operator.html index 682e6c45..0a50551b 100644 --- a/src/main/resources/templates/system/operator/operator.html +++ b/src/main/resources/templates/system/operator/operator.html @@ -16,9 +16,9 @@
- +
- +
@@ -65,6 +65,7 @@ var formSelects = layui.formSelects; form.render('radio'); + form.render('checkbox'); form.verify({ "mobile": function (e) { if (null != e && e.length > 0 && !(/^1\d{10}$/.test(e))) { @@ -107,7 +108,7 @@ var url = '[[@{/operator/add}]]'; // 回显user数据 - var user = admin.getTempData('t_user'); + var user = admin.getTempData('tmp_user'); if (user) { $('input[name="opercode"]').attr('readonly', 'readonly'); form.val('oper-form', user); @@ -119,6 +120,7 @@ } // 表单提交事件 form.on('submit(oper-form-submit)', function (data) { + debugger layer.load(2); var token_name = $("meta[name='_csrf_token']").attr("content"); var token = $("meta[name='_csrf_token']").attr("value"); diff --git a/src/main/resources/templates/system/operator/setpwd.html b/src/main/resources/templates/system/operator/setpwd.html index 53f4fef6..7b77f605 100644 --- a/src/main/resources/templates/system/operator/setpwd.html +++ b/src/main/resources/templates/system/operator/setpwd.html @@ -41,7 +41,7 @@ $('#cancelBtn').click(function () { admin.closeThisTabs() }); - form.render('select'); + let url = '[[@{/operator/dosetpwd}]]'; // 表单提交事件 form.on('submit(setmypass)', function (data) { diff --git a/src/main/resources/templates/system/operator/userinfor.html b/src/main/resources/templates/system/operator/userinfor.html index 1193ef31..7cb1bce2 100644 --- a/src/main/resources/templates/system/operator/userinfor.html +++ b/src/main/resources/templates/system/operator/userinfor.html @@ -55,7 +55,7 @@ $('#cancelBtn').click(function () { admin.closeThisTabs() }); - form.render('select'); + form.render('radio'); let url = '[[@{/operator/updateinfor}]]'; // 表单提交事件 form.on('submit(infor-form-submit)', function (data) { diff --git a/src/main/resources/templates/system/param/apiclientform.html b/src/main/resources/templates/system/param/apiclientform.html index 94353f78..16ace936 100644 --- a/src/main/resources/templates/system/param/apiclientform.html +++ b/src/main/resources/templates/system/param/apiclientform.html @@ -7,7 +7,7 @@
- +