From 1833dd6d7cac01c35840af52fadc1199821e5805 Mon Sep 17 00:00:00 2001 From: Houjie <714924425@qq.com> Date: 星期四, 15 五月 2025 09:28:16 +0800 Subject: [PATCH] 提交优化项 --- pages/ToDoList/ToDoListDeils/ToDoListDeils.vue | 59 ++++++++++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 46 insertions(+), 13 deletions(-) diff --git a/pages/ToDoList/ToDoListDeils/ToDoListDeils.vue b/pages/ToDoList/ToDoListDeils/ToDoListDeils.vue index 61bbb0f..2b3eb10 100644 --- a/pages/ToDoList/ToDoListDeils/ToDoListDeils.vue +++ b/pages/ToDoList/ToDoListDeils/ToDoListDeils.vue @@ -2,14 +2,14 @@ <view class="container"> <cu-custom :bgColor="NavBarColor" :isBack="true" backRouterName="productionTask"> <block slot="backText">杩斿洖</block> - <block slot="content">寰呭姙璇︽儏</block> + <block slot="content">璇︽儏</block> </cu-custom> <view class="container"> <uni-forms ref="form" :modelValue="formData" validate-trigger="bind" err-show-type="undertext"> <uni-group top="1"> - <view class="text-gray margin-bottom-lg">鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�� 鍩烘湰淇℃伅 鈥斺�斺�斺�斺�斺�斺�斺�斺�斺��</view> + <view class="divider"><text>鍩烘湰淇℃伅</text></view> <uni-forms-item name="num" label="宸ュ崟鍙�:"> <uni-easyinput v-model="formData.equipmentCode" :disabled="true" /> </uni-forms-item> @@ -47,7 +47,7 @@ </view> </uni-forms-item> - <view class="text-gray margin-bottom-lg">鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�� 鐝粍闀跨‘璁� 鈥斺�斺�斺�斺�斺�斺�斺�斺�斺��</view> + <view class="divider"><text>鐝粍闀跨‘璁�</text></view> <uni-forms-item name="outNum" required label="纭绫诲瀷:"> <uni-data-select :localdata="formData.msListCategory" popup-title="璇烽�夋嫨" @change="changeType" :clear="false"> @@ -59,7 +59,8 @@ </uni-group> </uni-forms> - <view class="text-gray margin-bottom-lg">鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�� 淇濆吇椤逛俊鎭� 鈥斺�斺�斺�斺�斺�斺�斺�斺�斺��</view> + <view class="divider"><text>淇濆吇椤逛俊鎭�</text></view> + <!-- <view class="text-gray margin-bottom-lg">鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�� 淇濆吇椤逛俊鎭� 鈥斺�斺�斺�斺�斺�斺�斺�斺�斺��</view> --> <uni-card margin="10px" spacing="1px" v-for="(item,index) in partTakeAdviceDetailList" :key="index"> @@ -72,6 +73,12 @@ <view class="flex-sub text-light bg-white padding-xs margin-xs radius">淇濆吇椤�:</view> <view class="flex-sub bg-white padding-xs margin-xs text-bold radius text-right"> {{item.title}} + </view> + </view> + <view class="flex"> + <view class="flex-sub text-light bg-white padding-xs margin-xs radius">鏄惁鎶ヤ慨:</view> + <view class="flex-sub bg-white padding-xs text-right margin-xs radius"> + <uni-data-select :localdata="item.type"/> </view> </view> <view class="flex"> @@ -100,7 +107,7 @@ <view class="flex"> <view class="flex-sub text-light bg-white padding-xs margin-xs radius">淇濆吇缁撴灉:</view> <view class="flex-sub bg-white padding-xs text-right margin-xs radius"> - <uni-data-select :localdata="item.restle" :clear="true" /> + <uni-data-select :localdata="item.restle" /> </view> </view> @@ -112,13 +119,7 @@ </view> </view> - <view class="flex"> - <view class="flex-sub text-light bg-white padding-xs margin-xs radius">鏄惁鎶ヤ慨:</view> - <view class="flex-sub bg-white padding-xs text-right margin-xs radius"> - <uni-data-select :localdata="item.type" /> - - </view> - </view> + </uni-card> @@ -148,6 +149,15 @@ }, { text: "寮傚父", + value: 1 + } + ], + type: [{ + text: "鏄�", + value: 0 + }, + { + text: "鍚�", value: 1 } ] @@ -275,7 +285,6 @@ /* 妫�绱� */ getSera(res) { - this.msgList = []; if (keyword == 0) { this.$http.get(this.url.stallList, { params: { @@ -322,6 +331,30 @@ </script> <style> + .divider { + display: flex; + align-items: center; + text-align: center; + color: gray; + /* 鏂囧瓧棰滆壊 */ + margin: 20px 0; + /* 涓婁笅闂磋窛 */ + } + + .divider::before, + .divider::after { + content: ''; + flex: 1; + border-bottom: 1px solid gray; + /* 妯嚎棰滆壊 */ + margin: 0 16px; + /* 妯嚎涓庢枃瀛椾箣闂寸殑闂磋窛 */ + } + + .divider text { + white-space: nowrap; + /* 闃叉鏂囧瓧鎹㈣ */ + } .is-hover { color: rgba(255, 255, 255, 0.6); background-color: #55aaff; -- Gitblit v1.9.3