UNPKG

aos-element

Version:

A Component Library for Vue.js.

1,194 lines (1,176 loc) 124 kB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/dist/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 173); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; }); /* globals __VUE_SSR_CONTEXT__ */ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules). // This module is a runtime utility for cleaner component module output and will // be included in the final webpack user bundle. function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call( this, (options.functional ? this.parent : this).$root.$options.shadowRoot ) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functional component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } } /***/ }), /***/ 14: /***/ (function(module, exports) { module.exports = require("aos-element/lib/utils/popup"); /***/ }), /***/ 173: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/aos-flow/src/main.vue?vue&type=template&id=559fd22e& var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "aos-flow" }, [ _c("div", { staticClass: "aos-flow__body" }, [ _c("div", { staticClass: "aos-flow__taskName" }, [ _vm._m(0), _c("div", { staticClass: "aos-flow__taskName__name" }, [ _vm._v("\n " + _vm._s(_vm.taskName) + "\n ") ]) ]), _vm.actionTypeList.indexOf(_vm.actionType) < 0 ? _c("div", { staticClass: "aos-flow__type" }, [ _vm.actionType === "reject" && _vm.showReject && _vm.rejectActivitys.length > 0 ? _c("div", { staticClass: "aos-flow__part" }, [ _c("span", { staticClass: "aos-flow__message-title" }, [ _vm._v("驳回至") ]) ]) : _vm._e(), _vm.actionType === "reject" && _vm.showReject && _vm.rejectActivitys.length > 0 ? _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c( "div", [ _c( "el-select", { staticClass: "aos-flow-reject-group", attrs: { clearable: "" }, model: { value: _vm.rejectNode, callback: function($$v) { _vm.rejectNode = $$v }, expression: "rejectNode" } }, _vm._l(_vm.rejectActivitys, function(item) { return _c("el-option", { key: item.activityId, staticClass: "aos-flow-reject-radio", attrs: { value: item.activityId, label: item.activityName } }) }), 1 ) ], 1 ) ] ) : _vm._e(), _vm.actionType === "reject" && _vm.showReject && _vm.showRejectNonstop ? _c("div", { staticClass: "aos-flow__part" }, [ _c( "span", { staticClass: "aos-flow__flow-message-title" }, [_vm._v("驳回策略")] ) ]) : _vm._e(), _vm.actionType === "reject" && _vm.showReject && _vm.showRejectNonstop ? _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c( "div", [ _c( "el-select", { staticClass: "aos-flow-reject-group", attrs: { clearable: "" }, model: { value: _vm.rejectNonstop, callback: function($$v) { _vm.rejectNonstop = $$v }, expression: "rejectNonstop" } }, _vm._l(_vm.opRejectStrategy, function(item) { return _c("el-option", { key: item.value, staticClass: "aos-flow-reject-radio", attrs: { value: item.value, label: item.label } }) }), 1 ) ], 1 ) ] ) : _vm._e(), _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c( "el-form", { ref: "flowMessageRef", attrs: { model: _vm.flowMessageModel, rules: _vm.flowMessageRules, "label-position": "top" } }, [ _c( "el-form-item", { attrs: { prop: "outMessage", label: "审批意见" } }, [ _c("el-input", { attrs: { type: "textarea", autosize: { minRows: 2 }, placeholder: "请输入审批意见" }, on: { input: _vm.handleOutMessageChange }, model: { value: _vm.flowMessageModel.outMessage, callback: function($$v) { _vm.$set( _vm.flowMessageModel, "outMessage", $$v ) }, expression: "flowMessageModel.outMessage" } }) ], 1 ) ], 1 ) ], 1 ), _vm.actionType === "reject" && _vm.rejectReasonDictIdsFlat.length > 0 ? _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c( "div", { staticClass: "aos-flow__option-tree" }, [ _c( "el-form", { ref: "rejectReasonDictIdsRef", attrs: { model: _vm.rejectReasonDictIdsModel, rules: _vm.rejectReasonDictIdsRules, "label-position": "top" } }, [ _c( "el-form-item", { attrs: { prop: "rejectReasonDictIds", label: "驳回意见" } }, [ _c( "el-select", { staticClass: "aos-flow__option-tree-option", attrs: { multiple: "", clearable: "", filterable: "", "filter-method": _vm.rejectReasonDictIdsFilterMethod }, on: { "remove-tag": _vm.handleRemoveRejectReasonDictIds, clear: _vm.handleRemoveRejectReasonDictIds }, model: { value: _vm.rejectReasonDictIdsModel .rejectReasonDictIds, callback: function($$v) { _vm.$set( _vm.rejectReasonDictIdsModel, "rejectReasonDictIds", $$v ) }, expression: "rejectReasonDictIdsModel.rejectReasonDictIds" } }, [ _vm._l( _vm.rejectReasonDictIdsFlat, function(item) { return _c("el-option", { key: "tree_" + item.id, staticStyle: { height: "0px" }, attrs: { label: item.reason, value: item.id } }) } ), _c( "el-option", { staticClass: "aos-flow__option-tree-option" }, [ _c("el-tree", { ref: "rejectReasonDictIdsFilterTree", staticClass: "aos-flow__option-tree-main", attrs: { "node-key": "id", data: _vm.rejectReasonDictIdsTree, props: _vm.defaultProps, "default-expand-all": false, "filter-node-method": _vm.filterNode, "default-checked-keys": _vm.rejectReasonDictIdsDefaultCheckedKeys, "show-checkbox": true, "expand-on-click-node": true }, on: { check: _vm.handlerejectReasonDictIdsCheck }, scopedSlots: _vm._u([ { key: "default", fn: function(ref) { var node = ref.node return _c( "span", { staticClass: "aos-flow__option-tree-main-item" }, [ _c("span", [ _vm._v( _vm._s(node.label) ) ]) ] ) } } ]) }) ], 1 ) ], 2 ) ], 1 ) ], 1 ) ], 1 ) ] ) : _vm._e(), _vm.actionType === "refuse" && _vm.refuseReasonDictIdsFlat.length > 0 ? _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c( "div", { staticClass: "aos-flow__option-tree" }, [ _c( "el-form", { ref: "refuseReasonDictIdsRef", attrs: { model: _vm.refuseReasonDictIdsModel, rules: _vm.refuseReasonDictIdsRules, "label-position": "top" } }, [ _c( "el-form-item", { attrs: { prop: "refuseReasonDictIds", label: "拒绝意见" } }, [ _c( "el-select", { staticClass: "aos-flow__option-tree-option", attrs: { multiple: "", clearable: "", filterable: "", "filter-method": _vm.refuseReasonDictIdsFilterMethod }, on: { "remove-tag": _vm.handleRemoveRefuseReasonDictIds, clear: _vm.handleRemoveRefuseReasonDictIds }, model: { value: _vm.refuseReasonDictIdsModel .refuseReasonDictIds, callback: function($$v) { _vm.$set( _vm.refuseReasonDictIdsModel, "refuseReasonDictIds", $$v ) }, expression: "refuseReasonDictIdsModel.refuseReasonDictIds" } }, [ _vm._l( _vm.refuseReasonDictIdsFlat, function(item) { return _c("el-option", { key: "tree_" + item.id, staticStyle: { height: "0px" }, attrs: { label: item.reason, value: item.id } }) } ), _c( "el-option", { staticClass: "aos-flow__option-tree-option" }, [ _c("el-tree", { ref: "refuseReasonDictIdsFilterTree", staticClass: "aos-flow__option-tree-main", attrs: { "node-key": "id", data: _vm.refuseReasonDictIdsTree, props: _vm.defaultProps, "default-expand-all": false, "filter-node-method": _vm.filterNode, "default-checked-keys": _vm.refuseReasonDictIdsDefaultCheckedKeys, "show-checkbox": true, "expand-on-click-node": true }, on: { check: _vm.handleRefuseReasonDictIdsCheck }, scopedSlots: _vm._u([ { key: "default", fn: function(ref) { var node = ref.node return _c( "span", { staticClass: "aos-flow__option-tree-main-item" }, [ _c("span", [ _vm._v( _vm._s(node.label) ) ]) ] ) } } ]) }) ], 1 ) ], 2 ) ], 1 ) ], 1 ) ], 1 ) ] ) : _vm._e(), _vm.showInnerMessage ? _c("div", { staticClass: "aos-flow__part" }, [ _c( "span", { staticClass: "aos-flow__flow-message-title" }, [_vm._v("内部意见")] ) ]) : _vm._e(), _vm.showInnerMessage ? _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c("el-input", { attrs: { type: "textarea", autosize: { minRows: 2 }, placeholder: "请输入内部意见,该意见仅内部人员可见" }, model: { value: _vm.message, callback: function($$v) { _vm.message = $$v }, expression: "message" } }) ], 1 ) : _vm._e(), _vm.showConditionMessage && _vm.actionType !== "reject" ? _c("div", { staticClass: "aos-flow__part" }, [ _c( "span", { staticClass: "aos-flow__flow-message-title" }, [_vm._v("有条件通过意见")] ) ]) : _vm._e(), _vm.showConditionMessage && _vm.actionType !== "reject" ? _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c("el-input", { attrs: { type: "textarea", autosize: { minRows: 2 }, placeholder: "请输入有条件通过意见" }, model: { value: _vm.conditionMessage, callback: function($$v) { _vm.conditionMessage = $$v }, expression: "conditionMessage" } }) ], 1 ) : _vm._e(), _c( "div", { staticClass: "aos-flow__images aos-flow__part-message" }, [ _c( "el-upload", { staticClass: "aos-flow__upload", attrs: { drag: "", multiple: "", "file-list": _vm.filesList, action: "/bpm/api/task/upload/" + _vm.taskId, "on-success": _vm.handleUploadSuccess, "on-preview": _vm.handlePreviewClick, "before-remove": _vm.handleBeforeRemove } }, [ _c("i", { staticClass: "el-icon-upload", staticStyle: { "font-size": "40px", margin: "0" } }), _c( "div", { staticClass: "el-upload__text", staticStyle: { "font-size": "12px", margin: "0 8px" } }, [ _vm._v("将文件拖到此处或"), _c("em", [_vm._v("点击上传")]) ] ) ] ) ], 1 ) ]) : _vm._e(), _vm.actionType === "hangup" ? _c("div", { staticClass: "aos-flow__type aos-flow__hangup" }, [ _vm._m(1), _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c("el-input", { attrs: { type: "textarea", autosize: { minRows: 2 }, placeholder: "请在此输入挂起原因" }, model: { value: _vm.hangUpMessage, callback: function($$v) { _vm.hangUpMessage = $$v }, expression: "hangUpMessage" } }) ], 1 ), _vm.actionType === "hangup" && _vm.suspendedaReasonDictIdsFlat.length > 0 ? _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c( "div", { staticClass: "aos-flow__option-tree" }, [ _c( "el-form", { ref: "suspendedaReasonDictIdsRef", attrs: { model: _vm.suspendedaReasonDictIdsModel, rules: _vm.suspendedaReasonDictIdsRules, "label-position": "top" } }, [ _c( "el-form-item", { attrs: { prop: "suspendedaReasonDictIds", label: "挂起意见" } }, [ _c( "el-select", { staticClass: "aos-flow__option-tree-option", attrs: { multiple: "", clearable: "", filterable: "", "filter-method": _vm.suspendedaReasonDictIdsFilterMethod }, on: { "remove-tag": _vm.handleRemoveSuspendedaReasonDictIds, clear: _vm.handleRemoveSuspendedaReasonDictIds }, model: { value: _vm.suspendedaReasonDictIdsModel .suspendedaReasonDictIds, callback: function($$v) { _vm.$set( _vm.suspendedaReasonDictIdsModel, "suspendedaReasonDictIds", $$v ) }, expression: "suspendedaReasonDictIdsModel.suspendedaReasonDictIds" } }, [ _vm._l( _vm.suspendedaReasonDictIdsFlat, function(item) { return _c("el-option", { key: "tree_" + item.id, staticStyle: { height: "0px" }, attrs: { label: item.reason, value: item.id } }) } ), _c( "el-option", { staticClass: "aos-flow__option-tree-option" }, [ _c("el-tree", { ref: "suspendedaReasonDictIdsFilterTree", staticClass: "aos-flow__option-tree-main", attrs: { "node-key": "id", data: _vm.suspendedaReasonDictIdsTree, props: _vm.defaultProps, "default-expand-all": false, "filter-node-method": _vm.filterNode, "default-checked-keys": _vm.suspendedaReasonDictIdsDefaultCheckedKeys, "show-checkbox": true, "expand-on-click-node": true }, on: { check: _vm.handleSuspendedaReasonDictIdsCheck }, scopedSlots: _vm._u([ { key: "default", fn: function(ref) { var node = ref.node return _c( "span", { staticClass: "aos-flow__option-tree-main-item" }, [ _c("span", [ _vm._v( _vm._s(node.label) ) ]) ] ) } } ]) }) ], 1 ) ], 2 ) ], 1 ) ], 1 ) ], 1 ) ] ) : _vm._e() ]) : _vm._e(), _vm.actionType === "turnto" ? _c("div", { staticClass: "aos-flow__type aos-flow__turnto" }, [ _vm._m(2), _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c("el-input", { attrs: { type: "textarea", autosize: { minRows: 2 }, placeholder: "请在此输入转办说明" }, model: { value: _vm.turntoMessage, callback: function($$v) { _vm.turntoMessage = $$v }, expression: "turntoMessage" } }) ], 1 ), _vm._m(3), _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c( "el-select", { attrs: { placeholder: "请选择" }, model: { value: _vm.turnToUser, callback: function($$v) { _vm.turnToUser = $$v }, expression: "turnToUser" } }, _vm._l(_vm.turnTowardUsers, function(item) { return _c("el-option", { key: item.id, attrs: { label: item.name, value: item.id } }) }), 1 ) ], 1 ) ]) : _vm._e(), _vm.actionType === "transfer" ? _c("div", { staticClass: "aos-flow__type aos-flow__turnto" }, [ _vm._m(4), _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c("el-input", { attrs: { type: "textarea", autosize: { minRows: 2 }, placeholder: "请输入转移说明" }, model: { value: _vm.transferData.reason, callback: function($$v) { _vm.$set(_vm.transferData, "reason", $$v) }, expression: "transferData.reason" } }) ], 1 ), _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c("el-switch", { staticStyle: { display: "block" }, attrs: { "active-color": "#13ce66", "inactive-color": "#ff4949", "active-text": "候选人", "inactive-text": "候选组" }, on: { change: _vm.handleTransferTypeChange }, model: { value: _vm.transferData.type, callback: function($$v) { _vm.$set(_vm.transferData, "type", $$v) }, expression: "transferData.type" } }) ], 1 ), _vm.transferData.type ? _c("div", { staticClass: "aos-flow__part" }, [ _c("span", { staticClass: "aos-flow__message-title" }, [ _vm._v("候选人") ]) ]) : _vm._e(), _vm.transferData.type ? _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c("aos-ref", { attrs: { refCode: "user", value: _vm.transferData.candidateUsers, editable: true, multiple: true, placeholder: "请选择候选人员" }, on: { change: _vm.handelCandidateUsersChange } }) ], 1 ) : _vm._e(), !_vm.transferData.type ? _c("div", { staticClass: "aos-flow__part" }, [ _c("span", { staticClass: "aos-flow__message-title" }, [ _vm._v("候选组") ]) ]) : _vm._e(), !_vm.transferData.type ? _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c("aos-ref", { attrs: { refCode: "bpm_group_ref", value: _vm.transferData.candidateGroups, editable: true, placeholder: "请选择候选组" }, on: { change: _vm.handelCandidateGroupsChange } }) ], 1 ) : _vm._e(), _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c( "el-upload", { staticClass: "aos-flow__upload", attrs: { drag: "", multiple: "", "file-list": _vm.filesList, action: "/bpm/api/task/upload/" + _vm.taskId, "on-success": _vm.handleUploadSuccess, "on-preview": _vm.handlePreviewClick, "before-remove": _vm.handleBeforeRemove } }, [ _c("i", { staticClass: "el-icon-upload", staticStyle: { "font-size": "40px", margin: "0" } }), _c( "div", { staticClass: "el-upload__text", staticStyle: { "font-size": "12px", margin: "0 8px" } }, [ _vm._v("将文件拖到此处或"), _c("em", [_vm._v("点击上传")]) ] ) ] ) ], 1 ) ]) : _vm._e(), _vm.actionType === "addSign" ? _c("div", { staticClass: "aos-flow__type aos-flow__turnto" }, [ _vm._m(5), _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c("el-input", { attrs: { type: "textarea", autosize: { minRows: 2 }, placeholder: "请在此输入加签意见" }, model: { value: _vm.addSignData.remind, callback: function($$v) { _vm.$set(_vm.addSignData, "remind", $$v) }, expression: "addSignData.remind" } }) ], 1 ), _vm._m(6), _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c("aos-ref", { attrs: { refCode: "user", value: _vm.addSignData.signUserId, editable: true, placeholder: "请选择加签人员" }, on: { change: _vm.handelAddSignChange } }) ], 1 ), _c( "div", { staticClass: "aos-flow__part aos-flow__part-message" }, [ _c( "el-upload", { staticClass: "aos-flow__upload", attrs: { drag: "", multiple: "", "file-list": _vm.filesList, action: "/bpm/api/task/upload/" + _vm.taskId, "on-success": _vm.handleUploadSuccess, "