Bläddra i källkod

报表数据展示

FinalYu 1 år sedan
förälder
incheckning
3e731128f2

+ 21 - 1
chuanyi_client2/src/views/report_template/index.vue

@@ -377,6 +377,15 @@
                 </template>
               </el-table-column>
             </template>
+            <el-table-column label="操作" align="center" width="80">
+              <template slot-scope="scope">
+                <el-button
+                    type="text"
+                    size="mini"
+                    style="color: red;"
+                    @click="handleItemDelete(scope.$index, scope.row)">删除</el-button>
+              </template>
+            </el-table-column>
           </el-table>
         </div>
         <div v-if="chooseGroupItemList.length > 0 && templateReportType != 2">
@@ -516,7 +525,7 @@ import {
 import {
   getLuckysheetConfig, goPage,
   handleTree, showAlertMsgWin,
-  showAlertWin,
+  showAlertWin, showConfirmWin,
   showLoading, showPromptWin,
   traverseNode,
   traverseVisible
@@ -826,6 +835,17 @@ export default {
     selectionLineChangeHandle(val) {
       this.selectionDataItems = val
     },
+    /** 删除临时数据项 */
+    handleItemDelete(index, row) {
+      let _this = this
+      showConfirmWin(_this, null, '您确定要删除该数据项吗?', () => {
+        _this.chooseGroupItemList.forEach((item, i) => {
+          if (row.id == item.id) {
+            _this.chooseGroupItemList.splice(i, 1)
+          }
+        })
+      })
+    },
     /** 多选事件 */
     multipleDataItemEvent() {
       // 事件驱动报表

+ 2 - 2
chuanyi_client2/src/views/run_config/index.vue

@@ -341,7 +341,7 @@
       <div style="text-align: center;">
         <el-radio v-model="reportType" label="0">手动报表</el-radio>
         <el-radio v-model="reportType" label="1">自动报表</el-radio>
-        <el-radio v-model="reportType" label="3">事件驱动报表</el-radio>
+        <el-radio v-model="reportType" label="2">事件驱动报表</el-radio>
       </div>
       <span slot='footer'>
           <el-button type="primary" @click="chooseReportTypeEvent">确定</el-button>
@@ -601,7 +601,7 @@ export default {
         value: 1
       }, {
         label: '事件驱动报表',
-        value: 3
+        value: 2
       }],
       groupUserData: [],
       reportHistoryData: [],