(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[11],{

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/views/WorkflowManager.vue?vue&type=script&lang=js&":
/*!******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/views/WorkflowManager.vue?vue&type=script&lang=js& ***!
  \******************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\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/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  name: \"WorkflowManager\",\n  data: function data() {\n    return {\n      // 查询条件\n      workflowQueryContent: {\n        appId: this.$store.state.appInfo.id,\n        index: 0,\n        pageSize: 10,\n        workflowId: undefined,\n        keyword: undefined\n      },\n      // 工作流查询结果\n      workflowPageResult: {\n        pageSize: 10,\n        totalItems: 0,\n        data: []\n      },\n      // 新建工作流对象\n      workflowObj: {}\n    };\n  },\n  methods: {\n    // 查询工作流\n    listWorkflow: function listWorkflow() {\n      var that = this;\n      this.axios.post(\"/workflow/list\", this.workflowQueryContent).then(function (res) {\n        that.workflowPageResult = res;\n      });\n    },\n    // 点击重置\n    onClickReset: function onClickReset() {\n      this.workflowQueryContent.workflowId = undefined;\n      this.workflowQueryContent.keyword = undefined;\n    },\n    // 开关工作流\n    switchWorkflow: function switchWorkflow(data) {\n      var that = this;\n      var path = data.enable ? \"enable\" : \"disable\";\n      var url = \"/workflow/\" + path + \"?appId=\" + this.$store.state.appInfo.id + \"&workflowId=\" + data.id;\n      this.axios.get(url, function (res) {\n        console.log(res);\n        that.listWorkflow();\n      });\n    },\n    // 编辑工作流\n    onClickModifyWorkflow: function onClickModifyWorkflow(data) {\n      this.$router.push({\n        name: 'workflowEditor',\n        params: {\n          modify: true,\n          workflowInfo: data\n        }\n      });\n    },\n    // 立即运行工作流\n    onClickRunWorkflow: function onClickRunWorkflow(data) {\n      var _this = this;\n\n      var that = this;\n      var url = \"/workflow/run?appId=\" + this.$store.state.appInfo.id + \"&workflowId=\" + data.id;\n      this.axios.get(url).then(function () {\n        return that.$message.success(_this.$t('message.success'));\n      });\n    },\n    // 删除工作流\n    onClickDeleteWorkflow: function onClickDeleteWorkflow(data) {\n      var _this2 = this;\n\n      var that = this;\n      var url = \"/workflow/delete?appId=\" + this.$store.state.appInfo.id + \"&workflowId=\" + data.id;\n      this.axios.get(url).then(function () {\n        that.$message.success(_this2.$t('message.success'));\n        that.listWorkflow();\n      });\n    },\n    // 新建工作流\n    onClickNewWorkflow: function onClickNewWorkflow() {\n      this.$router.push({\n        name: 'workflowEditor',\n        params: {\n          modify: false\n        }\n      });\n    }\n  },\n  mounted: function mounted() {\n    this.listWorkflow();\n  }\n});\n\n//# sourceURL=webpack:///./src/components/views/WorkflowManager.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"41f1f4da-vue-loader-template\"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/views/WorkflowManager.vue?vue&type=template&id=d5948a66&scoped=true&":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41f1f4da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/views/WorkflowManager.vue?vue&type=template&id=d5948a66&scoped=true& ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _c(\n    \"div\",\n    { attrs: { id: \"workflow_manager\" } },\n    [\n      _c(\n        \"el-row\",\n        { attrs: { gutter: 20 } },\n        [\n          _c(\n            \"el-col\",\n            { attrs: { span: 20 } },\n            [\n              _c(\n                \"el-form\",\n                {\n                  staticClass: \"el-form--inline\",\n                  attrs: { inline: true, model: _vm.workflowQueryContent }\n                },\n                [\n                  _c(\n                    \"el-form-item\",\n                    { attrs: { label: _vm.$t(\"message.wfId\") } },\n                    [\n                      _c(\"el-input\", {\n                        attrs: { placeholder: _vm.$t(\"message.wfId\") },\n                        model: {\n                          value: _vm.workflowQueryContent.workflowId,\n                          callback: function($$v) {\n                            _vm.$set(\n                              _vm.workflowQueryContent,\n                              \"workflowId\",\n                              $$v\n                            )\n                          },\n                          expression: \"workflowQueryContent.workflowId\"\n                        }\n                      })\n                    ],\n                    1\n                  ),\n                  _c(\n                    \"el-form-item\",\n                    { attrs: { label: _vm.$t(\"message.keyword\") } },\n                    [\n                      _c(\"el-input\", {\n                        attrs: { placeholder: _vm.$t(\"message.keyword\") },\n                        model: {\n                          value: _vm.workflowQueryContent.keyword,\n                          callback: function($$v) {\n                            _vm.$set(_vm.workflowQueryContent, \"keyword\", $$v)\n                          },\n                          expression: \"workflowQueryContent.keyword\"\n                        }\n                      })\n                    ],\n                    1\n                  ),\n                  _c(\n                    \"el-form-item\",\n                    [\n                      _c(\n                        \"el-button\",\n                        {\n                          attrs: { type: \"primary\" },\n                          on: { click: _vm.listWorkflow }\n                        },\n                        [_vm._v(_vm._s(_vm.$t(\"message.query\")))]\n                      ),\n                      _c(\n                        \"el-button\",\n                        {\n                          attrs: { type: \"cancel\" },\n                          on: { click: _vm.onClickReset }\n                        },\n                        [_vm._v(_vm._s(_vm.$t(\"message.reset\")))]\n                      )\n                    ],\n                    1\n                  )\n                ],\n                1\n              )\n            ],\n            1\n          ),\n          _c(\"el-col\", { attrs: { span: 4 } }, [\n            _c(\n              \"div\",\n              { staticStyle: { float: \"right\", \"padding-right\": \"10px\" } },\n              [\n                _c(\n                  \"el-button\",\n                  {\n                    attrs: { type: \"primary\" },\n                    on: { click: _vm.onClickNewWorkflow }\n                  },\n                  [_vm._v(_vm._s(_vm.$t(\"message.newWorkflow\")))]\n                )\n              ],\n              1\n            )\n          ])\n        ],\n        1\n      ),\n      _c(\n        \"el-row\",\n        [\n          _c(\n            \"el-table\",\n            {\n              staticStyle: { width: \"100%\" },\n              attrs: { data: _vm.workflowPageResult.data }\n            },\n            [\n              _c(\"el-table-column\", {\n                attrs: {\n                  prop: \"id\",\n                  label: _vm.$t(\"message.wfId\"),\n                  width: \"120\"\n                }\n              }),\n              _c(\"el-table-column\", {\n                attrs: { prop: \"wfName\", label: _vm.$t(\"message.wfName\") }\n              }),\n              _c(\"el-table-column\", {\n                attrs: { label: _vm.$t(\"message.scheduleInfo\") },\n                scopedSlots: _vm._u([\n                  {\n                    key: \"default\",\n                    fn: function(scope) {\n                      return [\n                        _vm._v(\n                          \" \" +\n                            _vm._s(scope.row.timeExpressionType) +\n                            \" \" +\n                            _vm._s(scope.row.timeExpression) +\n                            \" \"\n                        )\n                      ]\n                    }\n                  }\n                ])\n              }),\n              _c(\"el-table-column\", {\n                attrs: { label: _vm.$t(\"message.status\"), width: \"80\" },\n                scopedSlots: _vm._u([\n                  {\n                    key: \"default\",\n                    fn: function(scope) {\n                      return [\n                        _c(\"el-switch\", {\n                          attrs: {\n                            \"active-color\": \"#13ce66\",\n                            \"inactive-color\": \"#ff4949\"\n                          },\n                          on: {\n                            change: function($event) {\n                              return _vm.switchWorkflow(scope.row)\n                            }\n                          },\n                          model: {\n                            value: scope.row.enable,\n                            callback: function($$v) {\n                              _vm.$set(scope.row, \"enable\", $$v)\n                            },\n                            expression: \"scope.row.enable\"\n                          }\n                        })\n                      ]\n                    }\n                  }\n                ])\n              }),\n              _c(\"el-table-column\", {\n                attrs: { label: _vm.$t(\"message.operation\"), width: \"300\" },\n                scopedSlots: _vm._u([\n                  {\n                    key: \"default\",\n                    fn: function(scope) {\n                      return [\n                        _c(\n                          \"el-button\",\n                          {\n                            attrs: { size: \"medium\" },\n                            on: {\n                              click: function($event) {\n                                return _vm.onClickModifyWorkflow(scope.row)\n                              }\n                            }\n                          },\n                          [_vm._v(_vm._s(_vm.$t(\"message.edit\")))]\n                        ),\n                        _c(\n                          \"el-button\",\n                          {\n                            attrs: { size: \"medium\" },\n                            on: {\n                              click: function($event) {\n                                return _vm.onClickRunWorkflow(scope.row)\n                              }\n                            }\n                          },\n                          [_vm._v(_vm._s(_vm.$t(\"message.run\")))]\n                        ),\n                        _c(\n                          \"el-button\",\n                          {\n                            attrs: { size: \"medium\", type: \"danger\" },\n                            on: {\n                              click: function($event) {\n                                return _vm.onClickDeleteWorkflow(scope.row)\n                              }\n                            }\n                          },\n                          [_vm._v(_vm._s(_vm.$t(\"message.delete\")))]\n                        )\n                      ]\n                    }\n                  }\n                ])\n              })\n            ],\n            1\n          )\n        ],\n        1\n      )\n    ],\n    1\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/views/WorkflowManager.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2241f1f4da-vue-loader-template%22%7D!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

/***/ "./src/components/views/WorkflowManager.vue":
/*!**************************************************!*\
  !*** ./src/components/views/WorkflowManager.vue ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _WorkflowManager_vue_vue_type_template_id_d5948a66_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./WorkflowManager.vue?vue&type=template&id=d5948a66&scoped=true& */ \"./src/components/views/WorkflowManager.vue?vue&type=template&id=d5948a66&scoped=true&\");\n/* harmony import */ var _WorkflowManager_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./WorkflowManager.vue?vue&type=script&lang=js& */ \"./src/components/views/WorkflowManager.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n  _WorkflowManager_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n  _WorkflowManager_vue_vue_type_template_id_d5948a66_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n  _WorkflowManager_vue_vue_type_template_id_d5948a66_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n  false,\n  null,\n  \"d5948a66\",\n  null\n  \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"src/components/views/WorkflowManager.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/components/views/WorkflowManager.vue?");

/***/ }),

/***/ "./src/components/views/WorkflowManager.vue?vue&type=script&lang=js&":
/*!***************************************************************************!*\
  !*** ./src/components/views/WorkflowManager.vue?vue&type=script&lang=js& ***!
  \***************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WorkflowManager_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/babel-loader/lib!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib??vue-loader-options!./WorkflowManager.vue?vue&type=script&lang=js& */ \"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/views/WorkflowManager.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WorkflowManager_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); \n\n//# sourceURL=webpack:///./src/components/views/WorkflowManager.vue?");

/***/ }),

/***/ "./src/components/views/WorkflowManager.vue?vue&type=template&id=d5948a66&scoped=true&":
/*!*********************************************************************************************!*\
  !*** ./src/components/views/WorkflowManager.vue?vue&type=template&id=d5948a66&scoped=true& ***!
  \*********************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_41f1f4da_vue_loader_template_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WorkflowManager_vue_vue_type_template_id_d5948a66_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"41f1f4da-vue-loader-template\"}!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib??vue-loader-options!./WorkflowManager.vue?vue&type=template&id=d5948a66&scoped=true& */ \"./node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"41f1f4da-vue-loader-template\\\"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/views/WorkflowManager.vue?vue&type=template&id=d5948a66&scoped=true&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_41f1f4da_vue_loader_template_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WorkflowManager_vue_vue_type_template_id_d5948a66_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_41f1f4da_vue_loader_template_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WorkflowManager_vue_vue_type_template_id_d5948a66_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/components/views/WorkflowManager.vue?");

/***/ })

}]);