This commit is contained in:
Teng 2026-01-06 11:06:19 +08:00
commit fcf77a76da
3 changed files with 95 additions and 31 deletions

View File

@ -140,4 +140,4 @@
"enable": false "enable": false
}, },
"vueVersion": "3" "vueVersion": "3"
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="index-content-other" :style="transition?{opacity: `1`}:{opacity: `0`}"> <view class="index-content-other" :style="transition?{opacity: `1`}:{opacity: `0`}">
<view class="right-container-title-nav"> <view class="right-container-title-nav">
<view class="title-card"> <view class="title-card" @click="nusing">
<view class="card-top"> <view class="card-top">
<view class="card-top-left"> <view class="card-top-left">
50 50
@ -25,7 +25,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="title-card"> <view class="title-card" @click="nusing">
<view class="card-top"> <view class="card-top">
<view class="card-top-left"> <view class="card-top-left">
32 32
@ -49,8 +49,8 @@
</view> </view>
</view> </view>
</view> </view>
<view class="title-card"> <view class="title-card" @click="nusing">
<view class="card-top"> <view class="card-top" >
<view class="card-top-left"> <view class="card-top-left">
65 65
</view> </view>
@ -73,7 +73,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="title-card-right"> <view class="title-card-right" >
<view class="card-top"> <view class="card-top">
<view class="card-top-left"> <view class="card-top-left">
65 65
@ -118,7 +118,7 @@
</view> </view>
</view> </view>
<image class="big-img" <image class="big-img"
:src="indexmessage?.previewFile? 'https://www.focusnu.com/media/upFiles/' + indexmessage?.previewFile: `/static/index/newindex/wendu/2.png`" /> :src="indexmessage?.previewFile? 'https://www.focusnu.com/media/upFiles/' + indexmessage?.previewFile: `/static/index/newindex/wendu/2.png`" mode="aspectFill"/>
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view class="server-name" v-if="indexmessage?.startTime"> <view class="server-name" v-if="indexmessage?.startTime">
{{ indexmessage?.directiveName }} {{ indexmessage?.directiveName }}
@ -126,24 +126,30 @@
</view> </view>
<view style="display: flex;margin-top: 40rpx;"> <view style="display: flex;margin-top: 40rpx;">
<view style="width: 240rpx;height: 90rpx;margin-right: 40rpx;"> <view style="width: 240rpx;height: 90rpx;margin-right: 40rpx;">
<view class="start-button" v-show="indexmessage?.startTime"> <view :class="indexmessage.izStart=='N'?'start-button':'end-button'" v-show="indexmessage?.startTime" @click="start(indexmessage)">
开始服务 开始服务
</view> </view>
</view> </view>
<view style="width: 240rpx;height: 90rpx;"> <view style="width: 240rpx;height: 90rpx;">
<view class="end-button" v-show="indexmessage?.startTime"> <view :class="(indexmessage.izStart=='Y'&& indexmessage.izFinish=='N')?'start-button':'end-button'" v-show="indexmessage?.startTime" @click="end(indexmessage)">
结束服务 结束服务
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="left-menu" v-show="indexmessage?.startTime"> <view class="left-menu" >
<view v-for="(item,index) in leftArray" :key="index" style="margin: 30rpx 0;"> <view v-for="(item,index) in 3" :key="index" style="margin: 30rpx 0;">
<view class="left-ball"> <view class="left-ball" :style="indexmessage?.izStart=='Y'?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<image class="left-menu-img" :src="item" /> <image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+index+'.png'" />
</view>
</view>
</view>
<view class="left-menu" v-if="indexmessage?.izStart=='Y'" >
<view v-for="(item,index) in [3,4]" :key="index" style="margin: 30rpx 0;">
<view class="left-ball">
<image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+item+'.png'" />
</view> </view>
</view> </view>
</view> </view>
<view class="right-menu" v-show="indexmessage?.startTime"> <view class="right-menu" v-show="indexmessage?.startTime">
@ -299,6 +305,7 @@
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch } from 'vue'; import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch } from 'vue';
import { queryPadPageList } from '@/pages/watch/api/lunpan.js' import { queryPadPageList } from '@/pages/watch/api/lunpan.js'
import { queryWorkCareList } from './api.js' import { queryWorkCareList } from './api.js'
import {startOrder,endOrder} from './doctorask/api/api.js'
const props = defineProps({ const props = defineProps({
isShow: { isShow: {
@ -338,6 +345,29 @@
// e.detail.scrollTop // e.detail.scrollTop
scrollTop.value = e.detail.scrollTop scrollTop.value = e.detail.scrollTop
} }
const start = (v) =>{
if(v.izStart!='N'){return}
startOrder({id:v.directiveId}).then(res=>{
console.log(res)
if(res.success){
v.izStart = "Y";
}else{
}
})
}
const end = (v)=>{
if(v.izStart!='Y'&& v.izFinish!='N'){return}
endOrder({id:v.directiveId}).then(res=>{
if(res.success){
v.izStart = "N";
v.izFinish = "Y";
}else{
}
})
}
// //
function genPaths(base, prefix, count, ext = 'png', startIndex = 0, pad = false) { function genPaths(base, prefix, count, ext = 'png', startIndex = 0, pad = false) {
return Array.from({ length: count }, (_, i) => { return Array.from({ length: count }, (_, i) => {
@ -348,10 +378,10 @@
}) })
} }
const rightMenu = ref([ const rightMenu = ref([
{ // {
url: "/static/index/newindex/rightmenu/0.png", // url: "/static/index/newindex/rightmenu/0.png",
name: '重点追踪' // name: ''
}, // },
{ {
url: "/static/index/newindex/rightmenu/1.png", url: "/static/index/newindex/rightmenu/1.png",
name: '转单执行' name: '转单执行'
@ -364,8 +394,8 @@
const leftArray = ref(genPaths( const leftArray = ref(genPaths(
'/static/index/newindex/leftmenu', '/static/index/newindex/leftmenu',
'left', 'left',
5, // 5,
'png', 'png',
0, // 0, //
false // false //
@ -491,9 +521,9 @@
workType: 5 workType: 5
} }
queryWorkCareList(data).then((res : any) => { queryWorkCareList(data).then((res : any) => {
// console.log("",res.result.records[0]) console.log("看看图",res.result.records[0])
indexmessage.value = res.result.records[0]; indexmessage.value = res.result.records[0];
// console.log("",'https://www.focusnu.com/media/upFiles/'+indexmessage.value.previewFile) console.log("看看图",'https://www.focusnu.com/media/upFiles/'+indexmessage.value.previewFile)
}) })
} }
const lanjie = ref(false); const lanjie = ref(false);
@ -502,6 +532,27 @@
url: "/pages/watch/full" url: "/pages/watch/full"
}) })
} }
const minuteArr = ['00', '05', '10', '15', '20', '25', '30', '35', '40', '45', '50', '55']
const timearr = ref(
Array.from({ length: 24 }, (_, hour) => ({
positioning: hour.toString(),
children: minuteArr.map(time => ({
tagName: time, // '00', '05'
directiveName: '' // directiveName
}))
}))
)
const nusing = ()=>{
uni.setStorage({
key: 'myArray',
data: timearr.value,
success: function () {
uni.navigateTo({
url: `/pages/timeMatrix/indexnew`
})
},
});
}
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
@ -720,7 +771,7 @@
.big-img { .big-img {
margin-top: 40rpx; margin-top: 40rpx;
width: 450rpx; // width: 450rpx;
height: 450rpx; height: 450rpx;
z-index: 10; z-index: 10;
} }
@ -820,15 +871,13 @@
} }
.left-ball { .left-ball {
width: 80rpx; width: 80rpx;
height: 80rpx; height: 80rpx;
border-radius: 50%; border-radius: 50%;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
background-color: #fff;
.left-menu-img { .left-menu-img {
width: 40rpx; width: 40rpx;
@ -854,7 +903,7 @@
.right-scroll { .right-scroll {
width: 100%; width: 100%;
height: 650rpx; height: 450rpx;
} }
.white-circle { .white-circle {

View File

@ -13,8 +13,11 @@
<!-- <view class="heng guodu" :style="i!=dexleft&&i!=list.length-1?'opacity: 1':'opacity: 0'"></view> --> <!-- <view class="heng guodu" :style="i!=dexleft&&i!=list.length-1?'opacity: 1':'opacity: 0'"></view> -->
</view> </view>
</view> </view>
<view class="logo tp"> <view class="logo">
<image src="/static/shouye/xd.png" mode="aspectFill"></image> <view class="tp">
<image src="/static/shouye/xd.png" mode="aspectFill"></image>
</view>
<text>{{uni.getStorageSync('realname')}}</text>
</view> </view>
</view> </view>
</view> </view>
@ -44,11 +47,23 @@
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 3.8vw 0 0vw 0; padding: 3.8vw 0 1vw 0;
margin-right: 3vw; margin-right: 3vw;
.logo{ .logo{
width: 3.8vw; width: 3.8vw;
height: 3.8vw; display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
view{
width: 3.8vw;
height: 3.8vw;
}
text{
font-size: 1.2vw;
margin-top: 0.6vw;
color: #666666;
}
} }
.logomain{ .logomain{
width: 6vw; width: 6vw;