|
@@ -13,6 +13,7 @@
|
|
|
ref="qualTable" :column="tableColumn" :datas="tableData" is-new is-check is-reserve-selection :loading="tableLoading" row-key="selectId"
|
|
|
@select="tableSelect"
|
|
|
@selection-change="tableSelection"
|
|
|
+ @select-all="tableSelectAll"
|
|
|
>
|
|
|
<template #appStatusName="{ row }">
|
|
|
<el-tag
|
|
@@ -251,6 +252,18 @@ const tableSelect = (rows)=>{
|
|
|
if (!isDel) {
|
|
|
cancelcheck.value.push( row.selectId)
|
|
|
}
|
|
|
+}
|
|
|
+const tableSelectAll = (rows)=>{
|
|
|
+ console.log(rows, 'rows')
|
|
|
+ let arr = rows.filter(obj => obj.appStatusName !== '已审批')
|
|
|
+ console.log(arr, 'arr')
|
|
|
+ if (arr.length > 0) {
|
|
|
+ window.$message.warning('只能勾选已审批的数据')
|
|
|
+ qualTable.value?.clearSelection()
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
//之前选中的
|
|
|
const saveQualModal = ()=>{
|