小优化

This commit is contained in:
TimSpan 2024-11-15 11:48:03 +08:00
parent 04ad687120
commit 18ba81d119
4 changed files with 16 additions and 25 deletions

View File

@ -1,7 +1,7 @@
# 配置文档参考 https://taro-docs.jd.com/docs/next/env-mode-config # 配置文档参考 https://taro-docs.jd.com/docs/next/env-mode-config
TARO_APP_ID="wx0acd1c4fcf94bdd3" TARO_APP_ID="wx0acd1c4fcf94bdd3"
# TARO_APP_BASE_API="http://172.10.10.93:8765" TARO_APP_BASE_API="http://172.10.10.93:8765"
TARO_APP_BASE_API="https://www.hnjinglian.cn:5678" # TARO_APP_BASE_API="https://www.hnjinglian.cn:5678"

View File

@ -47,27 +47,7 @@ page {
.sigh_btns_noRotate {} .sigh_btns_noRotate {}
.input_box {
width: 638rpx;
background: #f8f9fa;
border-radius: 16rpx;
padding: 20rpx 32rpx;
display: flex;
margin-bottom: 24rpx;
display: flex;
align-items: center
}
.input_lable {
width: 180rpx;
display: flex;
flex-wrap: wrap;
font-weight: bold;
font-size: 28rpx;
color: #101010;
line-height: 40rpx;
font-style: normal;
}
.input_width { .input_width {
width: 400rpx; width: 400rpx;

View File

@ -3,7 +3,7 @@
<nut-form labelWidth="320rpx" labelAlign="left" @click.stop="openSearch"> <nut-form labelWidth="320rpx" labelAlign="left" @click.stop="openSearch">
<nut-form-item label="考核单位:"> <nut-form-item label="考核单位:">
<view class="input_width"> <view class="input_width">
<input style="width: 300rpx" disabled="true" v-model="enterprisesName" placeholder="请选择考核单位:" placeholder-class="input_placeholder" /> <input style="width: 300rpx" disabled="true" v-model="enterprisesName" placeholder="请选择考核单位:" />
<IconFont name="arrow-down"></IconFont> <IconFont name="arrow-down"></IconFont>
</view> </view>
</nut-form-item> </nut-form-item>
@ -91,10 +91,11 @@
<radio :value="item.value" color="#687CFF" /> <radio :value="item.value" color="#687CFF" />
</view> </view>
</radio-group> --> </radio-group> -->
<nut-radio-group style="margin-left: 30rpx" v-model="selectedID"> <nut-radio-group v-if="(selectorCopy?.length ?? 0) > 0" style="margin-left: 30rpx" v-model="selectedID">
<nut-radio icon-size="20" v-for="(item, index) in selectorCopy" :key="index" :label="item.value"> {{ item.label }}</nut-radio> <nut-radio icon-size="20" v-for="(item, index) in selectorCopy" :key="index" :label="item.value"> {{ item.label }}</nut-radio>
<view style="height: 40rpx"></view> <view style="height: 40rpx"></view>
</nut-radio-group> </nut-radio-group>
<nut-empty v-else description="暂无单位"></nut-empty>
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
@ -383,6 +384,16 @@ const confirm_ = ({ detail: { value } }) => {
} }
const determine = () => { const determine = () => {
console.log(selectedID.value)
if (selectedID.value === '' && (selector.value?.length as number) > 0) {
Taro.showToast({
title: '请选择单位',
icon: 'none',
duration: 1500,
mask: true,
})
return
}
let index: number = selector.value?.findIndex((item) => item.value === selectedID.value) as number let index: number = selector.value?.findIndex((item) => item.value === selectedID.value) as number
_form.enterprisesUnitId = selectedID.value _form.enterprisesUnitId = selectedID.value
let type = selector.value?.[index].extData.type.value let type = selector.value?.[index].extData.type.value

View File

@ -7,7 +7,7 @@ VITE_DROP_CONSOLE=false
VITE_APP_BASE_API=/api VITE_APP_BASE_API=/api
# VITE_APP_PROXY_URL=http://localhost:8765 # VITE_APP_PROXY_URL=http://localhost:8765
VITE_APP_PROXY_URL=http://172.10.10.93:8765 VITE_APP_PROXY_URL=http://172.10.10.93:8765
#
# rsa 公钥 # rsa 公钥
VITE_APP_RSA_PUBLIC_KEY=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJps/EXxxSpEM1Ix4R0NWIOBciHCr7P7coDT8tNKfelgR7txcJOqHCO/MIWe7T04aHQTcpQxqx9hMca7dbqz8TZpz9jvLzE/6ZonVKxHsoFnNlHMp1/CPAJ9f6D9wYicum2KltJkmQ0g//D9W2zPCYoGOmSRFcZx/KEBa4EM53jQIDAQAB VITE_APP_RSA_PUBLIC_KEY=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJps/EXxxSpEM1Ix4R0NWIOBciHCr7P7coDT8tNKfelgR7txcJOqHCO/MIWe7T04aHQTcpQxqx9hMca7dbqz8TZpz9jvLzE/6ZonVKxHsoFnNlHMp1/CPAJ9f6D9wYicum2KltJkmQ0g//D9W2zPCYoGOmSRFcZx/KEBa4EM53jQIDAQAB