@@ -1927,6 +1972,30 @@
+ -
+
+
热力图
+ #iconrelitu
+
+
+ -
+
+
恢复备份
+ #iconhuifubeifen
+
+
+ -
+
+
撤销
+ #iconundo
+
+
-
@@ -282,59 +265,58 @@
align="center"
fixed="right"
label="操作"
- :width="
- option.buttons.customButton &&
- option.buttons.customButton.operationWidth
- ? option.buttons.customButton.operationWidth
- : 100
- "
+ :width="option.buttons.rowButtonsWidth || 100"
>
-
- 编辑
- 删除
-
- 更多
-
-
-
-
- 删除
-
-
-
+
+ {{ handlegetLable(scope.row, item.label) }}
+
+
+ {{
+ handlegetLable(scope.row, option.rowButtons[0].label)
+ }}
+
+
+ 更多
+
+
+
+
+ {{
+ handlegetLable(scope.row, item.label)
+ }}
+
+
+
+
@@ -668,6 +650,21 @@ export default {
};
this.$emit("handleCustomValue", obj);
},
+ handlegetLable(item, label) {
+ if (typeof label == "function") {
+ return label(item);
+ } else {
+ return label;
+ }
+ },
+ // 是否disabled
+ isDisabledButton(item, row) {
+ if (typeof item.isDisable === "function") {
+ return item.isDisable(row);
+ } else {
+ return !!item.disabled;
+ }
+ },
// 弹框被关闭时的回调事件
editDialogClosedEvent(value) {
// 把列表页中弹框打开标记改成已关闭
diff --git a/report-ui/src/components/AnjiPlus/anji-select.vue b/report-ui/src/components/AnjiPlus/anji-select.vue
index f184126e..86d44cd5 100644
--- a/report-ui/src/components/AnjiPlus/anji-select.vue
+++ b/report-ui/src/components/AnjiPlus/anji-select.vue
@@ -244,9 +244,9 @@ export default {
}
return result;
},
- // 从本地localStorage取 gaeaDict
+ // 从本地localStorage取 AJReportDict
getOptionsFromLocalStorage() {
- let dicts = JSON.parse(localStorage.getItem("gaeaDict"));
+ let dicts = JSON.parse(localStorage.getItem("AJReportDict"));
let options = [];
if (!dicts.hasOwnProperty(this.dictCode)) {
return [];
diff --git a/report-ui/src/components/AnjiPlus/anji-upload.vue b/report-ui/src/components/AnjiPlus/anji-upload.vue
index 565d17df..f07e9a47 100644
--- a/report-ui/src/components/AnjiPlus/anji-upload.vue
+++ b/report-ui/src/components/AnjiPlus/anji-upload.vue
@@ -6,39 +6,16 @@
:action="requestUrl"
list-type="picture-card"
:file-list="fileList"
- :on-preview="handlePictureCardPreview"
:on-remove="handleRemove"
+ :on-exceed="handleExceed"
:on-success="handleSuccess"
:show-file-list="true"
:before-upload="handleBeforeUpload"
- :class="fileList && fileList.length >= limit ? 'hide_box' : ''"
>
-
![]()
-
-
+
-
-
-
-
-
-
+
+
diff --git a/report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLineCompareChart.vue b/report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLineCompareChart.vue
index e71d3b6c..729ee3b9 100644
--- a/report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLineCompareChart.vue
+++ b/report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLineCompareChart.vue
@@ -618,7 +618,7 @@ export default {
xAxisList = this.setUnique(xAxisList);
yAxisList = this.setUnique(yAxisList);
for (const i in yAxisList) {
- const data = new Array(yAxisList.length).fill(0);
+ const data = new Array(xAxisList.length).fill(0);
for (const j in xAxisList) {
for (const k in val) {
if (val[k].name == yAxisList[i]) {
diff --git a/report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLineStackChart.vue b/report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLineStackChart.vue
index c06ec3d4..6bfd591f 100644
--- a/report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLineStackChart.vue
+++ b/report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLineStackChart.vue
@@ -332,7 +332,7 @@ export default {
xAxisList = this.setUnique(xAxisList);
yAxisList = this.setUnique(yAxisList);
for (const i in yAxisList) {
- const data = new Array(yAxisList.length).fill(0);
+ const data = new Array(xAxisList.length).fill(0);
for (const j in xAxisList) {
for (const k in val) {
if (val[k].name == yAxisList[i]) {
diff --git a/report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLinechart.vue b/report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLinechart.vue
index 15e931ba..8505293e 100644
--- a/report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLinechart.vue
+++ b/report-ui/src/views/bigscreenDesigner/designer/widget/line/widgetLinechart.vue
@@ -105,7 +105,6 @@ export default {
this.setOptionsTooltip();
this.setOptionsData();
this.setOptionsMargin();
- this.setOptionsLegend();
this.setOptionsColor();
},
// 标题修改
@@ -244,7 +243,7 @@ export default {
show: true,
textStyle: {
color: optionsSetup.lineColor,
- fontSize: optionsSetup.fontSize
+ fontSize: optionsSetup.tipsFontSize
}
};
this.options.tooltip = tooltip;
@@ -261,42 +260,6 @@ export default {
};
this.options.grid = grid;
},
- // 图例操作 legend
- setOptionsLegend() {
- const optionsSetup = this.optionsSetup;
- const legend = this.options.legend;
- legend.show = optionsSetup.isShowLegend;
- legend.left = optionsSetup.lateralPosition;
- legend.right = optionsSetup.lateralPosition;
- legend.top = optionsSetup.longitudinalPosition;
- legend.bottom =
- optionsSetup.longitudinalPosition;
- legend.orient = optionsSetup.layoutFront;
- legend.textStyle = {
- color: optionsSetup.lengedColor,
- fontSize: optionsSetup.fontSize
- };
- legend.itemWidth = optionsSetup.lengedWidth;
- },
- // 图例名称设置
- setOptionsLegendName(name){
- const optionsSetup = this.optionsSetup;
- const series = this.options.series;
- const legendName = optionsSetup.legendName;
- // 图例没有手动写则显示原值,写了则显示新值
- if (null == legendName || legendName == '') {
- for (let i = 0; i < name.length; i++) {
- series[i].name = name[i];
- }
- this.options.legend['data'] = name;
- }else {
- const arr = legendName.split('|');
- for (let i = 0; i < arr.length; i++) {
- series[i].name = arr[i];
- }
- this.options.legend['data'] = arr
- }
- },
// 图例颜色修改
setOptionsColor() {
const optionsSetup = this.optionsSetup;
@@ -332,10 +295,6 @@ export default {
series[i].data = data;
}
}
- const legendName = [];
- legendName.push('销售量')
- this.options.legend['data'] = legendName;
- this.setOptionsLegendName(legendName);
},
dynamicDataFn(val, refreshTime) {
if (!val) return;
@@ -359,15 +318,11 @@ export default {
this.options.xAxis.data = val.xAxis;
// series
const series = this.options.series;
- const legendName = [];
for (const i in series) {
if (series[i].type == "line") {
series[i].data = val.series[i].data;
}
- legendName.push(val.series[i].name);
}
- this.options.legend['data'] = legendName;
- this.setOptionsLegendName(legendName);
}
}
};
diff --git a/report-ui/src/views/bigscreenDesigner/designer/widget/temp.vue b/report-ui/src/views/bigscreenDesigner/designer/widget/temp.vue
index 90cfde5a..545c18ab 100644
--- a/report-ui/src/views/bigscreenDesigner/designer/widget/temp.vue
+++ b/report-ui/src/views/bigscreenDesigner/designer/widget/temp.vue
@@ -38,6 +38,7 @@ import widgetLineCompareChart from "./line/widgetLineCompareChart";
import widgetDecoratePieChart from "./decorate/widgetDecoratePieChart";
import widgetMoreBarLineChart from "./bar/widgetMoreBarLineChart";
import widgetWordCloud from "./wordcloud/widgetWordCloud";
+import widgetHeatmap from "./heatmap/widgetHeatmap";
export default {
name: "WidgetTemp",
@@ -68,7 +69,8 @@ export default {
widgetLineCompareChart,
widgetDecoratePieChart,
widgetMoreBarLineChart,
- widgetWordCloud
+ widgetWordCloud,
+ widgetHeatmap
},
model: {
prop: "value",
diff --git a/report-ui/src/views/bigscreenDesigner/designer/widget/widget.vue b/report-ui/src/views/bigscreenDesigner/designer/widget/widget.vue
index a3515311..da65cbb6 100644
--- a/report-ui/src/views/bigscreenDesigner/designer/widget/widget.vue
+++ b/report-ui/src/views/bigscreenDesigner/designer/widget/widget.vue
@@ -17,7 +17,7 @@
@focus="handleFocus"
@blur="handleBlur"
>
-