优化弹框与分页的显示

This commit is contained in:
陈裕财
2024-09-22 14:03:58 +08:00
parent d09222bd16
commit 4e69cb90aa
10 changed files with 18 additions and 14 deletions

View File

@@ -12,7 +12,7 @@
</slot>
</el-space>
</template>
<el-table ref="table" :data="dataSet" v-adaptive="{ bottom: 50 }" style="width: 100%" border>
<el-table ref="table" :data="dataSet" v-adaptive style="width: 100%" border>
<template v-for="(column, colIndex) in yColumnConfigs" :key="colIndex">
<el-table-column :label="column.label + '(' + countYColLabel(column, colIndex) + ')'" width="200" v-if="!column.hidden">
<template #header>

View File

@@ -180,6 +180,7 @@ let toDoPageInfo = reactive({total:0})
let focusPageInfo = reactive({total:0})
const gotolink = (context,path)=>{
debugger
if(!context){
context=import.meta.env.VITE_CONTEXT
}

View File

@@ -1,8 +1,8 @@
<template>
<el-form :model="editForm" label-width="80" :rules="editFormRules" ref="editForm" label-position="left">
<mdp-lr-box :lspan="6">
<mdp-lr-box :lspan="6" lborder>
<template #left>
<div class="border padding-left padding-bottom">
<el-form class="padding-right padding-left padding-bottom" :model="editForm" label-width="80" :rules="editFormRules" ref="editForm" label-position="left">
<el-form-item label="归属项目" prop="projectId">
<XmProjectSelect width="100%" showStyle="tag" v-model="editForm.projectId" :linkProductId="editForm.productId" :disabled="selProject?.id" @change2="onProjectConfirm" @clear="clearProject"/>
</el-form-item>
@@ -49,8 +49,11 @@
<mdp-input type="textarea" :rows="3" v-model="editForm.remarks2" placeholder="处理意见"
@change="editSomeFields(editForm, 'remarks', $event)" />
</div>
</el-form>
</template>
<el-form :model="editForm" label-width="80" :rules="editFormRules" ref="editForm" label-position="left">
<el-form-item label="缺陷标题" prop="name">
<el-input v-model="editForm.name" placeholder="缺陷标题"
@change="editSomeFields(editForm, 'name', $event)" />
@@ -208,11 +211,11 @@
</el-tabs>
</el-form>
<div class="footer" v-if="subOpType === 'add'">
<el-button type="primary" @click="saveSubmit">保存</el-button>
</div>
</mdp-lr-box>
</el-form>

View File

@@ -53,7 +53,7 @@
</ContentWrap>
<!--列表 XmTestCase 测试用例-->
<el-table ref="table" :data="tableDatas" v-adaptive="{ bottom: 50 }" @sort-change="sortChange"
<el-table ref="table" :data="tableDatas" v-adaptive @sort-change="sortChange"
highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick"
style="width: 100%;">
<el-table-column type="selection" width="55" show-overflow-tooltip fixed="left" />

View File

@@ -51,7 +51,7 @@
</el-space>
</ContentWrap>
<!--列表 XmTestPlanCase 测试计划与用例关系表-->
<el-table ref="table" :data="tableDatas" v-adaptive="{ bottom: 50 }" @sort-change="sortChange"
<el-table ref="table" :data="tableDatas" v-adaptive @sort-change="sortChange"
highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick"
style="width: 100%;">
<el-table-column type="selection" width="55" show-overflow-tooltip fixed="left" />

View File

@@ -33,7 +33,7 @@
</ContentWrap>
<!--列表 XmWorkload 工时登记表-->
<el-table ref="table" :data="tableDatas" v-adaptive="{ bottom: 50 }" @sort-change="sortChange" highlight-current-row
<el-table ref="table" :data="tableDatas" v-adaptive @sort-change="sortChange" highlight-current-row
v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column type="selection" width="55" fixed="left" />
<el-table-column type="index" width="50" fixed="left" />

View File

@@ -28,7 +28,7 @@
</el-space>
</ContentWrap>
<!--列表 XmBudgetRecord 项目成本预算-->
<el-table ref="table" :data="tableDatas" v-adaptive="{ bottom: 50 }" @sort-change="sortChange" highlight-current-row
<el-table ref="table" :data="tableDatas" v-adaptive @sort-change="sortChange" highlight-current-row
v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column type="selection" width="55" show-overflow-tooltip fixed="left" />
<el-table-column sortable type="index" width="55" show-overflow-tooltip fixed="left" />

View File

@@ -28,7 +28,7 @@
</el-space>
</ContentWrap>
<!--列表 XmCostRecord 项目成本成本-->
<el-table ref="table" :data="tableDatas" v-adaptive="{ bottom: 50 }" @sort-change="sortChange" highlight-current-row
<el-table ref="table" :data="tableDatas" v-adaptive @sort-change="sortChange" highlight-current-row
v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column type="selection" width="55" show-overflow-tooltip fixed="left" />
<el-table-column sortable type="index" width="55" show-overflow-tooltip fixed="left" />

View File

@@ -29,7 +29,7 @@
</el-space>
</ContentWrap>
<!--列表 XmTaskSbillDetail 工时登记表-->
<el-table ref="table" :data="tableDatas" v-adaptive="{ bottom: 50 }" @sort-change="sortChange" highlight-current-row
<el-table ref="table" :data="tableDatas" v-adaptive @sort-change="sortChange" highlight-current-row
v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column type="selection" width="55" show-overflow-tooltip fixed="left" />
<el-table-column sortable type="index" width="55" show-overflow-tooltip fixed="left" />

View File

@@ -53,10 +53,10 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
rewrite: (path) => path.replace(new RegExp(`^/api/xm`), '/'),
},
['/api']: {
target: 'https://www.maimengcloud.com',
target: 'http://134.175.57.249:6101',
ws: false,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp(`^/api`), '/api'),
rewrite: (path) => path.replace(new RegExp(`^/api/`), '/'),
},
},
hmr: true,