commit
This commit is contained in:
@@ -147,7 +147,7 @@ public class FlowTodoCenterController {
|
|||||||
t.h5FormKey
|
t.h5FormKey
|
||||||
FROM
|
FROM
|
||||||
wf_process_instance ins
|
wf_process_instance ins
|
||||||
LEFT JOIN wf_process_task t ON t.processInstanceId = ins.id and t.taskState = 10
|
LEFT JOIN wf_process_task t ON t.processInstanceId = ins.id and t.taskState = 20
|
||||||
LEFT JOIN wf_process_define def ON def.id = ins.processDefineId
|
LEFT JOIN wf_process_define def ON def.id = ins.processDefineId
|
||||||
LEFT JOIN wf_process_category cat ON cat.id = def.category
|
LEFT JOIN wf_process_category cat ON cat.id = def.category
|
||||||
$condition
|
$condition
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ import org.nutz.mvc.annotation.Param;
|
|||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
import java.net.URI;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -360,16 +361,24 @@ public class SysUserController {
|
|||||||
@SaCheckLogin
|
@SaCheckLogin
|
||||||
public Result rootMenuByPath(@Param("pathname") String pathname, HttpServletResponse response) {
|
public Result rootMenuByPath(@Param("pathname") String pathname, HttpServletResponse response) {
|
||||||
if (StrUtil.isBlank(pathname)) {
|
if (StrUtil.isBlank(pathname)) {
|
||||||
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
URI uri = new URI(pathname);
|
||||||
|
String path = uri.getPath();
|
||||||
// Sys_menu menu = sysMenuService.fetch(Cnd.where(Sys_menu::getHref, "like", pathname + "%"));
|
// Sys_menu menu = sysMenuService.fetch(Cnd.where(Sys_menu::getHref, "like", pathname + "%"));
|
||||||
Sys_menu menu = sysMenuService.fetch(Cnd.where(Sys_menu::getHref, "=", pathname));
|
Sys_menu menu = sysMenuService.fetch(Cnd.where(Sys_menu::getHref, "=", path));
|
||||||
if (menu == null) {
|
if (menu == null) {
|
||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
List<Sys_menu> menus = sysUserService.getMenus(SecurityUtil.getUserId());
|
List<Sys_menu> menus = sysUserService.getMenus(SecurityUtil.getUserId());
|
||||||
Sys_menu rootMenu = SysMenuUtil.getRootMenu(menus, menu);
|
Sys_menu rootMenu = SysMenuUtil.getRootMenu(menus, menu);
|
||||||
return Result.success().addData(rootMenu);
|
return Result.success().addData(rootMenu);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return Result.error();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ const user = {
|
|||||||
this.$message.warning("当前流程没有配置地址")
|
this.$message.warning("当前流程没有配置地址")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
window.open(formKey + "?taskId=" + taskId + "bizId=" + businessNo + "taskKey=" + taskKey + "&tab=" + this.activeTab)
|
window.open(formKey + "?taskId=" + taskId + "&bizId=" + businessNo + "&taskKey=" + taskKey + "&tab=" + this.activeTab)
|
||||||
},
|
},
|
||||||
getRoleNames() {
|
getRoleNames() {
|
||||||
$.post("/platform/sys/role/getRoleNames").then(res => {
|
$.post("/platform/sys/role/getRoleNames").then(res => {
|
||||||
|
|||||||
@@ -388,6 +388,8 @@ layout("/layouts/platform_h5.html"){
|
|||||||
showTimePickerClick() {
|
showTimePickerClick() {
|
||||||
if (this.formData.occurTime) {
|
if (this.formData.occurTime) {
|
||||||
this.formData.occurDate = new Date(this.formData.occurTime)
|
this.formData.occurDate = new Date(this.formData.occurTime)
|
||||||
|
}else{
|
||||||
|
this.formData.occurDate = new Date()
|
||||||
}
|
}
|
||||||
this.showTimePicker = true
|
this.showTimePicker = true
|
||||||
},
|
},
|
||||||
@@ -493,6 +495,10 @@ layout("/layouts/platform_h5.html"){
|
|||||||
},
|
},
|
||||||
async onSubmit() {
|
async onSubmit() {
|
||||||
this.$refs.formRef.validate().then(() => {
|
this.$refs.formRef.validate().then(() => {
|
||||||
|
if (!this.formData.signature){
|
||||||
|
this.$toast.fail("请填写签字")
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$dialog.confirm({
|
this.$dialog.confirm({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
message: "您确定要提交申请吗?"
|
message: "您确定要提交申请吗?"
|
||||||
@@ -508,6 +514,10 @@ layout("/layouts/platform_h5.html"){
|
|||||||
},
|
},
|
||||||
async onFinishTask() {
|
async onFinishTask() {
|
||||||
this.$refs.formRef.validate().then(() => {
|
this.$refs.formRef.validate().then(() => {
|
||||||
|
if (!this.formData.signature){
|
||||||
|
this.$toast.fail("请填写签字")
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$dialog.confirm({
|
this.$dialog.confirm({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
message: "您确定要提交申请吗?"
|
message: "您确定要提交申请吗?"
|
||||||
|
|||||||
+8
-2
@@ -187,7 +187,6 @@ layout("/layouts/platform_h5.html"){
|
|||||||
<van-field
|
<van-field
|
||||||
v-model="formData.bankUserName"
|
v-model="formData.bankUserName"
|
||||||
label="户名"
|
label="户名"
|
||||||
type="number"
|
|
||||||
placeholder="请填写户名"
|
placeholder="请填写户名"
|
||||||
:rules="[{ required: true }]"
|
:rules="[{ required: true }]"
|
||||||
required
|
required
|
||||||
@@ -196,7 +195,6 @@ layout("/layouts/platform_h5.html"){
|
|||||||
<van-field
|
<van-field
|
||||||
v-model="formData.bankOfDeposit"
|
v-model="formData.bankOfDeposit"
|
||||||
label="开户行"
|
label="开户行"
|
||||||
type="number"
|
|
||||||
placeholder="请填写开户行"
|
placeholder="请填写开户行"
|
||||||
:rules="[{ required: true }]"
|
:rules="[{ required: true }]"
|
||||||
required
|
required
|
||||||
@@ -350,6 +348,10 @@ layout("/layouts/platform_h5.html"){
|
|||||||
// 提交
|
// 提交
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
this.$refs.formRef.validate().then(() => {
|
this.$refs.formRef.validate().then(() => {
|
||||||
|
if (!this.formData.sign){
|
||||||
|
this.$toast.fail("请填写签字")
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$dialog.confirm({
|
this.$dialog.confirm({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
message: "您确定要提交吗?"
|
message: "您确定要提交吗?"
|
||||||
@@ -379,6 +381,10 @@ layout("/layouts/platform_h5.html"){
|
|||||||
|
|
||||||
onFinishTask() {
|
onFinishTask() {
|
||||||
this.$refs.formRef.validate().then(() => {
|
this.$refs.formRef.validate().then(() => {
|
||||||
|
if (!this.formData.sign){
|
||||||
|
this.$toast.fail("请填写签字")
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$dialog.confirm({
|
this.$dialog.confirm({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
message: "您确定要提交吗?"
|
message: "您确定要提交吗?"
|
||||||
|
|||||||
Reference in New Issue
Block a user