UNPKG

yinghe-lowcode

Version:

基于vue、ant-design-vue,datagrid的低代码平台

1,496 lines (1,339 loc) 18.5 MB
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("vue")); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["yinghe-lowcode-mini"] = factory(require("vue")); else root["yinghe-lowcode-mini"] = factory(root["Vue"]); })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) { return /******/ (function(modules) { // webpackBootstrap /******/ // install a JSONP callback for chunk loading /******/ function webpackJsonpCallback(data) { /******/ var chunkIds = data[0]; /******/ var moreModules = data[1]; /******/ /******/ /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; /******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; /******/ } /******/ for(moduleId in moreModules) { /******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { /******/ modules[moduleId] = moreModules[moduleId]; /******/ } /******/ } /******/ if(parentJsonpFunction) parentJsonpFunction(data); /******/ /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } /******/ /******/ }; /******/ /******/ /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // object to store loaded CSS chunks /******/ var installedCssChunks = { /******/ 2: 0 /******/ } /******/ /******/ // object to store loaded and loading chunks /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // Promise = chunk loading, 0 = chunk loaded /******/ var installedChunks = { /******/ 2: 0 /******/ }; /******/ /******/ /******/ /******/ // script path function /******/ function jsonpScriptSrc(chunkId) { /******/ return __webpack_require__.p + "yinghe-lowcode-mini.umd." + ({"0":"fail","1":"user"}[chunkId]||chunkId) + ".js" /******/ } /******/ /******/ // 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; /******/ } /******/ /******/ // This file contains only the entry chunk. /******/ // The chunk loading function for additional chunks /******/ __webpack_require__.e = function requireEnsure(chunkId) { /******/ var promises = []; /******/ /******/ /******/ // mini-css-extract-plugin CSS loading /******/ var cssChunks = {"0":1,"1":1,"3":1,"6":1}; /******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]); /******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) { /******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) { /******/ var href = "css/" + ({"0":"fail","1":"user"}[chunkId]||chunkId) + "." + {"0":"a8f62f9c","1":"58559d74","3":"2c00ee8f","4":"31d6cfe0","5":"31d6cfe0","6":"1c4413f6","7":"31d6cfe0","8":"31d6cfe0","9":"31d6cfe0","10":"31d6cfe0","11":"31d6cfe0","12":"31d6cfe0","13":"31d6cfe0","14":"31d6cfe0","15":"31d6cfe0"}[chunkId] + ".css"; /******/ var fullhref = __webpack_require__.p + href; /******/ var existingLinkTags = document.getElementsByTagName("link"); /******/ for(var i = 0; i < existingLinkTags.length; i++) { /******/ var tag = existingLinkTags[i]; /******/ var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href"); /******/ if(tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return resolve(); /******/ } /******/ var existingStyleTags = document.getElementsByTagName("style"); /******/ for(var i = 0; i < existingStyleTags.length; i++) { /******/ var tag = existingStyleTags[i]; /******/ var dataHref = tag.getAttribute("data-href"); /******/ if(dataHref === href || dataHref === fullhref) return resolve(); /******/ } /******/ var linkTag = document.createElement("link"); /******/ linkTag.rel = "stylesheet"; /******/ linkTag.type = "text/css"; /******/ linkTag.onload = resolve; /******/ linkTag.onerror = function(event) { /******/ var request = event && event.target && event.target.src || fullhref; /******/ var err = new Error("Loading CSS chunk " + chunkId + " failed.\n(" + request + ")"); /******/ err.code = "CSS_CHUNK_LOAD_FAILED"; /******/ err.request = request; /******/ delete installedCssChunks[chunkId] /******/ linkTag.parentNode.removeChild(linkTag) /******/ reject(err); /******/ }; /******/ linkTag.href = fullhref; /******/ /******/ var head = document.getElementsByTagName("head")[0]; /******/ head.appendChild(linkTag); /******/ }).then(function() { /******/ installedCssChunks[chunkId] = 0; /******/ })); /******/ } /******/ /******/ // JSONP chunk loading for javascript /******/ /******/ var installedChunkData = installedChunks[chunkId]; /******/ if(installedChunkData !== 0) { // 0 means "already installed". /******/ /******/ // a Promise means "currently loading". /******/ if(installedChunkData) { /******/ promises.push(installedChunkData[2]); /******/ } else { /******/ // setup Promise in chunk cache /******/ var promise = new Promise(function(resolve, reject) { /******/ installedChunkData = installedChunks[chunkId] = [resolve, reject]; /******/ }); /******/ promises.push(installedChunkData[2] = promise); /******/ /******/ // start chunk loading /******/ var script = document.createElement('script'); /******/ var onScriptComplete; /******/ /******/ script.charset = 'utf-8'; /******/ script.timeout = 120; /******/ if (__webpack_require__.nc) { /******/ script.setAttribute("nonce", __webpack_require__.nc); /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); /******/ var chunk = installedChunks[chunkId]; /******/ if(chunk !== 0) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; /******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); /******/ } /******/ installedChunks[chunkId] = undefined; /******/ } /******/ }; /******/ var timeout = setTimeout(function(){ /******/ onScriptComplete({ type: 'timeout', target: script }); /******/ }, 120000); /******/ script.onerror = script.onload = onScriptComplete; /******/ document.head.appendChild(script); /******/ } /******/ } /******/ return Promise.all(promises); /******/ }; /******/ /******/ // 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 = ""; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; /******/ /******/ var jsonpArray = (typeof self !== 'undefined' ? self : this)["webpackJsonpyinghe_lowcode_mini"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpyinghe_lowcode_mini"] || []; /******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); /******/ jsonpArray.push = webpackJsonpCallback; /******/ jsonpArray = jsonpArray.slice(); /******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]); /******/ var parentJsonpFunction = oldJsonpFunction; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "fb15"); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, exports) { /* (ignored) */ /***/ }), /***/ "0009": /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin /***/ }), /***/ "0081": /***/ (function(module, exports) { module.exports = function(hljs) { var STEP21_IDENT_RE = '[A-Z_][A-Z0-9_.]*'; var STEP21_KEYWORDS = { keyword: 'HEADER ENDSEC DATA' }; var STEP21_START = { className: 'meta', begin: 'ISO-10303-21;', relevance: 10 }; var STEP21_CLOSE = { className: 'meta', begin: 'END-ISO-10303-21;', relevance: 10 }; return { aliases: ['p21', 'step', 'stp'], case_insensitive: true, // STEP 21 is case insensitive in theory, in practice all non-comments are capitalized. lexemes: STEP21_IDENT_RE, keywords: STEP21_KEYWORDS, contains: [ STEP21_START, STEP21_CLOSE, hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, hljs.COMMENT('/\\*\\*!', '\\*/'), hljs.C_NUMBER_MODE, hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null}), hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}), { className: 'string', begin: "'", end: "'" }, { className: 'symbol', variants: [ { begin: '#', end: '\\d+', illegal: '\\W' } ] } ] }; }; /***/ }), /***/ "0096": /***/ (function(module, exports, __webpack_require__) { "use strict"; /*! * devextreme-vue * Version: 21.2.6 * Build date: Tue Mar 01 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-vue */ var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.setEmitOptionChangedFunc = exports.bindOptionWatchers = void 0; var helpers_1 = __webpack_require__("a293"); var Configuration = /** @class */ (function () { function Configuration(updateFunc, name, initialValues, expectedChildren, isCollectionItem, collectionItemIndex, ownerConfig) { this._updateFunc = updateFunc; this._name = name; this._initialValues = initialValues ? initialValues : {}; this._nestedConfigurations = []; this._isCollectionItem = !!isCollectionItem; this._collectionItemIndex = collectionItemIndex; this._expectedChildren = expectedChildren || {}; this._ownerConfig = ownerConfig; this._componentChanges = []; this.updateValue = this.updateValue.bind(this); } Object.defineProperty(Configuration.prototype, "name", { get: function () { return this._name; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "fullName", { get: function () { return this._name && this._isCollectionItem ? this._name + "[" + this._collectionItemIndex + "]" : this._name; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "componentsCountChanged", { get: function () { return this._componentChanges; }, enumerable: false, configurable: true }); Configuration.prototype.cleanComponentsCountChanged = function () { this._componentChanges = []; }; Object.defineProperty(Configuration.prototype, "fullPath", { get: function () { return this._ownerConfig && this._ownerConfig.fullPath ? this._ownerConfig.fullPath + "." + this.fullName : this.fullName; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "ownerConfig", { get: function () { return this._ownerConfig; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "options", { get: function () { return this._options; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "initialValues", { get: function () { return this._initialValues; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "expectedChildren", { get: function () { return this._expectedChildren; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "nested", { get: function () { return this._nestedConfigurations; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "prevNestedOptions", { get: function () { return this._prevNestedConfigOptions; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "collectionItemIndex", { get: function () { return this._collectionItemIndex; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "isCollectionItem", { get: function () { return this._isCollectionItem; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "updateFunc", { get: function () { return this._updateFunc; }, enumerable: false, configurable: true }); Configuration.prototype.init = function (options) { this._options = options ? options : []; }; Object.defineProperty(Configuration.prototype, "emitOptionChanged", { set: function (handler) { this._emitOptionChanged = handler; }, enumerable: false, configurable: true }); Configuration.prototype.setPrevNestedOptions = function (value) { this._prevNestedConfigOptions = value; }; Configuration.prototype.onOptionChanged = function (args) { if (helpers_1.isEqual(args.value, args.previousValue)) { return; } this._onOptionChanged(args.fullName.split("."), args); }; Configuration.prototype.cleanNested = function () { this._nestedConfigurations = []; }; Configuration.prototype.createNested = function (name, initialValues, isCollectionItem, expectedChildren) { var expected = this._expectedChildren[name]; var actualName = name; var actualIsCollectionItem = isCollectionItem; if (expected) { actualIsCollectionItem = expected.isCollectionItem; if (expected.optionName) { actualName = expected.optionName; } } var collectionItemIndex = -1; if (actualIsCollectionItem && actualName) { collectionItemIndex = this._nestedConfigurations.filter(function (c) { return c._name && c._name === actualName; }).length; } var configuration = new Configuration(this._updateFunc, actualName, initialValues, expectedChildren, actualIsCollectionItem, collectionItemIndex, this); this._nestedConfigurations.push(configuration); return configuration; }; Configuration.prototype.updateValue = function (nestedName, value) { var fullName = [this.fullPath, nestedName].filter(function (n) { return n; }).join("."); this._updateFunc(fullName, value); }; Configuration.prototype.getNestedOptionValues = function () { var values = {}; this._nestedConfigurations.forEach(function (o) { if (!o._name) { return; } var nestedValue = __assign(__assign({}, o.initialValues), o.getNestedOptionValues()); if (!nestedValue) { return; } if (!o._isCollectionItem) { values[o._name] = nestedValue; } else { var arr = values[o._name]; if (!arr || !Array.isArray(arr)) { arr = []; values[o._name] = arr; } arr.push(nestedValue); } }); return values; }; Configuration.prototype.getOptionsToWatch = function () { var blackList = {}; this._nestedConfigurations.forEach(function (c) { return c._name && (blackList[c._name] = true); }); return this._options.filter(function (o) { return !blackList[o]; }); }; Configuration.prototype._onOptionChanged = function (optionRelPath, args) { if (optionRelPath.length === 0) { return; } var optionInfo = helpers_1.getOptionInfo(optionRelPath[0]); if (optionInfo.isCollection || optionRelPath.length > 1) { var nestedConfig = this._getNestedConfig(optionInfo.fullName); if (nestedConfig) { nestedConfig._onOptionChanged(optionRelPath.slice(1), args); return; } this._tryEmitOptionChanged(optionInfo.name, args.component.option(this.fullPath ? this.fullPath + "." + optionInfo.name : optionInfo.name)); } else { this._tryEmitOptionChanged(optionInfo.name, args.value); } }; Configuration.prototype._getNestedConfig = function (fullName) { for (var _i = 0, _a = this._nestedConfigurations; _i < _a.length; _i++) { var nestedConfig = _a[_i]; if (nestedConfig.fullName === fullName) { return nestedConfig; } } return undefined; }; Configuration.prototype._tryEmitOptionChanged = function (name, value) { if (this._emitOptionChanged) { this._emitOptionChanged(name, value); } }; return Configuration; }()); function bindOptionWatchers(config, vueInstance, innerChanges) { var targets = config && config.getOptionsToWatch(); if (targets) { targets.forEach(function (optionName) { vueInstance.$watch(optionName, function (value) { if (!innerChanges.hasOwnProperty(optionName) || innerChanges[optionName] !== value) { config.updateValue(optionName, value); } delete innerChanges[optionName]; }); }); } } exports.bindOptionWatchers = bindOptionWatchers; function setEmitOptionChangedFunc(config, vueInstance, innerChanges) { config.emitOptionChanged = function (name, value) { if (!helpers_1.isEqual(value, vueInstance.$props[name])) { innerChanges[name] = value; vueInstance.$emit("update:" + name, value); } }; } exports.setEmitOptionChangedFunc = setEmitOptionChangedFunc; exports.default = Configuration; /***/ }), /***/ "00b1": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("7e94"); /** * @deprecated * This function will be removed in a future version without replacement. */ exports.string2binary = function(str) { return utils.string2binary(str); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.string2Uint8Array = function(str) { return utils.transformTo("uint8array", str); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.uint8Array2String = function(array) { return utils.transformTo("string", array); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.string2Blob = function(str) { var buffer = utils.transformTo("arraybuffer", str); return utils.arrayBuffer2Blob(buffer); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.arrayBuffer2Blob = function(buffer) { return utils.arrayBuffer2Blob(buffer); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.transformTo = function(outputType, input) { return utils.transformTo(outputType, input); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.getTypeOf = function(input) { return utils.getTypeOf(input); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.checkSupport = function(type) { return utils.checkSupport(type); }; /** * @deprecated * This value will be removed in a future version without replacement. */ exports.MAX_VALUE_16BITS = utils.MAX_VALUE_16BITS; /** * @deprecated * This value will be removed in a future version without replacement. */ exports.MAX_VALUE_32BITS = utils.MAX_VALUE_32BITS; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.pretty = function(str) { return utils.pretty(str); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.findCompression = function(compressionMethod) { return utils.findCompression(compressionMethod); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.isRegExp = function (object) { return utils.isRegExp(object); }; /***/ }), /***/ "00b4": /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` since it's moved to entry points __webpack_require__("ac1f"); var $ = __webpack_require__("23e7"); var global = __webpack_require__("da84"); var call = __webpack_require__("c65b"); var uncurryThis = __webpack_require__("e330"); var isCallable = __webpack_require__("1626"); var isObject = __webpack_require__("861d"); var DELEGATES_TO_EXEC = function () { var execCalled = false; var re = /[ac]/; re.exec = function () { execCalled = true; return /./.exec.apply(this, arguments); }; return re.test('abc') === true && execCalled; }(); var Error = global.Error; var un$Test = uncurryThis(/./.test); // `RegExp.prototype.test` method // https://tc39.es/ecma262/#sec-regexp.prototype.test $({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, { test: function (str) { var exec = this.exec; if (!isCallable(exec)) return un$Test(this, str); var result = call(exec, this, str); if (result !== null && !isObject(result)) { throw new Error('RegExp exec method returned something other than an Object or null'); } return !!result; } }); /***/ }), /***/ "00dc": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(Buffer) {var generatePrime = __webpack_require__("58a2") var primes = __webpack_require__("c24d") var DH = __webpack_require__("561d") function getDiffieHellman (mod) { var prime = new Buffer(primes[mod].prime, 'hex') var gen = new Buffer(primes[mod].gen, 'hex') return new DH(prime, gen) } var ENCODINGS = { 'binary': true, 'hex': true, 'base64': true } function createDiffieHellman (prime, enc, generator, genc) { if (Buffer.isBuffer(enc) || ENCODINGS[enc] === undefined) { return createDiffieHellman(prime, 'binary', enc, generator) } enc = enc || 'binary' genc = genc || 'binary' generator = generator || new Buffer([2]) if (!Buffer.isBuffer(generator)) { generator = new Buffer(generator, genc) } if (typeof prime === 'number') { return new DH(generatePrime(prime, generator), generator, true) } if (!Buffer.isBuffer(prime)) { prime = new Buffer(prime, enc) } return new DH(prime, generator, true) } exports.DiffieHellmanGroup = exports.createDiffieHellmanGroup = exports.getDiffieHellman = getDiffieHellman exports.createDiffieHellman = exports.DiffieHellman = createDiffieHellman /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("1c35").Buffer)) /***/ }), /***/ "00e9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ed5b1108-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/CtosBiz/BaseModal.vue?vue&type=template&id=f613f2ba&scoped=true& var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.dialogModalType === 'drawer')?_c('a-drawer',{staticStyle:{"height":"calc(100% - 10px)","overflow":"auto"},attrs:{"title":_vm.dialogTitle,"maskClosable":true,"confirmLoading":_vm.confirmLoading,"width":_vm.dialogWidth,"placement":"right","closable":true,"visible":_vm.visible},on:{"close":_vm.handleCancel}},[_c('a-spin',{attrs:{"spinning":_vm.confirmLoading,"size":"large"}},[_c('k-form-build',{ref:"kfb",attrs:{"value":_vm.configJson,"dynamicData":_vm.dynamicData},on:{"logEvent":_vm.logEvent,"change":_vm.handleChange}})],1),(_vm.operateBizBtn.length === 0)?_c('div',{staticClass:"drawer-bootom-button"},[_c('a-popconfirm',{attrs:{"title":"确定放弃编辑?","okText":"确定","cancelText":"取消"},on:{"confirm":_vm.handleCancel}},[_c('a-button',{staticStyle:{"margin-right":"0.8rem"}},[_vm._v("取消")])],1),_c('a-button',{attrs:{"type":"primary","loading":_vm.confirmLoading},on:{"click":_vm.handleOk}},[_vm._v("确认")])],1):_vm._e(),(_vm.operateBizBtn.length > 0)?_c('div',{staticClass:"drawer-bootom-button"},[_vm._l((_vm.operateBizBtn),function(item,index){return [_c('a-button',{key:index,attrs:{"type":item.type ? item.type : 'primary',"icon":item.icon},on:{"click":function($event){return _vm.handleBusiness(item.operation, item)}}},[_vm._v(_vm._s(item.label))])]})],2):_vm._e()],1):_vm._e(),(_vm.dialogModalType === 'dialog')?_c('drag-modal',{staticStyle:{"top":"5%","height":"70%","overflow-y":"hidden"},attrs:{"title":_vm.dialogTitle,"width":_vm.dialogWidth,"visible":_vm.visible,"isFooter":_vm.operateBizBtn.length > 0 ? true : false,"confirmLoading":_vm.confirmLoading,"okText":"保存","cancelText":"关闭","wrapClassName":"ant-modal-cust-warp"},on:{"ok":_vm.handleOk,"cancel":_vm.handleCancel}},[_c('a-spin',{attrs:{"spinning":_vm.confirmLoading,"size":"large"}},[_c('k-form-build',{ref:"kfb",attrs:{"value":_vm.configJson,"dynamicData":_vm.dynamicData},on:{"logEvent":_vm.logEvent,"change":_vm.handleChange}})],1),_vm._l((_vm.operateBizBtn),function(item,index){return _c('template',{slot:"footer"},[_c('a-button',{key:index,attrs:{"type":item.type ? item.type : 'primary',"icon":item.icon},on:{"click":function($event){return _vm.handleBusiness(item.operation, item)}}},[_vm._v(_vm._s(item.label))])],1)})],2):_vm._e()],1)} var staticRenderFns = [] // CONCATENATED MODULE: ./packages/components/CtosBiz/BaseModal.vue?vue&type=template&id=f613f2ba&scoped=true& // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js var es_object_assign = __webpack_require__("cca6"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js var es_object_to_string = __webpack_require__("d3b7"); // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js var web_dom_collections_for_each = __webpack_require__("159b"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js var es_promise = __webpack_require__("e6cf"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js var es_promise_finally = __webpack_require__("a79d"); // EXTERNAL MODULE: ./packages/api/manage.js var manage = __webpack_require__("5b4e"); // EXTERNAL MODULE: ./packages/utils/util.js + 3 modules var util = __webpack_require__("1ae5"); // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/CtosBiz/BaseModal.vue?vue&type=script&lang=js& // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ var BaseModalvue_type_script_lang_js_ = ({ name: "BaseModal", props: { // 弹窗页面操作按钮'端接口' serviceName: { type: String, default: "codeService" }, //宽度'' width: { type: String, default: "40%" }, // 页面组件id'' pageId: { type: String, default: "" }, // 码表特殊处理'' baseCodeType: { type: String, default: "" }, //弹窗类型'' dialogType: { type: String, default: "dialog" }, //操作按钮后端方法 url: { type: Object, default: function _default() { return { add: "save", update: "updateById" }; } }, //弹窗操作按钮 operateBtn: { type: Array, default: function _default() { return []; } }, /* eslint-disable */ dynamicData: { type: Object }, confirm: { type: Boolean, default: false } }, data: function data() { return { visible: false, model: {}, dialogTitle: "新增", dialogServiceName: this.serviceName, dialogWidth: this.width, dialogBaseCodeType: this.baseCodeType, dialogModalType: this.dialogType, dialogUrl: { add: "save", update: "updateById" }, configJson: {}, disableSubmit: false, confirmLoading: false, pageIdTemp: "", enableList: [], disableList: [], ctos3CommonApi: manage["c" /* ctos3CommonApi */], packageRpcParam: util["o" /* packageRpcParam */], uploadUrl: "/api", operateBizBtn: this.operateBtn }; }, methods: { //新增方法 add: function add(record) { this.edit(record ? record : {}); }, //编辑初始化方法 edit: function edit(record) { this.visible = true; this.confirmLoading = true; this.dynamicData.commonFunc = this.commonFunc; this.model = Object.assign({}, record); this.dynamicData.record = record; if (this.model.hasOwnProperty("tailInfos")) { Object.assign(this.model, this.model["tailInfos"]); delete this.model.tailInfos; } this.initForm(record); }, // 初始化表单设计器的内容,数据维护在T_UM_FORM_CONFIG表中 initForm: function initForm(record) { var _this = this; var params = {}; params.serviceName = "formConfigService"; params.methodName = "searchFormConfigByPageId"; if (this.pageIdTemp) { params.rpcParams = [this.pageIdTemp]; this.confirmLoading = false; } else { if (record.pageId) { //排除表单配置的modal if (record.pageId && record.pageName) { params.rpcParams = [this.pageId]; } else { params.rpcParams = [record.pageId]; } } else { if (!this.pageId) { if (this.dialogBaseCodeType) { params.rpcParams = [Object(util["h" /* getPageIdByClassName */])(this.dialogBaseCodeType)]; } else { this.$message.error("未设置pageId!"); } } else { params.rpcParams = [this.pageId]; } } } Object(manage["b" /* ctos3Api */])(params).then(function (response) { if (response.responseData.statusCode === 0) { _this.operateBizBtn = []; var result = response.responseData.resultData; var config = JSON.parse(result.configJson); _this.configJson = config; if (result.formType === 2 && config.config.dialog) { _this.dialogTitle = config.config.dialog.dialogTitle; // this.dialogWidth = config.config.dialog.dialogWidth; _this.dialogServiceName = config.config.dialog.serviceName; _this.dialogBaseCodeType = config.config.dialog.baseCodeType; _this.dialogModalType = config.config.dialog.dialogType; if (config.config.dialog.add) { _this.dialogUrl.add = config.config.dialog.add; } if (config.config.dialog.update) { _this.dialogUrl.update = config.config.dialog.update; } } Object(util["A" /* useCodeEvent */])(_this.configJson.config, "callInMounted", _this)(manage["c" /* ctos3CommonApi */], util["o" /* packageRpcParam */], _this); var operateBizBtn = JSON.parse(result.operateConfigJson); if (operateBizBtn) { operateBizBtn.forEach(function (item) { if (item.operation && item.operation != "") { _this.operateBizBtn.push(item); } }); } if (_this.configJson.dialogWidth) { _this.width = _this.configJson.dialogWidth; } _this.$refs.kfb.setData(record); _this.$refs.kfb.disable(_this.disableList); _this.$refs.kfb.enable(_this.enableList); _this.disableList = []; _this.enableList = []; if (!record.id) { _this.$refs.kfb.reset(); } _this.confirmLoading = false; } else { _this.$message.error("加载动态列表头失败!"); } }).catch(function () {}); }, close: function close() { this.$emit("close"); this.visible = false; this.disableSubmit = false; }, /* 保存表单内容 */ handleOk: function handleOk() { var _this2 = this; var that = this; // 触发表单验证 this.$refs.kfb.getData().then(function (values) { that.confirmLoading = true; var formData = Object.assign(_this2.model, values); var params = {}; params.serviceName = _this2.dialogServiceName; if (_this2.dialogBaseCodeType) { params.rpcParams = [formData, _this2.dialogBaseCodeType]; } else { params.rpcParams = [formData]; } if (!_this2.model.id) { params.methodName = _this2.dialogUrl.add; } else { params.methodName = _this2.dialogUrl.update; } // 发起请求 Object(manage["b" /* ctos3Api */])(params).then(function (response) { var res = response.responseData; if (res.statusCode === 0) { that.$message.success("操作成功"); //handleOk是默认方法 that.$emit("ok", "handleOk"); } else { that.$message.warning("操作失败"); } }).finally(function () { that.confirmLoading = false; that.close(); }); _this2.$refs.kfb.reset(); }).catch(function () {}); }, handleCancel: function handleCancel() { this.close(); this.$refs.kfb.reset(); }, handleChange: function handleChange(value, key) { Object(util["A" /* useCodeEvent */])(this.configJson.config, "handleChange", this)(value, key, this); }, /** * grid相关事件捕获 * @param value 值 * @param key 事件名称 */ logEvent: function logEvent(value, key) { // 只有当以下三个事件时才可以使用在线编程,不然会频繁触发调用动态函数 if (value.event === "onRowDblClick" || value.event === "onRowClick" || value.event === "onSelectionChanged" || value.event === "onRowUpdated" || value.event === "onRowRemoved" || value.event === "onRowInserted") { Object(util["A" /* useCodeEvent */])(this.configJson.config, "logEvent", this)(value, key, this); } }, commonFunc: function commonFunc(operation) { // this.$emit("ok", operation); Object(util["A" /* useCodeEvent */])(this.configJson.config, "dynamicFunc", this)(operation, this); }, handleBusiness: function handleBusiness(operation) { //此脚本已注释,建议在dialog按钮点击后手动调用下面的函数,调用后会触发父组件的handleDialogBusiness函数 // this.$emit("ok", operation); Object(util["A" /* useCodeEvent */])(this.configJson.config, "handleBusiness", this)(operation, this); } } }); // CONCATENATED MODULE: ./packages/components/CtosBiz/BaseModal.vue?vue&type=script&lang=js& /* harmony default export */ var CtosBiz_BaseModalvue_type_script_lang_js_ = (BaseModalvue_type_script_lang_js_); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__("2877"); // CONCATENATED MODULE: ./packages/components/CtosBiz/BaseModal.vue /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( CtosBiz_BaseModalvue_type_script_lang_js_, render, staticRenderFns, false, null, "f613f2ba", null ) /* harmony default export */ var BaseModal = __webpack_exports__["a"] = (component.exports); /***/ }), /***/ "00ee": /***/ (function(module, exports, __webpack_require__) { var wellKnownSymbol = __webpack_require__("b622"); var TO_STRING_TAG = wellKnownSymbol('toStringTag'); var test = {}; test[TO_STRING_TAG] = 'z'; module.exports = String(test) === '[object z]'; /***/ }), /***/ "00fd": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag(value) { var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = undefined; var unmasked = true; } catch (e) {} var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } module.exports = getRawTag; /***/ }), /***/ "010b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _core_class__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("facd"); /* harmony import */ var _core_events_strategy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("c8fd"); /* harmony import */ var _core_utils_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("b144"); /* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("3fd5"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("9cde"); /* harmony import */ var _core_utils_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("b7ae"); /* harmony import */ var _store_helper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("e942"); /* harmony import */ var _core_utils_deferred__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("cc07"); /* harmony import */ var _core_utils_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("6bc7"); /** * DevExtreme (esm/data/abstract_store.js) * Version: 21.2.6 * Build date: Tue Mar 01 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ var abstract = _core_class__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].abstract; var queryByOptions = _store_helper__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].queryByOptions; var storeImpl = {}; var Store = _core_class__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].inherit({ ctor: function(options) { var that = this; options = options || {}; this._eventsStrategy = new _core_events_strategy__WEBPACK_IMPORTED_MODULE_1__[/* EventsStrategy */ "a"](this); Object(_core_utils_iterator__WEBPACK_IMPORTED_MODULE_2__[/* each */ "a"])(["onLoaded", "onLoading", "onInserted", "onInserting", "onUpdated", "onUpdating", "onPush", "onRemoved", "onRemoving", "onModified", "onModifying"], (function(_, optionName) { if (optionName in options) { that.on(optionName.slice(2).toLowerCase(), options[optionName]) } })); this._key = options.key; this._errorHandler = options.errorHandler; this._useDefaultSearch = true }, _customLoadOptions: function() { return null }, key: function() { return this._key }, keyOf: function(obj) { if (!this._keyGetter) { this._keyGetter = Object(_core_utils_data__WEBPACK_IMPORTED_MODULE_5__[/* compileGetter */ "a"])(this.key()) } return this._keyGetter(obj) }, _requireKey: function() { if (!this.key()) { throw _errors__WEBPACK_IMPORTED_MODULE_3__[/* errors */ "a"].Error("E4005") } }, load: function(options) { var that = this; options = options || {}; this._eventsStrategy.fireEvent("loading", [options]); return this._withLock(this._loadImpl(options)).done((function(result) { that._eventsStrategy.fireEvent("loaded", [result, options]) })) }, _loadImpl: function(options) { return queryByOptions(this.createQuery(options), options).enumerate() }, _withLock: function(task) { var result = new _core_utils_deferred__WEBPACK_IMPORTED_MODULE_7__[/* Deferred */ "a"]; task.done((function() { var that = this; var args = arguments; _utils__WEBPACK_IMPORTED_MODULE_4__[/* processRequestResultLock */ "j"].promise().done((function() { result.resolveWith(that, args) })) })).fail((function() { result.rejectWith(this, arguments) })); return result }, createQuery: abstract, totalCount: function(options) { return this._totalCountImpl(options) }, _totalCountImpl: function(options) { return queryByOptions(this.createQuery(options), options, true).count() }, byKey: function(key, extraOptions) { return this._addFailHandlers(this._withLock(this._byKeyImpl(key, extraOptions))) }, _byKeyImpl: abstract, insert: function(values) { var that = this; that._eventsStrategy.fireEvent("modifying"); that._eventsStrategy.fireEvent("inserting", [values]); return that._addFailHandlers(that._insertImpl(values).done((function(callbackValues, callbackKey) { that._eventsStrategy.fireEvent("inserted", [callbackValues, callbackKey]); that._eventsStrategy.fireEvent("modified") }))) }, _insertImpl: abstract, update: function(key, values) { var that = this; that._eventsStrategy.fireEvent("modifying"); that._eventsStrategy.fireEvent("updating", [key, values]); return that._addFailHandlers(that._updateImpl(key, values).done((function() { that._eventsStrategy.fireEvent("updated", [key, values]); that._eventsStrategy.fireEvent("modified") }))) }, _updateImpl: abstract, push: function(changes) { var beforePushArgs = { changes: changes, waitFor: [] }; this._eventsStrategy.fireEvent("beforePush", [beforePushArgs]); Object(_core_utils_deferred__WEBPACK_IMPORTED_MODULE_7__[/* when */ "c"])(...beforePushArgs.waitFor).done(() => { this._pushImpl(changes); this._eventsStrategy.fireEvent("push", [changes]) }) }, _pushImpl: _core_utils_common__WEBPACK_IMPORTED_MODULE_8__[/* noop */ "n"], remove: function(key) { var that = this; that._eventsStrategy.fireEvent("modifying"); that._eventsStrategy.fireEvent("removing", [key]); return that._addFailHandlers(that._removeImpl(key).done((function(callbackKey) { that._eventsStrategy.fireEvent("removed", [callbackKey]); that._eventsStrategy.fireEvent("modified") }))) }, _removeImpl: abstract, _addFailHandlers: function(deferred) { return deferred.fail(this._errorHandler).fail(_errors__WEBPACK_IMPORTED_MODULE_3__[/* handleError */ "b"]) }, on(eventName, eventHandler) { this._eventsStrategy.on(eventName, eventHandler); return this }, off(eventName, eventHandler) { this._eventsStrategy.off(eventName, eventHandler); return this } }); Store.create = function(alias, options) { if (!(alias in storeImpl)) { throw _errors__WEBPACK_IMPORTED_MODULE_3__[/* errors */ "a"].Error("E4020", alias) } return new storeImpl[alias](options) }; Store.registerClass = function(type, alias) { if (alias) { storeImpl[alias] = type } return type }; Store.inherit = function(inheritor) { return function(members, alias) { var type = inheritor.apply(this, [members]); Store.registerClass(type, alias); return type } }(Store.inherit); /* harmony default export */ __webpack_exports__["a"] = (Store); /***/ }), /***/ "0126": /***/ (function(module, exports, __webpack_require__) { (function () { "use strict"; function defineString(extended, is, date, arr) { var stringify; if (typeof JSON === "undefined") { /* json2.js 2012-10-08 Public Domain. NO WARRANTY