{"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\\portal\\IndexColumnSetparam.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\portal\\IndexColumnSetparam.vue","mtime":1675071992225},{"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/web.dom.iterable\";\nimport \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.array.from\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es6.function.name\";\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\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//\nvar VariablesSelector = function VariablesSelector() {\n  return import('@/components/common/VariablesSelector.vue');\n};\n\nexport default {\n  name: 'index-column-setparam',\n  props: {\n    setParams: {\n      type: String\n    }\n  },\n  components: {\n    VariablesSelector: VariablesSelector\n  },\n  data: function data() {\n    return {\n      title: '设置参数',\n      dialogVisible: false,\n      //是否显示对话框\n      typeArr: [{\n        key: 'string',\n        value: 'string'\n      }, {\n        key: 'int',\n        value: 'int'\n      }, {\n        key: 'float',\n        value: 'float'\n      }, {\n        key: 'double',\n        value: 'double'\n      }, {\n        key: 'byte',\n        value: 'byte'\n      }, {\n        key: 'short',\n        value: 'short'\n      }, {\n        key: 'long',\n        value: 'long'\n      }, {\n        key: 'boolean',\n        value: 'boolean'\n      }, {\n        key: 'date',\n        value: 'date'\n      }],\n      modeArr: [{\n        key: '0',\n        value: '固定值'\n      } //{key: '1', value: '动态传入'},\n      //{key: '2', value: '脚本'},\n      ],\n      cmOptions: {\n        showCursorWhenSelecting: true,\n        value: '',\n        mode: 'application/json',\n        readOnly: false,\n        smartIndent: true,\n        autofocus: true,\n        tabSize: 2,\n        theme: 'eclipse',\n        lineNumbers: true,\n        line: true,\n        inputStyle: 'textarea'\n      },\n      varList: [{\n        key: 'curUserAccount',\n        value: '当前用户账号'\n      }, {\n        key: 'curUserId',\n        value: '当前用户ID'\n      }]\n    };\n  },\n  computed: {\n    dataParams: function dataParams() {\n      return JSON.parse(this.setParams || '[]');\n    }\n  },\n  methods: {\n    handleVarSelectorClick: function handleVarSelectorClick(s, n) {\n      if (n && n.data && n.data.key) {\n        var fieldExp = '${' + n.data.key + '}';\n        this.$refs.dataParamCode && this.$refs.dataParamCode.codemirror.replaceSelection(fieldExp);\n      }\n    },\n    showDialog: function showDialog() {\n      this.dialogVisible = true;\n    },\n    handleSave: function handleSave() {\n      var _iterator = _createForOfIteratorHelper(this.dataParams),\n          _step;\n\n      try {\n        for (_iterator.s(); !(_step = _iterator.n()).done;) {\n          var item = _step.value;\n\n          if (!item.name || !item.type || !item.mode) {\n            this.$message({\n              message: '参数名、参数类型、值来源都不能为空',\n              type: 'warning'\n            });\n            return;\n          }\n        }\n      } catch (err) {\n        _iterator.e(err);\n      } finally {\n        _iterator.f();\n      }\n\n      this.$emit('handleDataparamSave', JSON.stringify(this.dataParams));\n      this.dialogVisible = false;\n    },\n    handleClose: function handleClose() {\n      this.dialogVisible = false;\n    },\n    addParam: function addParam() {\n      this.dataParams.push({\n        name: '',\n        type: 'string',\n        mode: '0',\n        value: ''\n      });\n    },\n    delParam: function delParam(param) {\n      this.dataParams.remove(param);\n    }\n  }\n};",null]}