{"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\\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":["//\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\r\nconst VariablesSelector = () =>\r\n  import('@/components/common/VariablesSelector.vue')\r\n\r\nexport default {\r\n  name: 'index-column-setparam',\r\n  props: {\r\n    setParams: {type: String},\r\n  },\r\ncomponents: {\r\n    VariablesSelector\r\n  },\r\n  data() {\r\n    return {\r\n      title: '设置参数',\r\n      dialogVisible: false, //是否显示对话框\r\n      typeArr: [\r\n        {key: 'string', value: 'string'},\r\n        {key: 'int', value: 'int'},\r\n        {key: 'float', value: 'float'},\r\n        {key: 'double', value: 'double'},\r\n        {key: 'byte', value: 'byte'},\r\n        {key: 'short', value: 'short'},\r\n        {key: 'long', value: 'long'},\r\n        {key: 'boolean', value: 'boolean'},\r\n        {key: 'date', value: 'date'},\r\n      ],\r\n      modeArr: [\r\n        {key: '0', value: '固定值'},\r\n        //{key: '1', value: '动态传入'},\r\n        //{key: '2', value: '脚本'},\r\n      ],\r\n      cmOptions: {\r\n        showCursorWhenSelecting: true,\r\n        value: '',\r\n        mode: 'application/json',\r\n        readOnly: false,\r\n        smartIndent: true,\r\n        autofocus: true,\r\n        tabSize: 2,\r\n        theme: 'eclipse',\r\n        lineNumbers: true,\r\n        line: true,\r\n        inputStyle: 'textarea',\r\n      },\r\n      varList:[{key: 'curUserAccount', value: '当前用户账号'},{key: 'curUserId', value: '当前用户ID'}]\r\n    }\r\n  },\r\n  computed: {\r\n    dataParams: function () {\r\n      return JSON.parse(this.setParams || '[]')\r\n    },\r\n  },\r\n  methods: {\r\n    handleVarSelectorClick(s, n) {\r\n      if (n && n.data && n.data.key) {\r\n        const fieldExp = '${' + n.data.key + '}'\r\n        this.$refs.dataParamCode &&\r\n          this.$refs.dataParamCode.codemirror.replaceSelection(fieldExp)\r\n      }\r\n    },\r\n    showDialog() {\r\n      this.dialogVisible = true\r\n    },\r\n    handleSave() {\r\n      for (let item of this.dataParams) {\r\n        if (!item.name || !item.type || !item.mode) {\r\n          this.$message({\r\n            message: '参数名、参数类型、值来源都不能为空',\r\n            type: 'warning',\r\n          })\r\n          return\r\n        }\r\n      }\r\n      this.$emit('handleDataparamSave', JSON.stringify(this.dataParams))\r\n      this.dialogVisible = false\r\n    },\r\n    handleClose() {\r\n      this.dialogVisible = false\r\n    },\r\n    addParam() {\r\n      this.dataParams.push({name: '', type: 'string', mode: '0', value: ''})\r\n    },\r\n    delParam(param) {\r\n      this.dataParams.remove(param)\r\n    },\r\n  },\r\n}\r\n",null]}