This commit is contained in:
wangweidong 2025-12-23 13:26:02 +08:00
parent 8d5b570f97
commit 190934e997
7 changed files with 167 additions and 10 deletions

View File

@ -0,0 +1,157 @@
<template>
<view>
<scroll-view scroll-y="true" class="list">
<view class="list">
<view class="cardm" v-for="(v,i) in arrlist" :key='i' @click="config(i)"
:style="{border: cardtarget === i? '4rpx dashed #1083F8': '4rpx solid transparent',backgroundColor:cardtarget === i?`#F9FCFF`:``}">
<view class="hldyimg tp">
<image :src="leftarraytarget==1?'/static/shouye/hldy.png':'/static/shouye/ck.png'" mode="aspectFill"></image>
</view>
<view class="name">
{{ v.areaFlag=="1"?``:`库房` }}
<text v-if="v.areaFlag!='1'"></text>
{{v.nuName}}
</view>
<view class="ids" v-if="v.nuId"> NUID{{v.nuId}}</view>
<view v-if="leftarraytarget==1">
<view class="kx" v-if="v.status=='0'||v.status=='3'">空闲</view>
<view class="bkx" v-else>
<image src="/static/shouye/old.png" mode="aspectFill"></image>
<text>{{ v.elderInfo?.name }}</text>
</view>
</view>
<view v-else>
<view class="bkx" >
<image src="/static/shouye/yg.png" mode="aspectFill"></image>
<text>{{ v.fzr }}</text>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
</template>
<script setup lang="ts">
import {
ref,
onMounted,
onBeforeUnmount,
computed,
nextTick,
watch
} from 'vue';
const emit = defineEmits(['config'])
const props = defineProps({
arrlist: {
type: Array,
required: true
},
cardtarget: {
type: String
},
show: {
type: Boolean
},
leftarraytarget:{
type:Number
}
})
const config = (e)=>{
emit('config',e)
}
</script>
<style scoped lang="less">
.list{
width: 88vw;
height: 85vh;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
.cardm{
width: 21vw;
height: 15.8vw;
background: rgba(255, 255, 255, 0.9);
border-radius: 1.6vw;
margin-top: 1.6vw;
position: relative;
.bkx{
width: 3vw;
height: 6vw;
position: absolute;
top: 1.4vw;
right: 1.6vw;
display: flex;
flex-direction: column;
align-items: center;
image{
width: 2vw;
height: 2vw;
border-radius: 50%;
margin-bottom: 0.3vw;
}
text{
font-weight: 400;
font-size: 1vw;
color: #888888;
white-space: nowrap;
}
}
.kx{
width: 3.6vw;
height: 1.8vw;
background: #E5E5E5;
border-radius: 0.9vw;
display: flex;
justify-content: center;
align-items: center;
font-weight: 400;
font-size: 1.1vw;
color: #555555;
position: absolute;
right: 1.5vw;
top: 1.5vw;
}
.hldyimg{
width: 6.5vw;
height: 6.5vw;
position: absolute;
top: 1.4vw;
left: 1.6vw;
}
.name{
font-weight: 400;
font-size: 1.6vw;
color: #333333;
top: 10.5vw;
left: 1.7vw;
position: absolute;
max-width: 18vw;
white-space: nowrap;
text-overflow: ellipsis;
display: flex;
align-items: center;
text{
height: 1.3vw;
width: 1px;
font-weight: bolder;
font-size: 1.3vw;
margin: 0 1vw;
border-left: 2px solid rgba(153, 153, 153, 0.6);
}
}
.ids{
font-weight: 400;
font-size: 1.2vw;
color: #999999;
bottom: 1.2vw;
left: 1.7vw;
position: absolute;
}
}
}
.tp image{
width: 100%;
height: 100%;
}
</style>

View File

@ -24,10 +24,10 @@
</view> </view>
<exit :show="exitshow" @close="exitshow=false" /> <exit :show="exitshow" @close="exitshow=false" />
<view class="right-content"> <view class="right-content">
<view class="yanfazhong" v-show="!leftarraytarget"> <view class="yanfazhong" v-show="!leftarraytarget" style="font-size: 40rpx; margin-top: -10vh;">
研发中... 研发中...
</view> </view>
<view class="yanfazhong" v-show="leftarraytarget==3"> <view class="yanfazhong" v-show="leftarraytarget==3" style="font-size: 40rpx; margin-top: -10vh;">
研发中... 研发中...
</view> </view>
<view class="componentall" v-show="leftarraytarget==4&&ldflagindex==0"> <view class="componentall" v-show="leftarraytarget==4&&ldflagindex==0">
@ -39,8 +39,8 @@
<inputing v-if="ldflagindex==12"></inputing> <inputing v-if="ldflagindex==12"></inputing>
</view> </view>
<view class="componentall" v-show="leftarraytarget==1 || leftarraytarget==2"> <view class="componentall" v-show="leftarraytarget==1 || leftarraytarget==2">
<scroll-view scroll-y class="componentall" > <homelist :arrlist="cardarray" :leftarraytarget="leftarraytarget" @config="clickcard"></homelist>
<!-- 阻止scroll对容器样式的影响 {{item.nuName}}--> <!-- <scroll-view scroll-y class="componentall" >
<view class="card-father"> <view class="card-father">
<view class="card" <view class="card"
:style="{border: cardtarget === index? '4rpx dashed #1083F8': '4rpx solid transparent',backgroundColor:cardtarget === index?`#F9FCFF`:``}" :style="{border: cardtarget === index? '4rpx dashed #1083F8': '4rpx solid transparent',backgroundColor:cardtarget === index?`#F9FCFF`:``}"
@ -94,8 +94,7 @@
</view> </view>
</view> </view>
</view> </view>
</scroll-view> -->
</scroll-view>
</view> </view>
</view> </view>
<!-- 自动更新组件 --> <!-- 自动更新组件 -->
@ -111,6 +110,7 @@
import menusettings from '@/pages/watch/settings/menusettings.vue' import menusettings from '@/pages/watch/settings/menusettings.vue'
import { queryPadPageList } from '@/pages/watch/api/lunpan.js' import { queryPadPageList } from '@/pages/watch/api/lunpan.js'
import ZyUpdate from '@/component/zy-upgrade/zy-upgrade.vue' import ZyUpdate from '@/component/zy-upgrade/zy-upgrade.vue'
import homelist from './components/homelist'
const zyupgrade = ref(null); const zyupgrade = ref(null);
const menuarray = ref(["", "", "", "", "", ""]) const menuarray = ref(["", "", "", "", "", ""])
@ -124,6 +124,7 @@
onShow(() => { onShow(() => {
zyupgrade.value?.check_update(); zyupgrade.value?.check_update();
queryPadPageList().then((res => { queryPadPageList().then((res => {
console.log(res)
leftMenuArray.value = res.result.records; leftMenuArray.value = res.result.records;
})) }))
@ -254,8 +255,7 @@
align-items: center; align-items: center;
.yanfazhong { .yanfazhong {
font-size: 40rpx;
margin-top: -10vh;
} }
} }
} }

BIN
static/shouye/ck.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
static/shouye/hldy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
static/shouye/yg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -574,7 +574,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
) )
]); ]);
} }
const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/camera.nvue"]]); const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/camera.nvue"]]);
export { export {
camera as default camera as default
}; };

View File

@ -577,7 +577,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
) )
]); ]);
} }
const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/fullcamera.nvue"]]); const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/fullcamera.nvue"]]);
export { export {
fullcamera as default fullcamera as default
}; };