界面优化
This commit is contained in:
@ -9,9 +9,8 @@
|
|||||||
{{ item.matCode }} - {{ item.matName }}
|
{{ item.matCode }} - {{ item.matName }}
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<button style="background-color: darkred;color: white;" @click="handleClose">关 闭</button>
|
|
||||||
</view>
|
</view>
|
||||||
|
<button class="button1" @click="handleClose">关 闭</button>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -118,6 +117,11 @@
|
|||||||
this.$emit('close');
|
this.$emit('close');
|
||||||
},
|
},
|
||||||
onItemClick(item) {
|
onItemClick(item) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '选择成功',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1200
|
||||||
|
});
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
this.$emit('selected', item);
|
this.$emit('selected', item);
|
||||||
},
|
},
|
||||||
@ -146,28 +150,34 @@
|
|||||||
|
|
||||||
.popup-container {
|
.popup-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-height: calc(100vh - 300rpx);
|
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popup-content {
|
.popup-content {
|
||||||
|
border: black;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
|
border: 1rpx solid black;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
width: 650rpx;
|
width: 650rpx;
|
||||||
max-height: calc(100vh - 300rpx);
|
max-height: 600rpx;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scroll-Y {
|
.button1 {
|
||||||
border-radius: 5rpx;
|
background-color: darkred;
|
||||||
height: calc(100vh - 600rpx);
|
color: white;
|
||||||
z-index: 4;
|
bottom: 0;
|
||||||
overflow: auto;
|
top: 80%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
height: 80rpx;
|
||||||
|
position: absolute;
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -591,7 +591,7 @@ if (uni.restoreGlobal) {
|
|||||||
show() {
|
show() {
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
this.matCodeCondition = getConfig("matCodeCondition", "");
|
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", "");
|
this.userName = getConfig("userName", "");
|
||||||
var serverIPAndPort = getServerIPAndPort();
|
var serverIPAndPort = getServerIPAndPort();
|
||||||
uni.request({
|
uni.request({
|
||||||
@ -618,7 +618,7 @@ if (uni.restoreGlobal) {
|
|||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
if (res.data.data.lists != null && res.data.data.lists.length > 0) {
|
if (res.data.data.lists != null && res.data.data.lists.length > 0) {
|
||||||
this.matBaseInfoList = res.data.data.lists;
|
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 {
|
} else {
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
this.matBaseInfoList = null;
|
this.matBaseInfoList = null;
|
||||||
@ -653,7 +653,7 @@ if (uni.restoreGlobal) {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
complete: (event) => {
|
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");
|
this.$emit("close");
|
||||||
},
|
},
|
||||||
onItemClick(item) {
|
onItemClick(item) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "选择成功",
|
||||||
|
icon: "none",
|
||||||
|
duration: 1200
|
||||||
|
});
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
this.$emit("selected", item);
|
this.$emit("selected", item);
|
||||||
},
|
},
|
||||||
upper() {
|
upper() {
|
||||||
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:125", "scrolltoupper");
|
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:129", "scrolltoupper");
|
||||||
},
|
},
|
||||||
lower() {
|
lower() {
|
||||||
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:128", "scrolltolower");
|
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:132", "scrolltolower");
|
||||||
},
|
},
|
||||||
scroll() {
|
scroll() {
|
||||||
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:131", "scroll");
|
formatAppLog("log", "at pages/bindSelectMat/bindSelectMat.vue:135", "scroll");
|
||||||
},
|
},
|
||||||
end() {
|
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
|
128
|
||||||
/* KEYED_FRAGMENT */
|
/* KEYED_FRAGMENT */
|
||||||
))
|
))
|
||||||
], 40, ["scroll-top", "show-scrollbar"]),
|
], 40, ["scroll-top", "show-scrollbar"])
|
||||||
vue.createElementVNode("button", {
|
]),
|
||||||
style: { "background-color": "darkred", "color": "white" },
|
vue.createElementVNode("button", {
|
||||||
onClick: _cache[4] || (_cache[4] = (...args) => $options.handleClose && $options.handleClose(...args))
|
class: "button1",
|
||||||
}, "关 闭")
|
onClick: _cache[4] || (_cache[4] = (...args) => $options.handleClose && $options.handleClose(...args))
|
||||||
])
|
}, "关 闭")
|
||||||
])) : vue.createCommentVNode("v-if", true);
|
])) : 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"]]);
|
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"]]);
|
||||||
|
Reference in New Issue
Block a user