Bläddra i källkod

批量设置驱动事件

FinalYu 2 år sedan
förälder
incheckning
6d5b505106
1 ändrade filer med 14 tillägg och 1 borttagningar
  1. 14 1
      chuanyi_client2/src/components/HeaderMain/index.vue

+ 14 - 1
chuanyi_client2/src/components/HeaderMain/index.vue

@@ -329,6 +329,9 @@
         <el-button size="mini"
                    @click="multipleSetting"
                    style="position: absolute; right: 30px; top: 80px;">批量设置表达式</el-button>
+        <el-button size="mini"
+                   @click="multipleSettingEventReport"
+                   style="position: absolute; right: 160px; top: 80px;">批量配置事件驱动</el-button>
         <el-table
             ref="multipleTable"
             :data="chooseItemDataList"
@@ -1744,6 +1747,17 @@ export default {
       this.chooseDataModel = null
       this.dialogDataModelVisible = true
     },
+    multipleSettingEventReport() {
+      if (this.dataLineListSelections.length == 0) {
+        this.$message({
+          message: '请至少选择一项数据项',
+          type: 'warning'
+        })
+        return
+      }
+      this.chooseDataItemIndex = '-1'
+      this.dialogReportEventConfigVisible = true
+    },
     /** 选择数据模型 */
     handleChoose(index, row) {
       // if (this.dataLineListSelections.length > 1) {
@@ -1760,7 +1774,6 @@ export default {
     /** 事件驱动报表 */
     handleReportEventConfig(index, row) {
       this.chooseDataItemIndex = row.itemName
-      this.chooseDataModel = null
       this.dialogReportEventConfigVisible = true
     },
     /** 报表模板移除 */