- 新增
-
-
+ 新增
+
+
-
+
-
+
-
+
编辑
-
+
-
+
删除
-
+
-
+
-
+
-
@@ -69,7 +70,7 @@ export default {
props: {
formData: Array
},
- data () {
+ data() {
return {
predefineColors: [
"#ff4500",
@@ -86,21 +87,21 @@ export default {
indexEditor: -1 // 编辑第几个数据
};
},
- mounted () { },
+ mounted() {},
methods: {
// 弹出框关闭
- handleClose () {
+ handleClose() {
this.dialogVisible = false;
this.colorValue = "";
},
// 新增
- handleAddClick () {
+ handleAddClick() {
this.colorValue = "";
this.flag = true;
this.dialogVisible = true;
},
// 确定
- handleSaveClick () {
+ handleSaveClick() {
if (this.flag) {
// 新增
const obj = {
@@ -114,17 +115,20 @@ export default {
this.dialogVisible = false;
}
this.$emit("input", this.formData);
+ this.$emit("change", this.formData);
},
// 编辑
- handleEditorClick (index, row) {
+ handleEditorClick(index, row) {
this.flag = false;
this.colorValue = row.color;
this.dialogVisible = true;
this.indexEditor = index;
},
// 删除
- handleDeleteClick (index) {
+ handleDeleteClick(index) {
this.formData.splice(index, 1);
+ this.$emit("input", this.formData);
+ this.$emit("change", this.formData);
}
}
};
diff --git a/report-ui/src/views/report/bigscreen/designer/form/dynamicForm.vue b/report-ui/src/views/report/bigscreen/designer/form/dynamicForm.vue
index 6a0c6251..ddc80007 100644
--- a/report-ui/src/views/report/bigscreen/designer/form/dynamicForm.vue
+++ b/report-ui/src/views/report/bigscreen/designer/form/dynamicForm.vue
@@ -1,4 +1,3 @@
-/* eslint-disable vue/valid-v-for */
-
-
@@ -408,4 +408,4 @@ export default {
},
},
}
-
\ No newline at end of file
+
diff --git a/report-ui/src/views/report/resultset/index.vue b/report-ui/src/views/report/resultset/index.vue
index 9e1a79e1..37ee4ca7 100644
--- a/report-ui/src/views/report/resultset/index.vue
+++ b/report-ui/src/views/report/resultset/index.vue
@@ -78,13 +78,13 @@
查看
-