提交代码

dev_xd
姜玉琦 2024-08-20 22:48:49 +08:00
parent 0bf42f74cf
commit e9d43fbdfa
10 changed files with 1642 additions and 27 deletions

View File

@ -31,7 +31,7 @@ import java.util.stream.Collectors;
@Slf4j @Slf4j
@Api(tags = "业务工作流程") @Api(tags = "业务工作流程")
@RestController @RestController
@RequestMapping("/flowable/businessKey") @RequestMapping("/businessKey")
public class FlowBusinessKeyController extends BaseController { public class FlowBusinessKeyController extends BaseController {
@Autowired @Autowired

View File

@ -49,7 +49,7 @@ import java.util.Map;
@Slf4j @Slf4j
@Api(tags = "流程定义") @Api(tags = "流程定义")
@RestController @RestController
@RequestMapping("/flowable/definition") @RequestMapping("/definition")
public class FlowDefinitionController extends BaseController { public class FlowDefinitionController extends BaseController {
@Autowired @Autowired

View File

@ -21,7 +21,7 @@ import java.util.Map;
@Slf4j @Slf4j
@Api(tags = "工作流流程实例管理") @Api(tags = "工作流流程实例管理")
@RestController @RestController
@RequestMapping("/flowable/instance") @RequestMapping("/instance")
public class FlowInstanceController { public class FlowInstanceController {
@Autowired @Autowired

View File

@ -30,7 +30,7 @@ import java.io.OutputStream;
@Slf4j @Slf4j
@Api(tags = "工作流流程任务管理") @Api(tags = "工作流流程任务管理")
@RestController @RestController
@RequestMapping("/flowable/task") @RequestMapping("/task")
public class FlowTaskController { public class FlowTaskController {
@Autowired @Autowired

View File

@ -24,7 +24,7 @@ import java.util.List;
* @date 2021-04-03 * @date 2021-04-03
*/ */
@RestController @RestController
@RequestMapping("/flowable/form") @RequestMapping("/form")
public class SysFormController extends BaseController { public class SysFormController extends BaseController {
@Autowired @Autowired
@ -100,7 +100,6 @@ public class SysFormController extends BaseController {
return toAjax(SysFormService.deleteSysFormByIds(formIds)); return toAjax(SysFormService.deleteSysFormByIds(formIds));
} }
/** /**
* *
*/ */

View File

@ -23,6 +23,7 @@
"bpmn-js": "^8.10.0", "bpmn-js": "^8.10.0",
"bpmn-js-task-resize": "^1.2.0", "bpmn-js-task-resize": "^1.2.0",
"bpmn-js-token-simulation": "^0.10.0", "bpmn-js-token-simulation": "^0.10.0",
"codemirror-editor-vue3": "^2.0.6",
"echarts": "5.4.0", "echarts": "5.4.0",
"element-plus": "2.2.27", "element-plus": "2.2.27",
"file-saver": "2.0.5", "file-saver": "2.0.5",
@ -44,6 +45,8 @@
"vite": "3.2.3", "vite": "3.2.3",
"vite-plugin-compression": "0.5.1", "vite-plugin-compression": "0.5.1",
"vite-plugin-svg-icons": "2.0.1", "vite-plugin-svg-icons": "2.0.1",
"vite-plugin-vue-setup-extend": "0.4.0" "vite-plugin-vue-setup-extend": "0.4.0",
"vue-eslint-parser": "9.1.0",
"vue-tsc": "0.35.0"
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -44,6 +44,10 @@ import TreeSelect from '@/components/TreeSelect'
import DictTag from '@/components/DictTag' import DictTag from '@/components/DictTag'
// 预设动画 // 预设动画
import animate from './animate'; import animate from './animate';
// VForm3
import VForm3 from '@/lib/vform/designer.umd.js';
import './lib/vform/designer.style.css';
const app = createApp(App) const app = createApp(App)
// 全局方法挂载 // 全局方法挂载

View File

@ -13,10 +13,9 @@
</el-form> </el-form>
</div> </div>
</transition> </transition>
<el-card shadow="never">
<template #header>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5" v-if="false">
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['flowable:form:add']"></el-button> <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['flowable:form:add']"></el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -30,7 +29,6 @@
</el-col> </el-col>
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
</template>
<el-table v-loading="loading" :data="formList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="formList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
@ -52,7 +50,6 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</el-card>
<!-- 流程表单设计器对话框 --> <!-- 流程表单设计器对话框 -->
<el-dialog :title="designer.title" v-model="designer.visible" fullscreen> <el-dialog :title="designer.title" v-model="designer.visible" fullscreen>

View File

@ -53,6 +53,17 @@ export default defineConfig(({ mode, command }) => {
} }
] ]
} }
},
// 预编译
optimizeDeps: {
include: [
'@/lib/vform/designer.umd.js',
]
},
build: {
commonjsOptions: {
include: /node_modules|lib/ //这里记得把lib目录加进来否则生产打包会报错
}
} }
} }
}) })