1 |
- {"ast":null,"code":"import \"core-js/modules/es.symbol.js\";\nimport \"core-js/modules/es.symbol.description.js\";\nimport \"core-js/modules/es.array.concat.js\";\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", {\n staticClass: \"process-container\"\n }, [_c(\"el-card\", {\n staticClass: \"process-intro\"\n }, [_c(\"div\", {\n staticClass: \"intro-header\"\n }, [_c(\"h2\", [_vm._v(_vm._s(_vm.currentProcess.title))]), _c(\"el-tag\", {\n attrs: {\n size: \"medium\",\n type: _vm.currentProcess.statusType\n }\n }, [_vm._v(_vm._s(_vm.currentProcess.status))])], 1), _c(\"div\", {\n staticClass: \"intro-content\"\n }, [_c(\"div\", {\n staticClass: \"intro-description\"\n }, [_c(\"p\", [_vm._v(_vm._s(_vm.currentProcess.description))])]), _c(\"div\", {\n staticClass: \"intro-stats\"\n }, [_c(\"div\", {\n staticClass: \"stat-item\"\n }, [_c(\"div\", {\n staticClass: \"stat-value\"\n }, [_vm._v(_vm._s(_vm.currentProcess.totalSteps))]), _c(\"div\", {\n staticClass: \"stat-label\"\n }, [_vm._v(\"总步骤\")])]), _c(\"div\", {\n staticClass: \"stat-item\"\n }, [_c(\"div\", {\n staticClass: \"stat-value\"\n }, [_vm._v(_vm._s(_vm.currentProcess.completedSteps))]), _c(\"div\", {\n staticClass: \"stat-label\"\n }, [_vm._v(\"已完成\")])]), _c(\"div\", {\n staticClass: \"stat-item\"\n }, [_c(\"div\", {\n staticClass: \"stat-value\"\n }, [_vm._v(_vm._s(_vm.currentProcess.avgDuration))]), _c(\"div\", {\n staticClass: \"stat-label\"\n }, [_vm._v(\"平均耗时\")])])])])]), _c(\"div\", {\n staticClass: \"process-flow\"\n }, [_c(\"div\", {\n staticClass: \"flow-container\"\n }, [_c(\"div\", {\n staticClass: \"main-flow\"\n }, [_c(\"el-steps\", {\n attrs: {\n direction: \"vertical\",\n active: _vm.currentProcess.completedSteps,\n \"finish-status\": \"success\"\n }\n }, _vm._l(_vm.processSteps, function (step, index) {\n return _c(\"el-step\", {\n key: index,\n staticClass: \"clickable-step\",\n attrs: {\n title: step.title,\n description: step.description\n },\n nativeOn: {\n click: function click($event) {\n return _vm.handleStepClick(step.url);\n }\n }\n }, [_c(\"template\", {\n slot: \"icon\"\n }, [_c(\"div\", {\n staticClass: \"custom-icon-wrapper\",\n \"class\": {\n \"has-branch\": step.branches\n }\n }, [_c(\"i\", {\n \"class\": [\"el-icon-\" + (step.icon || \"connection\")]\n }), step.branches ? _c(\"div\", {\n staticClass: \"branch-indicator\"\n }, [_c(\"i\", {\n staticClass: \"el-icon-arrow-right\"\n })]) : _vm._e()])]), step.branches ? _c(\"div\", {\n staticClass: \"branch-container\"\n }, [_c(\"div\", {\n staticClass: \"branch-line\"\n }), _c(\"div\", {\n staticClass: \"branch-steps\"\n }, [_c(\"div\", {\n staticClass: \"branch-header\"\n }, [_c(\"span\", {\n staticClass: \"branch-type\"\n }, [_vm._v(_vm._s(step.branchType || \"可选分支\"))])]), _c(\"el-steps\", {\n attrs: {\n direction: \"vertical\",\n active: _vm.getBranchActive(step),\n \"finish-status\": \"success\"\n }\n }, _vm._l(step.branches, function (branch, bIndex) {\n return _c(\"el-step\", {\n key: \"\".concat(index, \"-\").concat(bIndex),\n staticClass: \"clickable-step branch-step\",\n attrs: {\n title: branch.title,\n description: branch.description\n },\n nativeOn: {\n click: function click($event) {\n return _vm.handleStepClick(branch.url);\n }\n }\n }, [_c(\"template\", {\n slot: \"icon\"\n }, [_c(\"div\", {\n staticClass: \"custom-icon-wrapper branch-icon\",\n \"class\": {\n \"is-conditional\": branch.condition\n }\n }, [_c(\"i\", {\n \"class\": [\"el-icon-\" + (branch.icon || \"connection\")]\n }), branch.condition ? _c(\"el-tooltip\", {\n attrs: {\n effect: \"dark\",\n content: branch.condition,\n placement: \"right\"\n }\n }, [_c(\"i\", {\n staticClass: \"el-icon-info condition-icon\"\n })]) : _vm._e()], 1)])], 2);\n }), 1)], 1)]) : _vm._e()], 2);\n }), 1)], 1)])])], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\nexport { render, staticRenderFns };","map":{"version":3,"names":["render","_vm","_c","_self","staticClass","_v","_s","currentProcess","title","attrs","size","type","statusType","status","description","totalSteps","completedSteps","avgDuration","direction","active","_l","processSteps","step","index","key","nativeOn","click","$event","handleStepClick","url","slot","branches","icon","_e","branchType","getBranchActive","branch","bIndex","concat","condition","effect","content","placement","staticRenderFns","_withStripped"],"sources":["/Users/zyh/Desktop/demo001/src/views/EmployeeProcess.vue"],"sourcesContent":["var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"div\",\n { staticClass: \"process-container\" },\n [\n _c(\"el-card\", { staticClass: \"process-intro\" }, [\n _c(\n \"div\",\n { staticClass: \"intro-header\" },\n [\n _c(\"h2\", [_vm._v(_vm._s(_vm.currentProcess.title))]),\n _c(\n \"el-tag\",\n {\n attrs: { size: \"medium\", type: _vm.currentProcess.statusType },\n },\n [_vm._v(_vm._s(_vm.currentProcess.status))]\n ),\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"intro-content\" }, [\n _c(\"div\", { staticClass: \"intro-description\" }, [\n _c(\"p\", [_vm._v(_vm._s(_vm.currentProcess.description))]),\n ]),\n _c(\"div\", { staticClass: \"intro-stats\" }, [\n _c(\"div\", { staticClass: \"stat-item\" }, [\n _c(\"div\", { staticClass: \"stat-value\" }, [\n _vm._v(_vm._s(_vm.currentProcess.totalSteps)),\n ]),\n _c(\"div\", { staticClass: \"stat-label\" }, [_vm._v(\"总步骤\")]),\n ]),\n _c(\"div\", { staticClass: \"stat-item\" }, [\n _c(\"div\", { staticClass: \"stat-value\" }, [\n _vm._v(_vm._s(_vm.currentProcess.completedSteps)),\n ]),\n _c(\"div\", { staticClass: \"stat-label\" }, [_vm._v(\"已完成\")]),\n ]),\n _c(\"div\", { staticClass: \"stat-item\" }, [\n _c(\"div\", { staticClass: \"stat-value\" }, [\n _vm._v(_vm._s(_vm.currentProcess.avgDuration)),\n ]),\n _c(\"div\", { staticClass: \"stat-label\" }, [_vm._v(\"平均耗时\")]),\n ]),\n ]),\n ]),\n ]),\n _c(\"div\", { staticClass: \"process-flow\" }, [\n _c(\"div\", { staticClass: \"flow-container\" }, [\n _c(\n \"div\",\n { staticClass: \"main-flow\" },\n [\n _c(\n \"el-steps\",\n {\n attrs: {\n direction: \"vertical\",\n active: _vm.currentProcess.completedSteps,\n \"finish-status\": \"success\",\n },\n },\n _vm._l(_vm.processSteps, function (step, index) {\n return _c(\n \"el-step\",\n {\n key: index,\n staticClass: \"clickable-step\",\n attrs: {\n title: step.title,\n description: step.description,\n },\n nativeOn: {\n click: function ($event) {\n return _vm.handleStepClick(step.url)\n },\n },\n },\n [\n _c(\"template\", { slot: \"icon\" }, [\n _c(\n \"div\",\n {\n staticClass: \"custom-icon-wrapper\",\n class: { \"has-branch\": step.branches },\n },\n [\n _c(\"i\", {\n class: [\"el-icon-\" + (step.icon || \"connection\")],\n }),\n step.branches\n ? _c(\"div\", { staticClass: \"branch-indicator\" }, [\n _c(\"i\", {\n staticClass: \"el-icon-arrow-right\",\n }),\n ])\n : _vm._e(),\n ]\n ),\n ]),\n step.branches\n ? _c(\"div\", { staticClass: \"branch-container\" }, [\n _c(\"div\", { staticClass: \"branch-line\" }),\n _c(\n \"div\",\n { staticClass: \"branch-steps\" },\n [\n _c(\"div\", { staticClass: \"branch-header\" }, [\n _c(\"span\", { staticClass: \"branch-type\" }, [\n _vm._v(\n _vm._s(step.branchType || \"可选分支\")\n ),\n ]),\n ]),\n _c(\n \"el-steps\",\n {\n attrs: {\n direction: \"vertical\",\n active: _vm.getBranchActive(step),\n \"finish-status\": \"success\",\n },\n },\n _vm._l(\n step.branches,\n function (branch, bIndex) {\n return _c(\n \"el-step\",\n {\n key: `${index}-${bIndex}`,\n staticClass:\n \"clickable-step branch-step\",\n attrs: {\n title: branch.title,\n description: branch.description,\n },\n nativeOn: {\n click: function ($event) {\n return _vm.handleStepClick(\n branch.url\n )\n },\n },\n },\n [\n _c(\"template\", { slot: \"icon\" }, [\n _c(\n \"div\",\n {\n staticClass:\n \"custom-icon-wrapper branch-icon\",\n class: {\n \"is-conditional\":\n branch.condition,\n },\n },\n [\n _c(\"i\", {\n class: [\n \"el-icon-\" +\n (branch.icon ||\n \"connection\"),\n ],\n }),\n branch.condition\n ? _c(\n \"el-tooltip\",\n {\n attrs: {\n effect: \"dark\",\n content:\n branch.condition,\n placement: \"right\",\n },\n },\n [\n _c(\"i\", {\n staticClass:\n \"el-icon-info condition-icon\",\n }),\n ]\n )\n : _vm._e(),\n ],\n 1\n ),\n ]),\n ],\n 2\n )\n }\n ),\n 1\n ),\n ],\n 1\n ),\n ])\n : _vm._e(),\n ],\n 2\n )\n }),\n 1\n ),\n ],\n 1\n ),\n ]),\n ]),\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }"],"mappings":";;;AAAA,IAAIA,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAG;EAC7B,IAAIC,GAAG,GAAG,IAAI;IACZC,EAAE,GAAGD,GAAG,CAACE,KAAK,CAACD,EAAE;EACnB,OAAOA,EAAE,CACP,KAAK,EACL;IAAEE,WAAW,EAAE;EAAoB,CAAC,EACpC,CACEF,EAAE,CAAC,SAAS,EAAE;IAAEE,WAAW,EAAE;EAAgB,CAAC,EAAE,CAC9CF,EAAE,CACA,KAAK,EACL;IAAEE,WAAW,EAAE;EAAe,CAAC,EAC/B,CACEF,EAAE,CAAC,IAAI,EAAE,CAACD,GAAG,CAACI,EAAE,CAACJ,GAAG,CAACK,EAAE,CAACL,GAAG,CAACM,cAAc,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpDN,EAAE,CACA,QAAQ,EACR;IACEO,KAAK,EAAE;MAAEC,IAAI,EAAE,QAAQ;MAAEC,IAAI,EAAEV,GAAG,CAACM,cAAc,CAACK;IAAW;EAC/D,CAAC,EACD,CAACX,GAAG,CAACI,EAAE,CAACJ,GAAG,C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CACF,CAAC,CACF,EACD,CACF,CAAC,CACF,CAAC,CACH,CAAC,CACH,EACD,CACF,CAAC;AACH,CAAC;AACD,IAAIU,eAAe,GAAG,EAAE;AACxB3C,MAAM,CAAC4C,aAAa,GAAG,IAAI;AAE3B,SAAS5C,MAAM,EAAE2C,eAAe","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|