代码微调
This commit is contained in:
3648
pnpm-lock.yaml
generated
3648
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
import createAxios from '@/utils/request'
|
import createAxios from '@/utils/request'
|
||||||
|
|
||||||
const ADVANCE_BOOT = '/advance-boot'
|
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询进线数据
|
* 查询进线数据
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import createAxios from '@/utils/request'
|
import createAxios from '@/utils/request'
|
||||||
|
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||||
const ADVANCE_BOOT = '/advance-boot'
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import createAxios from '@/utils/request'
|
import createAxios from '@/utils/request'
|
||||||
|
|
||||||
const ADVANCE_BOOT = '/advance-boot'
|
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增设备
|
* 新增设备
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import createAxios from '@/utils/request'
|
import createAxios from '@/utils/request'
|
||||||
|
|
||||||
const ADVANCE_BOOT = '/advance-boot'
|
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import createAxios from '@/utils/request'
|
import createAxios from '@/utils/request'
|
||||||
|
|
||||||
const ADVANCE_BOOT = '/advance-boot'
|
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import createAxios from '@/utils/request'
|
import createAxios from '@/utils/request'
|
||||||
|
|
||||||
const ADVANCE_BOOT = '/advance-boot'
|
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import createAxios from '@/utils/request'
|
import createAxios from '@/utils/request'
|
||||||
|
|
||||||
const ADVANCE_BOOT = '/advance-boot'
|
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
53
src/api/process-boot/workflow/category.ts
Normal file
53
src/api/process-boot/workflow/category.ts
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
import createAxios from '@/utils/request'
|
||||||
|
|
||||||
|
import { PROCESS_BOOT } from '@/utils/constantRequest'
|
||||||
|
|
||||||
|
const MAPPING_PATH = PROCESS_BOOT +'/workflow/category'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询流程分类数据
|
||||||
|
*/
|
||||||
|
export const listCategory = (data: any) => {
|
||||||
|
return createAxios({
|
||||||
|
url: MAPPING_PATH + '/list',
|
||||||
|
method: 'POST',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增流程分类
|
||||||
|
*/
|
||||||
|
export const addCategory = (data: any) => {
|
||||||
|
return createAxios({
|
||||||
|
url: MAPPING_PATH + '/add',
|
||||||
|
method: 'POST',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新流程分类
|
||||||
|
*/
|
||||||
|
export const updateCategory = (data: any) => {
|
||||||
|
return createAxios({
|
||||||
|
url: MAPPING_PATH + '/update',
|
||||||
|
method: 'POST',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除流程分类
|
||||||
|
*/
|
||||||
|
export const deleteCategory = (data: any) => {
|
||||||
|
let ids = [data]
|
||||||
|
return createAxios({
|
||||||
|
url: MAPPING_PATH + '/delete',
|
||||||
|
method: 'POST',
|
||||||
|
data: ids
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@ import { isAny } from 'bpmn-js/lib/features/modeling/util/ModelingUtil'
|
|||||||
|
|
||||||
import { getChildLanes } from 'bpmn-js/lib/features/modeling/util/LaneUtil'
|
import { getChildLanes } from 'bpmn-js/lib/features/modeling/util/LaneUtil'
|
||||||
|
|
||||||
import { hasPrimaryModifier } from 'diagram-js/lib/util/Mouse'
|
// import { hasPrimaryModifier } from 'diagram-js/lib/util/Mouse'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A provider for BPMN 2.0 elements context pad
|
* A provider for BPMN 2.0 elements context pad
|
||||||
@@ -51,9 +51,9 @@ export default function ContextPadProvider(
|
|||||||
const context = event.context,
|
const context = event.context,
|
||||||
shape = context.shape
|
shape = context.shape
|
||||||
|
|
||||||
if (!hasPrimaryModifier(event) || !contextPad.isOpen(shape)) {
|
// if (!hasPrimaryModifier(event) || !contextPad.isOpen(shape)) {
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
|
|
||||||
const entries = contextPad.getEntries(shape)
|
const entries = contextPad.getEntries(shape)
|
||||||
|
|
||||||
|
|||||||
5
src/utils/constantRequest.ts
Normal file
5
src/utils/constantRequest.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
// 高级算法
|
||||||
|
export const ADVANCE_BOOT = '/advance-boot'
|
||||||
|
|
||||||
|
//技术监督
|
||||||
|
export const PROCESS_BOOT = '/process-boot'
|
||||||
10
src/views/system/workflow/category/index.vue
Normal file
10
src/views/system/workflow/category/index.vue
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<!--流程分类-->
|
||||||
|
<template>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
<script lang='ts' setup>
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user