Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/vue-loader/6426007d3748b730d36b25c7f3d831b6.json
2024-12-05 09:33:18 +08:00

1 line
5.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\logicflow\\editor\\components\\DiagramToolbar.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\logicflow\\editor\\components\\DiagramToolbar.vue","mtime":1732871026747},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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\nimport ZoomIn from './icon/ZoomIn.vue'\r\nimport ZoomOut from './icon/ZoomOut.vue'\r\nimport StepBack from './icon/StepBack.vue'\r\nimport StepFoward from './icon/StepFoward.vue'\r\nimport AreaSelect from './icon/AreaSelect.vue'\r\nimport crudStage from '@/api/logicflow/stage'\r\n\r\nexport default {\r\n components: {\r\n ZoomIn,\r\n ZoomOut,\r\n StepBack,\r\n StepFoward,\r\n AreaSelect\r\n // SketchPicker: Sketch\r\n },\r\n props: {\r\n lf: Object,\r\n activeEdges: Array,\r\n fillColor: {\r\n type: String,\r\n default: ''\r\n }\r\n },\r\n data() {\r\n return {\r\n selectionOpened: true,\r\n undoAble: false,\r\n redoAble: false,\r\n colors: '#345678',\r\n linetype: 'pro-polyline',\r\n lineOptions: [\r\n {\r\n value: 'pro-polyline',\r\n label: '折线'\r\n },\r\n {\r\n value: 'pro-line',\r\n label: '直线'\r\n },\r\n {\r\n value: 'pro-bezier',\r\n label: '曲线'\r\n }\r\n ],\r\n stage_code: '',\r\n stageSelectList: []\r\n }\r\n },\r\n created() {\r\n if (this.selectionOpened) {\r\n this.lf.extension.selectionSelect.openSelectionSelect()\r\n }\r\n },\r\n mounted() {\r\n this.initStageList()\r\n this.$props.lf.on('history:change', ({ data: { undoAble, redoAble }}) => {\r\n this.$data.redoAble = redoAble\r\n this.$data.undoAble = undoAble\r\n })\r\n },\r\n methods: {\r\n initStageList() {\r\n // 初始化舞台下拉框\r\n crudStage.selectStageList().then(data => {\r\n this.stageSelectList = data\r\n })\r\n },\r\n $_changeFillColor(val) {\r\n this.$emit('changeNodeFillColor', val.hex)\r\n },\r\n $_cleanGraph() {\r\n this.$emit('cleanGraph')\r\n },\r\n $_saveGraph() { // 保存转成js\r\n this.$emit('saveGraph')\r\n },\r\n $_zoomIn() {\r\n this.$props.lf.zoom(true)\r\n },\r\n $_zoomOut() {\r\n this.$props.lf.zoom(false)\r\n },\r\n $_undo() {\r\n if (this.$data.undoAble) {\r\n this.$props.lf.undo()\r\n }\r\n },\r\n $_redo() {\r\n if (this.$data.redoAble) {\r\n this.$props.lf.redo()\r\n }\r\n },\r\n $_selectionSelect() {\r\n this.selectionOpened = !this.selectionOpened\r\n if (this.selectionOpened) {\r\n this.lf.extension.selectionSelect.openSelectionSelect()\r\n } else {\r\n this.lf.extension.selectionSelect.closeSelectionSelect()\r\n }\r\n },\r\n $_changeLineType(value) {\r\n const { lf, activeEdges } = this.$props\r\n const { graphModel } = lf\r\n lf.setDefaultEdgeType(value)\r\n if (activeEdges && activeEdges.length > 0) {\r\n activeEdges.forEach(edge => {\r\n graphModel.changeEdgeType(edge.id, value)\r\n })\r\n }\r\n },\r\n $_lock() {\r\n this.$emit('lock')\r\n },\r\n $_unlock() {\r\n this.$emit('unlock')\r\n },\r\n $_changeStage(val) { // 选择舞台\r\n this.$emit('changeStage', val)\r\n },\r\n $_verticalAlign() { // 垂直对齐\r\n this.$emit('verticalAlign')\r\n },\r\n $_horizontalAlign() { // 水平对齐\r\n this.$emit('horizontalAlign')\r\n },\r\n $_leftAlign() { // 左对齐\r\n this.$emit('leftAlign')\r\n },\r\n $_rightAlign() { // 右对齐\r\n this.$emit('rightAlign')\r\n },\r\n $_upAlign() {\r\n this.$emit('upAlign')\r\n },\r\n $_downAlign() {\r\n this.$emit('downAlign')\r\n },\r\n $_horizontalDistribution() {\r\n this.$emit('horizontalDistribution')\r\n },\r\n $_verticalDistribution() {\r\n this.$emit('verticalDistribution')\r\n }\r\n }\r\n}\r\n",null]}