Merge pull request 'master' (#32) from master into prod

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/32
This commit is contained in:
2024-03-25 14:39:51 +00:00
23 changed files with 98 additions and 51 deletions

View File

@@ -70,6 +70,15 @@ const router = createRouter({
breadcrumb: true breadcrumb: true
} }
}, },
{
path: '/workflow/process',
name: 'process',
component: () => import('@/views/workflow/process/index.vue'),
meta: {
title: '流程管理',
breadcrumb: true
}
},
{ {
path: '/workflow/process/edit', path: '/workflow/process/edit',
name: 'processAdd', name: 'processAdd',

View File

@@ -148,6 +148,8 @@ const getList = async () => {
list.value = res.data.rows list.value = res.data.rows
total.value = res.data.total total.value = res.data.total
loading.value = false loading.value = false
}else {
ElMessage.error(res.msg);
} }
}) })
} }

View File

@@ -78,6 +78,8 @@ const getList = async () => {
list.value = res.data.rows list.value = res.data.rows
total.value = res.data.total total.value = res.data.total
loading.value = false loading.value = false
}else {
ElMessage.error(res.msg);
} }
}) })
} }

View File

@@ -247,6 +247,8 @@ const getList = async () => {
list.value = res.data.rows; list.value = res.data.rows;
total.value = res.data.total; total.value = res.data.total;
loading.value = false; loading.value = false;
}else {
ElMessage.error(res.msg);
} }
}); });
}; };

View File

@@ -271,6 +271,8 @@ const getList = async () => {
list.value = res.data.rows list.value = res.data.rows
total.value = res.data.total total.value = res.data.total
loading.value = false loading.value = false
}else {
ElMessage.error(res.msg);
} }
}) })
} }

View File

@@ -18,7 +18,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleSearch()" :icon="Search">搜索</el-button> <el-button type="primary" @click="getList" :icon="Search">搜索</el-button>
<el-button @click="handleReset" :icon="Refresh">重置</el-button> <el-button @click="handleReset" :icon="Refresh">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@@ -160,10 +160,7 @@ const formRules = ref({
{required: true, message: "系统内置不能为空", trigger: "change"}, {required: true, message: "系统内置不能为空", trigger: "change"},
], ],
}) })
//搜索功能
const handleSearch = () => {
getList()
}
//重置搜索 //重置搜索
const handleReset = () => { const handleReset = () => {
queryForm.value.resetFields() queryForm.value.resetFields()

View File

@@ -182,8 +182,12 @@ const getEditOption = (deptId) => {
const getList = async () => { const getList = async () => {
loading.value = true loading.value = true
getDeptList(queryParams).then(res => { getDeptList(queryParams).then(res => {
list.value = res.data if (res.code === 1000) {
loading.value = false list.value = res.data
loading.value = false
} else {
ElMessage.error(res.msg);
}
}) })
} }
const getDetail = (deptId) => { const getDetail = (deptId) => {

View File

@@ -44,8 +44,10 @@
<el-table-column prop="createTime" label="创建时间"/> <el-table-column prop="createTime" label="创建时间"/>
<el-table-column label="操作" prop="operation"> <el-table-column label="操作" prop="operation">
<template #default="scope"> <template #default="scope">
<el-button type="primary" v-if="scope.row.menuType!=='B'" size="mini" @click="handleAdd(scope.row)" link>新增</el-button> <el-button type="primary" v-if="scope.row.menuType!=='B'" size="mini" @click="handleAdd(scope.row)" link>新增
<div v-else style="display: inline-block">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div> </el-button>
<div v-else style="display: inline-block">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<el-button type="primary" size="mini" @click="handleEdit(scope.row.menuId)" link>修改</el-button> <el-button type="primary" size="mini" @click="handleEdit(scope.row.menuId)" link>修改</el-button>
<el-button type="primary" size="mini" @click="handleAssignRoles(scope.row)" link>分配角色</el-button> <el-button type="primary" size="mini" @click="handleAssignRoles(scope.row)" link>分配角色</el-button>
<popover-delete :name="scope.row.menuName" :type="'菜单'" @delete="handleDel(scope.row.menuId)"/> <popover-delete :name="scope.row.menuName" :type="'菜单'" @delete="handleDel(scope.row.menuId)"/>
@@ -230,8 +232,12 @@ const getSelectIcon = (val) => {
const getList = async () => { const getList = async () => {
loading.value = true loading.value = true
getMenuList(queryParams).then(res => { getMenuList(queryParams).then(res => {
list.value = res.data if (res.code === 1000) {
loading.value = false list.value = res.data
loading.value = false
} else {
ElMessage.error(res.msg);
}
}) })
} }

View File

@@ -100,7 +100,9 @@ const getList = async () => {
} else { } else {
ElMessage.error(res.msg); ElMessage.error(res.msg);
} }
}); }).catch(err => {
loading.value = false;
})
}; };
//查看详情 //查看详情
const handleViewDetails = (noticeId) => { const handleViewDetails = (noticeId) => {

View File

@@ -332,7 +332,9 @@ const getList = async () => {
} else { } else {
ElMessage.error(res.msg); ElMessage.error(res.msg);
} }
}); }).catch(err => {
loading.value = false;
})
}; };
//查看公告详情 //查看公告详情
const handleViewDetails = async (row) => { const handleViewDetails = async (row) => {

View File

@@ -141,12 +141,16 @@ const getList = async () => {
...queryParams, ...queryParams,
...pageInfo ...pageInfo
}).then(res => { }).then(res => {
res.data.rows = res.data.rows.sort((a, b) => { if (res.code === 1000) {
return a.postSort - b.postSort res.data.rows = res.data.rows.sort((a, b) => {
}) return a.postSort - b.postSort
total.value = res.data.total; })
list.value = res.data.rows total.value = res.data.total;
loading.value = false list.value = res.data.rows
loading.value = false
} else {
ElMessage.error(res.msg);
}
}) })
} }
const handleReset = (instance) => { const handleReset = (instance) => {

View File

@@ -284,6 +284,8 @@ const getList = async () => {
list.value = res.data.rows list.value = res.data.rows
total.value = res.data.total total.value = res.data.total
loading.value = false loading.value = false
}else {
ElMessage.error(res.msg);
} }
}) })
}; };

View File

@@ -113,11 +113,12 @@ const getList = () => {
} }
loading.value = true loading.value = true
getMappingList(params).then(res => { getMappingList(params).then(res => {
// console.log('res',res)
if (res.code === 1000) { if (res.code === 1000) {
loading.value = false loading.value = false
list.value = res.data.rows list.value = res.data.rows
total.value = res.data.total total.value = res.data.total
}else {
ElMessage.error(res.msg);
} }
}) })
}; };

View File

@@ -118,11 +118,12 @@ const getList = async () => {
if (res.code === 1000) { if (res.code === 1000) {
list.value = res.data.rows list.value = res.data.rows
total.value = res.data.total total.value = res.data.total
loading.value = false
} else { } else {
ElMessage.error(res.msg) ElMessage.error(res.msg)
} }
loading.value = false
}).catch(err => {
loading.value = false;
}) })
} }

View File

@@ -140,11 +140,12 @@ const getList = async () => {
if (res.code === 1000) { if (res.code === 1000) {
list.value = res.data.rows list.value = res.data.rows
total.value = res.data.total total.value = res.data.total
loading.value = false
} else { } else {
ElMessage.error(res.msg) ElMessage.error(res.msg)
} }
loading.value = false
}).catch(err => {
loading.value = false;
}) })
} }
//切换每页显示条数 //切换每页显示条数

View File

@@ -120,10 +120,12 @@ const getList = async () => {
if (res.code === 1000) { if (res.code === 1000) {
list.value = res.data.rows list.value = res.data.rows
total.value = res.data.total total.value = res.data.total
loading.value = false
} else { } else {
ElMessage.error(res.msg) ElMessage.error(res.msg)
} }
loading.value = false
}).catch(err => {
loading.value = false;
}) })
} }

View File

@@ -204,10 +204,12 @@ const getList = async () => {
if (res.code === 1000) { if (res.code === 1000) {
list.value = res.data.rows list.value = res.data.rows
total.value = res.data.total total.value = res.data.total
loading.value = false
} else { } else {
ElMessage.error(res.msg) ElMessage.error(res.msg)
} }
loading.value = false
}).catch(err => {
loading.value = false;
}) })
} }

View File

@@ -290,7 +290,7 @@ const doPublish = () => {
addProcessDefinition(template).then(res => { addProcessDefinition(template).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
ElMessage.success(res.msg) ElMessage.success(res.msg)
// this.$router.push("/formsPanel") router.push("/workflow/process")
} else { } else {
ElMessage.error(res.msg) ElMessage.error(res.msg)
} }

View File

@@ -322,7 +322,7 @@ const insertNode = debounce((type, parentNode) => {
break; break;
} }
init() init()
}, 1000) }, 100)
/** /**
* 更新父id * 更新父id
* @param newId * @param newId
@@ -688,8 +688,8 @@ defineExpose({
display: flex; display: flex;
justify-content: center; justify-content: center;
position: relative; position: relative;
/*border-top: 2px solid #cccccc; //border-top: 2px solid #cccccc;
border-bottom: 2px solid #cccccc;*/ //border-bottom: 2px solid #cccccc;
} }
.branch-node-item { .branch-node-item {
@@ -700,7 +700,7 @@ defineExpose({
align-items: center; align-items: center;
border-top: 2px solid #000000; border-top: 2px solid #000000;
border-bottom: 2px solid #000000; border-bottom: 2px solid #000000;
//border-radius: 40px;
&:before { &:before {
content: ""; content: "";
position: absolute; position: absolute;

View File

@@ -161,10 +161,12 @@ const getList = async () => {
if (res.code === 1000) { if (res.code === 1000) {
list.value = res.data.rows list.value = res.data.rows
total.value = res.data.total total.value = res.data.total
loading.value = false
} else { } else {
ElMessage.error(res.msg) ElMessage.error(res.msg)
} }
loading.value = false
}).catch(err => {
loading.value = false;
}) })
} }

View File

@@ -149,18 +149,18 @@ const designStart = () => {
display: inline-block; display: inline-block;
.node-body-main-header { .node-body-main-header {
padding: 10px 0px 5px; padding: 10px 0 5px;
font-size: xx-small;
position: relative; position: relative;
font-size: 14px;
display: flex;
align-items: center;
.title { .title {
color: #718dff; color: #2E7CF0;
height: auto;
display: flex;
align-items: center;
.name { .name {
display: inline-block; height: auto;
height: 14px;
width: 130px;
margin-left: 2px;
} }
} }

View File

@@ -248,9 +248,9 @@ defineExpose({
display: inline-block; display: inline-block;
.node-body-main-header { .node-body-main-header {
padding: 10px 0px 5px; padding: 10px 0 5px;
position: relative; position: relative;
font-size: 14px !important; font-size: 14px;
display: flex; display: flex;
align-items: center; align-items: center;
@@ -260,13 +260,10 @@ defineExpose({
height: auto; height: auto;
display: flex; display: flex;
align-items: center; align-items: center;
.name {
height: auto;
}
} }
.name {
color: #2E7CF0;
height: auto;
}
.level { .level {
position: absolute; position: absolute;
right: 15px; right: 15px;

View File

@@ -56,6 +56,7 @@ import {useProcessStore} from '@/stores/processStore.js'
import Paging from "@/components/pagination/index.vue"; import Paging from "@/components/pagination/index.vue";
import {useCacheStore} from '@/stores/cache.js' import {useCacheStore} from '@/stores/cache.js'
import PointTag from "@/components/PointTag.vue"; import PointTag from "@/components/PointTag.vue";
import {ElMessage} from "element-plus";
const processStore = useProcessStore() const processStore = useProcessStore()
const dictStore = useCacheStore() const dictStore = useCacheStore()
@@ -100,9 +101,15 @@ const getList = async () => {
} }
loading.value = true loading.value = true
getTaskList(params).then(res => { getTaskList(params).then(res => {
list.value = res.data.rows if (res.code === 1000) {
total.value = res.data.total list.value = res.data.rows
total.value = res.data.total
} else {
ElMessage.error(res.msg)
}
loading.value = false loading.value = false
}).catch(err => {
loading.value = false;
}) })
} }