|
@@ -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() {
|
|
|
// 事件驱动报表
|