{"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\\control\\HtDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\bizComponents\\control\\HtDialog.vue","mtime":1675071991194},{"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.regexp.constructor\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport _toConsumableArray from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/es6.regexp.search\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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//\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//\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//\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//\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 { mapState } from \"vuex\";\nimport utils from \"@/components/bizComponents/utils.js\";\nimport { Message } from \"element-ui\";\nexport default {\n  name: \"ht-dialog\",\n  props: [\"validate\", \"value\", \"name\", \"permission\", \"atter\", \"single\", \"selectorconfig\", \"custdialog\", \"tooltipplacement\", \"placeholder\", \"isFromList\"],\n  data: function data() {\n    return {\n      nodeKey: \"ID_\",\n      //树形数据父Id\n      customDialogShowList: false,\n      customDialogShowTree: false,\n      selectOrgProps: {\n        label: \"name\"\n      },\n      style: \"\",\n      //对话框宽高\n      selectOrgs: null,\n      inputSuffixHeight: 30,\n      config: null,\n      updating: false,\n      displayfield: [],\n      //显示字段\n      customDialog: {},\n      //\n      comment: \"\",\n      queryParam: \"\",\n      props1: [],\n      showData: [],\n      checkBoxDataAll: [],\n      //选中对象的集合\n      defaultProps: {\n        children: \"children\",\n        label: \"label\"\n      },\n      propsData: [],\n      searchForm: {},\n      querysShow: false,\n      //是否显示搜索框\n      undefineda: \"\",\n      isCurrentChange: false //是否不执行 orgTableSelection方法\n\n    };\n  },\n  watch: {\n    props1: function props1(newVal, oldVal) {\n      //树形\n      if (this.showData != undefined && this.showData.length > 0) {\n        var this_ = this;\n        var data = [];\n\n        for (var i = 0; i < this.showData.length; i++) {\n          data.push(this.showData[i]);\n        }\n\n        setTimeout(function () {\n          for (var _i = 0; _i < data.length; _i++) {\n            this_.$refs.tree.setChecked(data[_i], true);\n          }\n        }, 200);\n      }\n    }\n  },\n  computed: mapState({\n    pagination: function pagination(state) {\n      return state.dialog.pagination;\n    },\n    total: function total(state) {\n      return state.dialog.total;\n    },\n    dialogData: function dialogData(state) {\n      return state.dialog.rows;\n    },\n    inputVal: function inputVal() {\n      if (!this.value || this.value == '||[]') {\n        this.checkBoxDataAll = []; // this.showData = [];\n\n        return null;\n      } else {\n        var nameAry = this.value.split(\",\");\n\n        if (!nameAry[nameAry.length - 1]) {\n          nameAry.splice(nameAry.length - 1, 1);\n        }\n\n        if (this.value.indexOf(\"||\") > 0) {\n          nameAry = this.value.split(\"||\")[0].split(\",\"); // this.showData=JSON.parse(this.value.split(\"||\")[1]);\n        } //  this.showData =this.selectOrgs;\n\n\n        var idAry = null;\n        var accountAry = null;\n        var result = [];\n        nameAry.forEach(function (m, i) {\n          var n = {\n            value: m\n          };\n          result.push(n);\n        });\n        return result;\n      }\n    },\n    inputWriteable: function inputWriteable() {\n      return utils.getWriteable(this.permission);\n    },\n    inputValidate: function inputValidate() {\n      var validateObj = this.$store.state.index.validate;\n      return utils.addRequiredOrNot(this.permission, 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    bindSet: function bindSet() {\n      return this.selectorconfig ? this.selectorconfig.bind : null;\n    },\n    getPlaceholder: function getPlaceholder() {\n      if (this.placeholder) {\n        return this.placeholder;\n      }\n\n      return this.custdialog.name;\n    }\n  }),\n  created: function created() {\n    this.$validator = this.$root.$validator;\n  },\n  methods: {\n    //回车查询\n    searchEnterFun: function searchEnterFun(e) {\n      var keyCode = window.event ? e.keyCode : e.which;\n\n      if (keyCode == 13) {\n        this.search();\n      }\n    },\n    handleSizeChange: function handleSizeChange(size) {\n      var _this2 = this;\n\n      this.isCurrentChange = true; //每页下拉显示数据\n\n      this.$store.dispatch(\"dialog/setPaginationSize\", size).then(function () {\n        _this2.search();\n      });\n    },\n    handleCurrentChange: function handleCurrentChange(currentPage) {\n      var _this3 = this;\n\n      var this_ = this;\n\n      if (this.selectOrgs != undefined && this.selectOrgs.length > 0) {\n        this.selectOrgs.forEach(function (row) {\n          var res = this_.indexArray(this_.checkBoxDataAll, row);\n\n          if (res == -1) {\n            this_.checkBoxDataAll.push(row);\n          }\n        });\n      }\n\n      this.isCurrentChange = true; //点击第几页\n\n      this.$store.dispatch(\"dialog/setPaginationPageNum\", currentPage).then(function () {\n        _this3.search();\n      });\n    },\n    checkList: function checkList() {\n      var this_ = this;\n      setTimeout(function () {\n        //列表\n        if (this_.checkBoxDataAll != undefined && this_.checkBoxDataAll.length > 0) {\n          this_.checkBoxDataAll.forEach(function (row) {\n            var res = this_.indexArray(this_.dialogData, row);\n            this_.undefineda = res;\n\n            if (res != -1) {\n              this_.isCurrentChange = true;\n              this_.toggleRowSelection(res, true);\n            }\n          });\n        }\n      }, 300);\n    },\n    toggleRowSelection: function toggleRowSelection(res, val) {\n      this.$refs.orgTable.toggleRowSelection(this.dialogData[res], val);\n    },\n    showDialog: function showDialog(item) {\n      var _this4 = this;\n\n      var this_ = this;\n      var alias = this.custdialog.custDialog.alias;\n      this.$store.dispatch(\"bizForm/getByAlias\", alias).then(function (customDialog) {\n        if (!customDialog || !customDialog.alias) {\n          Message.error(\"对话框别名【\" + alias + \"】不存在！\");\n          return;\n        }\n\n        if (customDialog.style == 1) {\n          var displaylist = JSON.parse(customDialog.displayfield);\n          this_.nodeKey = displaylist.id;\n        }\n\n        var list = JSON.parse(customDialog.conditionfield);\n        var param = {};\n        list.forEach(function (ele) {\n          if (ele.defaultType == \"4\") {\n            param[ele.field] = ele.comment;\n          }\n        });\n        _this4.style = \"height:\" + customDialog.height + \"px\";\n\n        if (JSON.stringify(param) == \"{}\") {\n          //没有动态传入的字段\n          if (customDialog.style == 0) {\n            _this4.customDialogShow({\n              alias: alias,\n              customDialog: customDialog\n            });\n          } else {\n            _this4.customDialogTreeShow({\n              alias: alias,\n              customDialog: customDialog\n            });\n          }\n        } else {}\n      });\n    },\n    //判断数据是否包含某个对象，并返回数据包含对象的下标\n    indexArray: function indexArray(array, item) {\n      if (array.length == 0) {\n        return -1;\n      }\n\n      for (var i = 0; i < array.length; i++) {\n        if (JSON.stringify(array[i]) == JSON.stringify(item)) {\n          return i;\n        }\n      }\n\n      return -1;\n    },\n    //点击列表某一个复选框时触发\n    onTableSelect: function onTableSelect(rows, row) {\n      this.isCurrentChange = false; //判断点击列表数据时复选框是否勾选  selected：true不勾选，false勾选\n\n      var selected = this.selectOrgs && this.selectOrgs.length > 0 && this.indexArray(this.selectOrgs, row) !== -1;\n\n      if (selected) {\n        this.isCurrentChange = true;\n        var res = this.indexArray(this.selectOrgs, row);\n        this.selectOrgs.splice(res, 1);\n      }\n    },\n    //点击列表某一条数据时触发\n    orgRowClick: function orgRowClick(row, column, event) {\n      if (this.customDialog.selectNum === 1) {\n        $(event.currentTarget.children[0].children[0].children[0]).trigger(\"click\");\n        this.selectOrgs = [];\n        this.selectOrgs.push(row);\n      } else if (this.customDialog.selectNum != 1) {\n        this.isCurrentChange = false; //判断点击列表数据时复选框是否勾选  selected：true不勾选，false勾选\n\n        var selected = this.selectOrgs && this.selectOrgs.length > 0 && this.indexArray(this.selectOrgs, row) !== -1;\n\n        if (selected) {\n          this.isCurrentChange = true;\n          var res = this.indexArray(this.selectOrgs, row);\n          this.selectOrgs.splice(res, 1);\n        }\n\n        this.$refs.orgTable.toggleRowSelection(row);\n      }\n    },\n    //列表复选框有改变时触发\n    orgTableSelection: function orgTableSelection(selection) {\n      //多选\n      if (this.customDialog.selectNum != 1 && !this.isCurrentChange) {\n        if (selection && selection.length > 0) {\n          if (selection.length == 1 && (!this.selectOrgs || this.selectOrgs.length == 0)) {\n            this.selectOrgs = selection;\n          } else if ((!this.selectOrgs || this.selectOrgs.length == 0) && selection.length > 1) {\n            if (!this.selectOrgs) {\n              this.selectOrgs = [];\n            }\n\n            for (var i = selection.length - 1; i >= 0; i--) {\n              this.selectOrgs.push(selection[i]);\n            }\n          } else {\n            for (var _i2 = selection.length - 1; _i2 >= 0; _i2--) {\n              this.selectOrgs.push(selection[_i2]);\n              break;\n            }\n          }\n        }\n      }\n    },\n    dialogConfirm: function dialogConfirm() {\n      this.customDialogShowList = false;\n      this.calacInputSuffixHeight();\n      this.syncInputValue(); // this.$store.dispatch(\"dialog/setDialogData\", []);\n    },\n    //重置\n    reset: function reset() {\n      this.queryParam = \"\";\n      this.search();\n    },\n    //查询\n    search: function search() {\n      var _this5 = this;\n\n      var querys = []; //查询条件\n\n      var queryFilter = {};\n\n      if (JSON.stringify(this.pagination) == \"{}\") {\n        this.pagination = {\n          \"page\": \"1\",\n          \"pageSize\": \"10\",\n          \"showTotal\": \"true\"\n        };\n      }\n\n      var pageBean = {\n        pageBean: this.pagination\n      };\n\n      if (this.queryParam != \"\") {\n        var conditionfield = JSON.parse(this.customDialog.conditionfield);\n        conditionfield.forEach(function (item) {\n          querys.push({\n            property: item.field,\n            value: _this5.queryParam,\n            group: \"main\",\n            operation: \"LIKE\",\n            relation: \"OR\"\n          });\n        });\n      } //对话框按表单字段查询（参数传入的）\n\n\n      var bindList = this.custdialog.custDialog.conditions;\n\n      if (bindList.length > 0) {\n        var pInst = utils.getInstanceByTag(this, 'ht-dataview-runtime-template');\n        bindList.forEach(function (ele) {\n          //绑定表单字段\n          if (ele.defaultType == '3' && ele.bind && pInst.searchForm) {\n            var value = \"\";\n\n            for (var item in pInst.searchForm) {\n              if (ele.bind.toLowerCase() == item.toLowerCase()) {\n                value = pInst.searchForm[item];\n              }\n            }\n\n            if (value) {\n              querys.push({\n                property: ele.field,\n                value: value,\n                group: 'main',\n                operation: 'LIKE',\n                relation: 'AND'\n              });\n            }\n          }\n        });\n      }\n\n      if (querys.length > 0) {\n        queryFilter = {\n          pageBean: this.pagination,\n          querys: querys\n        };\n        this.customDialog.pageBean = queryFilter;\n        this.$store.dispatch(\"dialog/getlistJson\", this.customDialog).then(function () {\n          _this5.checkList();\n        });\n      } else {\n        this.customDialog.pageBean = pageBean;\n        this.$store.dispatch(\"dialog/getlistJson\", this.customDialog).then(function () {\n          _this5.checkList();\n        });\n      }\n    },\n    //树形查询\n    searchTree: function searchTree(requestParams) {\n      var _this6 = this;\n\n      // if (this.props1.length < 1) {\n      this.$store.dispatch(\"dialog/getTreeData\", requestParams).then(function (res) {\n        if (_this6.customDialog.displayfield && _this6.customDialog.resultfield) {\n          var displayfield = JSON.parse(_this6.customDialog.displayfield);\n          _this6.displayfield = displayfield;\n          _this6.defaultProps.label = displayfield.displayName;\n          var resultfield = JSON.parse(_this6.customDialog.resultfield);\n          _this6.treeData = res;\n          _this6.props1 = _this6.toTreeData(res, displayfield.id, displayfield.pid, displayfield.displayName, displayfield.pvalue ? displayfield.pvalue : \"0\", resultfield);\n        }\n      }); // }\n    },\n    // 同步选择结果\n    syncInputValue: function syncInputValue() {\n      var _this7 = this;\n\n      var subIndex = null;\n\n      if (this.$el) {\n        subIndex = utils.getSomeAttributeFromParentElement(this.$el, \"data-index\");\n      }\n\n      var returnStr = JSON.parse(this.customDialog.resultfield); //拿到返回的字段\n\n      var field = new Array([returnStr.length]);\n      var comment = new Array([returnStr.length]);\n      var str = [];\n\n      for (var i = 0; i < returnStr.length; i++) {\n        field[i] = this.customDialog.dsType == \"dataSource\" ? returnStr[i].field.toLowerCase() : returnStr[i].field;\n        comment[i] = this.customDialog.dsType == \"dataSource\" ? returnStr[i].comment.toLowerCase() : returnStr[i].comment;\n      }\n\n      var this_ = this;\n      var s = this.selectOrgs;\n      this.showData = _toConsumableArray(this.selectOrgs);\n      this.checkBoxDataAll = _toConsumableArray(this.selectOrgs);\n\n      if (this.customDialog.selectNum === 1) {\n        s = this.selectOrgs;\n      }\n\n      if (this.customDialog.selectNum === 1) {\n        var temp = \"\";\n\n        for (var i = 0; i < comment.length; i++) {\n          temp += '\"' + comment[i] + '\":\"' + s[0][field[i]] + '\",';\n        }\n\n        if (temp != \"\") {\n          temp = \"{\" + temp.substring(0, temp.length - 1) + \"}\";\n        }\n\n        str.push(JSON.parse(temp));\n      } else {\n        for (var i = 0; i < s.length; i++) {\n          var temp = \"\";\n\n          for (var j = 0; j < comment.length; j++) {\n            temp += '\"' + comment[j] + '\":\"' + s[i][field[j]] + '\",';\n          }\n\n          if (temp != \"\") {\n            temp = \"{\" + temp.substring(0, temp.length - 1) + \"}\";\n          }\n\n          str.push(JSON.parse(temp));\n        }\n      } // const pInst = utils.getOnlineFormInstance(this);\n\n\n      var pInst = utils.getInstanceByTag(this, ['ht-dataview-runtime-template', \"ht-runtime-template\"]);\n\n      var _this = this;\n\n      this.custdialog.custDialog.mappingConf.forEach(function (con) {\n        var val = \"\";\n        var from = \"\";\n\n        if (_this.customDialog.dsType == \"restful\") {\n          from = con.from;\n        } else {\n          from = con.from.toLowerCase();\n        }\n\n        str.forEach(function (item) {\n          val += item[from] + \",\";\n        });\n\n        if (val != \"\") {\n          val = val.substring(0, val.length - 1);\n        }\n\n        _this7.$emit(\"input\", val);\n\n        if (_this7.atter == \"data.\" + con[\"target\"][0]) {\n          utils.setValueByPath(pInst, \"data.\" + con[\"target\"][0], val, subIndex);\n        } else if (_this7.atter.indexOf(\"searchForm\") != -1) {\n          if (_this7.isFromList) {\n            pInst.$set(pInst.searchForm, con[\"target\"][0], val);\n          } else {\n            utils.setValueByPath(_this, \"searchForm.\" + con[\"target\"][0], val.substring(0, val.length - 1), subIndex);\n          }\n        } else {\n          utils.setValueByPath(pInst, \"data.\" + con[\"target\"][0], val.substring(0, val.length - 1), subIndex);\n        }\n      });\n    },\n    //取消按钮\n    dialogCancel: function dialogCancel() {\n      var _this8 = this;\n\n      var this_ = this;\n      this_.$store.dispatch(\"dialog/setDialogData\", []).then(function () {\n        this_.customDialogShowList = false; //判断是否是点击了确认再点击取消的  inputVal没有值则表示直接点击的取消\n\n        if (!this_.inputVal) {\n          this_.selectOrgs = [];\n        } else {\n          this_.selectOrgs = _toConsumableArray(this_.showData);\n          _this8.checkBoxDataAll = _toConsumableArray(this_.selectOrgs);\n        }\n      });\n    },\n    dialogTreeConfirm: function dialogTreeConfirm() {\n      var _this9 = this;\n\n      this.calacInputSuffixHeight();\n      var subIndex = null;\n\n      if (this.$el) {\n        subIndex = utils.getSomeAttributeFromParentElement(this.$el, \"data-index\");\n      }\n\n      this.$store.dispatch(\"dialog/setDialogData\", []);\n      var returnStr = JSON.parse(this.customDialog.resultfield);\n      var field = new Array([returnStr.length]);\n      var comment = new Array([returnStr.length]);\n      var str = [];\n\n      for (var i = 0; i < returnStr.length; i++) {\n        field[i] = returnStr[i].field;\n        comment[i] = returnStr[i].comment;\n      }\n\n      if (this.customDialog.selectNum === 1) {\n        var nodes = this.propsData[0];\n        var temp = \"\";\n\n        for (var i = 0; i < comment.length; i++) {\n          temp += '\"' + comment[i] + '\":\"' + nodes[field[i]] + '\",';\n        }\n\n        if (temp != \"\") {\n          temp = \"{\" + temp.substring(0, temp.length - 1) + \"}\";\n        }\n\n        str.push(JSON.parse(temp));\n      } else {\n        var nodes = this.propsData;\n        nodes.forEach(function (item, k) {\n          var temp = \"\";\n\n          for (var i = 0; i < comment.length; i++) {\n            temp += '\"' + comment[i] + '\":\"' + nodes[field[i]] + '\",';\n            temp += '\"' + comment[i] + '\":\"' + nodes[k][field[i]] + '\",';\n          }\n\n          if (temp != \"\") {\n            temp = \"{\" + temp.substring(0, temp.length - 1) + \"}\";\n          }\n\n          str.push(JSON.parse(temp));\n        });\n      } // const pInst = utils.getOnlineFormInstance(this);\n\n\n      var pInst = utils.getInstanceByTag(this, ['ht-dataview-runtime-template', \"ht-runtime-template\"]);\n      this.custdialog.custDialog.mappingConf.forEach(function (con) {\n        var val = \"\";\n        str.forEach(function (item) {\n          val += item[con.from] + \",\";\n        });\n\n        if (_this9.atter == \"data.\" + con[\"target\"][0]) {\n          utils.setValueByPath(pInst, \"data.\" + con[\"target\"][0], val.substring(0, val.length - 1), subIndex);\n        } else if (_this9.atter == \"searchForm.\" + con[\"target\"][0]) {\n          utils.setValueByPath(pInst, \"searchForm.\" + con[\"target\"][0], val.substring(0, val.length - 1), subIndex);\n        } else {\n          utils.setValueByPath(pInst, \"data.\" + con[\"target\"][0], val.substring(0, val.length - 1), subIndex);\n        }\n      }); //this.$emit(\"input\", JSON.stringify(str));\n\n      this.showData = _toConsumableArray(this.propsData); //回显的值\n\n      this.customDialogShowTree = false;\n    },\n    dialogCancelTree: function dialogCancelTree() {\n      this.$store.dispatch(\"dialog/setDialogData\", []);\n      this.customDialogShowTree = false;\n    },\n    getChecked: function getChecked(data, checked, indeterminate) {\n      if (this.customDialog.selectNum === 1) {\n        this.propsData = [];\n        this.propsData.push(data);\n      } else {\n        this.propsData = this.$refs.tree.getCheckedNodes();\n      }\n    },\n    treeClick: function treeClick(data, n, i) {\n      if (this.customDialog.selectNum === 1) {\n        this.propsData = [];\n        this.propsData.push(data);\n      }\n    },\n    clearAllSelectOrgs: function clearAllSelectOrgs() {\n      this.selectOrgs = null;\n      this.$refs.orgTable.clearSelection();\n    },\n    removeSelectOrg: function removeSelectOrg(item) {\n      var _this10 = this;\n\n      if (this.customDialog.selectNum === 1) {\n        this.$emit(\"input\", \"\");\n        this.selectOrgs.splice(item, 1);\n        this.showData.splice(item, 1);\n      } else {\n        this.inputVal.splice(item, 1); // let removeId = this.showData[item];\n        //树形\n\n        if (this.propsData.length > 0) {\n          this.propsData.splice(item, 1);\n        } //列表\n\n\n        if (this.selectOrgs != null) {\n          this.selectOrgs.splice(item, 1);\n          this.checkBoxDataAll.splice(item, 1);\n          this.selectOrgs.forEach(function (row) {\n            // if(item.id ==removeId ){\n            _this10.isCurrentChange = true;\n\n            _this10.toggleRowSelection(row, false); // }\n\n          });\n        }\n\n        this.calacInputSuffixHeight();\n        var value = \"\";\n        this.inputVal.forEach(function (val) {\n          value += val.value + \",\";\n        });\n\n        if (value.length > 0) {\n          value = value.substring(0, value.length - 1);\n        }\n        /*if(value!=\"\"){\r\n          value=value+\"||\"+JSON.stringify(this.showData);\r\n        }*/\n\n\n        this.$emit(\"input\", value);\n      }\n    },\n    calacInputSuffixHeight: function calacInputSuffixHeight() {\n      var _this11 = this;\n\n      setTimeout(function () {\n        if (!_this11.$refs.tagSpans) return;\n\n        if (_this11.$refs.tagSpans.offsetHeight) {\n          _this11.inputSuffixHeight = _this11.$refs.tagSpans.offsetHeight + 5;\n        } else {\n          _this11.inputSuffixHeight = 30;\n        } // 触发验证\n\n\n        _this11.$validator.validate();\n      }, 0);\n    },\n    customDialogShow: function customDialogShow(pageParam) {\n      var _this12 = this;\n\n      this.customDialogShowList = true;\n      this.customDialog = pageParam.customDialog;\n      this.customDialog.queryUrl = this.customDialog.dsType == \"dataSource\" ? \"${form}/form/customDialog/v1/getListData?alias=\" + this.customDialog.alias + \"&mapParam=\" + (this.customDialog.mapParam ? this.customDialog.mapParam : \"\") : this.customDialog.url;\n      var conditionfield = JSON.parse(this.customDialog.conditionfield);\n\n      if (!this.comment && conditionfield.length > 0) {\n        conditionfield.forEach(function (item) {\n          if (item.controllerType == 1 && item.defaultType == 1 && item.dbType == \"varchar\") {\n            _this12.comment += item.comment + \",\";\n          }\n        });\n\n        if (this.comment) {\n          this.querysShow = true;\n          this.comment = \"通过\" + this.comment.substring(0, this.comment.length - 1) + \"查询\";\n        }\n      }\n\n      if (this.dialogData.length < 1) {\n        this.search();\n        this.displayfield = JSON.parse(pageParam.customDialog.displayfield);\n\n        if (this.customDialog.dsType == 'dataSource') {\n          for (var i = 0; i < this.displayfield.length; i++) {\n            this.displayfield[i].field = this.displayfield[i].field.toLowerCase();\n          }\n        }\n      } else if (this.dialogData.length > 1) {\n        this.search();\n      }\n\n      if (this.dialogData.length > 0 && this.displayfield.length == 0) {\n        this.search();\n        this.displayfield = JSON.parse(pageParam.customDialog.displayfield);\n\n        if (this.customDialog.dsType == 'dataSource') {\n          for (var i = 0; i < this.displayfield.length; i++) {\n            this.displayfield[i].field = this.displayfield[i].field.toLowerCase();\n          }\n        }\n      }\n    },\n    customDialogTreeShow: function customDialogTreeShow(pageParam) {\n      this.customDialog = pageParam.customDialog;\n      var customDialog = this.customDialog;\n      var mapParam = \"\";\n\n      if (pageParam.param != undefined) {\n        mapParam = JSON.stringify(pageParam.param);\n        mapParam = mapParam.substring(1, mapParam.length - 1);\n      }\n\n      var requestType = customDialog.dsType == \"dataSource\" ? \"GET\" : customDialog.requestType ? customDialog.requestType : \"POST\";\n      var url = \"${form}/form/customDialog/v1/getTreeData?alias=\" + pageParam.alias + \"&mapParam=\" + mapParam;\n      var paramsObj = {};\n\n      if (customDialog.dsType != \"dataSource\") {\n        url = customDialog.url;\n        var templatePa = customDialog.dataParam;\n\n        if (customDialog.conditionfield) {\n          var conditions = JSON.parse(customDialog.conditionfield);\n\n          for (var i = 0; i < conditions.length; i++) {\n            var con = conditions[i];\n\n            if (requestType == \"POST\") {\n              if (templatePa) {\n                templatePa = templatePa.replace(new RegExp(\"\\\\{\" + con.field + \"\\\\}\", \"g\"), con.defaultValue);\n              } else {\n                paramsObj[con.field] = con.defaultValue;\n              }\n            } else {\n              var ljChar = url.indexOf(\"?\") == -1 ? \"?\" : \"&\";\n              url = url + ljChar + con.field + \"=\" + con.defaultValue;\n            }\n          }\n\n          if (templatePa) {\n            paramsObj = JSON.parse(templatePa);\n          }\n        }\n      }\n\n      var requestParams = {};\n      requestParams.requestType = requestType;\n      requestParams.url = url;\n      requestParams.paramsObj = paramsObj;\n      this.searchTree(requestParams);\n      this.customDialogShowTree = true;\n    },\n    toTreeData: function toTreeData(data, id, pid, name, pvalue, returnStr) {\n      // 建立个树形结构,需要定义个最顶层的父节点，pvalue是0\n      var parents = data.filter(function (value) {\n        return value[id] == value[pid] || value[pid] == null || value[pid] == pvalue;\n      });\n\n      if (!parents) {\n        parents = data.filter(function (value) {\n          return value[pid] !== 'undefined' && value[pid] != null && value[id] != value[pid];\n        });\n      }\n\n      return parents;\n    },\n    loadTree: function loadTree(node, resolve) {\n      if (node && !Array.isArray(node.data)) {\n        var _this = this;\n\n        resolve(this.treeData.filter(function (value) {\n          return value[_this.displayfield.pid] === node.data[_this.displayfield.id];\n        }));\n      } else {\n        resolve([]);\n      }\n    }\n  }\n};",null]}