From 93abe72041b4d9e6a965d923cce40c824d722f0a Mon Sep 17 00:00:00 2001
From: weifashi <605403358@qq.com>
Date: Thu, 11 May 2023 17:21:33 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docker-compose.yml | 2 +-
language/original-web.txt | 8 ++-
.../assets/js/pages/manage/review/index.vue | 49 +++++++++---------
.../js/pages/manage/setting/approve.vue | 51 ++++++++++++++-----
resources/assets/sass/dark.scss | 6 +++
.../sass/pages/components/dialog-wrapper.scss | 14 ++++-
resources/assets/sass/pages/page-setting.scss | 1 +
resources/views/push/bot.blade.php | 20 ++++----
8 files changed, 102 insertions(+), 49 deletions(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index ee4ebb124..d441c8534 100755
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -151,7 +151,7 @@ services:
workflow:
container_name: "dootask-workflow-${APP_ID}"
- image: "hitosea2020/go-workflow:1.0.1"
+ image: "hitosea2020/go-workflow:latest"
environment:
TZ: "Asia/Shanghai"
MYSQL_HOST: "${DB_HOST}"
diff --git a/language/original-web.txt b/language/original-web.txt
index 5176a2d82..4081dfc6d 100644
--- a/language/original-web.txt
+++ b/language/original-web.txt
@@ -1186,6 +1186,7 @@ Markdown 格式发送
婚假
丧假
哺乳假
+外出
暂无数据
审批中心
待办
@@ -1208,6 +1209,11 @@ Markdown 格式发送
发起时间
审批设置
是否发布
+已发布
流程名称
自动通过,审批人与发起人为同一人
-您当前未加入任何部门,不能发起!
\ No newline at end of file
+您当前未加入任何部门,不能发起!
+请输入流程名称
+将会清空流程数据,此操作不可恢复
+添加申请
+请选择申请类型!
\ No newline at end of file
diff --git a/resources/assets/js/pages/manage/review/index.vue b/resources/assets/js/pages/manage/review/index.vue
index 0541c37be..69c724dc9 100644
--- a/resources/assets/js/pages/manage/review/index.vue
+++ b/resources/assets/js/pages/manage/review/index.vue
@@ -7,7 +7,8 @@
{{$L('审批中心')}}
-
+
+
@@ -121,7 +122,12 @@
-
+
+
+
+
@@ -229,6 +235,7 @@ export default {
endTimeOpen:false,
addData: {
department_id:0,
+ applyType: '',
type: '',
startTime: "2023-04-20",
startTimeHour:"09",
@@ -240,12 +247,13 @@ export default {
},
addRule: {
department_id:{ type: 'number',required: true, message: this.$L('请选择部门!'), trigger: 'change' },
+ applyType: { type: 'string',required: true, message: this.$L('请选择申请类型!'), trigger: 'change' },
type: { type: 'string',required: true, message: this.$L('请选择假期类型!'), trigger: 'change' },
startTime: { type: 'string',required: true, message: this.$L('请选择开始时间!'), trigger: 'change' },
endTime:{ type: 'string',required: true, message: this.$L('请选择结束时间!'), trigger: 'change' },
description:{ type: 'string',required: true, message: this.$L('请输入事由!'), trigger: 'change' },
},
- selectTypes:["年假","事假","病假","调休","产假","陪产假","婚假","丧假","哺乳假"],
+ selectTypes:["年假","事假","病假","调休","产假","陪产假","婚假","丧假","哺乳假","外出"],
//
showDateTime:false
@@ -286,7 +294,6 @@ export default {
mounted() {
this.tabsValue = "backlog"
this.tabsClick()
- this.getProcdef()
this.getBacklogList()
this.addData.department_id = this.userInfo.department[0] || 0;
this.addData.startTime = this.addData.endTime = this.getCurrentDate();
@@ -345,20 +352,6 @@ export default {
})
},
- // 获取列表数据
- getProcdef(){
- this.$store.dispatch("call", {
- url: 'workflow/procdef/all',
- method: 'post',
- }).then(({data}) => {
- this.procdefList = data.rows || [];
- }).catch(({msg}) => {
- $A.modalError(msg);
- }).finally(_ => {
- this.loadIng--;
- });
- },
-
// 获取待办列表
getBacklogList(){
this.$store.dispatch("call", {
@@ -471,8 +464,8 @@ export default {
});
},
- // 发起
- initiate(item){
+ // 添加申请
+ addApply(){
this.$store.dispatch("call", {
url: 'users/basic',
data: {
@@ -485,8 +478,18 @@ export default {
$A.modalError("您当前未加入任何部门,不能发起!");
return false;
}
- this.addTitle = item.name;
- this.addShow = true;
+ this.$store.dispatch("call", {
+ url: 'workflow/procdef/all',
+ method: 'post',
+ }).then(({data}) => {
+ this.procdefList = data.rows || [];
+ this.addTitle = this.$L("添加申请");
+ this.addShow = true;
+ }).catch(({msg}) => {
+ $A.modalError(msg);
+ }).finally(_ => {
+ this.loadIng--;
+ });
}).catch(({msg}) => {
$A.modalError(msg);
}).finally(_ => {
@@ -507,7 +510,7 @@ export default {
this.$store.dispatch("call", {
url: 'workflow/process/start',
data: {
- proc_name:this.addTitle,
+ proc_name: obj.applyType,
department_id: obj.department_id,
var: JSON.stringify(obj)
},
diff --git a/resources/assets/js/pages/manage/setting/approve.vue b/resources/assets/js/pages/manage/setting/approve.vue
index dace7a4cb..d2017b7d7 100644
--- a/resources/assets/js/pages/manage/setting/approve.vue
+++ b/resources/assets/js/pages/manage/setting/approve.vue
@@ -1,21 +1,24 @@
-
+
{{$L('流程名称')}}:{{$L(item.name)}}
-
+
@@ -44,8 +47,8 @@ export default {
iframeSrc:"",
name:"",
list:[
- {id:0,name:"请假",issue:false,version:''},
- {id:0,name:"加班申请",issue:false,version:''},
+ // {id:0,name:"请假",issue:false,version:''},
+ // {id:0,name:"加班申请",issue:false,version:''},
]
}
},
@@ -68,6 +71,7 @@ export default {
url: 'workflow/procdef/all',
method: 'post',
}).then(({data}) => {
+ this.list = data.rows;
data.rows.forEach((h,index) => {
this.list.forEach((o,index) => {
if(o.name == h.name){
@@ -102,8 +106,20 @@ export default {
},
// 添加
add(){
- this.name = "请假"
- this.approvalSettingShow = true;
+ $A.modalInput({
+ title: `添加`,
+ placeholder: `请输入流程名称`,
+ type:"textarea",
+ okText: "确定",
+ onOk: (desc) => {
+ if (!desc) {
+ return `请输入流程名称`
+ }
+ this.name = desc
+ this.approvalSettingShow = true;
+ return false
+ }
+ });
},
// 编辑
edit(item){
@@ -115,8 +131,8 @@ export default {
this.$nextTick(()=>{
item.issue = true;
$A.modalConfirm({
- title: '取消发布',
- content: '将会清空流程数据,确定要取消发布?',
+ title: '删除',
+ content: '将会清空流程数据,此操作不可恢复',
onOk: () => {
this.del(item)
}
@@ -135,6 +151,7 @@ export default {
method: 'post',
}).then(({data}) => {
item.issue = false;
+ this.getList();
$A.messageSuccess('成功');
}).catch(({msg}) => {
$A.modalError(msg);
@@ -157,4 +174,12 @@ export default {
border-top-left-radius: 18px;
border-bottom-left-radius: 18px;
}
-
+ .delcon{
+ position: absolute;
+ right: 0;
+ padding: 5px !important;
+ }
+ .delcon:hover{
+ color: #ed4014 !important;
+ }
+
\ No newline at end of file
diff --git a/resources/assets/sass/dark.scss b/resources/assets/sass/dark.scss
index 9873cd37e..1ec79cf47 100644
--- a/resources/assets/sass/dark.scss
+++ b/resources/assets/sass/dark.scss
@@ -175,6 +175,12 @@ body.dark-mode-reverse {
.content-meeting {
color: #ffffff;
}
+ .open-review-details{
+ .cause{
+ border-bottom: 1px solid #7f7f7f;
+ border-top: 1px solid #7f7f7f;
+ }
+ }
}
.dialog-emoji {
> li {
diff --git a/resources/assets/sass/pages/components/dialog-wrapper.scss b/resources/assets/sass/pages/components/dialog-wrapper.scss
index 5d7edbc24..4b60a036b 100644
--- a/resources/assets/sass/pages/components/dialog-wrapper.scss
+++ b/resources/assets/sass/pages/components/dialog-wrapper.scss
@@ -703,6 +703,7 @@
.open-review-details{
width: 245px;
display: inline-block;
+ max-width: 100%;
.cause{
border-bottom: 1px solid #e3e3e3;
border-top: 1px solid #e3e3e3;
@@ -712,14 +713,25 @@
display: inline-block;
padding: 15px 0;
}
+ >b{
+ display: inline-block;
+ margin-bottom: 5px;
+ }
+ >span{
+ display: inline-block;
+ margin-bottom: 3px;
+ }
}
.btn-raw{
display: flex;
text-align: center;
- padding: 10px 0 5px 0;
+ padding: 12px 0 5px 0;
>button.ivu-btn-primary{
margin-right: 12px;
}
+ >button.ivu-btn-small{
+ height: 32px;
+ }
}
}
}
diff --git a/resources/assets/sass/pages/page-setting.scss b/resources/assets/sass/pages/page-setting.scss
index f6e79047c..a3f78a900 100755
--- a/resources/assets/sass/pages/page-setting.scss
+++ b/resources/assets/sass/pages/page-setting.scss
@@ -373,6 +373,7 @@
}
.approve-col-for{
padding:16px;
+ padding-bottom:13px;
display: flex;
flex-direction: column;
> p{
diff --git a/resources/views/push/bot.blade.php b/resources/views/push/bot.blade.php
index cc99f97fc..d958681ef 100755
--- a/resources/views/push/bot.blade.php
+++ b/resources/views/push/bot.blade.php
@@ -119,14 +119,14 @@
结束时间:{{$data->end_time}}
@if ($action === 'pass')
-
+
@elseif ($action === 'refuse')
-
+
@elseif ($action === 'withdraw')
-
+
@else
-
-
+
+
@endif
@elseif ($type === 'workflow_notifier')
@@ -140,9 +140,9 @@
结束时间:{{$data->end_time}}
@if ($is_finished == 1)
-
+
@else
-
+
@endif
@elseif ($type === 'workflow_submitter')
@@ -156,11 +156,11 @@
结束时间:{{$data->end_time}}
@if ($action === 'pass')
-
+
@elseif ($action === 'refuse')
-
+
@elseif ($action === 'withdraw')
-
+
@endif
@else