{"remainingRequest":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cssc-fvue\\src\\components\\eipControl\\EipTextarea.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cssc-fvue\\src\\components\\eipControl\\EipTextarea.vue","mtime":1667804639118},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/cssc-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.string.starts-with\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/es6.regexp.constructor\";\nimport \"core-js/modules/es6.regexp.split\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport utils from \"@/utils.js\";\nimport hotentUiUtils from '@/hotent-ui-util.js';\nimport { Base64 } from \"js-base64\";\nimport sub_pio_mixin from \"@/sub-permission-mixin.js\";\nexport default {\n name: \"eip-textarea\",\n props: [\"validate\", \"value\", \"name\", \"permission\", \"atter\", \"type\", \"initialFrameHeight\", \"initialFrameWidth\", \"placeholder\", \"isEditor\", \"noToolbar\", \"isInputEdit\", \"textValue\", \"precision\", \"textAlign\"],\n mixins: [sub_pio_mixin],\n //混入方式引入表单组件中公共属性,处理子表、孙表行内联动(切面修改permission_sub)\n data: function data() {\n return {\n config_text: {\n initialFrameHeight: 50,\n UEDITOR_HOME_URL: window.location.origin + '/' + window.location.pathname.split('/')[1] + '/static/ueditor/',\n toolbars: [],\n elementPathEnabled: false,\n //是否启用元素路径,默认是true显示 \n wordCount: false,\n //是否开启字数统计\n // 初始容器宽度\n initialFrameWidth: \"100%\",\n zIndex: 99,\n enableAutoSave: false,\n readonly: true\n },\n width: \"100%\",\n unwatchAry: [],\n newValidate: null,\n data: {}\n };\n },\n methods: {\n getObjectValue: function getObjectValue(text, t, v) {\n var start = \"\";\n var end = \"\";\n\n if (!text && v) {\n return v;\n } //start = text.substring(0, text.indexOf(\"{\"));\n //end = text.substring(text.lastIndexOf(\"}\") + 1, text.length);\n\n\n var val2 = text.substring(text.indexOf(\"{\") + 2, text.indexOf(\"}\")).split(\".\");\n\n if (val2.length == 1) {\n return text;\n }\n\n var rtn = \"\";\n var regVal = null;\n var reg = /\\{\\{[\\.\\d\\w]+\\}\\}/;\n var check = new RegExp(\"[\\u4E00-\\u9FA5]\"); //从左到右遍历text,将匹配到的bo数据替换到返回值中\n\n while ((regVal = reg.exec(text)) != null) {\n rtn += text.substr(0, regVal.index);\n var val = regVal[0];\n\n if (check.test(val.replace(/(\\{\\{)|(\\}\\})/g, \"\")) || !val.startsWith(\"{{data.\")) {\n rtn += val;\n text = text.substr(regVal.index + val.length);\n continue;\n }\n\n var length = val.length;\n val = val.replace(/(\\{\\{)|(\\}\\})/g, \"\");\n var arr = val.split(\".\").splice(1);\n\n if (arr.length == 2) {\n //主表 [\"mainEnt\", \"field\"]\n if (t.data[arr[0]][arr[1]]) {\n rtn += t.data[arr[0]][arr[1]];\n }\n\n text = text.substr(regVal.index + length);\n } else if (arr.length == 3) {\n //子表 [\"mainEnt\", \"sub_\"+\"subEnt\", \"field\"]\n var subIndex = utils.getSomeAttributeFromParentElement(t.$el, \"sub-index\"); //子表下标\n\n var curData = t.data[arr[0]][arr[1]][subIndex]; //子表单行数据\n\n if (curData[arr[2]]) {\n rtn += curData[arr[2]];\n }\n\n text = text.substr(regVal.index + length);\n }\n } //添加剩下的数据到返回值中\n\n\n if (text) {\n rtn += text;\n }\n\n return rtn; // let check = new RegExp(\"[\\u4e00-\\u9fa5]\");\n // val = val.filter(v =>{\n // return v != \"data\";\n // })\n // if(check.test(val)){\n // return text;\n // }\n // if(val.length==2){//主表\n // if(t.data[val[0]][val[1]]){\n // return start + t.data[val[0]][val[1]] + end;\n // }else if(!start && !end){\n // return \"''\";\n // }\n // return start + \"\" + end;\n // }else if(val.length==3){//子表\n // //获取子表的下标\n // let subIndex = utils.getSomeAttributeFromParentElement(t.$el,\"sub-index\");\n // let attrArr = t.atter.split(\".\");\n // let attr = attrArr[attrArr.length -1];\n // let data = t.data[val[0]][val[1]];\n // data.forEach(v =>{\n // if(v[val[2]] != v[attr]){\n // v[attr] = start +v[val[2]] + end;\n // }\n // })\n // if (start + data[subIndex][val[2]] + end) {\n // return start + data[subIndex][val[2]] + end;\n // }else if(!start && !end){\n // return \"''\";\n // }\n // }\n },\n getField: function getField(data, fieldArr) {\n if (!data || !fieldArr || fieldArr.length < 3 || fieldArr[0] != 'data') {\n return \"\";\n }\n\n if (fieldArr.length == 3) {//子表\n }\n }\n },\n computed: {\n inputVal: {\n get: function get() {\n var _this2 = this;\n\n var _this = this;\n\n _this.data = _this.$parent.$vnode.context.$vnode.context.data;\n var text = '';\n\n if (this.textValue) {\n text = Base64.decode(this.textValue);\n }\n\n if (!this.value) {\n var moment = require(\"moment\");\n\n if (text) {\n setTimeout(function () {\n var isJoin = false;\n\n if (text.indexOf(\"{发起时间:startDate}\") != -1) {\n text = text.replace(/\\{发起时间:startDate}/g, \"发起时间:\" + moment().format(\"YYYY-MM-DD\") + \" \");\n isJoin = true;\n }\n\n if (text.indexOf(\"{发起人:startUser}\") != -1) {\n var currentUser = _this2.$store.state.user.currentUserDetail.user;\n text = text.replace(/\\{发起人:startUser}/g, \"发起人:\" + currentUser.fullname + \" \");\n isJoin = true;\n }\n\n if (text.indexOf(\"{所在部门:userOrg}\") != -1) {\n var currentOrg = _this2.$store.state.user.currentOrgDetail;\n var name = \"无\";\n\n if (currentOrg && currentOrg.name) {\n name = currentOrg.name;\n }\n\n text = text.replace(/\\{所在部门:userOrg}/g, \"所在部门:\" + name + \" \");\n isJoin = true;\n }\n\n if (!isJoin) {\n text = _this.getObjectValue(text, _this);\n }\n\n _this2.$emit(\"input\", text);\n\n return text;\n }, 900);\n }\n } else {\n return _this.getObjectValue(text, _this, this.value);\n }\n },\n set: function set(val) {\n this.$emit(\"input\", val);\n }\n },\n text: function text() {\n if (this.textValue) {\n return Base64.decode(this.text);\n }\n },\n inputName: function inputName() {\n var labeldesc = \"\";\n\n if (this.$slots && this.$slots.labeldesc && this.$slots.labeldesc[0].children && this.$slots.labeldesc[0].children[0].text) {\n labeldesc = this.$slots.labeldesc[0].children[0].text;\n return this.name ? this.name : utils.getName() + \"-\" + labeldesc;\n } else {\n return this.name ? this.name : utils.getName();\n }\n },\n inputValidate: function inputValidate() {\n if (this.newValidate) {\n return this.newValidate;\n }\n\n return this.validate;\n },\n config: function config() {\n var configTemp = {\n initialFrameHeight: 240,\n UEDITOR_HOME_URL: window.location.origin + '/' + window.location.pathname.split('/')[1] + '/static/ueditor/',\n toolbars: [[// 'source', //源代码\n 'undo', //撤销\n 'bold', //加粗\n 'indent', //首行缩进\n 'italic', //斜体\n 'underline', //下划线\n 'strikethrough', //删除线\n 'subscript', //下标\n 'fontborder', //字符边框\n 'superscript', //上标\n 'formatmatch', //格式刷\n 'forecolor', //字体颜色\n 'justifyleft', //居左对齐\n 'justifycenter', //居中对齐\n 'justifyright', //居右对齐\n 'justifyjustify', //两端对齐\n 'fontfamily', //字体\n 'fontsize', //字号\n 'insertorderedlist', //有序列表\n 'insertunorderedlist', //无序列表\n 'lineheight', //行间距\n 'inserttable', //插入表格\n 'link', //超链接\n 'simpleupload', //单图上传\n 'insertimage', //多图上传\n 'attachment' //附件\n ]],\n elementPathEnabled: false,\n //是否启用元素路径,默认是true显示 \n wordCount: false,\n //是否开启字数统计\n // 初始容器宽度\n initialFrameWidth: \"100%\",\n zIndex: 90,\n enableAutoSave: false,\n readonly: false\n }; //是否显示工具栏\n\n if (this.noToolbar || this.permission_sub == 'r') {\n configTemp.toolbars = [];\n }\n\n return configTemp;\n }\n },\n mounted: function () {\n var _mounted = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var _hotentUiUtils$getSub, subScopeEl, index;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _hotentUiUtils$getSub = hotentUiUtils.getSubScopeElAndIndex(this.$el), subScopeEl = _hotentUiUtils$getSub.subScopeEl, index = _hotentUiUtils$getSub.index; //如果是编辑或者必填的情况下。但是该行不允许编辑,则将权限修改为只读\n\n if (subScopeEl && (subScopeEl.getAttribute(\"row_readonly\") == 'true' || subScopeEl.getAttribute(\"row_readonly\") === true) && (this.permission_sub == 'w' || this.permission_sub == 'b')) {\n this.permission_sub = 'r';\n }\n\n if (this.initialFrameHeight) {\n this.config.initialFrameHeight = this.initialFrameHeight;\n }\n\n if (this.initialFrameWidth) {\n this.config.initialFrameWidth = this.initialFrameWidth;\n }\n\n if (this.isInputEdit || this.permission_sub == 'r') {\n this.config.readonly = true;\n }\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function mounted() {\n return _mounted.apply(this, arguments);\n }\n\n return mounted;\n }(),\n created: function created() {\n this.$validator = this.$root.$validator;\n }\n};",null]}