From 8b059ca5b00e2f3e3a9fbee3279b047c1e575a3a Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Sat, 17 Jun 2023 10:50:35 +0800 Subject: [PATCH] docs: update readme Signed-off-by: yovinchen Signed-off-by: YoVinchen --- package.json | 2 + src/api/process/processType.js | 7 +- src/main.js | 11 +- .../processTemplate/templateSet.vue | 226 ++++++++++++++++++ 4 files changed, 240 insertions(+), 6 deletions(-) create mode 100644 src/views/processSet/processTemplate/templateSet.vue 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 @@ + + +