{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\EipTag.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\bizComponents\\eipControl\\EipTag.vue","mtime":1675071991522},{"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":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.regexp.search\";\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 portal from '@/api/portal.js';\nimport sub_pio_mixin from '@/components/bizComponents/sub-permission-mixin.js';\nimport hotentUiUtils from '@/hotent-ui-util.js';\nexport default {\n  name: 'eip-tag',\n  props: {\n    filterable: {\n      type: Boolean,\n      default: false\n    },\n    expand: {\n      type: Boolean,\n      default: false\n    },\n    tagKey: String,\n    value: String,\n    permission: String | Object,\n    multiple: {\n      type: Boolean,\n      default: false\n    }\n  },\n  mixins: [sub_pio_mixin],\n  //混入方式引入表单组件中公共属性，处理子表、孙表行内联动（切面修改permission_sub_sub）\n  data: function data() {\n    return {\n      options: [],\n      pagination: {\n        pageSize: 5,\n        page: 1,\n        total: 0\n      },\n      loading: false,\n      currentQuery: '',\n      values: [],\n      writeable: true\n    };\n  },\n  methods: {\n    focusSelectValue: function focusSelectValue() {\n      var _this = this;\n\n      if (this.$refs.fuzzySearch.$refs.input) {\n        this.$refs.fuzzySearch.$refs.input.blur = function () {\n          _this.currentQuery = '';\n\n          _this.search();\n        };\n      }\n    },\n    visibleChange: function visibleChange(flag) {\n      //单选时输入框关闭时重新搜索内容\n      if (!flag && !this.multiple) {\n        this.currentQuery = '';\n        this.search();\n      }\n    },\n    remoteMethod: function remoteMethod(query) {\n      var _this2 = this;\n\n      this.currentQuery = query;\n      var param = {\n        pageBean: this.pagination,\n        querys: [{\n          property: 'type_key_',\n          value: this.tagKey,\n          group: 'query',\n          operation: 'EQUAL',\n          relation: 'AND'\n        }]\n      };\n\n      if (query) {\n        param.querys.push({\n          property: 'name_',\n          value: query,\n          group: 'query',\n          operation: 'LIKE',\n          relation: 'AND'\n        });\n      }\n\n      this.loading = true;\n      portal.getTagList(param).then(function (data) {\n        _this2.options = data.rows;\n        _this2.pagination = {\n          pageSize: data.pageSize,\n          page: data.page,\n          total: data.total\n        };\n      }).finally(function () {\n        _this2.loading = false;\n      });\n    },\n    currentChange: function currentChange(page) {\n      this.pagination.page = page;\n      this.remoteMethod(this.currentQuery);\n    },\n    add: function add() {\n      var _this3 = this;\n\n      var param = {\n        name: this.currentQuery,\n        typeKey: this.tagKey\n      };\n      portal.saveTag(param).then(function (data) {\n        if (data.state) {\n          _this3.$message({\n            type: 'success',\n            message: '添加成功'\n          });\n\n          _this3.remoteMethod(_this3.currentQuery);\n        }\n      });\n    },\n    search: function search() {\n      var _this4 = this;\n\n      var param = {\n        pageBean: this.pagination,\n        querys: [{\n          property: 'type_key_',\n          value: this.tagKey,\n          group: 'query',\n          operation: 'EQUAL',\n          relation: 'AND'\n        }]\n      };\n      portal.getTagList(param).then(function (data) {\n        _this4.options = data.rows;\n        _this4.pagination = {\n          pageSize: data.pageSize,\n          page: data.page,\n          total: data.total\n        };\n      });\n\n      if (this.value) {\n        this.values = this.value.split(',');\n      }\n    }\n  },\n  mounted: function mounted() {\n    var _hotentUiUtils$getSub = hotentUiUtils.getSubScopeElAndIndex(this.$el),\n        subScopeEl = _hotentUiUtils$getSub.subScopeEl,\n        index = _hotentUiUtils$getSub.index;\n\n    if (subScopeEl && (subScopeEl.getAttribute(\"row_readonly\") == 'true' || subScopeEl.getAttribute(\"row_readonly\") === true)) {\n      this.writeable = false;\n    }\n\n    this.search();\n  },\n  computed: {\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      return utils.addRequiredOrNot(this.permission, this.validate, this);\n    },\n    inputWriteable: function inputWriteable() {\n      if (!this.writeable) {\n        return this.writeable;\n      }\n\n      return utils.getWriteable(this.permission_sub);\n    },\n    inputVal: {\n      set: function set(value) {\n        if (value && this.multiple) {\n          this.$emit('input', value.join(','));\n        } else {\n          this.$emit('input', value);\n        }\n      },\n      get: function get() {\n        if (this.value && this.multiple) {\n          this.values = this.value.split(',');\n          return this.value.split(',');\n        }\n\n        return this.value;\n      }\n    }\n  },\n  created: function created() {\n    this.$validator = this.$root.$validator;\n  }\n};",null]}