This commit is contained in:
2025-12-11 14:47:56 +08:00
parent bee5c04b95
commit 55d7578b67
2 changed files with 49 additions and 40 deletions
@@ -86,12 +86,12 @@ layout("/layouts/platform.html"){
<span v-else></span>
</template>
</el-table-column>
<!-- <el-table-column label="工代会代表" prop="isGdh">-->
<!-- <template v-slot="{row}">-->
<!-- <span v-if="row.isGdh" style="color:#0037ff;">是</span>-->
<!-- <span v-else>否</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="工代会代表" prop="isGdh">-->
<!-- <template v-slot="{row}">-->
<!-- <span v-if="row.isGdh" style="color:#0037ff;">是</span>-->
<!-- <span v-else>否</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="代表类型" prop="representativeType"></el-table-column>
<el-table-column prop="curTaskName" label="当前节点"></el-table-column>
<el-table-column prop="instanceState" label="流程状态">
@@ -166,11 +166,22 @@ layout("/layouts/platform.html"){
}
},
methods: {
doSearch() {
this.pageData()
async doSearch() {
await this.pageData()
const fullName = this.sessionOptions.find(v => v.id === this.pageForm.sessionId)?.fullName;
this.$refs.pushProgressRef.refreshData(this.pageForm.sessionId, fullName, this.pageForm.unionId,"JG")
await this.$refs.pushProgressRef.refreshData(this.pageForm.sessionId, fullName, this.pageForm.unionId, "JG")
},
async pageData() {
try {
const resp = await this.$axios.post("/platform/teacherCongress/delegate/push/dwSjAudit/pageData", this.pageForm)
if (resp.code === 0) {
this.tableData = resp.data.list
this.pageForm.totalCount = resp.data.totalCount
}
} catch (e) {
console.log(e)
}
},
onBatchSubmit() {
this.$confirm('您确定要上报吗?', '提示', {
@@ -254,29 +254,28 @@ layout("/layouts/platform.html"){
isRead: false,
userId: null,
// 当前分工会的最大推选人员
maxPush: 0,
// 剩余正式代表推选名额
formalPush: 0
// 当前分工会的最大推选人员
maxPush: 0,
// 剩余正式代表推选名额
formalPush: 0
}
},
methods: {
doPushFormal() {
if (this.tableData.length >= this.maxPush) {
this.$message.warning("当前正式代表已超过最大推选人员数,如需调整请在表格数据列中选中【删除】按钮")
return
}
doPushFormal() {
if (this.tableData.length >= this.maxPush) {
this.$message.warning("当前正式代表已超过最大推选人员数,如需调整请在表格数据列中选中【删除】按钮")
return
}
this.$refs.pushFormalRef.onOpen(this.pageForm.sessionId, this.pageForm.unionId)
},
setMaxCount(data) {
this.maxPush = data
},
doSearch() {
this.pageData()
this.$refs.pushFormalRef.onOpen(this.pageForm.sessionId, this.pageForm.unionId)
},
setMaxCount(data) {
this.maxPush = data
},
async doSearch() {
await this.pageData()
const fullName = this.sessionOptions.find(v => v.id === this.pageForm.sessionId)?.fullName;
this.$refs.pushProgressRef.refreshData(this.pageForm.sessionId, fullName, this.pageForm.unionId)
await this.$refs.pushProgressRef.refreshData(this.pageForm.sessionId, fullName, this.pageForm.unionId)
},
onView(row) {
this.$refs.guava.view(() => {
@@ -320,21 +319,20 @@ layout("/layouts/platform.html"){
}
})
},
async pageData() {
try {
const resp = await this.$axios.post("/platform/teacherCongress/delegate/push/pageData", this.pageForm)
if (resp.code === 0) {
this.tableData = resp.data.list
this.pageForm.totalCount = resp.data.totalCount
this.formalPush = this.maxPush - this.tableData.length
}
} catch (e) {
console.log(e)
}
}
async pageData() {
try {
const resp = await this.$axios.post("/platform/teacherCongress/delegate/push/pageData", this.pageForm)
if (resp.code === 0) {
this.tableData = resp.data.list
this.pageForm.totalCount = resp.data.totalCount
this.formalPush = this.maxPush - this.tableData.length
}
} catch (e) {
console.log(e)
}
}
},
created() {
this.doSearch()
this.listUnion()
this.listSession()
}