From 86fab2bb908a7b987a1ea6e2d3a032d2f8dcd324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=A8=E6=99=A8?= Date: Wed, 26 Apr 2023 17:48:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E9=A1=B6=E9=83=A8=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Pagination/index.vue | 3 ++- src/utils/DefaultCheck.js | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/utils/DefaultCheck.js diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 56f5a6b..929a684 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -96,7 +96,8 @@ export default { handleCurrentChange(val) { this.$emit('pagination', { page: val, limit: this.pageSize }) if (this.autoScroll) { - scrollTo(0, 800) + //滚动效果 + // scrollTo(0, 800) } } } diff --git a/src/utils/DefaultCheck.js b/src/utils/DefaultCheck.js new file mode 100644 index 0000000..5eec157 --- /dev/null +++ b/src/utils/DefaultCheck.js @@ -0,0 +1,9 @@ +export function DefaultCheck (line,dataList){ + this.$nextTick(() => { + if (line === null) { + this.$refs.refDom.setCurrentRow(dataList[0]); + } else { + this.$refs.refDom.setCurrentRow(line,true); + } + }); +} \ No newline at end of file From b35aac7217d99aefbf5b3bc9e737bcae824656b1 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Wed, 26 Apr 2023 21:56:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=89=E6=9C=9F?= =?UTF-8?q?=E6=8B=A3=E8=B4=A7=EF=BC=8C=E6=97=A0=E4=B8=89=E6=9C=9F=E6=8B=A3?= =?UTF-8?q?=E8=B4=A7=EF=BC=8C=E4=B8=BA=E9=85=8D=E8=B4=A7=E7=AD=89=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/sync/SysUdimsConfig.vue | 72 ++++++++++++++++--------------- 1 file changed, 38 insertions(+), 34 deletions(-) diff --git a/src/views/sync/SysUdimsConfig.vue b/src/views/sync/SysUdimsConfig.vue index 8ff2646..c135110 100644 --- a/src/views/sync/SysUdimsConfig.vue +++ b/src/views/sync/SysUdimsConfig.vue @@ -5,8 +5,8 @@ @@ -14,6 +14,7 @@ @@ -22,7 +23,7 @@
说明: 修改同步参数时,请关闭数据同步服务 + >说明: 修改同步参数时,请关闭数据同步服务
@@ -40,7 +41,7 @@ style="width: 50%" size="small" v-model="configQuery.syncIp" - :disabled="configQuery.downstreamEnable" + disabled splaceholder="请输入内容" > 测试连通 + >测试连通
@@ -113,6 +114,7 @@ style="width: 100px" size="small" type="number" + disabled v-model="configQuery.syncTime" splaceholder="请输入内容" > @@ -120,7 +122,7 @@ @@ -399,9 +401,9 @@ 添加扫码单据类型 + >添加扫码单据类型 @@ -434,9 +436,9 @@ 移除 + >移除 @@ -465,19 +467,19 @@ size="small" type="number" v-model="configQuery.orderSyncTime" - :disabled="configQuery.downstreamEnable" + disabled splaceholder="请输入内容" > 单据下载时间间隔(单位:分钟): 单据下载时间间隔(单位:分钟):  @@ -493,9 +495,9 @@ 添加扫码单据类型 + >添加扫码单据类型 @@ -528,9 +530,9 @@ 移除 + >移除 @@ -555,9 +557,9 @@ 添加业务单据类型 + >添加业务单据类型 @@ -589,9 +591,9 @@ 移除 + >移除 @@ -608,8 +610,8 @@ v-if="addBusToInDialogVisible" >
- 选入 + 选入
- 选入 + 选入
- 选入 + 选入
{}); + .catch(() => { + }); }, testConnect() { @@ -896,7 +899,8 @@ export default { this.busTypes = response.data.list || []; this.total = response.data.total || 0; }) - .catch(() => {}); + .catch(() => { + }); }, addBusTypeDialog() {