界面优化

This commit is contained in:
hehaibing-1996
2025-02-27 19:57:27 +08:00
parent 6d9386a079
commit 1d9c68d659
2 changed files with 37 additions and 22 deletions

View File

@ -9,9 +9,8 @@
{{ item.matCode }} - {{ item.matName }}
</view>
</scroll-view>
<button style="background-color: darkred;color: white;" @click="handleClose">&nbsp;&nbsp;&nbsp;&nbsp;</button>
</view>
<button class="button1" @click="handleClose">&nbsp;&nbsp;&nbsp;&nbsp;</button>
</view>
</template>
@ -118,6 +117,11 @@
this.$emit('close');
},
onItemClick(item) {
uni.showToast({
title: '选择成功',
icon: 'none',
duration: 1200
});
this.visible = false;
this.$emit('selected', item);
},
@ -146,28 +150,34 @@
.popup-container {
width: 100%;
max-height: calc(100vh - 300rpx);
z-index: 2;
overflow: auto;
}
.popup-content {
border: black;
border-radius: 10rpx;
border: 1rpx solid black;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 650rpx;
max-height: calc(100vh - 300rpx);
max-height: 600rpx;
background-color: white;
z-index: 2;
overflow: auto;
}
.scroll-Y {
border-radius: 5rpx;
height: calc(100vh - 600rpx);
z-index: 4;
overflow: auto;
.button1 {
background-color: darkred;
color: white;
bottom: 0;
top: 80%;
left: 50%;
transform: translate(-50%, -50%);
height: 80rpx;
position: absolute;
}
</style>

View File

@ -591,7 +591,7 @@ if (uni.restoreGlobal) {
show() {
this.visible = true;
this.matCodeCondition = getConfig("matCodeCondition", "");
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:46", "scroll - view height:", this.matCodeCondition);
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:45", "scroll - view height:", this.matCodeCondition);
this.userName = getConfig("userName", "");
var serverIPAndPort = getServerIPAndPort();
uni.request({
@ -618,7 +618,7 @@ if (uni.restoreGlobal) {
if (res.data.code == 200) {
if (res.data.data.lists != null && res.data.data.lists.length > 0) {
this.matBaseInfoList = res.data.data.lists;
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:75", "matBaseInfoList:", this.matBaseInfoList);
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:74", "matBaseInfoList:", this.matBaseInfoList);
} else {
this.visible = false;
this.matBaseInfoList = null;
@ -653,7 +653,7 @@ if (uni.restoreGlobal) {
});
},
complete: (event) => {
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:112", "请求完成", event);
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:111", "请求完成", event);
}
});
},
@ -662,20 +662,25 @@ if (uni.restoreGlobal) {
this.$emit("close");
},
onItemClick(item) {
uni.showToast({
title: "选择成功",
icon: "none",
duration: 1200
});
this.visible = false;
this.$emit("selected", item);
},
upper() {
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:125", "scrolltoupper");
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:129", "scrolltoupper");
},
lower() {
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:128", "scrolltolower");
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:132", "scrolltolower");
},
scroll() {
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:131", "scroll");
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:135", "scroll");
},
end() {
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:134", "scrollend");
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:138", "scrollend");
}
}
};
@ -709,12 +714,12 @@ if (uni.restoreGlobal) {
128
/* KEYED_FRAGMENT */
))
], 40, ["scroll-top", "show-scrollbar"]),
vue.createElementVNode("button", {
style: { "background-color": "darkred", "color": "white" },
onClick: _cache[4] || (_cache[4] = (...args) => $options.handleClose && $options.handleClose(...args))
}, "关    闭")
])
], 40, ["scroll-top", "show-scrollbar"])
]),
vue.createElementVNode("button", {
class: "button1",
onClick: _cache[4] || (_cache[4] = (...args) => $options.handleClose && $options.handleClose(...args))
}, "关    闭")
])) : vue.createCommentVNode("v-if", true);
}
const PagesBindSelectMatBindSelectMat = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$d], ["__scopeId", "data-v-68e7b952"], ["__file", "D:/代码/赛特制冷WCS/PDA/PDA/pages/bindSelectMat/bindSelectMat.vue"]]);