This commit is contained in:
@jyuhsin
2025-08-22 10:02:51 +08:00
parent f1e071a9bd
commit fcd57ead6c
2 changed files with 20 additions and 15 deletions
@@ -1,5 +1,6 @@
package com.budwk.app.zhgh.staffbenefit.condolence.controller; package com.budwk.app.zhgh.staffbenefit.condolence.controller;
import cn.dev33.satoken.annotation.SaCheckLogin;
import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.budwk.app.base.annotation.SLog; import com.budwk.app.base.annotation.SLog;
@@ -82,7 +83,7 @@ public class CondolenceTypeController {
@At @At
@ApiOperation("查询职工慰问类型") @ApiOperation("查询职工慰问类型")
@SaCheckPermission("condolence.type") @SaCheckLogin
public Result queryCondolenceType() { public Result queryCondolenceType() {
List<CondolenceType> list = typeService.query(Cnd.NEW().desc(CondolenceType::getCode)); List<CondolenceType> list = typeService.query(Cnd.NEW().desc(CondolenceType::getCode));
return Result.success(list); return Result.success(list);
@@ -281,20 +281,24 @@ layout("/layouts/platform.html"){
}) })
}, },
onSubmit() { onSubmit() {
this.$confirm("您确定要提交吗?", "提示", { this.$refs.formRef.validate((valid) => {
confirmButtonText: "确定", if (valid) {
cancelButtonText: "取消", this.$confirm("您确定要提交吗?", "提示", {
type: "warning" confirmButtonText: "确定",
}).then(() => { cancelButtonText: "取消",
this.$axios.post('/platform/condolence/apply/submit', { type: "warning"
data: JSON.stringify(this.formData), }).then(() => {
taskId: GetQueryString("taskId") this.$axios.post('/platform/condolence/apply/submit', {
}).then(res => { data: JSON.stringify(this.formData),
if (res.code === 0) { taskId: GetQueryString("taskId")
this.$message.success(res.msg) }).then(res => {
window.location.href = '/platform/condolence/mine' if (res.code === 0) {
} this.$message.success(res.msg)
}) window.location.href = '/platform/condolence/mine'
}
})
})
}
}) })
}, },
onFinishTask() { onFinishTask() {