fix : 细节优化

This commit is contained in:
2024-03-25 22:39:25 +08:00
parent f646c13e9d
commit 5d31b52e67
23 changed files with 98 additions and 51 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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