页面优化

This commit is contained in:
BianLzhaoMin 2024-07-29 14:19:06 +08:00
parent 94327108e2
commit c30d7aa355
2 changed files with 139 additions and 144 deletions

View File

@ -80,6 +80,7 @@
</el-form> </el-form>
<el-table <el-table
v-loading="loading"
:data="agreementList" :data="agreementList"
border border
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@ -211,13 +212,9 @@ export default {
data() { data() {
return { return {
// //
// loading: true, loading: false,
// //
ids: [], ids: [],
//
single: true,
//
multiple: true,
// //
showSearch: true, showSearch: true,
// //
@ -330,8 +327,6 @@ export default {
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map((item) => item) this.ids = selection.map((item) => item)
this.single = selection.length != 1
this.multiple = !selection.length
}, },
/** 批量导出月结明细表 */ /** 批量导出月结明细表 */

View File

@ -160,15 +160,15 @@
</template> </template>
<script> <script>
import TableModel from '@/components/TableModel' import TableModel from '@/components/TableModel'
import DialogModel from '@/components/DialogModel' import DialogModel from '@/components/DialogModel'
import { config, dialogConfig, getSelList } from './config' import { config, dialogConfig, getSelList } from './config'
import { import {
getForecastWasteListApi, getForecastWasteListApi,
getDialogListApi, getDialogListApi,
auditingPreScrapApi, auditingPreScrapApi,
} from '@/api/scrap/forecastWaste.js' } from '@/api/scrap/forecastWaste.js'
export default { export default {
name: 'Inventory', name: 'Inventory',
components: { components: {
TableModel, TableModel,
@ -254,7 +254,7 @@
/* 审核驳回 */ /* 审核驳回 */
async auditingReject() { async auditingReject() {
if (this.tbAllChecked) { if (this.tbAllChecked) {
this.$message.error('当前没有可审核的装备') this.$message.error('当前页面没有可审核的装备')
this.dialogConfig.outerVisible = false this.dialogConfig.outerVisible = false
return return
} }
@ -315,5 +315,5 @@
deep: true, deep: true,
}, },
}, },
} }
</script> </script>