{"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\\EipDic.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cssc-fvue\\src\\components\\eipControl\\EipDic.vue","mtime":1667804639071},{"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 \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\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//\n//\nimport utils from \"@/hotent-ui-util.js\";\nimport sub_pio_mixin from \"@/sub-permission-mixin.js\";\nexport default {\n name: \"eip-dic\",\n props: [\"validate\", \"value\", \"name\", \"permission\", \"dickey\", \"bind\", \"styles\", \"filterable\"],\n mixins: [sub_pio_mixin],\n //混入方式引入表单组件中公共属性,处理子表、孙表行内联动(切面修改permission_sub_sub)\n data: function data() {\n return {\n selectlist: [],\n defaultProps: {\n children: \"children\",\n label: \"name\"\n },\n valueDesc: '',\n tagFormatValue: [],\n newValidate: null,\n writeable: true\n };\n },\n computed: {\n inputVal: {\n get: function get() {\n if (utils.isEmpty(this.value)) {\n return \"\";\n }\n\n return this.value;\n },\n set: function set(val) {\n this.$emit(\"input\", val);\n }\n },\n inputWriteable: function inputWriteable() {\n return this.writeable ? utils.getWriteable(this.permission_sub) : this.writeable;\n },\n inputValidate: function inputValidate() {\n if (this.newValidate) {\n return this.newValidate;\n }\n\n var validateObj = this.$store.state.index.validate;\n return utils.addRequiredOrNot(this.permission_sub, this.validate, validateObj, this);\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 },\n methods: {\n clear: function clear() {\n this.filterMethod('');\n this.$emit(\"input\", ''); // this.$refs.elTree.setCurrentNode({});\n },\n handleNodeClick: function handleNodeClick(data) {\n var _this = this;\n\n this.inputVal = data.key;\n this.valueDesc = data.name;\n this.$refs.elSelect.blur();\n setTimeout(function () {\n _this.$validator.validate();\n });\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n findDesc: function findDesc(list) {\n var _this2 = this;\n\n if (list && list.length > 0) {\n list.forEach(function (l) {\n if (l.key == _this2.value) {\n _this2.valueDesc = l.name;\n return;\n }\n\n if (l.children) {\n _this2.findDesc(l.children);\n }\n });\n }\n },\n filterMethod: function filterMethod(query) {\n this.$refs.elTree.filter(query);\n }\n },\n mounted: function mounted() {\n var _this3 = this;\n\n if (this.dickey) {\n this.$store.dispatch(\"menu/getByTypeKeyForComBo\", this.dickey).then(function (res) {\n _this3.selectlist = res;\n\n if (_this3.value !== null && _this3.value !== undefined) {\n _this3.findDesc(res);\n }\n });\n }\n\n var _me = this;\n\n var exp = this.bind;\n\n if (exp) {\n var pInst = utils.getOnlineFormInstance(_me);\n\n _me.$watch(\"inputVal\", function (newVal, oldVal) {\n if (newVal !== oldVal) {\n utils.setValueByPath(pInst, exp, newVal);\n }\n });\n }\n\n var _utils$getSubScopeElA = utils.getSubScopeElAndIndex(this.$el),\n subScopeEl = _utils$getSubScopeElA.subScopeEl,\n index = _utils$getSubScopeElA.index;\n\n if (subScopeEl && (subScopeEl.getAttribute(\"row_readonly\") == 'true' || subScopeEl.getAttribute(\"row_readonly\") === true)) {\n this.writeable = false;\n }\n },\n created: function created() {\n this.inputName = this.name ? this.name : utils.getName();\n this.$validator = this.$root.$validator;\n }\n};",null]}