@ebiz/designer-components 0.0.47 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/designer-components.css +1 -1
- package/dist/index.mjs +33336 -107224
- package/package.json +1 -4
- package/src/apiService/simpleDataService.js +43 -43
- package/src/assets/styles/charts/main.less +0 -30
- package/src/components/Button.vue +3 -6
- package/src/components/EbizApproval.vue +327 -0
- package/src/components/EbizEmployeeSelector.vue +50 -15
- package/src/components/EbizFileUpload.vue +55 -18
- package/src/components/EbizRouteBreadcrumb.vue +9 -9
- package/src/components/EbizSelect.vue +52 -62
- package/src/components/EbizTabHeader.vue +29 -41
- package/src/components/senior/EbizSDialog/index.vue +4 -0
- package/src/index.js +4 -4
- package/src/router/index.js +7 -0
- package/src/views/EbizApprovalDemo.vue +77 -0
- package/src/views/EbizSDataDemo.vue +0 -1
- package/src/views/Home.vue +2 -1
- package/src/components/EbizMindmap/README.md +0 -8
- package/src/components/EbizMindmap/components/GridNode.vue +0 -102
- package/src/components/EbizMindmap/components/node.vue +0 -92
- package/src/components/EbizMindmap/components/vueNode.vue +0 -64
- package/src/components/EbizMindmap/index.vue +0 -383
- package/src/components/charts/chart.js +0 -47
- package/src/components/charts/components/AssembleBubbleChart/BaseOption.js +0 -50
- package/src/components/charts/components/AssembleBubbleChart/chartToken.js +0 -17
- package/src/components/charts/components/AssembleBubbleChart/handleOption.js +0 -66
- package/src/components/charts/components/AssembleBubbleChart/handleRootData.js +0 -165
- package/src/components/charts/components/AssembleBubbleChart/handleSeriesData.js +0 -70
- package/src/components/charts/components/AssembleBubbleChart/index.js +0 -65
- package/src/components/charts/components/AutonaviMapChart/index.js +0 -162
- package/src/components/charts/components/BaiduMapChart/index.js +0 -148
- package/src/components/charts/components/BarChart/barChartOption.js +0 -76
- package/src/components/charts/components/BarChart/chartToken.js +0 -17
- package/src/components/charts/components/BarChart/handleOptipn.js +0 -102
- package/src/components/charts/components/BarChart/handleSeries.js +0 -716
- package/src/components/charts/components/BarChart/handleVisualMap.js +0 -48
- package/src/components/charts/components/BarChart/index.js +0 -151
- package/src/components/charts/components/BaseChart/index.js +0 -122
- package/src/components/charts/components/BoxplotChart/chartToken.js +0 -17
- package/src/components/charts/components/BoxplotChart/handleOption.js +0 -64
- package/src/components/charts/components/BoxplotChart/handleSeries.js +0 -150
- package/src/components/charts/components/BoxplotChart/index.js +0 -47
- package/src/components/charts/components/BubbleChart/chartToken.js +0 -17
- package/src/components/charts/components/BubbleChart/handleData.js +0 -33
- package/src/components/charts/components/BubbleChart/handleOptipn.js +0 -63
- package/src/components/charts/components/BubbleChart/handleSeries.js +0 -86
- package/src/components/charts/components/BubbleChart/handleTrendLine.js +0 -119
- package/src/components/charts/components/BubbleChart/handleVisualMap.js +0 -50
- package/src/components/charts/components/BubbleChart/index.js +0 -96
- package/src/components/charts/components/BulletChart/bulletChartOption.js +0 -82
- package/src/components/charts/components/BulletChart/chartToken.js +0 -17
- package/src/components/charts/components/BulletChart/handleOptipn.js +0 -74
- package/src/components/charts/components/BulletChart/handleSeries.js +0 -143
- package/src/components/charts/components/BulletChart/index.js +0 -93
- package/src/components/charts/components/CandlestickChart/BaseOption.js +0 -44
- package/src/components/charts/components/CandlestickChart/chartToken.js +0 -17
- package/src/components/charts/components/CandlestickChart/hanleOption.js +0 -130
- package/src/components/charts/components/CandlestickChart/hanleSeries.js +0 -123
- package/src/components/charts/components/CandlestickChart/index.js +0 -68
- package/src/components/charts/components/CircleProcessChart/chartToken.js +0 -17
- package/src/components/charts/components/CircleProcessChart/handleOption.js +0 -68
- package/src/components/charts/components/CircleProcessChart/handleSeries.js +0 -127
- package/src/components/charts/components/CircleProcessChart/index.js +0 -63
- package/src/components/charts/components/FlowChart/Layout.js +0 -211
- package/src/components/charts/components/FlowChart/LineBezier.js +0 -120
- package/src/components/charts/components/FlowChart/LineDirect.js +0 -42
- package/src/components/charts/components/FlowChart/LineManager.js +0 -278
- package/src/components/charts/components/FlowChart/LineMode.js +0 -44
- package/src/components/charts/components/FlowChart/LineRound.js +0 -335
- package/src/components/charts/components/FlowChart/NodeManager.js +0 -185
- package/src/components/charts/components/FlowChart/dagre.js +0 -8829
- package/src/components/charts/components/FlowChart/frameworkFn.js +0 -38
- package/src/components/charts/components/FlowChart/index.js +0 -268
- package/src/components/charts/components/FlowChart/index.less +0 -90
- package/src/components/charts/components/FlowChart/insert.js +0 -40
- package/src/components/charts/components/FlowChart/util.js +0 -43
- package/src/components/charts/components/FunnelChart/chartToken.js +0 -17
- package/src/components/charts/components/FunnelChart/handleLegend.js +0 -44
- package/src/components/charts/components/FunnelChart/handleSeries.js +0 -77
- package/src/components/charts/components/FunnelChart/index.js +0 -44
- package/src/components/charts/components/GanttChart/CoordinateSystem.js +0 -358
- package/src/components/charts/components/GanttChart/TimeLine.js +0 -379
- package/src/components/charts/components/GanttChart/constant.js +0 -71
- package/src/components/charts/components/GanttChart/index.js +0 -51
- package/src/components/charts/components/GanttChart/index.less +0 -267
- package/src/components/charts/components/GanttChart/util.js +0 -335
- package/src/components/charts/components/GaugeChart/BaseOption.js +0 -22
- package/src/components/charts/components/GaugeChart/chartToken.js +0 -17
- package/src/components/charts/components/GaugeChart/handleOptipn.js +0 -22
- package/src/components/charts/components/GaugeChart/handleSeries.js +0 -504
- package/src/components/charts/components/GaugeChart/index.js +0 -53
- package/src/components/charts/components/GraphChart/index.js +0 -34
- package/src/components/charts/components/GraphTreeChart/BaseOption.js +0 -42
- package/src/components/charts/components/GraphTreeChart/handleData.js +0 -118
- package/src/components/charts/components/GraphTreeChart/handleOption.js +0 -142
- package/src/components/charts/components/GraphTreeChart/index.js +0 -65
- package/src/components/charts/components/GraphTreeChart/mixTree.js +0 -36
- package/src/components/charts/components/GraphTreeChart/utils.js +0 -75
- package/src/components/charts/components/HeatMapChart/BaseOption.js +0 -66
- package/src/components/charts/components/HeatMapChart/chartToken.js +0 -17
- package/src/components/charts/components/HeatMapChart/handleData.js +0 -138
- package/src/components/charts/components/HeatMapChart/handleOptipn.js +0 -227
- package/src/components/charts/components/HeatMapChart/handleSeries.js +0 -82
- package/src/components/charts/components/HeatMapChart/handleVisualMap.js +0 -91
- package/src/components/charts/components/HeatMapChart/index.js +0 -70
- package/src/components/charts/components/HillChart/baseOption.js +0 -50
- package/src/components/charts/components/HillChart/chartToken.js +0 -17
- package/src/components/charts/components/HillChart/handleOption.js +0 -193
- package/src/components/charts/components/HillChart/handleSeries.js +0 -39
- package/src/components/charts/components/HillChart/index.js +0 -96
- package/src/components/charts/components/HoneycombChart/NodeManager.js +0 -172
- package/src/components/charts/components/HoneycombChart/TipManager.js +0 -75
- package/src/components/charts/components/HoneycombChart/index.js +0 -117
- package/src/components/charts/components/HoneycombChart/index.less +0 -49
- package/src/components/charts/components/JadeJueChart/BaseOption.js +0 -40
- package/src/components/charts/components/JadeJueChart/chartToken.js +0 -17
- package/src/components/charts/components/JadeJueChart/handleOption.js +0 -262
- package/src/components/charts/components/JadeJueChart/handleSeries.js +0 -246
- package/src/components/charts/components/JadeJueChart/index.js +0 -71
- package/src/components/charts/components/JadeJueChart/labelFormatter.js +0 -131
- package/src/components/charts/components/LineChart/AreaChart/bottomArea.js +0 -177
- package/src/components/charts/components/LineChart/AreaChart/chartToken.js +0 -17
- package/src/components/charts/components/LineChart/AreaChart/index.js +0 -18
- package/src/components/charts/components/LineChart/AreaChart/topArea.js +0 -139
- package/src/components/charts/components/LineChart/chartToken.js +0 -17
- package/src/components/charts/components/LineChart/handleOptipn.js +0 -145
- package/src/components/charts/components/LineChart/handlePredict.js +0 -73
- package/src/components/charts/components/LineChart/handleSeries.js +0 -266
- package/src/components/charts/components/LineChart/handleVisualMap.js +0 -138
- package/src/components/charts/components/LineChart/index.js +0 -133
- package/src/components/charts/components/LiquidfillChart/chartToken.js +0 -17
- package/src/components/charts/components/LiquidfillChart/handleSeries.js +0 -170
- package/src/components/charts/components/LiquidfillChart/index.js +0 -43
- package/src/components/charts/components/LiquidfillChart/plugSeries.js +0 -78
- package/src/components/charts/components/LiquidfillChart/plugShape.js +0 -163
- package/src/components/charts/components/LiquidfillChart/plugView.js +0 -537
- package/src/components/charts/components/MilestoneChart/Layout.js +0 -183
- package/src/components/charts/components/MilestoneChart/Node.js +0 -319
- package/src/components/charts/components/MilestoneChart/assets/next.svg +0 -7
- package/src/components/charts/components/MilestoneChart/assets/prev.svg +0 -7
- package/src/components/charts/components/MilestoneChart/assets/prompt.svg +0 -9
- package/src/components/charts/components/MilestoneChart/index.js +0 -108
- package/src/components/charts/components/MilestoneChart/index.less +0 -244
- package/src/components/charts/components/MilestoneChart/insertDom.js +0 -32
- package/src/components/charts/components/MilestoneChart/insertIcon.js +0 -24
- package/src/components/charts/components/MilestoneChart/insertSvg.js +0 -109
- package/src/components/charts/components/OrganizationChart/NodeManager.js +0 -188
- package/src/components/charts/components/OrganizationChart/RotateManager.js +0 -349
- package/src/components/charts/components/OrganizationChart/index.js +0 -124
- package/src/components/charts/components/OrganizationChart/index.less +0 -112
- package/src/components/charts/components/PieChart/chartToken.js +0 -17
- package/src/components/charts/components/PieChart/handleLabel.js +0 -94
- package/src/components/charts/components/PieChart/handleMulti.js +0 -131
- package/src/components/charts/components/PieChart/handleSeries.js +0 -236
- package/src/components/charts/components/PieChart/index.js +0 -58
- package/src/components/charts/components/PolarBarChart/chartToken.js +0 -17
- package/src/components/charts/components/PolarBarChart/handleOption.js +0 -102
- package/src/components/charts/components/PolarBarChart/handleSeries.js +0 -127
- package/src/components/charts/components/PolarBarChart/index.js +0 -62
- package/src/components/charts/components/ProcessChart/BaseOption.js +0 -296
- package/src/components/charts/components/ProcessChart/chartToken.js +0 -17
- package/src/components/charts/components/ProcessChart/handleData.js +0 -156
- package/src/components/charts/components/ProcessChart/handleOption.js +0 -212
- package/src/components/charts/components/ProcessChart/handleSeries.js +0 -369
- package/src/components/charts/components/ProcessChart/index.js +0 -76
- package/src/components/charts/components/RadarChart/BaseOption.js +0 -248
- package/src/components/charts/components/RadarChart/GradientRadar/index.js +0 -421
- package/src/components/charts/components/RadarChart/chartToken.js +0 -17
- package/src/components/charts/components/RadarChart/handleOptipn.js +0 -316
- package/src/components/charts/components/RadarChart/handleSeries.js +0 -120
- package/src/components/charts/components/RadarChart/index.js +0 -77
- package/src/components/charts/components/RegionChart/chartToken.js +0 -17
- package/src/components/charts/components/RegionChart/handleOption.js +0 -29
- package/src/components/charts/components/RegionChart/index.js +0 -49
- package/src/components/charts/components/RiverChart/Belt.js +0 -181
- package/src/components/charts/components/RiverChart/Manager.js +0 -173
- package/src/components/charts/components/RiverChart/Node.js +0 -425
- package/src/components/charts/components/RiverChart/baseOption.js +0 -51
- package/src/components/charts/components/RiverChart/index.js +0 -79
- package/src/components/charts/components/RiverChart/index.less +0 -42
- package/src/components/charts/components/RiverChart/util.js +0 -160
- package/src/components/charts/components/SankeyChart/BaseOption.js +0 -74
- package/src/components/charts/components/SankeyChart/chartToken.js +0 -17
- package/src/components/charts/components/SankeyChart/handleOption.js +0 -258
- package/src/components/charts/components/SankeyChart/index.js +0 -111
- package/src/components/charts/components/SankeyChart/tooltip.js +0 -53
- package/src/components/charts/components/ScatterChart/chartToken.js +0 -17
- package/src/components/charts/components/ScatterChart/handleMarkPoint.js +0 -74
- package/src/components/charts/components/ScatterChart/handleOptipn.js +0 -66
- package/src/components/charts/components/ScatterChart/handleSeries.js +0 -48
- package/src/components/charts/components/ScatterChart/index.js +0 -60
- package/src/components/charts/components/SnowFlakeChart/BranchManager.js +0 -324
- package/src/components/charts/components/SnowFlakeChart/CommonConstant.js +0 -111
- package/src/components/charts/components/SnowFlakeChart/LeafManager.js +0 -76
- package/src/components/charts/components/SnowFlakeChart/NodeManager.js +0 -240
- package/src/components/charts/components/SnowFlakeChart/TagManager.js +0 -80
- package/src/components/charts/components/SnowFlakeChart/assets/down.svg +0 -8
- package/src/components/charts/components/SnowFlakeChart/assets/errorBg-leaf.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/errorBg.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/image2L.svg +0 -7
- package/src/components/charts/components/SnowFlakeChart/assets/image2R.svg +0 -7
- package/src/components/charts/components/SnowFlakeChart/assets/image5L.svg +0 -7
- package/src/components/charts/components/SnowFlakeChart/assets/image5R.svg +0 -7
- package/src/components/charts/components/SnowFlakeChart/assets/normalBg-leaf.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/normalBg.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/outerBorder.svg +0 -24
- package/src/components/charts/components/SnowFlakeChart/assets/outerBorderOverAll.svg +0 -18
- package/src/components/charts/components/SnowFlakeChart/assets/up.svg +0 -8
- package/src/components/charts/components/SnowFlakeChart/assets/warningBg-leaf.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/warningBg.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/wirelessL.svg +0 -7
- package/src/components/charts/components/SnowFlakeChart/assets/wirelessR.svg +0 -7
- package/src/components/charts/components/SnowFlakeChart/defaultOption.js +0 -285
- package/src/components/charts/components/SnowFlakeChart/index.js +0 -408
- package/src/components/charts/components/SnowFlakeChart/index.less +0 -503
- package/src/components/charts/components/SnowFlakeChart/line/LineArrow.js +0 -62
- package/src/components/charts/components/SnowFlakeChart/line/LineDashed.js +0 -29
- package/src/components/charts/components/SnowFlakeChart/line/LineDotted.js +0 -29
- package/src/components/charts/components/SnowFlakeChart/line/LineStraight.js +0 -28
- package/src/components/charts/components/SnowFlakeChart/line/index.js +0 -202
- package/src/components/charts/components/SnowFlakeChart/util.js +0 -430
- package/src/components/charts/components/SunburstChart/chartToken.js +0 -17
- package/src/components/charts/components/SunburstChart/handleSeries.js +0 -48
- package/src/components/charts/components/SunburstChart/index.js +0 -41
- package/src/components/charts/components/TerraceChart/defaultGradient.js +0 -116
- package/src/components/charts/components/TerraceChart/defaultPath.js +0 -30
- package/src/components/charts/components/TerraceChart/index.js +0 -276
- package/src/components/charts/components/TerraceChart/index.less +0 -171
- package/src/components/charts/components/TerraceChart/insert.js +0 -35
- package/src/components/charts/components/TerraceChart/loading.js +0 -34
- package/src/components/charts/components/TimelineChart/chartToken.js +0 -17
- package/src/components/charts/components/TimelineChart/index.js +0 -109
- package/src/components/charts/components/TimelineChart/index.less +0 -152
- package/src/components/charts/components/TimelineChart/insertDom.js +0 -45
- package/src/components/charts/components/TimelineChart/timeline.js +0 -461
- package/src/components/charts/components/TreeChart/chartToken.js +0 -17
- package/src/components/charts/components/TreeChart/handleOptipn.js +0 -101
- package/src/components/charts/components/TreeChart/handleSeries.js +0 -148
- package/src/components/charts/components/TreeChart/index.js +0 -50
- package/src/components/charts/components/TreeMapChart/handleOptipn.js +0 -57
- package/src/components/charts/components/TreeMapChart/handleSeries.js +0 -57
- package/src/components/charts/components/TreeMapChart/handleVisualMap.js +0 -31
- package/src/components/charts/components/TreeMapChart/index.js +0 -56
- package/src/components/charts/components/WaveChart/chartToken.js +0 -17
- package/src/components/charts/components/WaveChart/index.js +0 -418
- package/src/components/charts/components/WaveChart/index.less +0 -77
- package/src/components/charts/components/WaveChart/insert.js +0 -38
- package/src/components/charts/components/WaveChart/loading.js +0 -34
- package/src/components/charts/components/WordCloudChart/BaseOption.js +0 -19
- package/src/components/charts/components/WordCloudChart/chartToken.js +0 -17
- package/src/components/charts/components/WordCloudChart/handleOptipn.js +0 -20
- package/src/components/charts/components/WordCloudChart/handleSeries.js +0 -106
- package/src/components/charts/components/WordCloudChart/index.js +0 -67
- package/src/components/charts/core.js +0 -386
- package/src/components/charts/feature/adaptive/index.js +0 -46
- package/src/components/charts/feature/adaptive/series/AssembleBubbleChart.js +0 -22
- package/src/components/charts/feature/adaptive/series/BarChart.js +0 -27
- package/src/components/charts/feature/adaptive/series/BoxplotChart.js +0 -26
- package/src/components/charts/feature/adaptive/series/BubbleChart.js +0 -26
- package/src/components/charts/feature/adaptive/series/BulletChart.js +0 -27
- package/src/components/charts/feature/adaptive/series/CircleProcessChart.js +0 -25
- package/src/components/charts/feature/adaptive/series/FunnelChart.js +0 -22
- package/src/components/charts/feature/adaptive/series/HeatMapChart.js +0 -26
- package/src/components/charts/feature/adaptive/series/JadeJueChart.js +0 -24
- package/src/components/charts/feature/adaptive/series/LineChart.js +0 -26
- package/src/components/charts/feature/adaptive/series/LiquidfillChart.js +0 -26
- package/src/components/charts/feature/adaptive/series/PieChart.js +0 -25
- package/src/components/charts/feature/adaptive/series/PolarBarChart.js +0 -22
- package/src/components/charts/feature/adaptive/series/ScatterChart.js +0 -26
- package/src/components/charts/feature/adaptive/series/SunburstChart.js +0 -25
- package/src/components/charts/feature/adaptive/utils/axis.js +0 -26
- package/src/components/charts/feature/adaptive/utils/label.js +0 -30
- package/src/components/charts/feature/adaptive/utils/legend.js +0 -30
- package/src/components/charts/feature/adaptive/utils/title.js +0 -30
- package/src/components/charts/feature/adaptive/utils/tooltip.js +0 -30
- package/src/components/charts/feature/axistip/index.js +0 -116
- package/src/components/charts/feature/card/chartToken.js +0 -17
- package/src/components/charts/feature/card/index.js +0 -225
- package/src/components/charts/feature/card/index.less +0 -166
- package/src/components/charts/feature/drag/index.js +0 -353
- package/src/components/charts/feature/drag/index.less +0 -53
- package/src/components/charts/feature/equalLabel/index.js +0 -63
- package/src/components/charts/feature/expandLegend/constants.js +0 -22
- package/src/components/charts/feature/expandLegend/index.js +0 -190
- package/src/components/charts/feature/expandLegend/index.less +0 -1044
- package/src/components/charts/feature/expandLegend/mutiSelect/constants.js +0 -40
- package/src/components/charts/feature/expandLegend/mutiSelect/index.js +0 -157
- package/src/components/charts/feature/expandLegend/mutiSelect/item.js +0 -133
- package/src/components/charts/feature/expandLegend/mutiSelect/position.js +0 -44
- package/src/components/charts/feature/expandLegend/mutiSelect/search.js +0 -79
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/constants.js +0 -41
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/group.js +0 -112
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/index.js +0 -97
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/item.js +0 -115
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/more.js +0 -101
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/paging.js +0 -103
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/scroll.js +0 -33
- package/src/components/charts/feature/expandLegend/mutiSelectList/constants.js +0 -34
- package/src/components/charts/feature/expandLegend/mutiSelectList/index.js +0 -181
- package/src/components/charts/feature/expandLegend/mutiSelectList/statisticList.js +0 -146
- package/src/components/charts/feature/expandLegend/singleSelect/constants.js +0 -40
- package/src/components/charts/feature/expandLegend/singleSelect/index.js +0 -170
- package/src/components/charts/feature/expandLegend/singleSelect/item.js +0 -74
- package/src/components/charts/feature/expandLegend/singleSelect/position.js +0 -34
- package/src/components/charts/feature/expandLegend/singleSelect/search.js +0 -76
- package/src/components/charts/feature/expandLegend/singleSelectLegend/constants.js +0 -41
- package/src/components/charts/feature/expandLegend/singleSelectLegend/group.js +0 -116
- package/src/components/charts/feature/expandLegend/singleSelectLegend/index.js +0 -97
- package/src/components/charts/feature/expandLegend/singleSelectLegend/item.js +0 -113
- package/src/components/charts/feature/expandLegend/singleSelectLegend/more.js +0 -40
- package/src/components/charts/feature/expandLegend/singleSelectLegend/scroll.js +0 -33
- package/src/components/charts/feature/expandLegend/tips/constants.js +0 -21
- package/src/components/charts/feature/expandLegend/tips/index.js +0 -168
- package/src/components/charts/feature/fluctuation/index.js +0 -65
- package/src/components/charts/feature/linter/dialog/index.js +0 -111
- package/src/components/charts/feature/linter/index.js +0 -131
- package/src/components/charts/feature/linter/lints/charts/Bar.js +0 -46
- package/src/components/charts/feature/linter/lints/charts/Line.js +0 -31
- package/src/components/charts/feature/linter/lints/charts/Pie.js +0 -39
- package/src/components/charts/feature/linter/lints/charts/Radar.js +0 -38
- package/src/components/charts/feature/linter/lints/charts/index.js +0 -37
- package/src/components/charts/feature/linter/lints/modules/angleAxis.js +0 -47
- package/src/components/charts/feature/linter/lints/modules/color.js +0 -19
- package/src/components/charts/feature/linter/lints/modules/dataZoom.js +0 -52
- package/src/components/charts/feature/linter/lints/modules/index.js +0 -64
- package/src/components/charts/feature/linter/lints/modules/legend.js +0 -64
- package/src/components/charts/feature/linter/lints/modules/radar.js +0 -59
- package/src/components/charts/feature/linter/lints/modules/radiusAxis.js +0 -49
- package/src/components/charts/feature/linter/lints/modules/title.js +0 -44
- package/src/components/charts/feature/linter/lints/modules/tooltip.js +0 -29
- package/src/components/charts/feature/linter/lints/modules/util.js +0 -97
- package/src/components/charts/feature/linter/lints/modules/xAxis.js +0 -52
- package/src/components/charts/feature/linter/lints/modules/yAxis.js +0 -52
- package/src/components/charts/feature/mediaScreen/index.js +0 -95
- package/src/components/charts/feature/mini/miniBarChart.js +0 -58
- package/src/components/charts/feature/mini/miniCircleProcessChart.js +0 -32
- package/src/components/charts/feature/mini/miniLineChart.js +0 -58
- package/src/components/charts/feature/mini/miniProcessChart.js +0 -64
- package/src/components/charts/feature/nodeRender/angular-node.js +0 -100
- package/src/components/charts/feature/nodeRender/index.js +0 -31
- package/src/components/charts/feature/nodeRender/react-node.js +0 -83
- package/src/components/charts/feature/nodeRender/vue-node.js +0 -109
- package/src/components/charts/feature/performance/lttb.js +0 -85
- package/src/components/charts/feature/readScreen/index.js +0 -19
- package/src/components/charts/feature/token/color/bpit/dark.js +0 -67
- package/src/components/charts/feature/token/color/bpit/index.js +0 -20
- package/src/components/charts/feature/token/color/bpit/light.js +0 -66
- package/src/components/charts/feature/token/color/cloud/board-dark.js +0 -260
- package/src/components/charts/feature/token/color/cloud/board.js +0 -276
- package/src/components/charts/feature/token/color/cloud/dark.js +0 -78
- package/src/components/charts/feature/token/color/cloud/index.js +0 -20
- package/src/components/charts/feature/token/color/cloud/light.js +0 -77
- package/src/components/charts/feature/token/color/hdesign/board.js +0 -204
- package/src/components/charts/feature/token/color/hdesign/dark.js +0 -78
- package/src/components/charts/feature/token/color/hdesign/index.js +0 -20
- package/src/components/charts/feature/token/color/hdesign/light.js +0 -79
- package/src/components/charts/feature/token/color/ict/board.js +0 -190
- package/src/components/charts/feature/token/color/ict/dark.js +0 -61
- package/src/components/charts/feature/token/color/ict/index.js +0 -20
- package/src/components/charts/feature/token/color/ict/light.js +0 -62
- package/src/components/charts/feature/token/color/index.js +0 -29
- package/src/components/charts/feature/token/color/util.js +0 -42
- package/src/components/charts/feature/token/factory/chartsToken/AreaChart.js +0 -20
- package/src/components/charts/feature/token/factory/chartsToken/AssembleBubbleChart.js +0 -26
- package/src/components/charts/feature/token/factory/chartsToken/BarChart.js +0 -27
- package/src/components/charts/feature/token/factory/chartsToken/BoxplotChart.js +0 -27
- package/src/components/charts/feature/token/factory/chartsToken/BubbleChart.js +0 -22
- package/src/components/charts/feature/token/factory/chartsToken/BulletChart.js +0 -23
- package/src/components/charts/feature/token/factory/chartsToken/CandlestickChart.js +0 -20
- package/src/components/charts/feature/token/factory/chartsToken/ChartCard.js +0 -33
- package/src/components/charts/feature/token/factory/chartsToken/CircleProcessChart.js +0 -23
- package/src/components/charts/feature/token/factory/chartsToken/FunnelChart.js +0 -26
- package/src/components/charts/feature/token/factory/chartsToken/GaugeChart.js +0 -27
- package/src/components/charts/feature/token/factory/chartsToken/HeatMapChart.js +0 -21
- package/src/components/charts/feature/token/factory/chartsToken/HillChart.js +0 -21
- package/src/components/charts/feature/token/factory/chartsToken/JadeJueChart.js +0 -28
- package/src/components/charts/feature/token/factory/chartsToken/LineChart.js +0 -36
- package/src/components/charts/feature/token/factory/chartsToken/LiquidfillChart.js +0 -22
- package/src/components/charts/feature/token/factory/chartsToken/PieChart.js +0 -49
- package/src/components/charts/feature/token/factory/chartsToken/PolarBarChart.js +0 -22
- package/src/components/charts/feature/token/factory/chartsToken/ProcessChart.js +0 -40
- package/src/components/charts/feature/token/factory/chartsToken/RadarChart.js +0 -36
- package/src/components/charts/feature/token/factory/chartsToken/RegionChart.js +0 -20
- package/src/components/charts/feature/token/factory/chartsToken/SankeyChart.js +0 -22
- package/src/components/charts/feature/token/factory/chartsToken/ScatterChart.js +0 -21
- package/src/components/charts/feature/token/factory/chartsToken/SunburstChart.js +0 -22
- package/src/components/charts/feature/token/factory/chartsToken/TimelineChart.js +0 -21
- package/src/components/charts/feature/token/factory/chartsToken/TreeChart.js +0 -21
- package/src/components/charts/feature/token/factory/chartsToken/WaveChart.js +0 -23
- package/src/components/charts/feature/token/factory/chartsToken/WordCloudChart.js +0 -21
- package/src/components/charts/feature/token/factory/chartsToken/index.js +0 -79
- package/src/components/charts/feature/token/factory/getAliasToken.js +0 -41
- package/src/components/charts/feature/token/factory/getExportColors.js +0 -46
- package/src/components/charts/feature/token/factory/getGlobalToken.js +0 -25
- package/src/components/charts/feature/token/factory/getModelToken.js +0 -389
- package/src/components/charts/feature/token/factory/getSceneToken.js +0 -41
- package/src/components/charts/feature/token/factory/globalToken/border.js +0 -21
- package/src/components/charts/feature/token/factory/globalToken/borderRadius.js +0 -22
- package/src/components/charts/feature/token/factory/globalToken/font.js +0 -26
- package/src/components/charts/feature/token/factory/globalToken/index.js +0 -28
- package/src/components/charts/feature/token/factory/globalToken/lineType.js +0 -19
- package/src/components/charts/feature/token/factory/globalToken/size.js +0 -22
- package/src/components/charts/feature/token/factory/globalToken/space.js +0 -25
- package/src/components/charts/feature/token/factory/index.js +0 -39
- package/src/components/charts/feature/token/factory/mergeToken.js +0 -72
- package/src/components/charts/feature/token/index.js +0 -176
- package/src/components/charts/feature/token/readme.md +0 -11
- package/src/components/charts/feature/token/theme/bpit/index.js +0 -19
- package/src/components/charts/feature/token/theme/cloud/getAliasToken.js +0 -247
- package/src/components/charts/feature/token/theme/cloud/getSceneToken.js +0 -74
- package/src/components/charts/feature/token/theme/cloud/index.js +0 -19
- package/src/components/charts/feature/token/theme/hdesign/getAliasToken.js +0 -249
- package/src/components/charts/feature/token/theme/hdesign/getSceneToken.js +0 -75
- package/src/components/charts/feature/token/theme/hdesign/index.js +0 -19
- package/src/components/charts/feature/token/theme/ict/getAliasToken.js +0 -249
- package/src/components/charts/feature/token/theme/ict/getSceneToken.js +0 -72
- package/src/components/charts/feature/token/theme/ict/index.js +0 -19
- package/src/components/charts/feature/wcag/index.js +0 -335
- package/src/components/charts/feature/xss/index.js +0 -52
- package/src/components/charts/framework/charts/CircleArcChart/index.js +0 -142
- package/src/components/charts/framework/charts/CircleChart/index.js +0 -140
- package/src/components/charts/framework/charts/CustomizeChart/index.js +0 -166
- package/src/components/charts/framework/charts/ForceDirectedChart/index.js +0 -141
- package/src/components/charts/framework/charts/ForceDirectedChart/initDom.js +0 -20
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/Node.js +0 -148
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/center.js +0 -71
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/collide.js +0 -151
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/constant.js +0 -17
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/dispatch.js +0 -95
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/index.js +0 -19
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/jiggle.js +0 -16
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/lcg.js +0 -23
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/link.js +0 -128
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/manyBody.js +0 -127
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/quadtree.js +0 -393
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/radial.js +0 -68
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/simulation.js +0 -171
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/timer.js +0 -121
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/x.js +0 -52
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/y.js +0 -52
- package/src/components/charts/framework/charts/GridChart/index.js +0 -174
- package/src/components/charts/framework/charts/LinearArcChart/index.js +0 -143
- package/src/components/charts/framework/charts/MindmapChart/index.js +0 -166
- package/src/components/charts/framework/charts/MindmapChart/index.less +0 -85
- package/src/components/charts/framework/core/Base.js +0 -53
- package/src/components/charts/framework/core/Relation.js +0 -78
- package/src/components/charts/framework/module/animation/Animate.js +0 -434
- package/src/components/charts/framework/module/animation/Animation.js +0 -76
- package/src/components/charts/framework/module/animation/AnimationGroup.js +0 -137
- package/src/components/charts/framework/module/animation/Easing.js +0 -225
- package/src/components/charts/framework/module/animation/Interpolation.js +0 -88
- package/src/components/charts/framework/module/animation/index.js +0 -20
- package/src/components/charts/framework/module/arrow/Manager.js +0 -133
- package/src/components/charts/framework/module/arrow/index.js +0 -96
- package/src/components/charts/framework/module/canvas/grid.js +0 -288
- package/src/components/charts/framework/module/canvas/index.js +0 -434
- package/src/components/charts/framework/module/canvas/index.less +0 -102
- package/src/components/charts/framework/module/canvas/initDom.js +0 -66
- package/src/components/charts/framework/module/canvas/tool.js +0 -62
- package/src/components/charts/framework/module/connector/Manager.js +0 -103
- package/src/components/charts/framework/module/connector/index.js +0 -99
- package/src/components/charts/framework/module/connector/index.less +0 -36
- package/src/components/charts/framework/module/connector/type/dot.js +0 -21
- package/src/components/charts/framework/module/connector/type/expand.js +0 -211
- package/src/components/charts/framework/module/contextmenu/index.js +0 -149
- package/src/components/charts/framework/module/contextmenu/index.less +0 -40
- package/src/components/charts/framework/module/data/Manager.js +0 -56
- package/src/components/charts/framework/module/data/index.js +0 -0
- package/src/components/charts/framework/module/legend/Item.js +0 -218
- package/src/components/charts/framework/module/legend/constants.js +0 -14
- package/src/components/charts/framework/module/legend/getSymbol.js +0 -86
- package/src/components/charts/framework/module/legend/index.js +0 -119
- package/src/components/charts/framework/module/legend/util.js +0 -81
- package/src/components/charts/framework/module/line/Animation.js +0 -125
- package/src/components/charts/framework/module/line/Manager.js +0 -299
- package/src/components/charts/framework/module/line/Tag.js +0 -61
- package/src/components/charts/framework/module/line/bufferRender.js +0 -74
- package/src/components/charts/framework/module/line/cross/pathPoints.js +0 -233
- package/src/components/charts/framework/module/line/cross/vectorUtil.js +0 -67
- package/src/components/charts/framework/module/line/customize.js +0 -29
- package/src/components/charts/framework/module/line/index.js +0 -260
- package/src/components/charts/framework/module/line/index.less +0 -24
- package/src/components/charts/framework/module/line/type/Bezier.js +0 -90
- package/src/components/charts/framework/module/line/type/Circle.js +0 -38
- package/src/components/charts/framework/module/line/type/Direct.js +0 -23
- package/src/components/charts/framework/module/line/type/Ellipse.js +0 -88
- package/src/components/charts/framework/module/line/type/Round.js +0 -245
- package/src/components/charts/framework/module/lineLayout/CircleShape/calculate.js +0 -71
- package/src/components/charts/framework/module/lineLayout/CircleShape/index.js +0 -32
- package/src/components/charts/framework/module/lineLayout/CircleShape/init.js +0 -34
- package/src/components/charts/framework/module/lineLayout/RectShape/calculate.js +0 -174
- package/src/components/charts/framework/module/lineLayout/RectShape/index.js +0 -43
- package/src/components/charts/framework/module/lineLayout/RectShape/init.js +0 -79
- package/src/components/charts/framework/module/lineLayout/RectShape/sharing.js +0 -57
- package/src/components/charts/framework/module/lineLayout/index.js +0 -30
- package/src/components/charts/framework/module/node/Manager.js +0 -190
- package/src/components/charts/framework/module/node/bufferRender.js +0 -73
- package/src/components/charts/framework/module/node/convertData/index.js +0 -24
- package/src/components/charts/framework/module/node/convertData/returnSelf.js +0 -16
- package/src/components/charts/framework/module/node/convertData/transform.js +0 -24
- package/src/components/charts/framework/module/node/convertData/treeToLink.js +0 -36
- package/src/components/charts/framework/module/node/index.js +0 -187
- package/src/components/charts/framework/module/nodeLayout/circle/excute.js +0 -270
- package/src/components/charts/framework/module/nodeLayout/circle/index.js +0 -24
- package/src/components/charts/framework/module/nodeLayout/customize/index.js +0 -16
- package/src/components/charts/framework/module/nodeLayout/defaults/excute.js +0 -27
- package/src/components/charts/framework/module/nodeLayout/defaults/index.js +0 -20
- package/src/components/charts/framework/module/nodeLayout/grid/excute.js +0 -392
- package/src/components/charts/framework/module/nodeLayout/grid/index.js +0 -20
- package/src/components/charts/framework/module/nodeLayout/index.js +0 -27
- package/src/components/charts/framework/module/nodeLayout/linearArc/index.js +0 -34
- package/src/components/charts/framework/module/nodeLayout/nonLayeredTidyTree/NodeBox.js +0 -165
- package/src/components/charts/framework/module/nodeLayout/nonLayeredTidyTree/algorithm.js +0 -261
- package/src/components/charts/framework/module/nodeLayout/nonLayeredTidyTree/index.js +0 -278
- package/src/components/charts/framework/module/readme.js +0 -127
- package/src/components/charts/index.js +0 -65
- package/src/components/charts/index.less +0 -29
- package/src/components/charts/option/PolarSys/index.js +0 -43
- package/src/components/charts/option/RectSys/index.js +0 -58
- package/src/components/charts/option/base/index.js +0 -25
- package/src/components/charts/option/config/angleAxis/base.js +0 -56
- package/src/components/charts/option/config/angleAxis/index.js +0 -43
- package/src/components/charts/option/config/animation/index.js +0 -64
- package/src/components/charts/option/config/datazoom/base.js +0 -123
- package/src/components/charts/option/config/datazoom/index.js +0 -61
- package/src/components/charts/option/config/grid/base.js +0 -22
- package/src/components/charts/option/config/grid/index.js +0 -32
- package/src/components/charts/option/config/legend/base.js +0 -80
- package/src/components/charts/option/config/legend/icon.js +0 -21
- package/src/components/charts/option/config/legend/index.js +0 -63
- package/src/components/charts/option/config/legend/itemStyle.js +0 -17
- package/src/components/charts/option/config/legend/ldata.js +0 -29
- package/src/components/charts/option/config/legend/pageIcon.js +0 -54
- package/src/components/charts/option/config/legend/position.js +0 -19
- package/src/components/charts/option/config/legend/size.js +0 -17
- package/src/components/charts/option/config/legend/textStyle.js +0 -16
- package/src/components/charts/option/config/mark/index.js +0 -74
- package/src/components/charts/option/config/polar/base.js +0 -30
- package/src/components/charts/option/config/polar/index.js +0 -36
- package/src/components/charts/option/config/polarTitle/base.js +0 -40
- package/src/components/charts/option/config/polarTitle/index.js +0 -52
- package/src/components/charts/option/config/polarTitle/subtextStyle.js +0 -21
- package/src/components/charts/option/config/polarTitle/textStyle.js +0 -22
- package/src/components/charts/option/config/radiusAxis/base.js +0 -55
- package/src/components/charts/option/config/radiusAxis/index.js +0 -41
- package/src/components/charts/option/config/rectTitle/base.js +0 -31
- package/src/components/charts/option/config/rectTitle/index.js +0 -53
- package/src/components/charts/option/config/toolbox/base.js +0 -42
- package/src/components/charts/option/config/toolbox/index.js +0 -12
- package/src/components/charts/option/config/tooltip/axisPointer.js +0 -31
- package/src/components/charts/option/config/tooltip/base.js +0 -62
- package/src/components/charts/option/config/tooltip/formatter.js +0 -64
- package/src/components/charts/option/config/tooltip/index.js +0 -41
- package/src/components/charts/option/config/visualMap/index.js +0 -91
- package/src/components/charts/option/config/xAxis/axisLabel.js +0 -35
- package/src/components/charts/option/config/xAxis/axisLine.js +0 -29
- package/src/components/charts/option/config/xAxis/axisMargin.js +0 -31
- package/src/components/charts/option/config/xAxis/base.js +0 -66
- package/src/components/charts/option/config/xAxis/boundaryGap.js +0 -17
- package/src/components/charts/option/config/xAxis/index.js +0 -52
- package/src/components/charts/option/config/xAxis/name.js +0 -18
- package/src/components/charts/option/config/xAxis/xdata.js +0 -23
- package/src/components/charts/option/config/xAxis/xkey.js +0 -21
- package/src/components/charts/option/config/yAxis/axisOptimization.js +0 -32
- package/src/components/charts/option/config/yAxis/base.js +0 -59
- package/src/components/charts/option/config/yAxis/index.js +0 -68
- package/src/components/charts/option/config/yAxis/ydata.js +0 -28
- package/src/components/charts/option/init/index.js +0 -204
- package/src/components/charts/register.js +0 -178
- package/src/components/charts/theme.js +0 -62
- package/src/components/charts/util/Sequence.js +0 -21
- package/src/components/charts/util/centerDom.js +0 -92
- package/src/components/charts/util/cloneDeep.js +0 -29
- package/src/components/charts/util/color.js +0 -193
- package/src/components/charts/util/constants.js +0 -125
- package/src/components/charts/util/convert.js +0 -49
- package/src/components/charts/util/debounce.js +0 -24
- package/src/components/charts/util/defendXSS.js +0 -81
- package/src/components/charts/util/dom.js +0 -90
- package/src/components/charts/util/equal.js +0 -62
- package/src/components/charts/util/event.js +0 -25
- package/src/components/charts/util/hashMap.js +0 -111
- package/src/components/charts/util/init/insert.js +0 -165
- package/src/components/charts/util/math.js +0 -183
- package/src/components/charts/util/merge.js +0 -78
- package/src/components/charts/util/paint.js +0 -98
- package/src/components/charts/util/sort/max.js +0 -64
- package/src/components/charts/util/sort/min.js +0 -64
- package/src/components/charts/util/throttle.js +0 -34
- package/src/components/charts/util/tips.js +0 -25
- package/src/components/charts/util/type.js +0 -46
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ebiz/designer-components",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.49",
|
4
4
|
"private": false,
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -17,9 +17,6 @@
|
|
17
17
|
"preview": "vite preview"
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
|
-
"@opentiny/vue": "~3.20.0",
|
21
|
-
"@opentiny/vue-design-smb": "~3.20.0",
|
22
|
-
"@opentiny/vue-icon": "~3.20.0",
|
23
20
|
"axios": "^1.8.1",
|
24
21
|
"echarts": "^5.6.0",
|
25
22
|
"tdesign-vue-next": "^1.12.0",
|
@@ -5,7 +5,7 @@
|
|
5
5
|
*/
|
6
6
|
|
7
7
|
import axios from 'axios'
|
8
|
-
import { TinyNotify } from '@opentiny/vue'
|
8
|
+
// import { TinyNotify } from '@opentiny/vue'
|
9
9
|
// 从环境变量获取API基础URL
|
10
10
|
const API_BASE_URL = window.location.origin + '/api'
|
11
11
|
|
@@ -69,58 +69,58 @@ axiosInstance.interceptors.response.use(
|
|
69
69
|
|
70
70
|
switch (status) {
|
71
71
|
case 401:
|
72
|
-
TinyNotify({
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
})
|
72
|
+
// TinyNotify({
|
73
|
+
// type: 'warning',
|
74
|
+
// title: '未授权',
|
75
|
+
// message: '您无权限访问,请授权后重试',
|
76
|
+
// position: 'top-right',
|
77
|
+
// duration: 2000
|
78
|
+
// })
|
79
79
|
break
|
80
80
|
case 403:
|
81
|
-
TinyNotify({
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
})
|
81
|
+
// TinyNotify({
|
82
|
+
// type: 'warning',
|
83
|
+
// title: '权限不足',
|
84
|
+
// message: '禁止访问,权限不足',
|
85
|
+
// position: 'top-right',
|
86
|
+
// duration: 2000
|
87
|
+
// })
|
88
88
|
break
|
89
89
|
case 404:
|
90
|
-
TinyNotify({
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
})
|
90
|
+
// TinyNotify({
|
91
|
+
// type: 'warning',
|
92
|
+
// title: '404',
|
93
|
+
// message: '请求的资源不存在',
|
94
|
+
// position: 'top-right',
|
95
|
+
// duration: 2000
|
96
|
+
// })
|
97
97
|
break
|
98
98
|
case 500:
|
99
|
-
TinyNotify({
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
})
|
99
|
+
// TinyNotify({
|
100
|
+
// type: 'warning',
|
101
|
+
// title: '错误',
|
102
|
+
// message: '服务器内部错误',
|
103
|
+
// position: 'top-right',
|
104
|
+
// duration: 2000
|
105
|
+
// })
|
106
106
|
break
|
107
107
|
default:
|
108
|
-
TinyNotify({
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
})
|
108
|
+
// TinyNotify({
|
109
|
+
// type: 'warning',
|
110
|
+
// title: '请求失败',
|
111
|
+
// message: error.message,
|
112
|
+
// position: 'top-right',
|
113
|
+
// duration: 2000
|
114
|
+
// })
|
115
115
|
}
|
116
116
|
} else {
|
117
|
-
TinyNotify({
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
})
|
117
|
+
// TinyNotify({
|
118
|
+
// type: 'error',
|
119
|
+
// title: '网络错误',
|
120
|
+
// message: error.message,
|
121
|
+
// position: 'top-right',
|
122
|
+
// duration: 2000
|
123
|
+
// })
|
124
124
|
// message.error('网络错误,请检查您的网络连接');
|
125
125
|
}
|
126
126
|
|
@@ -1,30 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Import all chart less files
|
3
|
-
*/
|
4
|
-
|
5
|
-
// Import main charts less file
|
6
|
-
@import '../../../components/charts/index.less';
|
7
|
-
|
8
|
-
// Import chart features
|
9
|
-
@import '../../../components/charts/feature/drag/index.less';
|
10
|
-
@import '../../../components/charts/feature/card/index.less';
|
11
|
-
@import '../../../components/charts/feature/expandLegend/index.less';
|
12
|
-
|
13
|
-
// Import chart components
|
14
|
-
@import '../../../components/charts/components/FlowChart/index.less';
|
15
|
-
@import '../../../components/charts/components/GanttChart/index.less';
|
16
|
-
@import '../../../components/charts/components/HoneycombChart/index.less';
|
17
|
-
@import '../../../components/charts/components/OrganizationChart/index.less';
|
18
|
-
@import '../../../components/charts/components/RiverChart/index.less';
|
19
|
-
@import '../../../components/charts/components/SnowFlakeChart/index.less';
|
20
|
-
@import '../../../components/charts/components/TerraceChart/index.less';
|
21
|
-
@import '../../../components/charts/components/TimelineChart/index.less';
|
22
|
-
@import '../../../components/charts/components/WaveChart/index.less';
|
23
|
-
@import '../../../components/charts/components/MilestoneChart/index.less';
|
24
|
-
|
25
|
-
// Import chart framework modules
|
26
|
-
@import '../../../components/charts/framework/charts/MindmapChart/index.less';
|
27
|
-
@import '../../../components/charts/framework/module/line/index.less';
|
28
|
-
@import '../../../components/charts/framework/module/connector/index.less';
|
29
|
-
@import '../../../components/charts/framework/module/canvas/index.less';
|
30
|
-
@import '../../../components/charts/framework/module/contextmenu/index.less';
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
4
|
-
|
5
|
-
</t-button>
|
6
|
-
</tiny-tooltip>
|
2
|
+
<t-button :disabled="disabled || loading" :theme="type" :size="size" @click="click">
|
3
|
+
<slot>{{ text }}</slot>
|
4
|
+
</t-button>
|
7
5
|
</template>
|
8
6
|
|
9
7
|
|
@@ -17,7 +15,6 @@ export default {
|
|
17
15
|
|
18
16
|
import { ref, reactive, computed, toRef, toRefs } from 'vue';
|
19
17
|
import { Button as TButton } from 'tdesign-vue-next';
|
20
|
-
import { TinyTooltip } from '@opentiny/vue';
|
21
18
|
import dataService from '../apiService/simpleDataService';
|
22
19
|
|
23
20
|
const props = defineProps({
|
@@ -0,0 +1,327 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="ebiz-approval">
|
3
|
+
<t-card>
|
4
|
+
<!-- 审批人部分 -->
|
5
|
+
<div class="approval-section">
|
6
|
+
<div class="approval-title">审批流程</div>
|
7
|
+
|
8
|
+
<div class="section-header">
|
9
|
+
<t-icon name="user" class="section-icon" />
|
10
|
+
<span class="section-title">
|
11
|
+
审批人
|
12
|
+
<span class="required" v-if="required">*</span>
|
13
|
+
</span>
|
14
|
+
</div>
|
15
|
+
<div class="approver-list">
|
16
|
+
<div class="approver-row">
|
17
|
+
<template v-for="(approver, index) in approvers" :key="index">
|
18
|
+
<div class="approver-item">
|
19
|
+
<t-avatar :image="approver.avatar" size="small">
|
20
|
+
{{ getAvatarText(approver.name) }}
|
21
|
+
</t-avatar>
|
22
|
+
<div class="user-info" :class="{ 'no-delete': required && approvers.length <= 1 }">
|
23
|
+
<span class="approver-name">{{ approver.name }}</span>
|
24
|
+
<t-icon v-if="!required || approvers.length > 1" name="close" size="16px"
|
25
|
+
@click="removeEmployee(approver, 'approver')" />
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<t-icon v-if="index < approvers.length - 1" name="chevron-right" class="arrow-icon" />
|
29
|
+
</template>
|
30
|
+
<t-button theme="default" variant="text" @click="handleAddApprover">
|
31
|
+
<template #icon>
|
32
|
+
<t-icon name="add" />
|
33
|
+
</template>
|
34
|
+
添加审批人
|
35
|
+
</t-button>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<!-- 抄送人部分 -->
|
41
|
+
<div v-if="showCC" class="cc-section">
|
42
|
+
<div class="section-header">
|
43
|
+
<t-icon name="user-add" class="section-icon" />
|
44
|
+
<span class="section-title">抄送人</span>
|
45
|
+
</div>
|
46
|
+
<div class="cc-list">
|
47
|
+
<div class="cc-row">
|
48
|
+
<template v-for="(cc, index) in ccEmployees" :key="index">
|
49
|
+
<div class="cc-item">
|
50
|
+
<t-avatar :image="cc.avatar" size="small">
|
51
|
+
{{ getAvatarText(cc.name) }}
|
52
|
+
</t-avatar>
|
53
|
+
<div class="user-info">
|
54
|
+
<span class="cc-name">{{ cc.name }}</span>
|
55
|
+
<t-icon name="close" size="16px" @click="removeEmployee(cc, 'cc')" />
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
</template>
|
59
|
+
<t-button theme="default" variant="text" @click="handleAddCC">
|
60
|
+
<template #icon>
|
61
|
+
<t-icon name="add" />
|
62
|
+
</template>
|
63
|
+
添加抄送人
|
64
|
+
</t-button>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
</t-card>
|
69
|
+
|
70
|
+
<!-- 审批人选择弹窗 -->
|
71
|
+
<ebiz-employee-selector :showDefault="false" v-model:visible="showApproverSelector" v-model:value="tempApprover"
|
72
|
+
@change="handleApproverSelect" :single="true" />
|
73
|
+
<ebiz-employee-selector :showDefault="false" v-model:visible="showCCSelector" v-model:value="selectedCC" @change="handleCCSelect"
|
74
|
+
/>
|
75
|
+
</div>
|
76
|
+
</template>
|
77
|
+
|
78
|
+
<script setup lang="ts">
|
79
|
+
import { ref, watch, computed } from 'vue'
|
80
|
+
import { Icon as TIcon, Avatar as TAvatar, Card as TCard, Button as TButton, Dialog as TDialog } from 'tdesign-vue-next'
|
81
|
+
import EbizEmployeeSelector from './EbizEmployeeSelector.vue'
|
82
|
+
import dataService from '../apiService/simpleDataService'
|
83
|
+
|
84
|
+
interface Employee {
|
85
|
+
id: string | number
|
86
|
+
name: string
|
87
|
+
no: string
|
88
|
+
avatar?: string
|
89
|
+
}
|
90
|
+
|
91
|
+
interface Props {
|
92
|
+
approverList: (string | number)[] // 选中的审批人ID列表
|
93
|
+
ccList: (string | number)[] // 选中的抄送人ID列表
|
94
|
+
key: string // 审批流程的唯一标识
|
95
|
+
id: number // 审批流程的编号
|
96
|
+
required: boolean // 是否必填
|
97
|
+
type?: 'organization' | 'role' | 'all' // 查询类型
|
98
|
+
value?: string // 查询值
|
99
|
+
showRootOrg?: boolean // 是否显示顶层组织
|
100
|
+
childDeptEnable?: boolean // 是否包含子部门
|
101
|
+
showCC?: boolean // 是否显示抄送人模块
|
102
|
+
}
|
103
|
+
|
104
|
+
const props = withDefaults(defineProps<Props>(), {
|
105
|
+
approverList: () => [],
|
106
|
+
ccList: () => [],
|
107
|
+
key: '',
|
108
|
+
id: 0,
|
109
|
+
required: true,
|
110
|
+
showRootOrg: true,
|
111
|
+
childDeptEnable: false,
|
112
|
+
showCC: true
|
113
|
+
})
|
114
|
+
|
115
|
+
const emit = defineEmits(['update:approverList', 'update:ccList', 'change'])
|
116
|
+
|
117
|
+
const fetchHistory = () => {
|
118
|
+
console.log(props)
|
119
|
+
dataService.fetch({
|
120
|
+
bussinessKey: props.id?props.id.toString():null,
|
121
|
+
type: props.key
|
122
|
+
}, {}, '/tasks/process/detail').then(res=>{
|
123
|
+
selectedApprover.value = res?.variables?.form?.approverList ?? [];
|
124
|
+
selectedCC.value = res?.variables?.form?.ccList ?? [];
|
125
|
+
})
|
126
|
+
}
|
127
|
+
|
128
|
+
|
129
|
+
// 状态变量
|
130
|
+
const showApproverSelector = ref(false)
|
131
|
+
const showCCSelector = ref(false)
|
132
|
+
const employeeList = ref<Employee[]>([])
|
133
|
+
const loading = ref(false)
|
134
|
+
const tempApprover = ref([])
|
135
|
+
// 计算属性:已选审批人列表
|
136
|
+
const approvers = ref<Employee[]>([])
|
137
|
+
|
138
|
+
// 计算属性:已选抄送人列表
|
139
|
+
const ccEmployees = ref<Employee[]>([])
|
140
|
+
|
141
|
+
// 计算属性:审批人选择器的值
|
142
|
+
const selectedApprover = computed({
|
143
|
+
get: () => props.approverList,
|
144
|
+
set: (val) => {
|
145
|
+
approvers.value = val.map(id => employeeList.value.find(emp => emp.id == id)).filter(Boolean)
|
146
|
+
console.log(approvers.value,val)
|
147
|
+
emit('change', {
|
148
|
+
type: 'approver',
|
149
|
+
ids: val,
|
150
|
+
employees: approvers.value
|
151
|
+
})
|
152
|
+
emit('update:approverList', val)
|
153
|
+
}
|
154
|
+
})
|
155
|
+
|
156
|
+
// 计算属性:抄送人选择器的值
|
157
|
+
const selectedCC = computed({
|
158
|
+
get: () => props.ccList,
|
159
|
+
set: (val) => {
|
160
|
+
|
161
|
+
ccEmployees.value = val.map(id => employeeList.value.find(emp => emp.id == id)).filter(Boolean)
|
162
|
+
console.log(ccEmployees.value,161,val)
|
163
|
+
emit('change', {
|
164
|
+
type: 'cc',
|
165
|
+
ids: val,
|
166
|
+
employees: ccEmployees.value
|
167
|
+
})
|
168
|
+
emit('update:ccList', val)
|
169
|
+
}
|
170
|
+
})
|
171
|
+
|
172
|
+
// 获取头像文字
|
173
|
+
const getAvatarText = (name: string) => {
|
174
|
+
return name ? name.charAt(0) : ''
|
175
|
+
}
|
176
|
+
|
177
|
+
// 获取员工列表
|
178
|
+
const fetchEmployeeList = async () => {
|
179
|
+
loading.value = true
|
180
|
+
try {
|
181
|
+
const response = await dataService.fetch(
|
182
|
+
{},
|
183
|
+
{},
|
184
|
+
'/process/userList'
|
185
|
+
)
|
186
|
+
employeeList.value = response || [];
|
187
|
+
if(props.id) {
|
188
|
+
fetchHistory();
|
189
|
+
}
|
190
|
+
} catch (error) {
|
191
|
+
employeeList.value = []
|
192
|
+
} finally {
|
193
|
+
loading.value = false
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
// 处理审批人选择
|
198
|
+
const handleApproverSelect = (data: []) => {
|
199
|
+
console.log(data,195)
|
200
|
+
if(!data[0]) return;
|
201
|
+
if(selectedApprover.value.includes(data[0])) {
|
202
|
+
let index = selectedApprover.value.indexOf(data[0]);
|
203
|
+
selectedApprover.value.splice(index, 1);
|
204
|
+
};
|
205
|
+
selectedApprover.value = [...selectedApprover.value, data[0]];
|
206
|
+
console.log(selectedApprover.value,200)
|
207
|
+
tempApprover.value = [];
|
208
|
+
}
|
209
|
+
|
210
|
+
// 处理抄送人选择
|
211
|
+
const handleCCSelect = (data: []) => {
|
212
|
+
selectedCC.value = data;
|
213
|
+
}
|
214
|
+
|
215
|
+
// 移除人员
|
216
|
+
const removeEmployee = (employee: Employee, type: 'approver' | 'cc') => {
|
217
|
+
if (type === 'approver') {
|
218
|
+
if (props.required && props.approverList.length <= 1) {
|
219
|
+
return
|
220
|
+
}
|
221
|
+
const newList = props.approverList.filter(id => id !== employee.id);
|
222
|
+
selectedApprover.value = newList;
|
223
|
+
} else {
|
224
|
+
const newList = props.ccList.filter(id => id !== employee.id);
|
225
|
+
selectedCC.value = newList;
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
// 处理添加审批人
|
230
|
+
const handleAddApprover = () => {
|
231
|
+
showApproverSelector.value = true
|
232
|
+
}
|
233
|
+
|
234
|
+
// 处理添加抄送人
|
235
|
+
const handleAddCC = () => {
|
236
|
+
showCCSelector.value = true
|
237
|
+
}
|
238
|
+
|
239
|
+
// 初始化时获取员工列表
|
240
|
+
fetchEmployeeList()
|
241
|
+
|
242
|
+
// 监听查询条件变化
|
243
|
+
watch([() => props.type, () => props.value, () => props.showRootOrg, () => props.childDeptEnable], () => {
|
244
|
+
fetchEmployeeList()
|
245
|
+
})
|
246
|
+
</script>
|
247
|
+
|
248
|
+
<style lang="less" scoped>
|
249
|
+
.ebiz-approval {
|
250
|
+
.approval-section {
|
251
|
+
margin-bottom: 24px;
|
252
|
+
}
|
253
|
+
|
254
|
+
.approval-title {
|
255
|
+
font-size: 16px;
|
256
|
+
font-weight: 500;
|
257
|
+
margin-bottom: 16px;
|
258
|
+
}
|
259
|
+
|
260
|
+
.section-header {
|
261
|
+
display: flex;
|
262
|
+
align-items: center;
|
263
|
+
margin-bottom: 16px;
|
264
|
+
|
265
|
+
.section-icon {
|
266
|
+
margin-right: 8px;
|
267
|
+
}
|
268
|
+
|
269
|
+
.section-title {
|
270
|
+
font-size: 14px;
|
271
|
+
color: var(--td-text-color-primary);
|
272
|
+
|
273
|
+
.required {
|
274
|
+
color: var(--td-error-color);
|
275
|
+
margin-left: 4px;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
}
|
279
|
+
|
280
|
+
.approver-list,
|
281
|
+
.cc-list {
|
282
|
+
.approver-row,
|
283
|
+
.cc-row {
|
284
|
+
display: flex;
|
285
|
+
align-items: center;
|
286
|
+
flex-wrap: wrap;
|
287
|
+
gap: 8px;
|
288
|
+
}
|
289
|
+
|
290
|
+
.approver-item,
|
291
|
+
.cc-item {
|
292
|
+
display: flex;
|
293
|
+
align-items: center;
|
294
|
+
padding: 4px 8px;
|
295
|
+
background: var(--td-bg-color-container);
|
296
|
+
border: 1px solid var(--td-component-border);
|
297
|
+
border-radius: 3px;
|
298
|
+
|
299
|
+
.user-info {
|
300
|
+
margin-left: 8px;
|
301
|
+
display: flex;
|
302
|
+
align-items: center;
|
303
|
+
gap: 8px;
|
304
|
+
cursor: pointer;
|
305
|
+
user-select: none;
|
306
|
+
&.no-delete {
|
307
|
+
margin-right: 0;
|
308
|
+
}
|
309
|
+
}
|
310
|
+
|
311
|
+
.approver-name,
|
312
|
+
.cc-name {
|
313
|
+
font-size: 14px;
|
314
|
+
color: var(--td-text-color-primary);
|
315
|
+
}
|
316
|
+
}
|
317
|
+
|
318
|
+
.arrow-icon {
|
319
|
+
color: var(--td-text-color-secondary);
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
323
|
+
.cc-section {
|
324
|
+
margin-top: 24px;
|
325
|
+
}
|
326
|
+
}
|
327
|
+
</style>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="ebiz-employee-selector">
|
3
3
|
<!-- 选择框展示区 -->
|
4
|
-
<div style="display: flex; flex-direction: column; align-items: flex-start; gap: 10px;">
|
4
|
+
<div v-if="showDefault" style="display: flex; flex-direction: column; align-items: flex-start; gap: 10px;">
|
5
5
|
<div class="selected-items" v-if="selectedItems && selectedItems.length">
|
6
6
|
<div v-for="(item, index) in selectedItems" :key="index" class="selected-item">
|
7
7
|
<t-avatar v-if="item.avatar" :image="item.avatar" size="small" />
|
@@ -40,7 +40,6 @@
|
|
40
40
|
<div v-if="loading" class="loading-container">
|
41
41
|
<t-loading />
|
42
42
|
</div>
|
43
|
-
|
44
43
|
<!-- 组织架构 -->
|
45
44
|
<div v-show="activeTab === 'organization'" class="tab-content">
|
46
45
|
<t-tree ref="organizationTree" :data="organizationData"
|
@@ -50,7 +49,7 @@
|
|
50
49
|
|
51
50
|
<!-- 角色 -->
|
52
51
|
<div v-show="activeTab === 'role'" class="tab-content">
|
53
|
-
<t-tree ref="roleTree" :data="roleData" :keys="{ label: 'name', value: '
|
52
|
+
<t-tree ref="roleTree" :data="roleData" :keys="{ label: 'name', value: 'code' }" hover activable
|
54
53
|
:active="currentActive" @active="handleActive" />
|
55
54
|
</div>
|
56
55
|
|
@@ -93,7 +92,7 @@
|
|
93
92
|
<t-checkbox v-model="childDeptEnable">包含子部门</t-checkbox>
|
94
93
|
</div>
|
95
94
|
</div>
|
96
|
-
<div class="employee-count">
|
95
|
+
<div class="employee-count" v-if="!single">
|
97
96
|
<t-checkbox v-model="selectAll" @change="handleSelectAll">全选</t-checkbox>
|
98
97
|
<span class="count-info">共 {{ employeeList.length }} 人</span>
|
99
98
|
</div>
|
@@ -181,6 +180,10 @@ import dataService from '../apiService/simpleDataService';
|
|
181
180
|
// 定义组件属性
|
182
181
|
const props = defineProps({
|
183
182
|
// 选中的数据,支持v-model,只存储ID列表
|
183
|
+
showDefault: {
|
184
|
+
type: Boolean,
|
185
|
+
default: true
|
186
|
+
},
|
184
187
|
modelValue: {
|
185
188
|
type: Array,
|
186
189
|
default: () => []
|
@@ -190,6 +193,15 @@ const props = defineProps({
|
|
190
193
|
type: Boolean,
|
191
194
|
default: false
|
192
195
|
},
|
196
|
+
// 是否展示默认标签页
|
197
|
+
showDefaultTab: {
|
198
|
+
type: Boolean,
|
199
|
+
default: true
|
200
|
+
},
|
201
|
+
visible:{
|
202
|
+
type: Boolean,
|
203
|
+
default: true
|
204
|
+
},
|
193
205
|
// 是否包含部门
|
194
206
|
includeDepartment: {
|
195
207
|
type: Boolean,
|
@@ -216,7 +228,15 @@ const props = defineProps({
|
|
216
228
|
const emit = defineEmits(['update:modelValue', 'change']);
|
217
229
|
|
218
230
|
// 内部状态变量
|
219
|
-
const dialogVisible =
|
231
|
+
const dialogVisible = computed({
|
232
|
+
set(val){
|
233
|
+
emit('update:visible', val)
|
234
|
+
},
|
235
|
+
get(){
|
236
|
+
return props.visible
|
237
|
+
}
|
238
|
+
});
|
239
|
+
|
220
240
|
const searchText = ref('');
|
221
241
|
const activeTab = ref(props.defaultTab);
|
222
242
|
const loading = ref(false);
|
@@ -299,6 +319,14 @@ const filteredEmployeeList = computed(() => {
|
|
299
319
|
});
|
300
320
|
});
|
301
321
|
|
322
|
+
const allData = ref([])
|
323
|
+
|
324
|
+
const fetchAllData = async () => {
|
325
|
+
const response = await dataService.fetch({}, {}, '/process/deptList');
|
326
|
+
employeeList.value = response;
|
327
|
+
}
|
328
|
+
fetchAllData()
|
329
|
+
|
302
330
|
// 获取组织架构数据
|
303
331
|
const fetchOrganizationData = async () => {
|
304
332
|
loading.value = true;
|
@@ -310,7 +338,8 @@ const fetchOrganizationData = async () => {
|
|
310
338
|
key: 'organizationalStructure'
|
311
339
|
},"/process/deptList"
|
312
340
|
);
|
313
|
-
organizationData.value = response
|
341
|
+
organizationData.value = response;
|
342
|
+
handleActive(response[0].id, 'organization')
|
314
343
|
// organizationData.value = processOrgData(response.data || []);
|
315
344
|
} catch (error) {
|
316
345
|
MessagePlugin.error({
|
@@ -411,7 +440,6 @@ const fetchSubordinateData = async () => {
|
|
411
440
|
// 根据节点ID获取员工列表
|
412
441
|
const fetchEmployeesByNode = async (nodeId, type, keyword = searchText.value) => {
|
413
442
|
loading.value = true;
|
414
|
-
|
415
443
|
try {
|
416
444
|
const params = {};
|
417
445
|
|
@@ -425,7 +453,7 @@ const fetchEmployeesByNode = async (nodeId, type, keyword = searchText.value) =>
|
|
425
453
|
params.childDeptEnable = childDeptEnable.value;
|
426
454
|
break;
|
427
455
|
case 'role':
|
428
|
-
params.
|
456
|
+
params.roleKeyWork = nodeId[0];
|
429
457
|
break;
|
430
458
|
case 'position':
|
431
459
|
params.positionId = nodeId;
|
@@ -449,19 +477,19 @@ const fetchEmployeesByNode = async (nodeId, type, keyword = searchText.value) =>
|
|
449
477
|
{},
|
450
478
|
'/process/userList'
|
451
479
|
);
|
452
|
-
|
453
480
|
// 获取当前已选择的员工ID列表
|
454
|
-
const selectedIds = new Set(tempSelectedEmployees.value.map(emp => emp.id));
|
481
|
+
const selectedIds = [...new Set(tempSelectedEmployees.value.map(emp => emp.id))];
|
455
482
|
|
456
483
|
// 处理返回数据,添加checked属性,保留已选状态
|
457
484
|
const employees = (response || []).map(emp => ({
|
458
485
|
...emp,
|
459
|
-
checked: selectedIds.
|
486
|
+
checked: selectedIds.includes(emp.id)
|
460
487
|
}));
|
461
488
|
|
462
489
|
employeeList.value = employees;
|
463
490
|
updateSelectAllStatus();
|
464
491
|
} catch (error) {
|
492
|
+
console.log(error,592)
|
465
493
|
MessagePlugin.error({
|
466
494
|
content: '获取员工列表失败',
|
467
495
|
duration: 3000
|
@@ -538,13 +566,13 @@ const handleSelectAll = (checked) => {
|
|
538
566
|
// 处理选中状态变更
|
539
567
|
const handleCheckChange = (item) => {
|
540
568
|
// 单选模式下,取消其他选中
|
541
|
-
if (props.single
|
569
|
+
if (props.single) {
|
542
570
|
employeeList.value.forEach(emp => {
|
543
571
|
if (emp.id !== item.id) {
|
544
572
|
emp.checked = false;
|
545
573
|
}
|
546
574
|
});
|
547
|
-
|
575
|
+
console.log(item,573)
|
548
576
|
// 单选模式下,直接替换tempSelectedEmployees
|
549
577
|
tempSelectedEmployees.value = item.checked ? [item] : [];
|
550
578
|
} else {
|
@@ -639,7 +667,7 @@ const showDialog = () => {
|
|
639
667
|
}
|
640
668
|
|
641
669
|
// 初始化数据
|
642
|
-
initSelector();
|
670
|
+
// initSelector();
|
643
671
|
dialogVisible.value = true;
|
644
672
|
};
|
645
673
|
|
@@ -676,7 +704,14 @@ watch(() => props.modelValue, (newIds, oldIds) => {
|
|
676
704
|
fetchEmployeesByIds(newIds);
|
677
705
|
}
|
678
706
|
}, { immediate: true, deep: true });
|
679
|
-
|
707
|
+
watch(() => props.visible, (val) => {
|
708
|
+
tempSelectedEmployees.value = [];
|
709
|
+
currentActive.value = [];
|
710
|
+
currentNodeName.value = '';
|
711
|
+
if (val) {
|
712
|
+
fetchOrganizationData()
|
713
|
+
}
|
714
|
+
}, { immediate: true })
|
680
715
|
// 监听选中员工变化,更新临时已选列表
|
681
716
|
watch(selectedEmployees, (newVal) => {
|
682
717
|
// 更新临时选中列表,保留之前不在当前列表中的已选员工
|