|
@@ -10,7 +10,6 @@
|
|
|
:page-change="pageChange"
|
|
|
>
|
|
|
<template v-slot:batch-btn-box="{ selected }">
|
|
|
-
|
|
|
<!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="success"
|
|
@@ -33,8 +32,16 @@
|
|
|
>批量审核</el-button
|
|
|
>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ size="mini"
|
|
|
+ @click="$MultFissonModal()"
|
|
|
+ >一键裂变</el-button
|
|
|
+ >
|
|
|
+ </el-col>
|
|
|
</template>
|
|
|
-
|
|
|
</base-table>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -44,7 +51,7 @@ import toolbar from './toolbar';
|
|
|
import mxFilterList from '@/mixins/filterList';
|
|
|
import { getPage } from '@/api/photoWarehouse';
|
|
|
|
|
|
-const checkArr = (arr) => {
|
|
|
+const checkArr = arr => {
|
|
|
if (Array.isArray(arr)) {
|
|
|
if (arr.length === 0) {
|
|
|
return 'null';
|
|
@@ -58,7 +65,6 @@ const checkArr = (arr) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-
|
|
|
export default {
|
|
|
name: 'photoVerifyManagement',
|
|
|
|
|
@@ -66,16 +72,15 @@ export default {
|
|
|
|
|
|
filters: {
|
|
|
// 单选可用
|
|
|
- singleBatch: (arr) => {
|
|
|
+ singleBatch: arr => {
|
|
|
return checkArr(arr) !== 'single';
|
|
|
},
|
|
|
// 非空可用
|
|
|
- multipleBatch: (arr) => {
|
|
|
+ multipleBatch: arr => {
|
|
|
return checkArr(arr) === 'null';
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
-
|
|
|
mixins: [
|
|
|
mxFilterList({
|
|
|
fetchList: getPage // 在下方data再声明一个 fetchList: iGetList 同等效果
|
|
@@ -86,9 +91,9 @@ export default {
|
|
|
return {
|
|
|
columns: [
|
|
|
{
|
|
|
- key: 'selection',
|
|
|
+ key: 'selection'
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
key: 'id',
|
|
|
name: '标识',
|
|
|
width: this.$col.b
|
|
@@ -218,7 +223,7 @@ export default {
|
|
|
handleAudit(arr) {
|
|
|
this.$PhotoVerifyMultItemModal({
|
|
|
ids: arr.map(x => x.id)
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|