From d105bd9dd591264a7b1f79f1fdbbf0e764ff073e Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 31 八月 2022 15:39:42 +0800
Subject: [PATCH] 1.修改分页bug
---
src/views/scgl/gd.vue | 40 ++++++++++++++++++++++------------------
1 files changed, 22 insertions(+), 18 deletions(-)
diff --git a/src/views/scgl/gd.vue b/src/views/scgl/gd.vue
index 46c4574..e26bf4f 100644
--- a/src/views/scgl/gd.vue
+++ b/src/views/scgl/gd.vue
@@ -145,7 +145,7 @@
<el-radio
v-model="radioSelected"
:label="row.wo_code"
- style="color: transparent;padding-left: 10px; margin-right: -25px;"
+ style="color: transparent;padding-left: 10px;"
@change.native="getCurrentRow(row.wo_code)"
/>
</template>
@@ -685,7 +685,7 @@
:close-on-click-modal="false"
@close="dialogVisibleSourceClose"
>
- <div class="bodyTopFormGroup">
+ <div class="bodyTopFormGroup" style="animation: move 1s linear">
<el-form
ref="sourceForm"
:model="sourceForm"
@@ -774,17 +774,17 @@
</div>
</el-form>
</div>
- <el-tooltip :content="!isExpand?'鐐瑰嚮灞曠ず鏇村':'鏀惰捣'" placement="bottom">
- <div
- style="display:flex;justify-content: center;
+ <!-- <el-tooltip :content="!isExpand?'鐐瑰嚮灞曠ず鏇村':'鏀惰捣'" placement="bottom">-->
+ <div
+ style="display:flex;justify-content: center;
align-items:center;background-color:#eee;cursor: pointer"
- @click="isExpand=!isExpand"
- >
- <i
- :class="!isExpand?'el-icon-arrow-down':'el-icon-arrow-up'"
- :style="{color:'#42B983'}"
- /></div>
- </el-tooltip>
+ @click="isExpand=!isExpand"
+ >
+ <i
+ :class="!isExpand?'el-icon-arrow-down':'el-icon-arrow-up'"
+ :style="{color:'#42B983'}"
+ /></div>
+ <!-- </el-tooltip>-->
<div class="elTableDiv">
<el-table
:data="sourceTableData"
@@ -809,7 +809,7 @@
<el-radio
v-model="radioSelectedId"
:label="row.id"
- style="color: transparent;padding-left: 15px; margin-right: -25px;"
+ style="color: transparent;padding-left: 10px;"
@change.native="getCurrentRowSource(row.id)"
/>
</template>
@@ -1597,8 +1597,8 @@
this.dialogForm.partname = row.partname
this.dialogForm.mesqty = row.plan_qty
this.dialogForm.partspec = row.partspec
- this.dialogForm.sourceorder = row.sourceorder
- this.dialogForm.ordertype = row.ordertype
+ this.dialogForm.sourceorder = row.m_po
+ this.dialogForm.ordertype = row.wotype
// this.routecodeChange(this.dialogForm.routecode)
@@ -1628,6 +1628,9 @@
DeleteMesOrder(data).then(res => {
if (res.code === '200') {
this.$message.success('鍒犻櫎鎴愬姛!')
+ if (this.form.page > 1 && this.tableData.length === 1) {
+ this.form.page--
+ }
this.getMesOrderSearch()
}
})
@@ -1801,7 +1804,7 @@
// const number = Math.random() * Math.random()
// this.number = number === 0 ? (10 + Math.random()) : number
// console.log(number)
- this.dialogVisibleApprove = true
+
const data2 = {
username: getCookie('admin'),
mesordercode: this.dialogForm.mesordercode
@@ -1833,6 +1836,7 @@
})
}
})
+ this.dialogVisibleApprove = true
},
dialogVisibleTaskClose() {
this.dialogForm.mesordercode = ''
@@ -2098,11 +2102,11 @@
margin-bottom: 0;
}
-.elTableDiv {
+//.elTableDiv {
::v-deep .el-radio__label {
display: none;
}
-}
+//}
.el-table::before {
height: 0;
--
Gitblit v1.9.3