@zscreate/form-component 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3610,7 +3610,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _com
|
|
|
3610
3610
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3611
3611
|
|
|
3612
3612
|
"use strict";
|
|
3613
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _mixins_widgetMixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../mixins/widgetMixins */ \"./src/form/mixins/widgetMixins.js\");\n/* harmony import */ var _api_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/api/api */ \"./src/api/api.js\");\nconst layoutItem = () => Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! @/form/modules/layout/layoutItem */ \"./src/form/modules/layout/layoutItem.vue\"));\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n mixins: [_mixins_widgetMixins__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n inject: [\"config\"],\n props: {\n rules: {\n type: Object\n },\n tableKey: {\n type: String,\n default: \"\"\n },\n tableIndex: {\n type: [String, Number, Object],\n default: \"\"\n },\n widget: {\n type: Object,\n default: () => {\n return {};\n }\n },\n models: {\n type: Object,\n default: () => {\n return {};\n }\n },\n verifyNode: {\n type: String,\n default: \"\"\n },\n suggest: {\n type: Array,\n default: () => {\n return [];\n }\n }\n },\n data() {\n return {\n style: {\n width: \"\",\n height: \"\"\n },\n val: \"\",\n userSign: \"\",\n //签名图片\n userSeal: \"\",\n //签章\n isShowBtn: false,\n //是否展示签章\n isShowSeal: false,\n imgUrl: window._CONFIG.imgUrl\n };\n },\n components: {\n layoutItem\n },\n created() {\n // 处理mm转换为px 如果没有设置 默认35mm\n let options = this.widget.options;\n this.style.width = options.sealWidth ? this.mmToPx(Number(options.sealWidth)).toFixed(2) + \"px\" : this.mmToPx(35).toFixed(2) + \"px\";\n this.style.height = options.sealHeight ? this.mmToPx(Number(options.sealHeight)).toFixed(2) + \"px\" : this.mmToPx(35).toFixed(2) + \"px\";\n //默认审核操作为同意\n if (!this.models[this.widget.model].operation && this.widget.model == this.verifyNode) {\n this.models[this.widget.model].operation = this.suggest[0] ? this.suggest[0].value : \"\";\n }\n if (this.widget.model == this.verifyNode) {\n this.getuserSgin();\n }\n },\n computed: {\n currKey() {\n return this.tableKey ? `${this.tableKey}.${this.tableIndex}.${this.widget.model}` : this.widget.model;\n },\n // 印章拖动组件样式\n initCdrUserSeal() {\n if (!this.isShowSeal) return {};\n const width = Number(this.style.width.replace('px', ''));\n const height = Number(this.style.height.replace('px', ''));\n return {\n width,\n height,\n x: Number(this.$refs['verifyRight'].offsetWidth - width),\n y: 0\n };\n },\n userSealPosition() {\n // 获取印章的位置\n const userSealPosition = this.models[this.currKey]['userSealPosition'];\n if (!userSealPosition) {\n return {\n right: 0,\n top: 0\n };\n }\n return {\n left: (userSealPosition.left || 0) + 'px',\n top: (userSealPosition.top || 0) + 'px'\n };\n }\n },\n // watch: {\n // models: {\n // deep: true,\n // handler(val) {\n // console.log(val);\n // },\n // },\n // },\n methods: {\n onSealDrag(left, top) {\n this.changeModel(\"userSealPosition\", {\n left,\n top\n });\n },\n handleSeal() {\n this.isShowSeal = true;\n this.isShowBtn = false;\n this.changeModel(\"userSeal\", this.userSeal);\n },\n //关闭盖章\n handleClose() {\n this.isShowSeal = false;\n this.isShowBtn = true;\n this.changeModel(\"userSealPosition\", null);\n this.changeModel(\"userSeal\", null);\n },\n // 获取签名签章\n getuserSgin() {\n (0,_api_api__WEBPACK_IMPORTED_MODULE_1__.getSignature)().then(res => {\n if (res.success) {\n this.userSign = res.result.userSign || \"\";\n this.userSeal = res.result.userSeal || \"\";\n this.changeModel(\"userSign\", this.userSign);\n //处理驳回的情况\n let operator = this.models[this.widget.model].operation;\n //有盖章才会走\n if (this.userSeal) {\n //如果处理意见是有值\n if (operator) {\n // 判断是不是同意\n let item = this.suggest.find(item => item.label == operator);\n if (item.description == \"TIJIAO\") {\n this.isShowBtn = true;\n }\n } else {\n this.suggest[0].description == \"TIJIAO\" ? this.isShowBtn = true : \"\";\n }\n }\n }\n });\n },\n // 更新Model值 给后台 name 属性 val 值\n changeModel(name, val) {\n let models = {\n [this.widget.model]: {\n ...this.models[this.widget.model],\n [name]: val\n }\n };\n this.$emit(\"update:models\", {\n ...this.models,\n ...models\n });\n },\n //获取DPI,图像每英寸长度内的像素点数\n getDPI() {\n var arrDPI = new Array();\n if (window.screen.deviceXDPI) {\n arrDPI[0] = window.screen.deviceXDPI;\n arrDPI[1] = window.screen.deviceYDPI;\n } else {\n var tmpNode = document.createElement(\"DIV\");\n tmpNode.style.cssText = \"width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden\";\n document.body.appendChild(tmpNode);\n arrDPI[0] = parseInt(tmpNode.offsetWidth);\n arrDPI[1] = parseInt(tmpNode.offsetHeight);\n tmpNode.parentNode.removeChild(tmpNode);\n }\n return arrDPI;\n },\n //毫米转px\n mmToPx(value) {\n var inch = value / 25.4;\n var c_value = inch * this.getDPI()[0];\n return c_value;\n },\n handleChange(val) {\n let models = {\n [this.widget.model]: {\n ...this.models[this.widget.model],\n operation: val\n }\n };\n // 有盖章才走这个判断\n if (this.userSeal) {\n let arr = this.suggest.find(item => item.value == val);\n if (arr.description == \"TIJIAO\") {\n this.isShowBtn = true;\n } else {\n this.isShowBtn = false;\n this.isShowSeal = false;\n models[this.widget.model].userSeal = \"\";\n }\n }\n console.log(models);\n this.$emit(\"update:models\", {\n ...this.models,\n ...models\n });\n }\n }\n});\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/Verify/component.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
|
|
3613
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _api_manage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/api/manage */ \"./src/api/manage.js\");\n/* harmony import */ var _mixins_widgetMixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../mixins/widgetMixins */ \"./src/form/mixins/widgetMixins.js\");\n/* harmony import */ var _api_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/api/api */ \"./src/api/api.js\");\n/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/util */ \"./src/utils/util.js\");\n\nconst layoutItem = () => Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! @/form/modules/layout/layoutItem */ \"./src/form/modules/layout/layoutItem.vue\"));\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n mixins: [_mixins_widgetMixins__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n inject: [\"config\"],\n props: {\n rules: {\n type: Object\n },\n tableKey: {\n type: String,\n default: \"\"\n },\n tableIndex: {\n type: [String, Number, Object],\n default: \"\"\n },\n widget: {\n type: Object,\n default: () => {\n return {};\n }\n },\n models: {\n type: Object,\n default: () => {\n return {};\n }\n },\n verifyNode: {\n type: String,\n default: \"\"\n },\n suggest: {\n type: Array,\n default: () => {\n return [];\n }\n }\n },\n data() {\n return {\n style: {\n width: \"\",\n height: \"\"\n },\n val: \"\",\n platformVisible: false,\n platformUrl: '',\n dataType: null,\n userSign: \"\",\n //签名图片\n userSeal: \"\",\n //签章\n isShowBtn: false,\n //是否展示签章\n isShowSeal: false,\n imgUrl: window._CONFIG.imgUrl,\n iframeLoading: true,\n sealStyle: {}\n };\n },\n components: {\n layoutItem\n },\n created() {\n // 处理mm转换为px 如果没有设置 默认35mm\n let options = this.widget.options;\n this.style.width = options.sealWidth ? this.mmToPx(Number(options.sealWidth)).toFixed(2) + \"px\" : this.mmToPx(35).toFixed(2) + \"px\";\n this.style.height = options.sealHeight ? this.mmToPx(Number(options.sealHeight)).toFixed(2) + \"px\" : this.mmToPx(35).toFixed(2) + \"px\";\n //默认审核操作为同意\n if (!this.models[this.widget.model].operation && this.widget.model == this.verifyNode) {\n this.models[this.widget.model].operation = this.suggest[0] ? this.suggest[0].value : \"\";\n }\n if (this.widget.model == this.verifyNode) {\n if (!this.widget.options.platform) {\n this.getuserSgin();\n return;\n }\n this.userSeal = '';\n let operator = this.models[this.widget.model].operation;\n if (operator) {\n // 判断是不是同意\n let item = this.suggest.find(item => item.label == operator);\n if (item.description == \"TIJIAO\") {\n this.isShowBtn = true;\n }\n }\n }\n },\n computed: {\n currKey() {\n return this.tableKey ? `${this.tableKey}.${this.tableIndex}.${this.widget.model}` : this.widget.model;\n },\n // 印章拖动组件样式\n initCdrUserSeal() {\n if (!this.isShowSeal) return {};\n const {\n width: sealWidth,\n height: sealHeight\n } = this.sealStyle;\n let width = Number(this.style.width.replace('px', ''));\n let height = Number(this.style.height.replace('px', ''));\n if (sealWidth && sealHeight) {\n width = sealWidth;\n height = sealHeight;\n }\n return {\n width,\n height,\n x: Number(this.$refs['verifyRight'].offsetWidth - width),\n y: 0\n };\n },\n userSealPosition() {\n // 获取印章的位置\n const userSealPosition = this.models[this.currKey]['userSealPosition'];\n if (!userSealPosition) {\n return {\n right: 0,\n top: 0\n };\n }\n const {\n left,\n top,\n width,\n height\n } = userSealPosition;\n return {\n left: (left || 0) + 'px',\n top: (top || 0) + 'px',\n width: width ? width + 'px' : undefined,\n height: height ? height + 'px' : undefined\n };\n }\n },\n // watch: {\n // models: {\n // deep: true,\n // handler(val) {\n // console.log(val);\n // },\n // },\n // },\n methods: {\n handleIframeLoad(messageEvent) {\n let {\n data\n } = messageEvent;\n console.log(data);\n try {\n data = JSON.parse(data);\n } catch (e) {\n console.log(e);\n this.$message.error(\"获取签名签章数据失败\");\n return;\n }\n const {\n action\n } = data;\n const {\n sealImg,\n message,\n sealSpec\n } = data.data;\n const {\n pixelWidth,\n pixelHeight\n } = sealSpec;\n if (action !== 'complete' || !sealImg) {\n if (action === 'message') {\n this.$message.error(message);\n return;\n }\n this.$message.error(\"获取签名签章数据失败\");\n return;\n }\n this.platformVisible = false;\n if (this.dataType == 2) {\n this.isShowSeal = true;\n this.isShowBtn = false;\n this.userSeal = sealImg;\n this.sealStyle.width = pixelWidth;\n this.sealStyle.height = pixelHeight;\n this.changeModel(\"userSeal\", sealImg);\n } else {\n this.userSign = sealImg;\n this.userSignStyle = {\n width: pixelWidth,\n height: pixelHeight\n };\n this.changeModel(\"userSign\", sealImg);\n }\n },\n platformIframeLoad() {\n this.iframeLoading = false;\n window.addEventListener('message', this.handleIframeLoad);\n },\n onSealDrag(left, top) {\n const {\n width,\n height\n } = this.initCdrUserSeal;\n this.changeModel(\"userSealPosition\", {\n left,\n top,\n width,\n height\n });\n },\n // dataType: 1.签名 2. 签章\n async handleSeal(dataType) {\n console.log(this.widget.options.platform);\n if (this.widget.options.platform) {\n const [err, res] = await (0,_utils_util__WEBPACK_IMPORTED_MODULE_3__.toAwait)((0,_api_manage__WEBPACK_IMPORTED_MODULE_0__.postAction)(\"/form/qiyuesuo/getSignUrl\", {\n content: 'content',\n dataType\n }));\n if (err || !res.success) {\n this.$message.error(res.message);\n return;\n }\n this.dataType = dataType;\n this.platformUrl = res.result;\n if (!this.platformUrl) {\n this.$message.error(\"获取失败\");\n return;\n }\n this.iframeLoading = true;\n this.platformVisible = true;\n return;\n }\n this.isShowSeal = true;\n this.isShowBtn = false;\n this.changeModel(\"userSeal\", this.userSeal);\n },\n //关闭盖章\n handleClose() {\n this.isShowSeal = false;\n this.isShowBtn = true;\n this.changeModel(\"userSealPosition\", null);\n this.changeModel(\"userSeal\", null);\n },\n // 获取签名签章\n getuserSgin() {\n (0,_api_api__WEBPACK_IMPORTED_MODULE_2__.getSignature)().then(res => {\n if (res.success) {\n this.userSign = res.result.userSign || \"\";\n this.userSeal = res.result.userSeal || \"\";\n this.changeModel(\"userSign\", this.userSign);\n //处理驳回的情况\n let operator = this.models[this.widget.model].operation;\n //有盖章才会走\n if (this.userSeal) {\n //如果处理意见是有值\n if (operator) {\n // 判断是不是同意\n let item = this.suggest.find(item => item.label == operator);\n if (item.description == \"TIJIAO\") {\n this.isShowBtn = true;\n }\n } else {\n this.suggest[0].description == \"TIJIAO\" ? this.isShowBtn = true : \"\";\n }\n }\n }\n });\n },\n // 更新Model值 给后台 name 属性 val 值\n changeModel(name, val) {\n let models = {\n [this.widget.model]: {\n ...this.models[this.widget.model],\n [name]: val\n }\n };\n this.$emit(\"update:models\", {\n ...this.models,\n ...models\n });\n },\n //获取DPI,图像每英寸长度内的像素点数\n getDPI() {\n var arrDPI = new Array();\n if (window.screen.deviceXDPI) {\n arrDPI[0] = window.screen.deviceXDPI;\n arrDPI[1] = window.screen.deviceYDPI;\n } else {\n var tmpNode = document.createElement(\"DIV\");\n tmpNode.style.cssText = \"width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden\";\n document.body.appendChild(tmpNode);\n arrDPI[0] = parseInt(tmpNode.offsetWidth);\n arrDPI[1] = parseInt(tmpNode.offsetHeight);\n tmpNode.parentNode.removeChild(tmpNode);\n }\n return arrDPI;\n },\n //毫米转px\n mmToPx(value) {\n var inch = value / 25.4;\n var c_value = inch * this.getDPI()[0];\n return c_value;\n },\n handleChange(val) {\n let models = {\n [this.widget.model]: {\n ...this.models[this.widget.model],\n operation: val\n }\n };\n // 有盖章才走这个判断\n if (this.userSeal || this.widget.options.platform) {\n let arr = this.suggest.find(item => item.value == val);\n if (arr.description == \"TIJIAO\") {\n this.isShowBtn = true;\n } else {\n this.isShowBtn = false;\n this.isShowSeal = false;\n models[this.widget.model].userSeal = \"\";\n }\n }\n console.log(models);\n this.$emit(\"update:models\", {\n ...this.models,\n ...models\n });\n }\n }\n});\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/Verify/component.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
|
|
3614
3614
|
|
|
3615
3615
|
/***/ }),
|
|
3616
3616
|
|
|
@@ -4996,7 +4996,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
4996
4996
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4997
4997
|
|
|
4998
4998
|
"use strict";
|
|
4999
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _vm.widget ? _c(\"div\", {\n staticClass: \"custom_form_item custom_form_item_special\",\n style: {\n height: _vm.widget.options.height + \"px\"\n }\n }, [_c(\"a-form-model-item\", {\n ref: _vm.widget.model,\n attrs: {\n colon: false,\n \"label-col\": _vm.labelCol,\n wrapperCol: _vm.wrapperCol,\n prop: _vm.tableKey ? `${_vm.tableKey}.${_vm.tableIndex}.${_vm.widget.model}` : _vm.widget.model,\n rules: _vm.tableKey ? _vm.rules[_vm.tableKey][_vm.widget.model] : _vm.rules[_vm.widget.model]\n }\n }, [_c(\"div\", {\n staticClass: \"verify clear verify-no-border\",\n style: {\n height: _vm.widget.options.height + \"px\"\n }\n }, [_c(\"a-form-model-item\", {\n attrs: {\n colon: false,\n \"label-col\": _vm.labelCol,\n wrapperCol: _vm.wrapperCol\n }\n }, [_c(\"div\", {\n class: [_vm.config.align, _vm.config.validate === true && _vm.widget.options.required === true ? \"is_required\" : \"no_required\"],\n style: {\n color: _vm.config.color\n },\n attrs: {\n slot: \"label\"\n },\n slot: \"label\"\n }, [_vm._v(\" \" + _vm._s(_vm.widget.name) + \" \")]), _c(\"div\", {\n ref: \"verifyRight\",\n staticClass: \"verify-right\",\n style: {\n \"border-color\": _vm.config.borderColor\n }\n }, [_vm.widget.model == _vm.verifyNode ? [_vm.userSeal && _vm.isShowSeal ? _c(\"vdr\", {\n staticStyle: {\n position: \"absolute\",\n \"z-index\": \"999\"\n },\n attrs: {\n w: _vm.initCdrUserSeal.width,\n h: _vm.initCdrUserSeal.height,\n y: _vm.initCdrUserSeal.y,\n x: _vm.initCdrUserSeal.x,\n resizable: false,\n parent: true\n },\n on: {\n dragging: _vm.onSealDrag\n }\n }, [_c(\"img\", {\n style: _vm.
|
|
4999
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _vm.widget ? _c(\"div\", {\n staticClass: \"custom_form_item custom_form_item_special\",\n style: {\n height: _vm.widget.options.height + \"px\"\n }\n }, [_c(\"a-form-model-item\", {\n ref: _vm.widget.model,\n attrs: {\n colon: false,\n \"label-col\": _vm.labelCol,\n wrapperCol: _vm.wrapperCol,\n prop: _vm.tableKey ? `${_vm.tableKey}.${_vm.tableIndex}.${_vm.widget.model}` : _vm.widget.model,\n rules: _vm.tableKey ? _vm.rules[_vm.tableKey][_vm.widget.model] : _vm.rules[_vm.widget.model]\n }\n }, [_c(\"div\", {\n staticClass: \"verify clear verify-no-border\",\n style: {\n height: _vm.widget.options.height + \"px\"\n }\n }, [_c(\"a-form-model-item\", {\n attrs: {\n colon: false,\n \"label-col\": _vm.labelCol,\n wrapperCol: _vm.wrapperCol\n }\n }, [_c(\"div\", {\n class: [_vm.config.align, _vm.config.validate === true && _vm.widget.options.required === true ? \"is_required\" : \"no_required\"],\n style: {\n color: _vm.config.color\n },\n attrs: {\n slot: \"label\"\n },\n slot: \"label\"\n }, [_vm._v(\" \" + _vm._s(_vm.widget.name) + \" \")]), _c(\"div\", {\n ref: \"verifyRight\",\n staticClass: \"verify-right\",\n style: {\n \"border-color\": _vm.config.borderColor\n }\n }, [_vm.widget.model == _vm.verifyNode ? [_vm.userSeal && _vm.isShowSeal ? _c(\"vdr\", {\n staticStyle: {\n position: \"absolute\",\n \"z-index\": \"999\"\n },\n attrs: {\n w: _vm.initCdrUserSeal.width,\n h: _vm.initCdrUserSeal.height,\n y: _vm.initCdrUserSeal.y,\n x: _vm.initCdrUserSeal.x,\n resizable: false,\n parent: true\n },\n on: {\n dragging: _vm.onSealDrag\n }\n }, [_c(\"img\", {\n style: {\n width: _vm.initCdrUserSeal.width + \"px\",\n height: _vm.initCdrUserSeal.height + \"px\"\n },\n attrs: {\n src: _vm.userSeal.startsWith(\"data:image\") ? _vm.userSeal : _vm.imgUrl + _vm.userSeal,\n alt: \"\"\n }\n }), _c(\"a-icon\", {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.userSeal && _vm.isShowSeal,\n expression: \"userSeal && isShowSeal\"\n }],\n staticClass: \"verify-icon\",\n staticStyle: {\n \"font-size\": \"18px\"\n },\n attrs: {\n type: \"close\"\n },\n on: {\n click: _vm.handleClose\n }\n })], 1) : _vm._e()] : [_vm.models[_vm.widget.model].userSeal ? _c(\"div\", {\n staticClass: \"verify-seal\",\n style: {\n ..._vm.userSealPosition,\n position: \"absolute\"\n }\n }, [_c(\"img\", {\n style: {\n width: _vm.userSealPosition.width,\n height: _vm.userSealPosition.height\n },\n attrs: {\n src: _vm.models[_vm.widget.model].userSeal.startsWith(\"data:image\") ? _vm.models[_vm.widget.model].userSeal : _vm.imgUrl + _vm.models[_vm.widget.model].userSeal,\n alt: \"\"\n }\n })]) : _vm._e()], _c(\"div\", {\n staticClass: \"verify-text\",\n style: {\n \"border-color\": _vm.config.borderColor\n }\n }, [_c(\"span\", [_vm.models[_vm.widget.model] ? _c(\"a-input\", {\n style: {\n position: \"relative\",\n zIndex: 2\n },\n attrs: {\n type: \"textarea\",\n disabled: _vm.widget.model !== _vm.verifyNode,\n rows: \"4\",\n placeholder: _vm.widget.options.placeholder\n },\n model: {\n value: _vm.models[_vm.widget.model].comments,\n callback: function ($$v) {\n _vm.$set(_vm.models[_vm.widget.model], \"comments\", $$v);\n },\n expression: \"models[widget.model].comments\"\n }\n }) : _vm._e()], 1), _vm.widget.model == _vm.verifyNode ? [_c(\"div\", {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.isShowBtn,\n expression: \"isShowBtn\"\n }],\n staticClass: \"verify-btn\"\n }, [_c(\"a-popconfirm\", {\n attrs: {\n title: \"请确认是否添加印章?\",\n \"ok-text\": \"是\",\n \"cancel-text\": \"否\",\n getPopupContainer: triggerNode => {\n return triggerNode.parentNode || _vm.document.body;\n }\n },\n on: {\n confirm: function ($event) {\n return _vm.handleSeal(2);\n }\n }\n }, [_c(\"a\", {\n attrs: {\n href: \"#\"\n }\n }, [_vm._v(\"盖章\")])])], 1)] : _vm._e()], 2), _c(\"div\", {\n staticClass: \"verify-option\"\n }, [_c(\"div\", {\n style: {\n \"border-color\": _vm.config.borderColor\n }\n }, [_c(\"span\", {\n style: {\n \"border-color\": _vm.config.borderColor\n }\n }, [_vm._v(\" \" + _vm._s(_vm.widget.options.operation) + \" \")]), _c(\"span\", [_c(\"a-select\", {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.models[_vm.widget.model],\n expression: \"models[widget.model]\"\n }],\n style: {\n width: \"90%\"\n },\n attrs: {\n disabled: _vm.widget.model !== _vm.verifyNode,\n \"default-value\": _vm.models[_vm.widget.model].operation\n },\n on: {\n change: _vm.handleChange\n }\n }, _vm._l(_vm.suggest, function (item, idx) {\n return _c(\"a-select-option\", {\n key: idx,\n attrs: {\n value: item.value\n }\n }, [_vm._v(_vm._s(item.label))]);\n }), 1)], 1)]), _c(\"div\", {\n style: {\n \"border-color\": _vm.config.borderColor\n }\n }, [_c(\"span\", {\n style: {\n \"border-color\": _vm.config.borderColor\n }\n }, [_vm._v(\" \" + _vm._s(_vm.widget.options.operator) + \" \")]), _vm.widget.model == _vm.verifyNode ? [_vm.widget.options.platform && !_vm.userSign ? _c(\"span\", [_c(\"a-popconfirm\", {\n attrs: {\n title: \"请确认是否添加签名?\",\n \"ok-text\": \"是\",\n \"cancel-text\": \"否\",\n getPopupContainer: triggerNode => {\n return triggerNode.parentNode || _vm.document.body;\n }\n },\n on: {\n confirm: function ($event) {\n return _vm.handleSeal(1);\n }\n }\n }, [_c(\"a-button\", {\n attrs: {\n type: \"link\"\n }\n }, [_vm._v(\"签名\")])], 1)], 1) : _vm.userSign ? _c(\"span\", [_c(\"img\", {\n staticStyle: {\n height: \"100%\"\n },\n attrs: {\n src: _vm.userSign.startsWith(\"data:image\") ? _vm.userSign : _vm.imgUrl + _vm.userSign,\n alt: \"\"\n }\n }), _c(\"a-icon\", {\n attrs: {\n name: \"close\"\n }\n })], 1) : _c(\"span\", {\n style: {\n \"border-color\": _vm.config.borderColor\n }\n }, [_vm._v(\" \" + _vm._s(_vm.models[_vm.widget.model] ? _vm.models[_vm.widget.model].operator : \"\") + \" \")])] : [_vm.models[_vm.widget.model].userSign ? _c(\"span\", [_c(\"img\", {\n staticStyle: {\n height: \"100%\"\n },\n attrs: {\n src: _vm.models[_vm.widget.model].userSign.startsWith(\"data:image\") ? _vm.models[_vm.widget.model].userSign : _vm.imgUrl + _vm.models[_vm.widget.model].userSign,\n alt: \"\"\n }\n })]) : _c(\"span\", {\n style: {\n \"border-color\": _vm.config.borderColor\n }\n }, [_vm._v(\" \" + _vm._s(_vm.models[_vm.widget.model] ? _vm.models[_vm.widget.model].operator : \"\") + \" \")])]], 2), _c(\"div\", [_c(\"span\", {\n style: {\n \"border-color\": _vm.config.borderColor\n }\n }, [_vm._v(\" \" + _vm._s(_vm.widget.options.operationTime) + \" \")]), _c(\"span\", {\n style: {\n \"border-color\": _vm.config.borderColor\n }\n }, [_vm._v(\" \" + _vm._s(_vm.models[_vm.widget.model] ? _vm.models[_vm.widget.model].operationTime : \"\") + \" \")])])])], 2)])], 1)]), _vm.widget.model == _vm.verifyNode && _vm.widget.options.platform ? _c(\"a-modal\", {\n attrs: {\n zIndex: 100000,\n title: \"选择签名签章\",\n footer: null\n },\n model: {\n value: _vm.platformVisible,\n callback: function ($$v) {\n _vm.platformVisible = $$v;\n },\n expression: \"platformVisible\"\n }\n }, [_c(\"a-spin\", {\n attrs: {\n tip: \"加载中\",\n spinning: _vm.iframeLoading\n }\n }, [_c(\"iframe\", {\n ref: \"platformIframe\",\n staticStyle: {\n width: \"100%\",\n height: \"470px\"\n },\n attrs: {\n src: _vm.platformUrl\n },\n on: {\n load: _vm.platformIframeLoad,\n error: function ($event) {\n _vm.iframeLoading = false;\n _vm.$message.error(\"页面加载失败\");\n }\n }\n })])], 1) : _vm._e()], 1) : _vm._e();\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/Verify/component.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B3%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
|
|
5000
5000
|
|
|
5001
5001
|
/***/ }),
|
|
5002
5002
|
|
|
@@ -5018,7 +5018,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
5018
5018
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5019
5019
|
|
|
5020
5020
|
"use strict";
|
|
5021
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", {\n staticClass: \"control\"\n }, [_c(\"a-form-model\", [_vm.widget.options && Object.keys(_vm.widget.options).indexOf(\"operation\") >= 0 ? _c(\"a-form-model-item\", {\n attrs: {\n label: \"审核操作别名:\"\n }\n }, [_c(\"a-input\", {\n attrs: {\n size: \"small\"\n },\n model: {\n value: _vm.widget.options.operation,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"operation\", $$v);\n },\n expression: \"widget.options.operation\"\n }\n })], 1) : _vm._e(), _vm.widget.options && Object.keys(_vm.widget.options).indexOf(\"operator\") >= 0 ? _c(\"a-form-model-item\", {\n attrs: {\n label: \"审核人别名:\"\n }\n }, [_c(\"a-input\", {\n attrs: {\n size: \"small\"\n },\n model: {\n value: _vm.widget.options.operator,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"operator\", $$v);\n },\n expression: \"widget.options.operator\"\n }\n })], 1) : _vm._e(), _vm.widget.options && Object.keys(_vm.widget.options).indexOf(\"operationTime\") >= 0 ? _c(\"a-form-model-item\", {\n attrs: {\n label: \"审核时间别名:\"\n }\n }, [_c(\"a-input\", {\n attrs: {\n size: \"small\"\n },\n model: {\n value: _vm.widget.options.operationTime,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"operationTime\", $$v);\n },\n expression: \"widget.options.operationTime\"\n }\n })], 1) : _vm._e(), _c(\"a-form-model-item\", {\n attrs: {\n label: \"审核盖章宽度(单位mm)\"\n }\n }, [_c(\"a-input\", {\n attrs: {\n size: \"small\",\n type: \"Number\",\n defaultValue: \"35\"\n },\n model: {\n value: _vm.widget.options.sealWidth,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"sealWidth\", $$v);\n },\n expression: \"widget.options.sealWidth\"\n }\n })], 1), _c(\"a-form-model-item\", {\n attrs: {\n label: \"审核盖章高度(单位mm)\"\n }\n }, [_c(\"a-input\", {\n attrs: {\n size: \"small\",\n type: \"Number\",\n defaultValue: \"35\"\n },\n model: {\n value: _vm.widget.options.sealHeight,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"sealHeight\", $$v);\n },\n expression: \"widget.options.sealHeight\"\n }\n })], 1)], 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/Verify/widgetSetup.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B3%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
|
|
5021
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", {\n staticClass: \"control\"\n }, [_c(\"a-form-model\", [_vm.widget.options && Object.keys(_vm.widget.options).indexOf(\"operation\") >= 0 ? _c(\"a-form-model-item\", {\n attrs: {\n label: \"审核操作别名:\"\n }\n }, [_c(\"a-input\", {\n attrs: {\n size: \"small\"\n },\n model: {\n value: _vm.widget.options.operation,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"operation\", $$v);\n },\n expression: \"widget.options.operation\"\n }\n })], 1) : _vm._e(), _vm.widget.options && Object.keys(_vm.widget.options).indexOf(\"operator\") >= 0 ? _c(\"a-form-model-item\", {\n attrs: {\n label: \"审核人别名:\"\n }\n }, [_c(\"a-input\", {\n attrs: {\n size: \"small\"\n },\n model: {\n value: _vm.widget.options.operator,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"operator\", $$v);\n },\n expression: \"widget.options.operator\"\n }\n })], 1) : _vm._e(), _vm.widget.options && Object.keys(_vm.widget.options).indexOf(\"operationTime\") >= 0 ? _c(\"a-form-model-item\", {\n attrs: {\n label: \"审核时间别名:\"\n }\n }, [_c(\"a-input\", {\n attrs: {\n size: \"small\"\n },\n model: {\n value: _vm.widget.options.operationTime,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"operationTime\", $$v);\n },\n expression: \"widget.options.operationTime\"\n }\n })], 1) : _vm._e(), _c(\"a-form-model-item\", {\n attrs: {\n label: \"对接平台\"\n }\n }, [_c(\"a-select\", {\n attrs: {\n placeholder: \"请选择对接平台\"\n },\n model: {\n value: _vm.widget.options.platform,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"platform\", $$v);\n },\n expression: \"widget.options.platform\"\n }\n }, [_c(\"a-select-option\", {\n attrs: {\n value: \"\"\n }\n }, [_vm._v(\" 默认 \")]), _c(\"a-select-option\", {\n attrs: {\n value: \"qiyuesuo\"\n }\n }, [_vm._v(\" 契约锁 \")])], 1)], 1), _c(\"a-form-model-item\", {\n attrs: {\n label: \"审核盖章宽度(单位mm)\"\n }\n }, [_c(\"a-input\", {\n attrs: {\n size: \"small\",\n type: \"Number\",\n defaultValue: \"35\"\n },\n model: {\n value: _vm.widget.options.sealWidth,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"sealWidth\", $$v);\n },\n expression: \"widget.options.sealWidth\"\n }\n })], 1), _c(\"a-form-model-item\", {\n attrs: {\n label: \"审核盖章高度(单位mm)\"\n }\n }, [_c(\"a-input\", {\n attrs: {\n size: \"small\",\n type: \"Number\",\n defaultValue: \"35\"\n },\n model: {\n value: _vm.widget.options.sealHeight,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"sealHeight\", $$v);\n },\n expression: \"widget.options.sealHeight\"\n }\n })], 1)], 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/Verify/widgetSetup.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B3%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
|
|
5022
5022
|
|
|
5023
5023
|
/***/ }),
|
|
5024
5024
|
|
|
@@ -5644,7 +5644,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _com
|
|
|
5644
5644
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5645
5645
|
|
|
5646
5646
|
"use strict";
|
|
5647
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"advanceComponents\": function() { return /* binding */ advanceComponents; },\n/* harmony export */ \"basicComponents\": function() { return /* binding */ basicComponents; },\n/* harmony export */ \"layoutComponents\": function() { return /* binding */ layoutComponents; },\n/* harmony export */ \"specComponents\": function() { return /* binding */ specComponents; }\n/* harmony export */ });\nconst defaultConfig = {\n height: 50 //基础高度 ,组件高度与此高度有倍数关系\n};\n\nconst basicComponents = [{\n type: 'input',\n name: '单行文本',\n icon: 'icon-input',\n options: {\n width: '100%',\n height: defaultConfig.height,\n defaultValue: '',\n required: false,\n dataType: 'string',\n pattern: '',\n labelWidth: '',\n placeholder: '请输入单行文本',\n confiOptions: [],\n relateOptions: [],\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n canAgainSearch: false,\n fontColor: \"#000\"\n }\n}, {\n type: 'textarea',\n name: '多行文本',\n icon: 'icon-diy-com-textarea',\n options: {\n width: '100%',\n height: defaultConfig.height * 2,\n defaultValue: '',\n required: false,\n defauldisabled: false,\n disabled: false,\n pattern: '',\n placeholder: '请输入多行文本',\n confiOptions: [{\n label: undefined,\n value: undefined,\n describe: ''\n }],\n relateOptions: [],\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n fontColor: \"#000\"\n }\n}, {\n type: 'number',\n name: '计数器',\n icon: 'icon-number',\n options: {\n height: defaultConfig.height,\n width: '',\n required: false,\n defaultValue: 0,\n relateOptions: [],\n min: 0,\n max: 10,\n step: 1,\n defauldisabled: false,\n disabled: false,\n controlsPosition: '',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'radio',\n name: '单选框组',\n icon: 'icon-radio-active',\n options: {\n inline: false,\n defaultValue: '',\n showLabel: false,\n dictName: '',\n dictTable: '',\n dictUrl: '',\n relateOptions: [],\n remoteNumber: 1,\n height: defaultConfig.height * 2,\n confiOptions: [{\n label: undefined,\n value: undefined,\n describe: ''\n }],\n required: false,\n width: '',\n remote: false,\n remoteOptions: [],\n props: {\n value: 'value',\n label: 'label'\n },\n remoteFunc: '',\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n labelWidth: ''\n }\n}, {\n type: 'checkbox',\n name: '多选框组',\n icon: 'icon-check-box',\n options: {\n inline: false,\n defaultValue: '',\n //默认值 通过设置字符串 后台会转换为[]\n showLabel: false,\n dictName: '',\n dictTable: '',\n dictUrl: '',\n height: defaultConfig.height * 2,\n required: false,\n width: '',\n remote: false,\n remoteNumber: 1,\n remoteOptions: [],\n props: {\n value: 'value',\n label: 'label'\n },\n remoteFunc: '',\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'time',\n name: '时间选择',\n icon: 'icon-time',\n options: {\n defaultValue: [],\n readonly: false,\n defauldisabled: false,\n disabled: false,\n editable: true,\n clearable: true,\n placeholder: '',\n startPlaceholder: '',\n endPlaceholder: '',\n isRange: false,\n arrowControl: true,\n relateOptions: [],\n format: 'HH:mm:ss',\n required: false,\n width: '',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height\n }\n}, {\n type: 'date',\n name: '日期选择',\n icon: 'icon-date',\n options: {\n defaultValue: '',\n readonly: false,\n defauldisabled: false,\n disabled: false,\n editable: true,\n height: defaultConfig.height,\n clearable: true,\n relateOptions: [],\n placeholder: '',\n rangeplaceholder: ['请选择开始时间', '请选择结束时间'],\n startPlaceholder: '',\n endPlaceholder: '',\n type: 'date',\n format: 'YYYY-MM-DD',\n timestamp: false,\n required: false,\n width: '',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n condition: '',\n conditionValue: ''\n }\n}, {\n type: 'rate',\n name: '评分',\n icon: 'icon-icon-test',\n options: {\n defaultValue: 0,\n max: 5,\n defauldisabled: false,\n disabled: false,\n allowHalf: false,\n required: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n relateOptions: [],\n canView: true,\n height: defaultConfig.height\n }\n},\n// {\n// type: 'color',\n// name: '颜色选择器',\n// icon: 'icon-color',\n// options: {\n// defaultValue: '',\n// defauldisabled: false,\n// disabled: false,\n// showAlpha: false,\n// required: false,\n// canEdit: true,\n// canCorrect: true,\n// defaulcanView: true,\n// relateOptions: [],\n// canView: true,\n// height: defaultConfig.height,\n// }\n// },\n{\n type: 'select',\n name: '下拉选择',\n icon: 'icon-select',\n options: {\n defaultValue: undefined,\n labelWidth: '',\n multiple: false,\n defauldisabled: false,\n linkId: '',\n linkage: [],\n disabled: false,\n clearable: false,\n placeholder: '请选择',\n required: false,\n showLabel: false,\n dictTable: '',\n dictName: '',\n dictUrl: '',\n width: '',\n height: defaultConfig.height,\n options: [],\n confiOptions: [{\n label: undefined,\n value: undefined,\n describe: ''\n }],\n remote: false,\n remoteNumber: '1',\n filterable: true,\n remoteOptions: [],\n props: {\n value: 'value',\n label: 'label'\n },\n remoteFunc: '',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'switch',\n name: '开关',\n icon: 'icon-switch',\n options: {\n defaultValue: false,\n required: false,\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height,\n relateOptions: []\n }\n}, {\n type: 'slider',\n name: '滑块',\n icon: 'icon-slider',\n options: {\n defaultValue: 0,\n defauldisabled: false,\n disabled: false,\n required: false,\n min: 0,\n max: 100,\n step: 1,\n height: defaultConfig.height,\n showInput: false,\n range: false,\n width: '500px',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n relateOptions: []\n }\n}, {\n type: 'hidden',\n name: '隐藏域',\n icon: 'icon-input',\n options: {\n defaultValue: '',\n height: 50,\n required: false,\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: false,\n confiOptions: [{\n label: undefined,\n value: undefined,\n describe: ''\n }],\n relateOptions: []\n }\n}, {\n type: 'superLink',\n name: '超链接',\n icon: 'icon-input',\n options: {\n defaultValue: '',\n required: false,\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height,\n title: '超链接',\n relateOptions: []\n }\n}, {\n type: 'codeControl',\n name: '编号控件',\n icon: 'icon-input',\n options: {\n defaultValue: '',\n required: false,\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height,\n relateOptions: []\n }\n}\n// {\n// type: 'signature',\n// name: '签名签章',\n// icon: 'icon-grid-',\n// options: {\n// role: '',\n// inlineWidth: 200,\n// type: 'text', //text 文字签名 image 图片签名\n// defaultValue: '',\n// imgData: '',\n// options: [],\n// height: defaultConfig.height * 2,\n// multiple: false,\n// showfield: false,\n// disabled: false,\n// placeholder: '',\n// canEdit: true,\n// canCorrect: true,\n// defaulcanView: true,\n// canView: true,\n// tabKey: '',\n// wrapId: '',\n// relateOptions: [],\n// },\n// },\n];\n\nconst advanceComponents = [{\n type: 'table',\n name: '子表单',\n icon: 'icon-input',\n options: {\n layoutModel: 'auto',\n // 布局模式 atuo 自动模式 design自动设计\n defaultValue: [],\n columnsNum: 4,\n rowsNum: 2,\n rowsHeight: 50,\n inline: false,\n inlineWidth: 200,\n customClass: '',\n remoteFunc: '',\n remoteOptions: [],\n canEdit: true,\n height: 40,\n canView: true,\n defaulcanView: true,\n computingMethod: [],\n //计算方法\n computingSub: [] //需要计算字段\n },\n\n columns: [],\n designList: [{\n x: 0,\n y: 0,\n w: 1,\n h: 1,\n i: '1'\n }],\n key: '',\n model: '',\n rules: []\n},\n// {\n// type: 'blank',\n// columns: [], //组件\n// name: '自定义',\n// icon: 'icon-ic',\n// options: {\n// defaultType: 'String',\n// canEdit: true,\n// canCorrect: true,\n// defaulcanView: true,\n// canView: true,\n// height: '',\n// },\n// },\n{\n type: 'imgupload',\n name: '图片上传',\n icon: 'icon-tupian',\n key: 'uploadFile',\n ext: '.jpg,.jpeg,.png,.gif,.zip',\n options: {\n defaultValue: [],\n size: {\n width: 100,\n height: 100\n },\n relateOptions: [],\n fileSize: 300,\n //文件大小 size kb\n placeholder: '点击上传',\n width: '',\n tokenFunc: 'funcGetToken',\n token: '',\n height: defaultConfig.height * 2.5,\n domain: window._CONFIG['formActionURL'],\n defauldisabled: false,\n disabled: false,\n length: 1,\n multiple: false,\n isQiniu: false,\n isDelete: true,\n min: 0,\n isEdit: false,\n action: '/sys/common/upload',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'fileupload',\n name: '文件上传',\n icon: 'icon-shangchuan',\n key: 'uploadFile2',\n ext: '.jpg,.jpeg,.png,.gif,.zip,.doc,.docx,.xlsx,.xls',\n height: '',\n options: {\n defaultValue: [],\n relateOptions: [],\n height: '',\n action: '/sys/common/upload',\n token: '',\n fileSize: 300,\n domain: window._CONFIG['domianURL'],\n defauldisabled: false,\n disabled: false,\n placeholder: '点击上传',\n length: 8,\n multiple: false,\n isQiniu: false,\n isDelete: false,\n min: 0,\n isEdit: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'uploadModel',\n name: '模板下载',\n icon: 'icon-shangchuan',\n key: 'uploadFile2',\n ext: '.zip,.doc,.docx,.xlsx,.xls',\n height: '',\n options: {\n defaultValue: [],\n action: '/sys/common/upload',\n tokenFunc: 'funcGetToken',\n token: '',\n height: defaultConfig.height,\n domain: window._CONFIG['domianURL'],\n length: 8,\n multiple: false,\n isQiniu: false,\n isEdit: false,\n fileSize: 5000,\n //文件大小 size\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'divider',\n name: '分割线',\n icon: 'icon-fengexian',\n options: {\n hidden: false,\n contentPosition: 'left',\n remoteFunc: 'func_1568601762514',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: ''\n },\n key: 'divider',\n model: 'divider_1568601762514',\n rules: []\n}, {\n type: 'cascader',\n name: '地区选择',\n icon: 'icon-jilianxuanze',\n key: 'cascader',\n options: {\n defaultValue: [],\n width: '',\n height: defaultConfig.height,\n placeholder: '',\n defauldisabled: false,\n disabled: false,\n defaulcanView: true,\n canView: true,\n clearable: false,\n canEdit: true,\n canCorrect: true,\n remote: false,\n remoteOptions: [],\n showLabel: true,\n options: [{\n value: 'value',\n label: 'label',\n children: [{\n value: 'shejiyuanze',\n label: '设计原则'\n }, {\n value: 'she',\n label: '设计原则12'\n }]\n }],\n props: [],\n remoteFunc: ''\n }\n}, {\n type: 'deptSelector',\n name: '部门选择',\n icon: 'icon-grid-',\n options: {\n defaultValue: '',\n width: '',\n placeholder: '请点击选择部门',\n multiple: true,\n canEdit: true,\n departType: \"\",\n // 展示部门类型\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height,\n relateOptions: []\n }\n}, {\n type: 'userSelector',\n name: '人员选择',\n icon: 'icon-grid-',\n options: {\n role: '',\n defaultValue: '',\n //默认值为字符串,后台设计的时候 需要设置默认值;为字符串;后台会处理为数组;预览展示需要做特殊处理\n options: [{\n key: undefined,\n value: undefined\n }],\n relateOptions: [],\n height: defaultConfig.height,\n width: '',\n multiple: false,\n showfield: false,\n placeholder: '请点击选择人员',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n tabKey: ''\n }\n}, {\n type: 'userSelectorByRole',\n name: '角色选人',\n icon: 'icon-yulan',\n options: {\n role: [],\n defaultValue: [],\n options: [],\n relateOptions: [],\n height: defaultConfig.height,\n width: '',\n multiple: false,\n showfield: false,\n placeholder: '请点击选择人员',\n canEdit: true,\n canCorrect: true,\n canView: true\n }\n}, {\n type: 'idea-sign',\n name: '意见签名',\n icon: 'icon-grid-',\n options: {\n role: '',\n inlineWidth: 100,\n defaultValue: {\n idea: {\n show: true,\n value: ''\n },\n sign: {\n type: 'word',\n //word文字 image 图片\n label: '个人签名:',\n value: ''\n },\n time: {\n value: '',\n show: true\n },\n webSeal: {\n show: false,\n value: ''\n },\n imgData: {\n value: ''\n }\n },\n signPosition: 'right',\n options: [],\n height: defaultConfig.height * 3,\n textareaHeight: 80,\n multiple: false,\n showfield: false,\n disabled: false,\n placeholder: '',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n tabKey: ''\n }\n}, {\n type: 'signature-write',\n name: '手写签名',\n icon: 'icon-grid-',\n options: {\n role: '',\n inlineWidth: 100,\n defaultValue: \"\",\n //database\n signType: 'write',\n //签名类型 手写 上传图片 等等\n options: [],\n height: defaultConfig.height * 3,\n multiple: false,\n showfield: false,\n disabled: false,\n placeholder: '',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'relateSub',\n name: '关联组件',\n icon: 'icon-sync1',\n options: {\n defaultValue: [],\n options: [{\n key: '',\n value: ''\n }],\n relateOptions: [],\n labels: '',\n //该组件显示的字段\n columnName: '',\n columnCode: '',\n SQL: '',\n multiple: false,\n apiUrl: 'appApi/popupComponentApi',\n linkType: '',\n //\n height: defaultConfig.height,\n placeholder: '请点击选择',\n canEdit: true,\n canCorrect: false,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'relateForm',\n name: '关联表单',\n icon: 'icon-grid-',\n options: {\n defaultValue: {},\n placeholder: '请点击选择关联表单',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height\n }\n}, {\n type: 'localtion',\n name: '位置',\n icon: 'icon-grid-',\n options: {\n defaultValue: {},\n placeholder: '请点击选择关联表单',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height\n }\n}, {\n type: 'imgCode',\n name: '图片验证码',\n icon: 'icon-grid-',\n options: {\n defaultValue: {},\n placeholder: '请点击选择关联表单',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height\n }\n}, {\n type: 'publicSign',\n name: '公章',\n icon: 'icon-grid-',\n options: {\n defaultValue: {},\n placeholder: '请点击选择关联表单',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height\n }\n}];\nconst layoutComponents = [{\n type: 'all-lay-out',\n columns: [{\n width: 100,\n height: 50,\n top: 0,\n left: 0,\n list: []\n }],\n //组件\n name: '特殊组件',\n icon: 'icon-ic',\n options: {\n defaultType: 'String',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height * 3,\n backgroundHTML: '',\n disabled: false\n }\n}, {\n type: 'grid',\n name: '栅格布局',\n icon: 'icon-grid-',\n columns: [{\n span: 12,\n list: []\n }, {\n span: 12,\n list: []\n }],\n options: {\n gutter: 0,\n justify: 'space-between',\n customClass: '',\n align: 'top',\n canEdit: true,\n canCorrect: true,\n canView: true\n }\n}, {\n type: 'grid-lay-out',\n name: '网格布局',\n icon: 'icon-grid-',\n columns: [{\n x: 0,\n y: 0,\n w: 1,\n h: 1,\n i: '1',\n list: []\n }],\n options: {\n columnsNum: 4,\n rowsNum: 2,\n rowsHeight: 50,\n customClass: '',\n align: 'top',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'verify',\n name: '审核表单',\n icon: 'icon-grid-',\n columns: {},\n operationColumns: {\n operation: '',\n operator: '',\n operationTime: '',\n comments: '',\n imgData: ''\n },\n options: {\n height: 150,\n canEdit: true,\n defaulcanView: true,\n canView: true,\n placeholder: '请输入审批意见',\n operation: '审核操作',\n operator: '审核人',\n operationTime: '审核时间',\n webSeal: false\n }\n}, {\n type: 'tabs',\n name: '标签页',\n icon: 'icon-grid-',\n tabs: [{\n label: '标签 1',\n name: '标签_1',\n columns: []\n }],\n options: {\n type: '',\n tabPosition: 'top',\n customClass: '',\n hidden: false,\n remoteFunc: 'func_1584949551208',\n remoteOption: 'option_1584949551208',\n canEdit: true,\n defaulcanView: true,\n canView: true\n },\n rules: []\n}, {\n type: 'placeholder',\n name: '占位字段',\n bgc: undefined,\n space: 0,\n wordsize: undefined,\n wordcolor: undefined,\n icon: 'icon-grid-',\n options: {\n type: '',\n border: true,\n fontWeight: 'normal',\n width: '100%',\n height: defaultConfig.height,\n isfontWeight: true,\n tabPosition: 'top',\n customClass: '',\n hidden: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n align: 'center'\n },\n rules: []\n}];\nconst specComponents = [{\n type: 'editorAirt',\n name: '公文相关',\n icon: 'icon-fuwenbenkuang',\n key: 'editorAirt',\n options: {\n defaultValue: '',\n width: '100%',\n canView: true\n }\n}];\n\n//# sourceURL=webpack://form-component/./src/form/modules/componentsConfig.js?");
|
|
5647
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"advanceComponents\": function() { return /* binding */ advanceComponents; },\n/* harmony export */ \"basicComponents\": function() { return /* binding */ basicComponents; },\n/* harmony export */ \"layoutComponents\": function() { return /* binding */ layoutComponents; },\n/* harmony export */ \"specComponents\": function() { return /* binding */ specComponents; }\n/* harmony export */ });\nconst defaultConfig = {\n height: 50 //基础高度 ,组件高度与此高度有倍数关系\n};\n\nconst basicComponents = [{\n type: 'input',\n name: '单行文本',\n icon: 'icon-input',\n options: {\n width: '100%',\n height: defaultConfig.height,\n defaultValue: '',\n required: false,\n dataType: 'string',\n pattern: '',\n labelWidth: '',\n placeholder: '请输入单行文本',\n confiOptions: [],\n relateOptions: [],\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n canAgainSearch: false,\n fontColor: \"#000\"\n }\n}, {\n type: 'textarea',\n name: '多行文本',\n icon: 'icon-diy-com-textarea',\n options: {\n width: '100%',\n height: defaultConfig.height * 2,\n defaultValue: '',\n required: false,\n defauldisabled: false,\n disabled: false,\n pattern: '',\n placeholder: '请输入多行文本',\n confiOptions: [{\n label: undefined,\n value: undefined,\n describe: ''\n }],\n relateOptions: [],\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n fontColor: \"#000\"\n }\n}, {\n type: 'number',\n name: '计数器',\n icon: 'icon-number',\n options: {\n height: defaultConfig.height,\n width: '',\n required: false,\n defaultValue: 0,\n relateOptions: [],\n min: 0,\n max: 10,\n step: 1,\n defauldisabled: false,\n disabled: false,\n controlsPosition: '',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'radio',\n name: '单选框组',\n icon: 'icon-radio-active',\n options: {\n inline: false,\n defaultValue: '',\n showLabel: false,\n dictName: '',\n dictTable: '',\n dictUrl: '',\n relateOptions: [],\n remoteNumber: 1,\n height: defaultConfig.height * 2,\n confiOptions: [{\n label: undefined,\n value: undefined,\n describe: ''\n }],\n required: false,\n width: '',\n remote: false,\n remoteOptions: [],\n props: {\n value: 'value',\n label: 'label'\n },\n remoteFunc: '',\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n labelWidth: ''\n }\n}, {\n type: 'checkbox',\n name: '多选框组',\n icon: 'icon-check-box',\n options: {\n inline: false,\n defaultValue: '',\n //默认值 通过设置字符串 后台会转换为[]\n showLabel: false,\n dictName: '',\n dictTable: '',\n dictUrl: '',\n height: defaultConfig.height * 2,\n required: false,\n width: '',\n remote: false,\n remoteNumber: 1,\n remoteOptions: [],\n props: {\n value: 'value',\n label: 'label'\n },\n remoteFunc: '',\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'time',\n name: '时间选择',\n icon: 'icon-time',\n options: {\n defaultValue: [],\n readonly: false,\n defauldisabled: false,\n disabled: false,\n editable: true,\n clearable: true,\n placeholder: '',\n startPlaceholder: '',\n endPlaceholder: '',\n isRange: false,\n arrowControl: true,\n relateOptions: [],\n format: 'HH:mm:ss',\n required: false,\n width: '',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height\n }\n}, {\n type: 'date',\n name: '日期选择',\n icon: 'icon-date',\n options: {\n defaultValue: '',\n readonly: false,\n defauldisabled: false,\n disabled: false,\n editable: true,\n height: defaultConfig.height,\n clearable: true,\n relateOptions: [],\n placeholder: '',\n rangeplaceholder: ['请选择开始时间', '请选择结束时间'],\n startPlaceholder: '',\n endPlaceholder: '',\n type: 'date',\n format: 'YYYY-MM-DD',\n timestamp: false,\n required: false,\n width: '',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n condition: '',\n conditionValue: ''\n }\n}, {\n type: 'rate',\n name: '评分',\n icon: 'icon-icon-test',\n options: {\n defaultValue: 0,\n max: 5,\n defauldisabled: false,\n disabled: false,\n allowHalf: false,\n required: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n relateOptions: [],\n canView: true,\n height: defaultConfig.height\n }\n},\n// {\n// type: 'color',\n// name: '颜色选择器',\n// icon: 'icon-color',\n// options: {\n// defaultValue: '',\n// defauldisabled: false,\n// disabled: false,\n// showAlpha: false,\n// required: false,\n// canEdit: true,\n// canCorrect: true,\n// defaulcanView: true,\n// relateOptions: [],\n// canView: true,\n// height: defaultConfig.height,\n// }\n// },\n{\n type: 'select',\n name: '下拉选择',\n icon: 'icon-select',\n options: {\n defaultValue: undefined,\n labelWidth: '',\n multiple: false,\n defauldisabled: false,\n linkId: '',\n linkage: [],\n disabled: false,\n clearable: false,\n placeholder: '请选择',\n required: false,\n showLabel: false,\n dictTable: '',\n dictName: '',\n dictUrl: '',\n width: '',\n height: defaultConfig.height,\n options: [],\n confiOptions: [{\n label: undefined,\n value: undefined,\n describe: ''\n }],\n remote: false,\n remoteNumber: '1',\n filterable: true,\n remoteOptions: [],\n props: {\n value: 'value',\n label: 'label'\n },\n remoteFunc: '',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'switch',\n name: '开关',\n icon: 'icon-switch',\n options: {\n defaultValue: false,\n required: false,\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height,\n relateOptions: []\n }\n}, {\n type: 'slider',\n name: '滑块',\n icon: 'icon-slider',\n options: {\n defaultValue: 0,\n defauldisabled: false,\n disabled: false,\n required: false,\n min: 0,\n max: 100,\n step: 1,\n height: defaultConfig.height,\n showInput: false,\n range: false,\n width: '500px',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n relateOptions: []\n }\n}, {\n type: 'hidden',\n name: '隐藏域',\n icon: 'icon-input',\n options: {\n defaultValue: '',\n height: 50,\n required: false,\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: false,\n confiOptions: [{\n label: undefined,\n value: undefined,\n describe: ''\n }],\n relateOptions: []\n }\n}, {\n type: 'superLink',\n name: '超链接',\n icon: 'icon-input',\n options: {\n defaultValue: '',\n required: false,\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height,\n title: '超链接',\n relateOptions: []\n }\n}, {\n type: 'codeControl',\n name: '编号控件',\n icon: 'icon-input',\n options: {\n defaultValue: '',\n required: false,\n defauldisabled: false,\n disabled: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height,\n relateOptions: []\n }\n}\n// {\n// type: 'signature',\n// name: '签名签章',\n// icon: 'icon-grid-',\n// options: {\n// role: '',\n// inlineWidth: 200,\n// type: 'text', //text 文字签名 image 图片签名\n// defaultValue: '',\n// imgData: '',\n// options: [],\n// height: defaultConfig.height * 2,\n// multiple: false,\n// showfield: false,\n// disabled: false,\n// placeholder: '',\n// canEdit: true,\n// canCorrect: true,\n// defaulcanView: true,\n// canView: true,\n// tabKey: '',\n// wrapId: '',\n// relateOptions: [],\n// },\n// },\n];\n\nconst advanceComponents = [{\n type: 'table',\n name: '子表单',\n icon: 'icon-input',\n options: {\n layoutModel: 'auto',\n // 布局模式 atuo 自动模式 design自动设计\n defaultValue: [],\n columnsNum: 4,\n rowsNum: 2,\n rowsHeight: 50,\n inline: false,\n inlineWidth: 200,\n customClass: '',\n remoteFunc: '',\n remoteOptions: [],\n canEdit: true,\n height: 40,\n canView: true,\n defaulcanView: true,\n computingMethod: [],\n //计算方法\n computingSub: [] //需要计算字段\n },\n\n columns: [],\n designList: [{\n x: 0,\n y: 0,\n w: 1,\n h: 1,\n i: '1'\n }],\n key: '',\n model: '',\n rules: []\n},\n// {\n// type: 'blank',\n// columns: [], //组件\n// name: '自定义',\n// icon: 'icon-ic',\n// options: {\n// defaultType: 'String',\n// canEdit: true,\n// canCorrect: true,\n// defaulcanView: true,\n// canView: true,\n// height: '',\n// },\n// },\n{\n type: 'imgupload',\n name: '图片上传',\n icon: 'icon-tupian',\n key: 'uploadFile',\n ext: '.jpg,.jpeg,.png,.gif,.zip',\n options: {\n defaultValue: [],\n size: {\n width: 100,\n height: 100\n },\n relateOptions: [],\n fileSize: 300,\n //文件大小 size kb\n placeholder: '点击上传',\n width: '',\n tokenFunc: 'funcGetToken',\n token: '',\n height: defaultConfig.height * 2.5,\n domain: window._CONFIG['formActionURL'],\n defauldisabled: false,\n disabled: false,\n length: 1,\n multiple: false,\n isQiniu: false,\n isDelete: true,\n min: 0,\n isEdit: false,\n action: '/sys/common/upload',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'fileupload',\n name: '文件上传',\n icon: 'icon-shangchuan',\n key: 'uploadFile2',\n ext: '.jpg,.jpeg,.png,.gif,.zip,.doc,.docx,.xlsx,.xls',\n height: '',\n options: {\n defaultValue: [],\n relateOptions: [],\n height: '',\n action: '/sys/common/upload',\n token: '',\n fileSize: 300,\n domain: window._CONFIG['domianURL'],\n defauldisabled: false,\n disabled: false,\n placeholder: '点击上传',\n length: 8,\n multiple: false,\n isQiniu: false,\n isDelete: false,\n min: 0,\n isEdit: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'uploadModel',\n name: '模板下载',\n icon: 'icon-shangchuan',\n key: 'uploadFile2',\n ext: '.zip,.doc,.docx,.xlsx,.xls',\n height: '',\n options: {\n defaultValue: [],\n action: '/sys/common/upload',\n tokenFunc: 'funcGetToken',\n token: '',\n height: defaultConfig.height,\n domain: window._CONFIG['domianURL'],\n length: 8,\n multiple: false,\n isQiniu: false,\n isEdit: false,\n fileSize: 5000,\n //文件大小 size\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'divider',\n name: '分割线',\n icon: 'icon-fengexian',\n options: {\n hidden: false,\n contentPosition: 'left',\n remoteFunc: 'func_1568601762514',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: ''\n },\n key: 'divider',\n model: 'divider_1568601762514',\n rules: []\n}, {\n type: 'cascader',\n name: '地区选择',\n icon: 'icon-jilianxuanze',\n key: 'cascader',\n options: {\n defaultValue: [],\n width: '',\n height: defaultConfig.height,\n placeholder: '',\n defauldisabled: false,\n disabled: false,\n defaulcanView: true,\n canView: true,\n clearable: false,\n canEdit: true,\n canCorrect: true,\n remote: false,\n remoteOptions: [],\n showLabel: true,\n options: [{\n value: 'value',\n label: 'label',\n children: [{\n value: 'shejiyuanze',\n label: '设计原则'\n }, {\n value: 'she',\n label: '设计原则12'\n }]\n }],\n props: [],\n remoteFunc: ''\n }\n}, {\n type: 'deptSelector',\n name: '部门选择',\n icon: 'icon-grid-',\n options: {\n defaultValue: '',\n width: '',\n placeholder: '请点击选择部门',\n multiple: true,\n canEdit: true,\n departType: \"\",\n // 展示部门类型\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height,\n relateOptions: []\n }\n}, {\n type: 'userSelector',\n name: '人员选择',\n icon: 'icon-grid-',\n options: {\n role: '',\n defaultValue: '',\n //默认值为字符串,后台设计的时候 需要设置默认值;为字符串;后台会处理为数组;预览展示需要做特殊处理\n options: [{\n key: undefined,\n value: undefined\n }],\n relateOptions: [],\n height: defaultConfig.height,\n width: '',\n multiple: false,\n showfield: false,\n placeholder: '请点击选择人员',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n tabKey: ''\n }\n}, {\n type: 'userSelectorByRole',\n name: '角色选人',\n icon: 'icon-yulan',\n options: {\n role: [],\n defaultValue: [],\n options: [],\n relateOptions: [],\n height: defaultConfig.height,\n width: '',\n multiple: false,\n showfield: false,\n placeholder: '请点击选择人员',\n canEdit: true,\n canCorrect: true,\n canView: true\n }\n}, {\n type: 'idea-sign',\n name: '意见签名',\n icon: 'icon-grid-',\n options: {\n role: '',\n inlineWidth: 100,\n defaultValue: {\n idea: {\n show: true,\n value: ''\n },\n sign: {\n type: 'word',\n //word文字 image 图片\n label: '个人签名:',\n value: ''\n },\n time: {\n value: '',\n show: true\n },\n webSeal: {\n show: false,\n value: ''\n },\n imgData: {\n value: ''\n }\n },\n signPosition: 'right',\n options: [],\n height: defaultConfig.height * 3,\n textareaHeight: 80,\n multiple: false,\n showfield: false,\n disabled: false,\n placeholder: '',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n tabKey: ''\n }\n}, {\n type: 'signature-write',\n name: '手写签名',\n icon: 'icon-grid-',\n options: {\n role: '',\n inlineWidth: 100,\n defaultValue: \"\",\n //database\n signType: 'write',\n //签名类型 手写 上传图片 等等\n options: [],\n height: defaultConfig.height * 3,\n multiple: false,\n showfield: false,\n disabled: false,\n placeholder: '',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'relateSub',\n name: '关联组件',\n icon: 'icon-sync1',\n options: {\n defaultValue: [],\n options: [{\n key: '',\n value: ''\n }],\n relateOptions: [],\n labels: '',\n //该组件显示的字段\n columnName: '',\n columnCode: '',\n SQL: '',\n multiple: false,\n apiUrl: 'appApi/popupComponentApi',\n linkType: '',\n //\n height: defaultConfig.height,\n placeholder: '请点击选择',\n canEdit: true,\n canCorrect: false,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'relateForm',\n name: '关联表单',\n icon: 'icon-grid-',\n options: {\n defaultValue: {},\n placeholder: '请点击选择关联表单',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height\n }\n}, {\n type: 'localtion',\n name: '位置',\n icon: 'icon-grid-',\n options: {\n defaultValue: {},\n placeholder: '请点击选择关联表单',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height\n }\n}, {\n type: 'imgCode',\n name: '图片验证码',\n icon: 'icon-grid-',\n options: {\n defaultValue: {},\n placeholder: '请点击选择关联表单',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height\n }\n}, {\n type: 'publicSign',\n name: '公章',\n icon: 'icon-grid-',\n options: {\n defaultValue: {},\n placeholder: '请点击选择关联表单',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height\n }\n}];\nconst layoutComponents = [{\n type: 'all-lay-out',\n columns: [{\n width: 100,\n height: 50,\n top: 0,\n left: 0,\n list: []\n }],\n //组件\n name: '特殊组件',\n icon: 'icon-ic',\n options: {\n defaultType: 'String',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n height: defaultConfig.height * 3,\n backgroundHTML: '',\n disabled: false\n }\n}, {\n type: 'grid',\n name: '栅格布局',\n icon: 'icon-grid-',\n columns: [{\n span: 12,\n list: []\n }, {\n span: 12,\n list: []\n }],\n options: {\n gutter: 0,\n justify: 'space-between',\n customClass: '',\n align: 'top',\n canEdit: true,\n canCorrect: true,\n canView: true\n }\n}, {\n type: 'grid-lay-out',\n name: '网格布局',\n icon: 'icon-grid-',\n columns: [{\n x: 0,\n y: 0,\n w: 1,\n h: 1,\n i: '1',\n list: []\n }],\n options: {\n columnsNum: 4,\n rowsNum: 2,\n rowsHeight: 50,\n customClass: '',\n align: 'top',\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true\n }\n}, {\n type: 'verify',\n name: '审核表单',\n icon: 'icon-grid-',\n columns: {},\n operationColumns: {\n operation: '',\n operator: '',\n operationTime: '',\n comments: '',\n imgData: ''\n },\n options: {\n height: 150,\n canEdit: true,\n platform: '',\n // 对接平台\n defaulcanView: true,\n canView: true,\n placeholder: '请输入审批意见',\n operation: '审核操作',\n operator: '审核人',\n operationTime: '审核时间',\n webSeal: false\n }\n}, {\n type: 'tabs',\n name: '标签页',\n icon: 'icon-grid-',\n tabs: [{\n label: '标签 1',\n name: '标签_1',\n columns: []\n }],\n options: {\n type: '',\n tabPosition: 'top',\n customClass: '',\n hidden: false,\n remoteFunc: 'func_1584949551208',\n remoteOption: 'option_1584949551208',\n canEdit: true,\n defaulcanView: true,\n canView: true\n },\n rules: []\n}, {\n type: 'placeholder',\n name: '占位字段',\n bgc: undefined,\n space: 0,\n wordsize: undefined,\n wordcolor: undefined,\n icon: 'icon-grid-',\n options: {\n type: '',\n border: true,\n fontWeight: 'normal',\n width: '100%',\n height: defaultConfig.height,\n isfontWeight: true,\n tabPosition: 'top',\n customClass: '',\n hidden: false,\n canEdit: true,\n canCorrect: true,\n defaulcanView: true,\n canView: true,\n align: 'center'\n },\n rules: []\n}];\nconst specComponents = [{\n type: 'editorAirt',\n name: '公文相关',\n icon: 'icon-fuwenbenkuang',\n key: 'editorAirt',\n options: {\n defaultValue: '',\n width: '100%',\n canView: true\n }\n}];\n\n//# sourceURL=webpack://form-component/./src/form/modules/componentsConfig.js?");
|
|
5648
5648
|
|
|
5649
5649
|
/***/ }),
|
|
5650
5650
|
|
|
@@ -5710,7 +5710,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
5710
5710
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5711
5711
|
|
|
5712
5712
|
"use strict";
|
|
5713
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"filterObj\": function() { return /* binding */ filterObj; }\n/* harmony export */ });\n/**\n * 过滤对象中为空的属性\n * @param obj\n * @returns {*}\n */\nfunction filterObj(obj) {\n if (!(typeof obj == 'object')) {\n return;\n }\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && (obj[key] == null || obj[key] == undefined)) {\n delete obj[key];\n }\n }\n return obj;\n}\n\n//# sourceURL=webpack://form-component/./src/utils/util.js?");
|
|
5713
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"filterObj\": function() { return /* binding */ filterObj; },\n/* harmony export */ \"toAwait\": function() { return /* binding */ toAwait; }\n/* harmony export */ });\n/**\n * 过滤对象中为空的属性\n * @param obj\n * @returns {*}\n */\nfunction filterObj(obj) {\n if (!(typeof obj == 'object')) {\n return;\n }\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && (obj[key] == null || obj[key] == undefined)) {\n delete obj[key];\n }\n }\n return obj;\n}\n\n/**\n * async...await 优雅的处理错误方法\n * @param promise\n * @returns {*}\n */\nconst toAwait = promise => promise.then(res => [null, res]).catch(error => [error]);\n\n//# sourceURL=webpack://form-component/./src/utils/util.js?");
|
|
5714
5714
|
|
|
5715
5715
|
/***/ }),
|
|
5716
5716
|
|
|
@@ -12325,7 +12325,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_vue__;
|
|
|
12325
12325
|
/***/ (function(module) {
|
|
12326
12326
|
|
|
12327
12327
|
"use strict";
|
|
12328
|
-
eval("module.exports = JSON.parse('{\"name\":\"@zscreate/form-component\",\"version\":\"1.0.
|
|
12328
|
+
eval("module.exports = JSON.parse('{\"name\":\"@zscreate/form-component\",\"version\":\"1.0.26\",\"private\":false,\"description\":\"\",\"main\":\"dist/form-component.umd.js\",\"unpkg\":\"dist/form-component.umd.js\",\"scripts\":{\"build\":\"vue-cli-service build --target lib --name form-component src/main.js --formats umd --report\",\"build:watch\":\"vue-cli-service build --target lib --name form-component src/main.js --formats umd --watch\"},\"exports\":{\".\":{\"import\":{\"default\":\"./dist/form-component.umd.js\"},\"require\":\"./dist/form-component.common.js\"}},\"publishConfig\":{\"access\":\"public\",\"registry\":\"https://registry.npmjs.org/\"},\"files\":[\"/dist/*\"],\"exclude\":[\"node_modules\"],\"keywords\":[],\"author\":\"\",\"license\":\"ISC\",\"dependencies\":{\"core-js\":\"^3.8.3\",\"vue\":\"^2.6.14\",\"pubsub-js\":\"^1.9.3\",\"vue-draggable-resizable\":\"2.2.0\",\"vue-draggable-resizable-gorkys\":\"2.0.0\",\"vue-grid-layout\":\"^2.3.12\",\"vue-signature-pad\":\"^2.0.2\",\"vuedraggable\":\"^2.24.3\",\"moment\":\"^2.29.1\"},\"devDependencies\":{\"clipboard\":\"2.0.4\",\"codemirror\":\"^5.46.0\",\"vue-codemirror\":\"^4.0.6\",\"@vue/cli-plugin-babel\":\"~5.0.0\",\"@vue/cli-service\":\"~5.0.0\",\"vue-template-compiler\":\"^2.6.14\",\"less\":\"^3.0.4\",\"less-loader\":\"^5.0.0\",\"node-sass\":\"^4.11.0\",\"sass-loader\":\"^7.0.1\"}}');\n\n//# sourceURL=webpack://form-component/./package.json?");
|
|
12329
12329
|
|
|
12330
12330
|
/***/ })
|
|
12331
12331
|
|