diff --git a/.env.development b/.env.development index 8a41aa8..b295f10 100644 --- a/.env.development +++ b/.env.development @@ -8,5 +8,5 @@ VUE_APP_BASE_API = '/api' # VUE_APP_URL = "http://jianguan.yyundong.com/shgfapi" -VUE_APP_URL = "http://127.0.0.1:7102" +VUE_APP_URL = "http://192.168.0.103:7201" ##VUE_APP_URL = "http://8.130.39.13:8112" diff --git a/src/api/commodity/commodity.js b/src/api/commodity/commodity.js new file mode 100644 index 0000000..e69de29 diff --git a/src/api/userInfo/userInfo.js b/src/api/userInfo/userInfo.js new file mode 100644 index 0000000..c1e1a19 --- /dev/null +++ b/src/api/userInfo/userInfo.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' + +export default { + + // 获取用户列表 + customerListPage: function(data) { + return request({ + url: '/lpkcustomer/customerListPage', + method: 'post', + data: data + }); + }, + + + + +} \ No newline at end of file diff --git a/src/assets/home/bj.png b/src/assets/home/bj.png new file mode 100644 index 0000000..020531b Binary files /dev/null and b/src/assets/home/bj.png differ diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index c3c64a5..dcb89b9 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -1,15 +1,15 @@ diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index c2ff43f..a72af42 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -1,282 +1,257 @@ + import { + mapGetters + } from "vuex"; + import Logo from "./Logo"; + import SidebarItem from "./SidebarItem"; + import variables from "@/styles/variables.scss"; + import { + getrolemenus, + loginDetails + } from "@/api/system/Role/role.js"; + import { + getStorage + } from "@/utils/auth"; + export default { + components: { + SidebarItem, + Logo, + }, + data() { + return { + YongHuid: [], + // routes: [], + params: { + sourceSid: "", + userSid: "", + }, + routes: [{ + alwaysShow: true, + component: "userInfo", + meta: { + icon: "el-icon-menu", + title: "用户信息", + }, + name: "/userInfo/index", + path: "/userInfo/index" + }, + { + alwaysShow: true, + component: "marketingCard", + meta: { + icon: "el-icon-menu", + title: "营销卡设置", + }, + name: "/marketingCard", + path: "/marketingCard", + children: [ + + { + alwaysShow: true, + component: "index", + meta: { + icon: "el-icon-help", + title: "礼包设置", + }, + name: "/marketingCard/index", + path: "/marketingCard/index", + }, + { + alwaysShow: true, + component: "packageDetails", + meta: { + icon: "el-icon-help", + title: "礼包奖品明细", + }, + name: "/marketingCard/packageDetails", + path: "/marketingCard/packageDetails", + }, + { + alwaysShow: true, + component: "pickupCardSet", + meta: { + icon: "el-icon-help", + title: "提货卡设置", + }, + name: "/marketingCard/pickupCardSet", + path: "/marketingCard/pickupCardSet", + }, + ] + }, + { + alwaysShow: true, + component: "pickupPoint", + meta: { + icon: "el-icon-menu", + title: "提货地点", + }, + name: "/pickupPoint/index", + path: "/pickupPoint/index" + }, + { + alwaysShow: true, + component: "commodity", + meta: { + icon: "el-icon-menu", + title: "商品信息", + }, + name: "/commodity/index", + path: "/commodity/index" + }, + { + alwaysShow: true, + component: "order", + meta: { + icon: "el-icon-menu", + title: "订单信息", + }, + name: "/order/index", + path: "/order/index" + }, + { + alwaysShow: true, + component: "statisticalReport", + meta: { + icon: "el-icon-menu", + title: "统计报表", + }, + name: "/statisticalReport/index", + path: "/statisticalReport/index", + children: [ + + { + alwaysShow: true, + component: "index", + meta: { + icon: "el-icon-help", + title: "提货卡汇总", + }, + name: "/statisticalReport/index", + path: "/statisticalReport/index", + }, + { + alwaysShow: true, + component: "collectionSummary", + meta: { + icon: "el-icon-help", + title: "提货汇总", + }, + name: "/statisticalReport/collectionSummary", + path: "/statisticalReport/collectionSummary", + }, + { + alwaysShow: true, + component: "deliveryDetails", + meta: { + icon: "el-icon-help", + title: "客户提货明细", + }, + name: "/statisticalReport/deliveryDetails", + path: "/statisticalReport/deliveryDetails", + }, + ] + }, + ], + }; + }, + computed: { + ...mapGetters(["sidebar"]), + // routes() { + // f4d2e507-c4ed-451c-b364-04c08f962045 + // console.log('78979789', this.$router.options.routes) + // return this.$router.options.routes + // }, + activeMenu() { + // const route = this.$route + // const { + // meta, + // path + // } = route + // // if set path, the sidebar will highlight the path you set + // if (meta.activeMenu) { + // return meta.activeMenu + // } + return "/index"; + }, + showLogo() { + return this.$store.state.settings.sidebarLogo; + }, + variables() { + return variables; + }, + isCollapse() { + return !this.sidebar.opened; + }, + }, + created() { + this.postHuoquyonghu(); + }, + methods: { + // 获取用户信息 + postHuoquyonghu() { + // var token = getStorage() + // loginDetails(token).then((response) => { + // console.log('resss', response) + // if (response.code === '200') { + // this.YongHuid = response.data + // this.params.userSid = this.YongHuid.sid + // getrolemenus(this.params).then((res) => { + // const userRoles = this.resRouter(res.data) + this.routes.push({ + path: "*", + redirect: "/404", + hidden: true, + }); + console.log("左侧菜单", this.routes); + return this.routes; + // }) + // } + // }) + }, + resRouter(menus) { + // 递归,将后台传来数组 + for (var i = 0; i < menus.length; i++) { + if (menus[i].children && menus[i].children.length != 0) { + this.resRouter(menus[i].children); + } + if (menus[i].children.length == 0) { + delete menus[i].children; + delete menus[i].redirect; + } + if (menus[i].component == "") { + console.log("55555", menus[i]); + menus[i] = { + path: menus[i].path, + component: "", + redirect: menus[i].path, + children: [menus[i]], + }; + } else { + // menus[i] = { + // path: menus[i].path, + // component: '', + // redirect: menus[i].path, + // children: [menus[i]], + // } + } + } + this.routes = menus; + console.log("左侧菜单", this.routes); + return menus; + }, + }, + }; + \ No newline at end of file diff --git a/src/layout/index.vue b/src/layout/index.vue index b42aaf5..89d680c 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -10,8 +10,8 @@ />
- 平台首页 - 光伏 +
diff --git a/src/router/index.js b/src/router/index.js index fbe4d80..e4c531d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,164 +9,138 @@ import Layout from '@/layout' import codemenu from './modules/codemenu' -export const constantRoutes = [{ - path: '/redirect', - component: Layout, - hidden: true, - children: [{ - path: '/redirect/:path(.*)', - component: () => import('@/views/redirect/index.vue') - }] - }, +export const constantRoutes = [ + { + path: '/', + redirect: 'userInfo' + }, { - path: '/', - redirect: 'login' - }, { - path: '/login', - component: () => import('@/views/login/login.vue') - }, { - path: '/home', - component: () => import('@/views/Home/Home.vue'), - name: 'home' - - }, { path: '/index', - component: Layout, - redirect: '/index', - children: [{ - path: '/index', - component: () => - import('@/views/index.vue'), - name: 'index', - meta: { - title: '主页', - noCache: true, - affix: true - } - }] - }, { - path: '/supervise', + component: () => import('@/views/userInfo/index.vue'), + name: 'index' + + }, + { + path: '/userInfo', component: Layout, redirect: null, meta: { - title: '进销存管理' + title: '用户信息' }, children: [{ - path: '/supervise/oilTypeInBound', - component: () => - import('@/views/supervise/oilTypeInBound/index.vue'), - name: 'index', - meta: { - title: '出库申请' - } - }, - { - path: '/supervise/oilTypeOutBound', + path: '/userInfo/index', component: () => - import('@/views/supervise/oilTypeOutBound/index.vue'), + import('@/views/userInfo/index.vue'), name: 'index', meta: { - title: '出库记录列表' - } - }, - { - path: '/supervise/recordOilTank', - component: () => - import('@/views/supervise/recordOilTank/index.vue'), - name: 'index', - meta: { - title: '入库申请' - } - }, - { - path: '/supervise/rukujilu', - component: () => - import('@/views/supervise/rukujilu/index.vue'), - name: 'index', - meta: { - title: '入库记录列表' - } - }, - { - path: '/supervise/churuku', - component: () => - import('@/views/supervise/churuku/index.vue'), - name: 'index', - meta: { - title: '出入库记录' - } - }, - { - path: '/supervise/inventory', - component: () => - import('@/views/supervise/inventory/index.vue'), - name: 'index', - meta: { - title: '库存管理' - } - }, - { - path: '/supervise/churukuHT', - component: () => - import('@/views/supervise/churukuHT/index.vue'), - name: 'index', - meta: { - title: '出入库合同管理' + title: '用户信息列表' } }, ] }, { - path: '/MaterialBrand', + path: '/marketingCard', component: Layout, - redirect: '/MaterialBrand/index', + redirect: '/marketingCard/index', children: [{ - path: '/MaterialBrand/index', - component: () => import('@/views/MaterialBrand/index.vue'), - name: 'MaterialBrand', + path: '/marketingCard/index', + component: () => import('@/views/marketingCard/index.vue'), + name: 'index', meta: { - title: '物料品牌', + title: '礼包设置', noCache: true } - }] + }, + { + path: '/marketingCard/packageDetails', + component: () => import('@/views/marketingCard/packageDetails.vue'), + name: 'packageDetails', + meta: { + title: '礼包奖品明细', + noCache: true + } + }, + { + path: '/marketingCard/pickupCardSet', + component: () => import('@/views/marketingCard/pickupCardSet.vue'), + name: 'pickupCardSet', + meta: { + title: '提货卡设置', + noCache: true + } + }, + ] },{ - path: '/materialManagement', + path: '/pickupPoint', component: Layout, - redirect: '/materialManagement/index', + redirect: '/pickupPoint/index', children: [{ - path: '/materialManagement/index', - component: () => import('@/views/materialManagement/index'), - name: 'materialManagement', - meta: { - title: '物料管理', - noCache: true - } - }] - },{ - path: '/storeManagement', + path: '/pickupPoint/index', + component: () => + import('@/views/pickupPoint/index.vue'), + name: 'index', + meta: { + title: '提货点信息' + } + },] + }, + { + path: '/commodity', component: Layout, - redirect: '/storeManagement/index', + redirect: '/commodity/index', children: [{ - path: '/storeManagement/index', - component: () => import('@/views/storeManagement/index.vue'), - name: 'storeManagement', - meta: { - title: '仓库管理', - noCache: true - } - }] + path: '/commodity/index', + component: () => + import('@/views/commodity/index.vue'), + name: 'index', + meta: { + title: '商品信息' + } + },] + }, + { + path: '/order', + component: Layout, + redirect: '/order/index', + children: [{ + path: '/order/index', + component: () => + import('@/views/order/index.vue'), + name: 'index', + meta: { + title: '订单列表' + } + },] },{ - path: '/supplierManagement', + path: '/statisticalReport', component: Layout, - redirect: '/supplierManagement/index', + redirect: '/statisticalReport/index', children: [{ - path: '/supplierManagement/index', - component: () => import('@/views/supplierManagement/index.vue'), - name: 'supplierManagement', + path: '/statisticalReport/index', + component: () => import('@/views/statisticalReport/index.vue'), + name: 'index', meta: { - title: '供应商管理', + title: '提货卡汇总', noCache: true } - }] + }, + { + path: '/statisticalReport/collectionSummary', + component: () => import('@/views/statisticalReport/collectionSummary.vue'), + name: 'collectionSummary', + meta: { + title: '提货汇总', + noCache: true + } + }, + { + path: '/statisticalReport/deliveryDetails', + component: () => import('@/views/statisticalReport/deliveryDetails.vue'), + name: 'deliveryDetails', + meta: { + title: '客户提货明细', + noCache: true + } + }] }, ...codemenu, { diff --git a/src/settings.js b/src/settings.js index db66fd5..efcba56 100644 --- a/src/settings.js +++ b/src/settings.js @@ -1,6 +1,6 @@ module.exports = { - title: '监管平台-光伏', + title: '汇融惠享', /** * @type {boolean} true | false diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss index 4d304e2..f8ed483 100644 --- a/src/styles/sidebar.scss +++ b/src/styles/sidebar.scss @@ -48,7 +48,7 @@ left: 0; z-index: 8; overflow: hidden; - padding-top: 40px; + // padding-top: 40px; // reset element-ui css .horizontal-collapse-transition { diff --git a/src/views/MaterialBrand/index.vue b/src/views/MaterialBrand/index.vue deleted file mode 100644 index 9b764ca..0000000 --- a/src/views/MaterialBrand/index.vue +++ /dev/null @@ -1,223 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/Process/BpmData.js b/src/views/Process/BpmData.js deleted file mode 100644 index 672ca44..0000000 --- a/src/views/Process/BpmData.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 存储流程设计相关参数 - */ -export default class BpmData { - constructor() { - this.controls = [] // 设计器控件 - this.init() - } - - init() { - this.controls = [ - { - action: 'create.start-event', - title: '开始' - }, - { - action: 'create.intermediate-event', - title: '中间' - }, - { - action: 'create.end-event', - title: '结束' - }, - { - action: 'create.exclusive-gateway', - title: '网关' - }, - { - action: 'create.task', - title: '任务' - }, - { - action: 'create.user-task', - title: '用户任务' - }, - { - action: 'create.user-sign-task', - title: '会签任务' - }, - { - action: 'create.subprocess-expanded', - title: '子流程' - }, - { - action: 'create.data-object', - title: '数据对象' - }, - { - action: 'create.data-store', - title: '数据存储' - }, - { - action: 'create.participant-expanded', - title: '扩展流程' - }, - { - action: 'create.group', - title: '分组' - } - ] - } - - // 获取控件配置信息 - getControl(action) { - const result = this.controls.filter(item => item.action === action) - return result[0] || {} - } -} diff --git a/src/views/Process/PropertyPanel.vue b/src/views/Process/PropertyPanel.vue deleted file mode 100644 index 970bd0f..0000000 --- a/src/views/Process/PropertyPanel.vue +++ /dev/null @@ -1,169 +0,0 @@ - - - - - diff --git a/src/views/Process/common/customTranslate.js b/src/views/Process/common/customTranslate.js deleted file mode 100644 index fa05f9d..0000000 --- a/src/views/Process/common/customTranslate.js +++ /dev/null @@ -1,20 +0,0 @@ -import translations from '../lang/zh' - -export default function customTranslate(template, replacements) { - replacements = replacements || {} - - // Translate - template = translations[template] || template - - // Replace - return template.replace(/{([^}]+)}/g, function(_, key) { - var str = replacements[key] - if ( - translations[replacements[key]] !== null && - translations[replacements[key]] !== 'undefined' - ) { - str = translations[replacements[key]] - } - return str || '{' + key + '}' - }) -} diff --git a/src/views/Process/common/mixinExecutionListener.js b/src/views/Process/common/mixinExecutionListener.js deleted file mode 100644 index 23295b0..0000000 --- a/src/views/Process/common/mixinExecutionListener.js +++ /dev/null @@ -1,24 +0,0 @@ - -import executionListenerDialog from '../components/nodePanel/property/executionListener' -export default { - components: { - executionListenerDialog - }, - data() { - return { - executionListenerLength: 0, - dialogName: null - } - }, - methods: { - computedExecutionListenerLength() { - this.executionListenerLength = this.element.businessObject.extensionElements?.values?.length ?? 0 - }, - finishExecutionListener() { - if (this.dialogName === 'executionListenerDialog') { - this.computedExecutionListenerLength() - } - this.dialogName = '' - } - } -} diff --git a/src/views/Process/common/mixinPanel.js b/src/views/Process/common/mixinPanel.js deleted file mode 100644 index 8686b98..0000000 --- a/src/views/Process/common/mixinPanel.js +++ /dev/null @@ -1,70 +0,0 @@ -import xcrud from 'xcrud' -import golbalConfig from 'xcrud/package/common/config' -import showConfig from '../flowable/showConfig' -golbalConfig.set({ - input: { - // size: 'mini' - }, - select: { - // size: 'mini' - }, - colorPicker: { - showAlpha: true - }, - xform: { - form: { - labelWidth: 'auto' - // size: 'mini' - } - } -}) -export default { - components: { xForm: xcrud.xForm }, - props: { - modeler: { - type: Object, - required: true - }, - element: { - type: Object, - required: true - }, - categorys: { - type: Array, - default: () => [] - } - }, - watch: { - 'formData.id': function(val) { - this.updateProperties({ id: val }) - }, - 'formData.name': function(val) { - this.updateProperties({ name: val }) - }, - 'formData.documentation': function(val) { - if (!val) { - this.updateProperties({ documentation: [] }) - return - } - const documentationElement = this.modeler.get('moddle').create('bpmn:Documentation', { text: val }) - this.updateProperties({ documentation: [documentationElement] }) - } - }, - methods: { - updateProperties(properties) { - const modeling = this.modeler.get('modeling') - modeling.updateProperties(this.element, properties) - } - }, - computed: { - elementType() { - const bizObj = this.element.businessObject - return bizObj.eventDefinitions - ? bizObj.eventDefinitions[0].$type - : bizObj.$type - }, - showConfig() { - return showConfig[this.elementType] || {} - } - } -} diff --git a/src/views/Process/common/mixinXcrud.js b/src/views/Process/common/mixinXcrud.js deleted file mode 100644 index 1f7ee5b..0000000 --- a/src/views/Process/common/mixinXcrud.js +++ /dev/null @@ -1,22 +0,0 @@ -import xcrud from 'xcrud' -import golbalConfig from 'xcrud/package/common/config' -golbalConfig.set({ - input: { - // size: 'mini' - }, - select: { - // size: 'mini' - }, - colorPicker: { - showAlpha: true - }, - xform: { - form: { - labelWidth: 'auto' - // size: 'mini' - } - } -}) -export default { - components: { xForm: xcrud.xForm } -} diff --git a/src/views/Process/common/parseElement.js b/src/views/Process/common/parseElement.js deleted file mode 100644 index 63cf336..0000000 --- a/src/views/Process/common/parseElement.js +++ /dev/null @@ -1,53 +0,0 @@ -export function commonParse(element) { - const result = { - ...element.businessObject, - ...element.businessObject.$attrs - } - return formatJsonKeyValue(result) -} - -export function formatJsonKeyValue(result) { - // 移除flowable前缀,格式化数组 - for (const key in result) { - if (key.indexOf('flowable:') === 0) { - const newKey = key.replace('flowable:', '') - result[newKey] = result[key] - delete result[key] - } - } - result = documentationParse(result) - return result -} - -export function documentationParse(obj) { - if ('documentation' in obj) { - let str = '' - obj.documentation.forEach(item => { - str += item.text - }) - obj.documentation = str - } - return obj -} - -export function conditionExpressionParse(obj) { - if ('conditionExpression' in obj) { - obj.conditionExpression = obj.conditionExpression.body - } - return obj -} - -export function userTaskParse(obj) { - for (const key in obj) { - if (key === 'candidateUsers') { - obj.userType = 'candidateUsers' - obj[key] = obj[key]?.split(',') || [] - } else if (key === 'candidateGroups') { - obj.userType = 'candidateGroups' - obj[key] = obj[key]?.split(',') || [] - } else if (key === 'assignee') { - obj.userType = 'assignee' - } - } - return obj -} diff --git a/src/views/Process/components/custom/customContextPad.vue b/src/views/Process/components/custom/customContextPad.vue deleted file mode 100644 index 89c2f68..0000000 --- a/src/views/Process/components/custom/customContextPad.vue +++ /dev/null @@ -1,24 +0,0 @@ -export default class CustomContextPad { - constructor(config, contextPad, create, elementFactory, injector, translate) { - this.create = create; - this.elementFactory = elementFactory; - this.translate = translate; - - if (config.autoPlace !== false) { - this.autoPlace = injector.get('autoPlace', false); - } - - contextPad.registerProvider(this); // 定义这是一个contextPad - } - - getContextPadEntries(element) {} -} - -CustomContextPad.$inject = [ - 'config', - 'contextPad', - 'create', - 'elementFactory', - 'injector', - 'translate' -]; diff --git a/src/views/Process/components/nodePanel/gateway.vue b/src/views/Process/components/nodePanel/gateway.vue deleted file mode 100644 index db18153..0000000 --- a/src/views/Process/components/nodePanel/gateway.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - - - diff --git a/src/views/Process/components/nodePanel/process.vue b/src/views/Process/components/nodePanel/process.vue deleted file mode 100644 index 6946f1e..0000000 --- a/src/views/Process/components/nodePanel/process.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - diff --git a/src/views/Process/components/nodePanel/property/executionListener.vue b/src/views/Process/components/nodePanel/property/executionListener.vue deleted file mode 100644 index 1a15b8a..0000000 --- a/src/views/Process/components/nodePanel/property/executionListener.vue +++ /dev/null @@ -1,194 +0,0 @@ - - - - - diff --git a/src/views/Process/components/nodePanel/property/listenerParam.vue b/src/views/Process/components/nodePanel/property/listenerParam.vue deleted file mode 100644 index dd8ace1..0000000 --- a/src/views/Process/components/nodePanel/property/listenerParam.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - - - diff --git a/src/views/Process/components/nodePanel/property/multiInstance.vue b/src/views/Process/components/nodePanel/property/multiInstance.vue deleted file mode 100644 index 357b716..0000000 --- a/src/views/Process/components/nodePanel/property/multiInstance.vue +++ /dev/null @@ -1,117 +0,0 @@ - - - - - diff --git a/src/views/Process/components/nodePanel/property/signal.vue b/src/views/Process/components/nodePanel/property/signal.vue deleted file mode 100644 index 2c29d73..0000000 --- a/src/views/Process/components/nodePanel/property/signal.vue +++ /dev/null @@ -1,124 +0,0 @@ - - - - - diff --git a/src/views/Process/components/nodePanel/property/taskListener.vue b/src/views/Process/components/nodePanel/property/taskListener.vue deleted file mode 100644 index 0f72a89..0000000 --- a/src/views/Process/components/nodePanel/property/taskListener.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - - diff --git a/src/views/Process/components/nodePanel/sequenceFlow.vue b/src/views/Process/components/nodePanel/sequenceFlow.vue deleted file mode 100644 index 178cd7d..0000000 --- a/src/views/Process/components/nodePanel/sequenceFlow.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - - - diff --git a/src/views/Process/components/nodePanel/startEnd.vue b/src/views/Process/components/nodePanel/startEnd.vue deleted file mode 100644 index 2740bf6..0000000 --- a/src/views/Process/components/nodePanel/startEnd.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - - - diff --git a/src/views/Process/components/nodePanel/task.vue b/src/views/Process/components/nodePanel/task.vue deleted file mode 100644 index 61a00d1..0000000 --- a/src/views/Process/components/nodePanel/task.vue +++ /dev/null @@ -1,426 +0,0 @@ - - - - - diff --git a/src/views/Process/flowable/flowable.json b/src/views/Process/flowable/flowable.json deleted file mode 100644 index 73ac308..0000000 --- a/src/views/Process/flowable/flowable.json +++ /dev/null @@ -1,1194 +0,0 @@ -{ - "name": "Flowable", - "uri": "http://flowable.org/bpmn", - "prefix": "flowable", - "xml": { - "tagAlias": "lowerCase" - }, - "associations": [], - "types": [ - { - "name": "InOutBinding", - "superClass": ["Element"], - "isAbstract": true, - "properties": [ - { - "name": "source", - "isAttr": true, - "type": "String" - }, - { - "name": "sourceExpression", - "isAttr": true, - "type": "String" - }, - { - "name": "target", - "isAttr": true, - "type": "String" - }, - { - "name": "businessKey", - "isAttr": true, - "type": "String" - }, - { - "name": "local", - "isAttr": true, - "type": "Boolean", - "default": false - }, - { - "name": "variables", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "In", - "superClass": ["InOutBinding"], - "meta": { - "allowedIn": ["bpmn:CallActivity"] - } - }, - { - "name": "Out", - "superClass": ["InOutBinding"], - "meta": { - "allowedIn": ["bpmn:CallActivity"] - } - }, - { - "name": "AsyncCapable", - "isAbstract": true, - "extends": ["bpmn:Activity", "bpmn:Gateway", "bpmn:Event"], - "properties": [ - { - "name": "async", - "isAttr": true, - "type": "Boolean", - "default": false - }, - { - "name": "asyncBefore", - "isAttr": true, - "type": "Boolean", - "default": false - }, - { - "name": "asyncAfter", - "isAttr": true, - "type": "Boolean", - "default": false - }, - { - "name": "exclusive", - "isAttr": true, - "type": "Boolean", - "default": true - } - ] - }, - { - "name": "flowable:in", - "superClass": ["Element"], - "properties": [ - { - "name": "source", - "type": "string", - "isAttr": true - }, - { - "name": "target", - "type": "string", - "isAttr": true - } - ] - }, - { - "name": "flowable:out", - "superClass": ["Element"], - "properties": [ - { - "name": "source", - "type": "string", - "isAttr": true - }, - { - "name": "target", - "type": "string", - "isAttr": true - } - ] - }, - { - "name": "BoundaryEvent", - "superClass": ["CatchEvent"], - "properties": [ - { - "name": "cancelActivity", - "default": true, - "isAttr": true, - "type": "Boolean" - }, - { - "name": "attachedToRef", - "type": "Activity", - "isAttr": true, - "isReference": true - } - ] - }, - { - "name": "JobPriorized", - "isAbstract": true, - "extends": ["bpmn:Process", "flowable:AsyncCapable"], - "properties": [ - { - "name": "jobPriority", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "SignalEventDefinition", - "isAbstract": true, - "extends": ["bpmn:SignalEventDefinition"], - "properties": [ - { - "name": "async", - "isAttr": true, - "type": "Boolean", - "default": false - } - ] - }, - { - "name": "ErrorEventDefinition", - "isAbstract": true, - "extends": ["bpmn:ErrorEventDefinition"], - "properties": [ - { - "name": "errorCodeVariable", - "isAttr": true, - "type": "String" - }, - { - "name": "errorMessageVariable", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "Error", - "isAbstract": true, - "extends": ["bpmn:Error"], - "properties": [ - { - "name": "flowable:errorMessage", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "PotentialStarter", - "superClass": ["Element"], - "properties": [ - { - "name": "resourceAssignmentExpression", - "type": "bpmn:ResourceAssignmentExpression" - } - ] - }, - { - "name": "UserTask", - "isAbstract": true, - "extends": ["bpmn:UserTask"], - "properties": [ - { - "name": "timerEventDefinition", - "type": "Expression" - }, - { - "name": "multiInstanceLoopCharacteristics", - "type": "MultiInstanceLoopCharacteristics" - } - ] - }, - { - "name": "StartEvent", - "isAbstract": true, - "extends": ["bpmn:StartEvent"], - "properties": [ - { - "name": "timerEventDefinition", - "type": "Expression" - } - ] - }, - { - "name": "FormSupported", - "isAbstract": true, - "extends": ["bpmn:StartEvent", "bpmn:UserTask"], - "properties": [ - { - "name": "formHandlerClass", - "isAttr": true, - "type": "String" - }, - { - "name": "formKey", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "TemplateSupported", - "isAbstract": true, - "extends": ["bpmn:Process", "bpmn:FlowElement"], - "properties": [ - { - "name": "modelerTemplate", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "Initiator", - "isAbstract": true, - "extends": ["bpmn:StartEvent"], - "properties": [ - { - "name": "initiator", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "ScriptTask", - "isAbstract": true, - "extends": ["bpmn:ScriptTask"], - "properties": [ - { - "name": "resultVariable", - "isAttr": true, - "type": "String" - }, - { - "name": "resource", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "Process", - "isAbstract": true, - "extends": ["bpmn:Process"], - "properties": [ - { - "name": "candidateStarterGroups", - "isAttr": true, - "type": "String" - }, - { - "name": "candidateStarterUsers", - "isAttr": true, - "type": "String" - }, - { - "name": "versionTag", - "isAttr": true, - "type": "String" - }, - { - "name": "historyTimeToLive", - "isAttr": true, - "type": "String" - }, - { - "name": "isStartableInTasklist", - "isAttr": true, - "type": "Boolean", - "default": true - } - ] - }, - { - "name": "EscalationEventDefinition", - "isAbstract": true, - "extends": ["bpmn:EscalationEventDefinition"], - "properties": [ - { - "name": "escalationCodeVariable", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "FormalExpression", - "isAbstract": true, - "extends": ["bpmn:FormalExpression"], - "properties": [ - { - "name": "resource", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "Assignable", - "extends": ["bpmn:UserTask"], - "properties": [ - { - "name": "candidateGroups", - "isAttr": true, - "type": "String" - }, - { - "name": "dueDate", - "isAttr": true, - "type": "String" - }, - { - "name": "followUpDate", - "isAttr": true, - "type": "String" - }, - { - "name": "priority", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "CallActivity", - "extends": ["bpmn:CallActivity"], - "properties": [ - { - "name": "calledElementBinding", - "isAttr": true, - "type": "String", - "default": "latest" - }, - { - "name": "calledElementVersion", - "isAttr": true, - "type": "String" - }, - { - "name": "calledElementVersionTag", - "isAttr": true, - "type": "String" - }, - { - "name": "calledElementTenantId", - "isAttr": true, - "type": "String" - }, - { - "name": "caseRef", - "isAttr": true, - "type": "String" - }, - { - "name": "caseBinding", - "isAttr": true, - "type": "String", - "default": "latest" - }, - { - "name": "caseVersion", - "isAttr": true, - "type": "String" - }, - { - "name": "caseTenantId", - "isAttr": true, - "type": "String" - }, - { - "name": "variableMappingClass", - "isAttr": true, - "type": "String" - }, - { - "name": "variableMappingDelegateExpression", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "ServiceTaskLike", - "extends": [ - "bpmn:ServiceTask", - "bpmn:BusinessRuleTask", - "bpmn:SendTask", - "bpmn:MessageEventDefinition" - ], - "properties": [ - { - "name": "expression", - "isAttr": true, - "type": "String" - }, - { - "name": "class", - "isAttr": true, - "type": "String" - }, - { - "name": "delegateExpression", - "isAttr": true, - "type": "String" - }, - { - "name": "resultVariable", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "ExclusiveGateway", - "isAbstract": true, - "extends": ["bpmn:ExclusiveGateway"], - "properties": [ - { - "name": "serviceClass", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "DmnCapable", - "extends": ["bpmn:BusinessRuleTask"], - "properties": [ - { - "name": "decisionRef", - "isAttr": true, - "type": "String" - }, - { - "name": "decisionRefBinding", - "isAttr": true, - "type": "String", - "default": "latest" - }, - { - "name": "decisionRefVersion", - "isAttr": true, - "type": "String" - }, - { - "name": "mapDecisionResult", - "isAttr": true, - "type": "String", - "default": "resultList" - }, - { - "name": "decisionRefTenantId", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "ExternalCapable", - "extends": ["flowable:ServiceTaskLike"], - "properties": [ - { - "name": "type", - "isAttr": true, - "type": "String" - }, - { - "name": "topic", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "TaskPriorized", - "extends": ["bpmn:Process", "flowable:ExternalCapable"], - "properties": [ - { - "name": "taskPriority", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "Properties", - "superClass": ["Element"], - "meta": { - "allowedIn": ["*"] - }, - "properties": [ - { - "name": "values", - "type": "Property", - "isMany": true - } - ] - }, - { - "name": "Property", - "superClass": ["Element"], - "properties": [ - { - "name": "id", - "type": "String", - "isAttr": true - }, - { - "name": "name", - "type": "String", - "isAttr": true - }, - { - "name": "value", - "type": "String", - "isAttr": true - } - ] - }, - { - "name": "Connector", - "superClass": ["Element"], - "meta": { - "allowedIn": ["flowable:ServiceTaskLike"] - }, - "properties": [ - { - "name": "inputOutput", - "type": "InputOutput" - }, - { - "name": "connectorId", - "type": "String" - } - ] - }, - { - "name": "InputOutput", - "superClass": ["Element"], - "meta": { - "allowedIn": ["bpmn:FlowNode", "flowable:Connector"] - }, - "properties": [ - { - "name": "inputOutput", - "type": "InputOutput" - }, - { - "name": "connectorId", - "type": "String" - }, - { - "name": "inputParameters", - "isMany": true, - "type": "InputParameter" - }, - { - "name": "outputParameters", - "isMany": true, - "type": "OutputParameter" - } - ] - }, - { - "name": "InputOutputParameter", - "properties": [ - { - "name": "name", - "isAttr": true, - "type": "String" - }, - { - "name": "value", - "isBody": true, - "type": "String" - }, - { - "name": "definition", - "type": "InputOutputParameterDefinition" - } - ] - }, - { - "name": "InputOutputParameterDefinition", - "isAbstract": true - }, - { - "name": "List", - "superClass": ["InputOutputParameterDefinition"], - "properties": [ - { - "name": "items", - "isMany": true, - "type": "InputOutputParameterDefinition" - } - ] - }, - { - "name": "Map", - "superClass": ["InputOutputParameterDefinition"], - "properties": [ - { - "name": "entries", - "isMany": true, - "type": "Entry" - } - ] - }, - { - "name": "Entry", - "properties": [ - { - "name": "key", - "isAttr": true, - "type": "String" - }, - { - "name": "value", - "isBody": true, - "type": "String" - }, - { - "name": "definition", - "type": "InputOutputParameterDefinition" - } - ] - }, - { - "name": "Value", - "superClass": ["InputOutputParameterDefinition"], - "properties": [ - { - "name": "id", - "isAttr": true, - "type": "String" - }, - { - "name": "name", - "isAttr": true, - "type": "String" - }, - { - "name": "value", - "isBody": true, - "type": "String" - } - ] - }, - { - "name": "Script", - "superClass": ["InputOutputParameterDefinition"], - "properties": [ - { - "name": "scriptFormat", - "isAttr": true, - "type": "String" - }, - { - "name": "resource", - "isAttr": true, - "type": "String" - }, - { - "name": "value", - "isBody": true, - "type": "String" - } - ] - }, - { - "name": "Field", - "superClass": ["Element"], - "meta": { - "allowedIn": [ - "flowable:ServiceTaskLike", - "flowable:ExecutionListener", - "flowable:TaskListener" - ] - }, - "properties": [ - { - "name": "name", - "isAttr": true, - "type": "String" - }, - { - "name": "expression", - "isAttr": true, - "type": "expression" - }, - { - "name": "string", - "type": "string" - }, - { - "name": "stringValue", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "string", - "superClass": ["Element"], - "meta": { - "allowedIn": [ - "flowable:Field" - ] - }, - "properties": [ - { - "name": "body", - "isBody": true, - "type": "String" - } - ] - }, - { - "name": "expression", - "superClass": ["Element"], - "meta": { - "allowedIn": [ - "flowable:Field" - ] - }, - "properties": [ - { - "name": "body", - "isBody": true, - "type": "String" - } - ] - }, - { - "name": "InputParameter", - "superClass": ["InputOutputParameter"] - }, - { - "name": "OutputParameter", - "superClass": ["InputOutputParameter"] - }, - { - "name": "Collectable", - "isAbstract": true, - "extends": ["bpmn:MultiInstanceLoopCharacteristics"], - "superClass": ["flowable:AsyncCapable"], - "properties": [ - { - "name": "collection", - "isAttr": true, - "type": "String" - }, - { - "name": "elementVariable", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "SequenceFlow", - "superClass": ["FlowElement"], - "properties": [ - { - "name": "isImmediate", - "isAttr": true, - "type": "Boolean" - }, - { - "name": "conditionExpression", - "type": "Expression" - }, - { - "name": "sourceRef", - "type": "FlowNode", - "isAttr": true, - "isReference": true - }, - { - "name": "targetRef", - "type": "FlowNode", - "isAttr": true, - "isReference": true - } - ] - }, - { - "name": "MultiInstanceLoopCharacteristics", - "superClass": ["LoopCharacteristics"], - "properties": [ - { - "name": "isSequential", - "default": false, - "isAttr": true, - "type": "Boolean" - }, - { - "name": "behavior", - "type": "MultiInstanceBehavior", - "default": "All", - "isAttr": true - }, - { - "name": "loopCardinality", - "type": "Expression", - "xml": { - "serialize": "xsi:type" - } - }, - { - "name": "loopDataInputRef", - "type": "ItemAwareElement", - "isReference": true - }, - { - "name": "loopDataOutputRef", - "type": "ItemAwareElement", - "isReference": true - }, - { - "name": "inputDataItem", - "type": "DataInput", - "xml": { - "serialize": "property" - } - }, - { - "name": "outputDataItem", - "type": "DataOutput", - "xml": { - "serialize": "property" - } - }, - { - "name": "complexBehaviorDefinition", - "type": "ComplexBehaviorDefinition", - "isMany": true - }, - { - "name": "completionCondition", - "type": "Expression", - "xml": { - "serialize": "xsi:type" - } - }, - { - "name": "oneBehaviorEventRef", - "type": "EventDefinition", - "isAttr": true, - "isReference": true - }, - { - "name": "noneBehaviorEventRef", - "type": "EventDefinition", - "isAttr": true, - "isReference": true - } - ] - }, - { - "name": "FailedJobRetryTimeCycle", - "superClass": ["Element"], - "meta": { - "allowedIn": ["flowable:AsyncCapable", "bpmn:MultiInstanceLoopCharacteristics"] - }, - "properties": [ - { - "name": "body", - "isBody": true, - "type": "String" - } - ] - }, - { - "name": "ExecutionListener", - "superClass": ["Element"], - "meta": { - "allowedIn": [ - "bpmn:Task", - "bpmn:ServiceTask", - "bpmn:UserTask", - "bpmn:BusinessRuleTask", - "bpmn:ScriptTask", - "bpmn:ReceiveTask", - "bpmn:ManualTask", - "bpmn:ExclusiveGateway", - "bpmn:SequenceFlow", - "bpmn:ParallelGateway", - "bpmn:InclusiveGateway", - "bpmn:EventBasedGateway", - "bpmn:StartEvent", - "bpmn:IntermediateCatchEvent", - "bpmn:IntermediateThrowEvent", - "bpmn:EndEvent", - "bpmn:BoundaryEvent", - "bpmn:CallActivity", - "bpmn:SubProcess", - "bpmn:Process" - ] - }, - "properties": [ - { - "name": "expression", - "isAttr": true, - "type": "String" - }, - { - "name": "class", - "isAttr": true, - "type": "String" - }, - { - "name": "delegateExpression", - "isAttr": true, - "type": "String" - }, - { - "name": "event", - "isAttr": true, - "type": "String" - }, - { - "name": "script", - "type": "Script" - }, - { - "name": "fields", - "type": "Field", - "isMany": true - } - ] - }, - { - "name": "TaskListener", - "superClass": ["Element"], - "meta": { - "allowedIn": ["bpmn:UserTask"] - }, - "properties": [ - { - "name": "expression", - "isAttr": true, - "type": "String" - }, - { - "name": "class", - "isAttr": true, - "type": "String" - }, - { - "name": "delegateExpression", - "isAttr": true, - "type": "String" - }, - { - "name": "event", - "isAttr": true, - "type": "String" - }, - { - "name": "script", - "type": "Script" - }, - { - "name": "fields", - "type": "Field", - "isMany": true - } - ] - }, - { - "name": "FormProperty", - "superClass": ["Element"], - "meta": { - "allowedIn": ["bpmn:StartEvent", "bpmn:UserTask"] - }, - "properties": [ - { - "name": "id", - "type": "String", - "isAttr": true - }, - { - "name": "name", - "type": "String", - "isAttr": true - }, - { - "name": "type", - "type": "String", - "isAttr": true - }, - { - "name": "required", - "type": "String", - "isAttr": true - }, - { - "name": "readable", - "type": "String", - "isAttr": true - }, - { - "name": "writable", - "type": "String", - "isAttr": true - }, - { - "name": "variable", - "type": "String", - "isAttr": true - }, - { - "name": "expression", - "type": "String", - "isAttr": true - }, - { - "name": "datePattern", - "type": "String", - "isAttr": true - }, - { - "name": "default", - "type": "String", - "isAttr": true - }, - { - "name": "values", - "type": "Value", - "isMany": true - } - ] - }, - { - "name": "FormData", - "superClass": ["Element"], - "meta": { - "allowedIn": ["bpmn:StartEvent", "bpmn:UserTask"] - }, - "properties": [ - { - "name": "fields", - "type": "FormField", - "isMany": true - }, - { - "name": "businessKey", - "type": "String", - "isAttr": true - } - ] - }, - { - "name": "FormField", - "superClass": ["Element"], - "properties": [ - { - "name": "id", - "type": "String", - "isAttr": true - }, - { - "name": "label", - "type": "String", - "isAttr": true - }, - { - "name": "type", - "type": "String", - "isAttr": true - }, - { - "name": "datePattern", - "type": "String", - "isAttr": true - }, - { - "name": "defaultValue", - "type": "String", - "isAttr": true - }, - { - "name": "properties", - "type": "Properties" - }, - { - "name": "validation", - "type": "Validation" - }, - { - "name": "values", - "type": "Value", - "isMany": true - } - ] - }, - { - "name": "Validation", - "superClass": ["Element"], - "properties": [ - { - "name": "constraints", - "type": "Constraint", - "isMany": true - } - ] - }, - { - "name": "Constraint", - "superClass": ["Element"], - "properties": [ - { - "name": "name", - "type": "String", - "isAttr": true - }, - { - "name": "config", - "type": "String", - "isAttr": true - } - ] - }, - { - "name": "ConditionalEventDefinition", - "isAbstract": true, - "extends": ["bpmn:ConditionalEventDefinition"], - "properties": [ - { - "name": "variableName", - "isAttr": true, - "type": "String" - }, - { - "name": "variableEvent", - "isAttr": true, - "type": "String" - } - ] - } - ], - "emumerations": [] - } diff --git a/src/views/Process/flowable/init.js b/src/views/Process/flowable/init.js deleted file mode 100644 index ec9e282..0000000 --- a/src/views/Process/flowable/init.js +++ /dev/null @@ -1,24 +0,0 @@ - -function randomStr() { - return Math.random().toString(36).slice(-8) -} - -export default function() { - return ` - - - - - - - - - - - - - - - - ` -} diff --git a/src/views/Process/flowable/showConfig.js b/src/views/Process/flowable/showConfig.js deleted file mode 100644 index 69ba83e..0000000 --- a/src/views/Process/flowable/showConfig.js +++ /dev/null @@ -1,55 +0,0 @@ -export default { - 'bpmn:EndEvent': {}, - 'bpmn:StartEvent': { - initiator: true, - formKey: true - }, - 'bpmn:UserTask': { - userType: true, - dataType: true, - assignee: true, - candidateUsers: true, - candidateGroups: true, - // assigneeFixed: true, - // candidateUsersFixed: true, - // candidateGroupsFixed: true, - async: true, - priority: true, - formKey: true, - skipExpression: true, - dueDate: true, - taskListener: true - }, - 'bpmn:ServiceTask': { - async: true, - skipExpression: true, - isForCompensation: true, - triggerable: true, - class: true - }, - 'bpmn:ScriptTask': { - async: true, - isForCompensation: true, - autoStoreVariables: true - }, - 'bpmn:ManualTask': { - async: true, - isForCompensation: true - }, - 'bpmn:ReceiveTask': { - async: true, - isForCompensation: true - }, - 'bpmn:SendTask': { - async: true, - isForCompensation: true - }, - 'bpmn:BusinessRuleTask': { - async: true, - isForCompensation: true, - ruleVariablesInput: true, - rules: true, - resultVariable: true, - exclude: true - } -} diff --git a/src/views/Process/index.js b/src/views/Process/index.js deleted file mode 100644 index f78489d..0000000 --- a/src/views/Process/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import workflowBpmnModeler from './index.vue' - -workflowBpmnModeler.install = Vue => Vue.component(workflowBpmnModeler.name, workflowBpmnModeler) // 给组件配置install方法 - -export default workflowBpmnModeler diff --git a/src/views/Process/index.vue b/src/views/Process/index.vue deleted file mode 100644 index fd40e36..0000000 --- a/src/views/Process/index.vue +++ /dev/null @@ -1,467 +0,0 @@ - - - - - diff --git a/src/views/Process/lang/zh.js b/src/views/Process/lang/zh.js deleted file mode 100644 index 003c0cc..0000000 --- a/src/views/Process/lang/zh.js +++ /dev/null @@ -1,227 +0,0 @@ -export default { - // Labels - 'Activate the global connect tool': '激活全局连接工具', - 'Append {type}': '添加 {type}', - 'Add Lane above': '在上面添加道', - 'Divide into two Lanes': '分割成两个道', - 'Divide into three Lanes': '分割成三个道', - 'Add Lane below': '在下面添加道', - 'Append compensation activity': '追加补偿活动', - 'Change type': '修改类型', - 'Connect using Association': '使用关联连接', - 'Connect using Sequence/MessageFlow or Association': '使用顺序/消息流或者关联连接', - 'Connect using DataInputAssociation': '使用数据输入关联连接', - 'Remove': '移除', - 'Activate the hand tool': '激活抓手工具', - 'Activate the lasso tool': '激活套索工具', - 'Activate the create/remove space tool': '激活创建/删除空间工具', - 'Create expanded SubProcess': '创建扩展子过程', - 'Create IntermediateThrowEvent/BoundaryEvent': '创建中间抛出事件/边界事件', - 'Create Pool/Participant': '创建池/参与者', - 'Parallel Multi Instance': '并行多重事件', - 'Sequential Multi Instance': '时序多重事件', - 'DataObjectReference': '数据对象参考', - 'DataStoreReference': '数据存储参考', - 'Loop': '循环', - 'Ad-hoc': '即席', - 'Create {type}': '创建 {type}', - 'Task': '任务', - 'Send Task': '发送任务', - 'Receive Task': '接收任务', - 'User Task': '用户任务', - 'Manual Task': '手工任务', - 'Business Rule Task': '业务规则任务', - 'Service Task': '服务任务', - 'Script Task': '脚本任务', - 'Call Activity': '调用活动', - 'Sub Process (collapsed)': '子流程(折叠的)', - 'Sub Process (expanded)': '子流程(展开的)', - 'Start Event': '开始事件', - 'StartEvent': '开始事件', - 'Intermediate Throw Event': '中间事件', - 'End Event': '结束事件', - 'EndEvent': '结束事件', - 'Create Gateway': '创建网关', - 'Create Intermediate/Boundary Event': '创建中间/边界事件', - 'Message Start Event': '消息开始事件', - 'Timer Start Event': '定时开始事件', - 'Conditional Start Event': '条件开始事件', - 'Signal Start Event': '信号开始事件', - 'Error Start Event': '错误开始事件', - 'Escalation Start Event': '升级开始事件', - 'Compensation Start Event': '补偿开始事件', - 'Message Start Event (non-interrupting)': '消息开始事件(非中断)', - 'Timer Start Event (non-interrupting)': '定时开始事件(非中断)', - 'Conditional Start Event (non-interrupting)': '条件开始事件(非中断)', - 'Signal Start Event (non-interrupting)': '信号开始事件(非中断)', - 'Escalation Start Event (non-interrupting)': '升级开始事件(非中断)', - 'Message Intermediate Catch Event': '消息中间捕获事件', - 'Message Intermediate Throw Event': '消息中间抛出事件', - 'Timer Intermediate Catch Event': '定时中间捕获事件', - 'Escalation Intermediate Throw Event': '升级中间抛出事件', - 'Conditional Intermediate Catch Event': '条件中间捕获事件', - 'Link Intermediate Catch Event': '链接中间捕获事件', - 'Link Intermediate Throw Event': '链接中间抛出事件', - 'Compensation Intermediate Throw Event': '补偿中间抛出事件', - 'Signal Intermediate Catch Event': '信号中间捕获事件', - 'Signal Intermediate Throw Event': '信号中间抛出事件', - 'Message End Event': '消息结束事件', - 'Escalation End Event': '定时结束事件', - 'Error End Event': '错误结束事件', - 'Cancel End Event': '取消结束事件', - 'Compensation End Event': '补偿结束事件', - 'Signal End Event': '信号结束事件', - 'Terminate End Event': '终止结束事件', - 'Message Boundary Event': '消息边界事件', - 'Message Boundary Event (non-interrupting)': '消息边界事件(非中断)', - 'Timer Boundary Event': '定时边界事件', - 'Timer Boundary Event (non-interrupting)': '定时边界事件(非中断)', - 'Escalation Boundary Event': '升级边界事件', - 'Escalation Boundary Event (non-interrupting)': '升级边界事件(非中断)', - 'Conditional Boundary Event': '条件边界事件', - 'Conditional Boundary Event (non-interrupting)': '条件边界事件(非中断)', - 'Error Boundary Event': '错误边界事件', - 'Cancel Boundary Event': '取消边界事件', - 'Signal Boundary Event': '信号边界事件', - 'Signal Boundary Event (non-interrupting)': '信号边界事件(非中断)', - 'Compensation Boundary Event': '补偿边界事件', - 'Exclusive Gateway': '互斥网关', - 'Parallel Gateway': '并行网关', - 'Inclusive Gateway': '相容网关', - 'Complex Gateway': '复杂网关', - 'Event based Gateway': '事件网关', - 'Transaction': '转运', - 'Sub Process': '子流程', - 'Event Sub Process': '事件子流程', - 'Collapsed Pool': '折叠池', - 'Expanded Pool': '展开池', - // Errors - 'no parent for {element} in {parent}': '在{parent}里,{element}没有父类', - 'no shape type specified': '没有指定的形状类型', - 'flow elements must be children of pools/participants': '流元素必须是池/参与者的子类', - 'out of bounds release': 'out of bounds release', - 'more than {count} child lanes': '子道大于{count} ', - 'element required': '元素不能为空', - 'diagram not part of bpmn:Definitions': '流程图不符合bpmn规范', - 'no diagram to display': '没有可展示的流程图', - 'no process or collaboration to display': '没有可展示的流程/协作', - 'element {element} referenced by {referenced}#{property} not yet drawn': '由{referenced}#{property}引用的{element}元素仍未绘制', - 'already rendered {element}': '{element} 已被渲染', - 'failed to import {element}': '导入{element}失败', - // 属性面板的参数 - 'Id': '标识', - 'Name': '名称', - 'General': '常规', - 'Details': '详情', - 'Message Name': '消息名称', - 'Message': '消息', - 'Initiator': '创建者', - 'Asynchronous Continuations': '持续异步', - 'Asynchronous Before': '异步前', - 'Asynchronous After': '异步后', - 'Job Configuration': '工作配置', - 'Exclusive': '排除', - 'Job Priority': '工作优先级', - 'Retry Time Cycle': '重试时间周期', - 'Documentation': '文档', - 'Element Documentation': '元素文档', - 'History Configuration': '历史配置', - 'History Time To Live': '历史的生存时间', - 'Forms': '表单', - 'Form Key': '表单key', - 'Form Fields': '表单字段', - 'Business Key': '业务key', - 'Form Field': '表单字段', - 'ID': '编号', - 'Type': '类型', - 'Label': '名称', - 'Default Value': '默认值', - 'Validation': '校验', - 'Add Constraint': '添加约束', - 'Config': '配置', - 'Properties': '属性', - 'Add Property': '添加属性', - 'Value': '值', - 'Listeners': '监听器', - 'Execution Listener': '执行监听', - 'Event Type': '事件类型', - 'Listener Type': '监听器类型', - 'Java Class': 'Java类', - 'Expression': '表达式', - 'Must provide a value': '必须提供一个值', - 'Delegate Expression': '代理表达式', - 'Script': '脚本', - 'Script Format': '脚本格式', - 'Script Type': '脚本类型', - 'Inline Script': '内联脚本', - 'External Script': '外部脚本', - 'Resource': '资源', - 'Field Injection': '字段注入', - 'Extensions': '扩展', - 'Input/Output': '输入/输出', - 'Input Parameters': '输入参数', - 'Output Parameters': '输出参数', - 'Parameters': '参数', - 'Output Parameter': '输出参数', - 'Timer Definition Type': '定时器定义类型', - 'Timer Definition': '定时器定义', - 'Date': '日期', - 'Duration': '持续', - 'Cycle': '循环', - 'Signal': '信号', - 'Signal Name': '信号名称', - 'Escalation': '升级', - 'Error': '错误', - 'Link Name': '链接名称', - 'Condition': '条件名称', - 'Variable Name': '变量名称', - 'Variable Event': '变量事件', - 'Specify more than one variable change event as a comma separated list.': '多个变量事件以逗号隔开', - 'Wait for Completion': '等待完成', - 'Activity Ref': '活动参考', - 'Version Tag': '版本标签', - 'Executable': '可执行文件', - 'External Task Configuration': '扩展任务配置', - 'Task Priority': '任务优先级', - 'External': '外部', - 'Connector': '连接器', - 'Must configure Connector': '必须配置连接器', - 'Connector Id': '连接器编号', - 'Implementation': '实现方式', - 'Field Injections': '字段注入', - 'Fields': '字段', - 'Result Variable': '结果变量', - 'Topic': '主题', - 'Configure Connector': '配置连接器', - 'Input Parameter': '输入参数', - 'Assignee': '代理人', - 'Candidate Users': '候选用户', - 'Candidate Groups': '候选组', - 'Due Date': '到期时间', - 'Follow Up Date': '跟踪日期', - 'Priority': '优先级', - 'The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)': '跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00', - 'The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)': '跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00', - 'Variables': '变量' -} - -export const NodeName = { - 'bpmn:Process': '流程', - 'bpmn:StartEvent': '开始事件', - 'bpmn:IntermediateThrowEvent': '中间事件', - 'bpmn:Task': '任务', - 'bpmn:SendTask': '发送任务', - 'bpmn:ReceiveTask': '接收任务', - 'bpmn:UserTask': '用户任务', - 'bpmn:ManualTask': '手工任务', - 'bpmn:BusinessRuleTask': '业务规则任务', - 'bpmn:ServiceTask': '服务任务', - 'bpmn:ScriptTask': '脚本任务', - 'bpmn:EndEvent': '结束事件', - 'bpmn:SequenceFlow': '流程线', - 'bpmn:ExclusiveGateway': '互斥网关', - 'bpmn:ParallelGateway': '并行网关', - 'bpmn:InclusiveGateway': '相容网关', - 'bpmn:ComplexGateway': '复杂网关', - 'bpmn:EventBasedGateway': '事件网关' -} diff --git a/src/views/commodity/commodityAdd.vue b/src/views/commodity/commodityAdd.vue new file mode 100644 index 0000000..8974186 --- /dev/null +++ b/src/views/commodity/commodityAdd.vue @@ -0,0 +1,172 @@ + + + + diff --git a/src/views/commodity/index.vue b/src/views/commodity/index.vue new file mode 100644 index 0000000..67c04e9 --- /dev/null +++ b/src/views/commodity/index.vue @@ -0,0 +1,224 @@ + + + + \ No newline at end of file diff --git a/src/views/login/login.vue b/src/views/login/login.vue index 7c12283..0d15482 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -2,8 +2,8 @@