From ffb3d0f1af7e5a93b9a509b0838d9b58a1449bdc Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期三, 14 六月 2023 14:27:16 +0800
Subject: [PATCH] 批量申请接口提交
---
Source/UBCS-WEB/src/views/integration/applicationForm.vue | 42 +++++++++++++++++++++++++++++++++---------
1 files changed, 33 insertions(+), 9 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/integration/applicationForm.vue b/Source/UBCS-WEB/src/views/integration/applicationForm.vue
index 7a3c48b..db577fa 100644
--- a/Source/UBCS-WEB/src/views/integration/applicationForm.vue
+++ b/Source/UBCS-WEB/src/views/integration/applicationForm.vue
@@ -2,7 +2,8 @@
<basic-container>
<avue-crud :table-loading="loading" :data="data" :option="option" :search.sync="searchParam" :page.sync="page"
ref="crud" @refresh-change="getDataList" @search-change="handleSearch" @search-reset="handleReset"
- @size-change="handleSizePage" @current-change="handleCurrentPage" @on-load="getDataList">
+ @size-change="handleSizePage" @current-change="handleCurrentPage" @on-load="getDataList"
+ @selection-change="selectionChange" @row-click="handleRowClick">
<template slot="menuLeft">
<el-button icon="el-icon-document" size="small" type="primary" @click="handleStatus">闆嗗洟鐢宠鐘舵��
</el-button>
@@ -12,7 +13,7 @@
</template>
<script>
-import { getList } from '@/api/integration/application.js'
+import { getList, queryApplyStat } from '@/api/integration/application.js'
import { dateFormat } from '@/util/date.js'
export default {
data() {
@@ -25,6 +26,7 @@
total: 0
},
searchParam: {},
+ stateParam: {},
option: {
height: "auto",
index: true,
@@ -33,7 +35,8 @@
columnBtn: false,
searchMenuSpan: 8,
highlightCurrentRow: true,
- menu:false,
+ menu: false,
+ selection: true,
column: [
{
label: '鐢宠鍗曞彿',
@@ -77,9 +80,6 @@
prop: 'lastModifyTime',
type: 'datetime',
search: true,
- formatter: () => {
-
- }
}, {
label: '杩斿洖鏍囪瘑',
width: 100,
@@ -100,8 +100,20 @@
}
},
methods: {
- handleStatus() {
-
+ async handleStatus() {
+ const { oids } = this.stateParam
+ if (this.$utilFunc.isEmpty(oids)) {
+ this.$message({
+ type: "error",
+ message: "璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹�!"
+ })
+ } else {
+ console.log(this.stateParam)
+ const response = await queryApplyStat(this.stateParam)
+ if (response.status === 200) {
+ console.log(response)
+ }
+ }
},
async getDataList() {
this.loading = true
@@ -140,7 +152,19 @@
this.page.currentPage = 1
this.getDataList()
done()
- }
+ },
+ selectionChange(list) {
+ console.log(list)
+ let newData = list.map(item => {
+ const { dataOid } = item
+ return dataOid
+ })
+ this.stateParam = { oids: newData.toString() }
+ console.log(newData)
+ },
+ handleRowClick(row) {
+ this.$refs.crud.toggleRowSelection(row, true)
+ },
}
}
</script>
\ No newline at end of file
--
Gitblit v1.9.3