{"remainingRequest":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\artfess-module\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\artfess-module\\src\\components\\HtRadio.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\artfess-module\\src\\components\\HtRadio.vue","mtime":1675232038590},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\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\";\nimport \"core-js/modules/es6.array.find\";\nimport \"core-js/modules/es6.number.constructor\";\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 service from \"@/service.js\";\nimport HtFieldTail from \"@/components/HtFieldTail.vue\";\nexport default {\n name: \"ht-radio\",\n props: {\n validate: [String, Object],\n value: [String, Number, Boolean],\n name: String,\n permission: {\n type: String,\n default: \"w\",\n validator: function validator(value) {\n return [\"b\", \"w\", \"r\", \"n\"].indexOf(value) !== -1;\n }\n },\n options: Array,\n optionLayout: {\n type: String,\n default: \"horizontal\",\n validator: function validator(value) {\n return [\"horizontal\", \"vertical\"].some(function (i) {\n return i == value;\n });\n }\n },\n props: {\n type: Object,\n default: function _default() {\n return {\n key: \"key\",\n value: \"value\"\n };\n }\n },\n readonly: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: false\n },\n linkage: [Object, Array],\n ganged: Object\n },\n components: {\n HtFieldTail: HtFieldTail\n },\n data: function data() {\n return {\n inputName: null,\n writeable: true,\n formatValue: \"\"\n };\n },\n computed: {\n inputVal: {\n get: function get() {\n var _this = this;\n\n if (utils.isEmpty(this.value)) {\n return \"\";\n }\n\n if (this.value !== null && this.value !== undefined && !this.inputWriteable && this.options && this.options.length > 0) {\n this.formatValue = this.options.find(function (opt) {\n return opt[_this.propKey] == _this.value;\n }).value;\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) : this.writeable;\n },\n inputValidate: function inputValidate() {\n return utils.addRequiredOrNot(this.permission, this.validate, this);\n },\n propKey: function propKey() {\n if (this.props && this.props.key) {\n return this.props.key;\n }\n\n return \"key\";\n },\n propValue: function propValue() {\n if (this.props && this.props.value) {\n return this.props.value;\n }\n\n return \"value\";\n }\n },\n mounted: function mounted() {\n var _me = this;\n\n this.mountedLinkage();\n },\n created: function created() {\n this.inputName = this.name ? this.name : utils.getName();\n this.$validator = this.$root.$validator;\n },\n methods: {\n mountedLinkage: function mountedLinkage() {\n if (this.linkage) {\n var exp = this.linkage; //如果要联动的字段权限是只读“r”,则把联动配置里面要联动的字段权限“w”改为只读“r”\n\n if (exp && exp.length > 0) {\n var frmInst = utils.getOnlineFormInstance(this); //表单所有字段的初始权限\n\n if (frmInst && frmInst.permission) {\n exp.forEach(function (item) {\n var effect = item.effect;\n effect.forEach(function (effectItem) {\n var initPermission = utils.getValueByPath(frmInst, effectItem.target);\n\n if (effectItem.target && effectItem.target.indexOf(\"permission\") != -1 && effectItem.value != \"n\" && initPermission == \"r\") {\n effectItem.value = initPermission;\n }\n });\n });\n }\n }\n\n service.linkageHandler(this, exp);\n }\n },\n change: function change(radioLabel) {\n this.$emit(\"change\", radioLabel);\n }\n }\n};",null]}