diff --git a/package.json b/package.json index 6a06c51..0764245 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,8 @@ "test:ci": "npm run lint && npm run test:unit" }, "dependencies": { + "@form-create/element-ui": "^2.5.17", + "@form-create/designer": "^1.0.8", "axios": "0.18.1", "core-js": "3.6.5", "element-ui": "2.13.2", diff --git a/src/api/process/processType.js b/src/api/process/processType.js index 4ec7450..39ab5c6 100644 --- a/src/api/process/processType.js +++ b/src/api/process/processType.js @@ -3,7 +3,12 @@ import request from '@/utils/request' const api_name = '/admin/process/processType' export default { - + findAll() { + return request({ + url: `${api_name}/findAll`, + method: 'get' + }) + }, getPageList(page, limit) { return request({ url: `${api_name}/${page}/${limit}`, diff --git a/src/main.js b/src/main.js index adf59c2..58c1ddf 100644 --- a/src/main.js +++ b/src/main.js @@ -1,22 +1,23 @@ import Vue from 'vue' import 'normalize.css/normalize.css' // A modern alternative to CSS resets - import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' import locale from 'element-ui/lib/locale/lang/en' // lang i18n - import '@/styles/index.scss' // global css - import App from './App' import store from './store' import router from './router' import '@/icons' // icon import '@/permission' // permission control - -//新增 +// 新增 import hasBtnPermission from '@/utils/btn-permission' +import formCreate from '@form-create/element-ui' +import FcDesigner from '@form-create/designer' + +Vue.use(formCreate) +Vue.use(FcDesigner) Vue.prototype.$hasBP = hasBtnPermission /** * If you don't want to use mock-server diff --git a/src/views/processSet/processTemplate/templateSet.vue b/src/views/processSet/processTemplate/templateSet.vue new file mode 100644 index 0000000..eee005f --- /dev/null +++ b/src/views/processSet/processTemplate/templateSet.vue @@ -0,0 +1,226 @@ + + + + + + + + + + 上一步 + + {{ + stepIndex === 3 ? '提交保存' : '下一步' + }} + + 返回 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 将Activiti流程设计文件拖到此处,或点击上传 + 只能上传zip压缩文件,且不超过2048kb + + + + + +