|
@@ -23,7 +23,7 @@
|
|
|
>
|
|
|
<template #buttons>
|
|
|
<el-button type="primary" @click="onJbExport" :loading="state.loading" :disabled="isChecked"
|
|
|
- ><SvgIcon name="iconfont icon-daochu" class="mr5" />交办单导出
|
|
|
+ ><SvgIcon name="iconfont icon-daochu" class="mr5" />交办单导出<span v-if="checkTable.length">({{ checkTable.length }})</span>
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</vxe-toolbar>
|
|
@@ -271,7 +271,7 @@ const queryList = (isQuery: boolean = false) => {
|
|
|
requestParams.value.EndTime = state.queryParams.fbTime === null ? null : state.queryParams.fbTime[1];
|
|
|
Reflect.deleteProperty(requestParams.value, 'fbTime'); // 删除无用的参数
|
|
|
requestParams.value.QueryIndex = queryIndex.value; // 数据批次
|
|
|
- if(isQuery) requestParams.value.QueryIndex = 0;
|
|
|
+ if (isQuery) requestParams.value.QueryIndex = 0;
|
|
|
publishedListFixed(requestParams.value)
|
|
|
.then((res: any) => {
|
|
|
if (isQuery) {
|
|
@@ -288,6 +288,8 @@ const queryList = (isQuery: boolean = false) => {
|
|
|
state.tableData = getNeedArr(totalTable.value, state.queryParams.PageSize)[state.queryParams.PageIndex - 1]; //当前页的表格数据
|
|
|
}
|
|
|
state.loading = false;
|
|
|
+ tableRef.value.clearCheckboxRow();
|
|
|
+ checkTable.value = [];
|
|
|
resolve(res);
|
|
|
})
|
|
|
.then(() => {
|
|
@@ -304,9 +306,11 @@ const queryList = (isQuery: boolean = false) => {
|
|
|
.catch(() => {
|
|
|
state.loading = false;
|
|
|
totalLoading.value = false;
|
|
|
+ tableRef.value.clearCheckboxRow();
|
|
|
+ checkTable.value = [];
|
|
|
reject();
|
|
|
});
|
|
|
- })
|
|
|
+ });
|
|
|
};
|
|
|
/** 重置按钮操作 */
|
|
|
const drawerRuleFormRef = ref();
|
|
@@ -384,9 +388,9 @@ const isChecked = computed(() => {
|
|
|
});
|
|
|
const toolbarRef = ref<RefType>();
|
|
|
onMounted(() => {
|
|
|
- queryList().then(()=>{
|
|
|
+ queryList().then(() => {
|
|
|
getBaseInfo();
|
|
|
- })
|
|
|
+ });
|
|
|
if (tableRef.value && toolbarRef.value) {
|
|
|
tableRef.value.connect(toolbarRef.value);
|
|
|
}
|