{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\bizComponents\\eipControl\\EipSwitch.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\bizComponents\\eipControl\\EipSwitch.vue","mtime":1675071991506},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport utils from \"@/hotent-ui-util.js\";\r\nimport sub_pio_mixin from \"@/components/bizComponents/sub-permission-mixin.js\";\r\nexport default {\r\n  name: \"eip-switch\",\r\n  props:[ \r\n    \"validate\",\r\n    \"value\",\r\n    \"name\",\r\n    \"permission\",\r\n    \"activeValue\",\r\n    \"inactiveValue\",\r\n    \"activeText\",\r\n    \"inactiveText\"\r\n    ],\r\n  mixins: [sub_pio_mixin],//混入方式引入表单组件中公共属性，处理子表、孙表行内联动（切面修改permission_sub_sub）\r\n  data() {\r\n    return {\r\n      inputName:null,\r\n      newValidate:null\r\n    };\r\n  },\r\n   computed: {\r\n    inputVal: {\r\n      get() {\r\n        return this.value;\r\n      },\r\n      set(val) {\r\n        this.$emit(\"input\", val);\r\n      }\r\n    },\r\n    inputValidate: function() {\r\n      if(this.newValidate){\r\n        return this.newValidate;\r\n      }\r\n      return this.validate;\r\n    },\r\n   },\r\n mounted() {\r\n    const { subScopeEl, index } = hotentUiUtils.getSubScopeElAndIndex(this.$el);\r\n    //如果是编辑或者必填的情况下。但是该行不允许编辑，则将权限修改为只读\r\n    if (subScopeEl && (subScopeEl.getAttribute(\"row_readonly\") == 'true' || subScopeEl.getAttribute(\"row_readonly\") === true) && (this.permission_sub =='w'|| this.permission_sub =='b' )) {\r\n      this.permission_sub = 'r';\r\n    }\r\n  },\r\n  created() {\r\n    this.inputName = this.name ? this.name : utils.getName();\r\n  }\r\n};\r\n",null]}