合并代码

This commit is contained in:
Teng 2026-01-26 17:28:01 +08:00
parent bde478b330
commit d1e5a26f1b
9 changed files with 471 additions and 49 deletions

View File

@ -109,7 +109,6 @@ export const editDirective = (params) => {
// 根据日期查询日程表 // 根据日期查询日程表
export const getDirectiveOrders = (date) => { export const getDirectiveOrders = (date) => {
// console.log("aaaaaaaaaaaaa",uni.getStorageSync('nuId'),uni.getStorageSync('elderId'),date)
return request({ return request({
url: `${uni.getStorageSync('serverUrl')}/api/pad/care/directive/getDirectiveOrders?nuId=${uni.getStorageSync('nuId')}&elderId=${uni.getStorageSync('elderId')}&queryDate=${date}`, url: `${uni.getStorageSync('serverUrl')}/api/pad/care/directive/getDirectiveOrders?nuId=${uni.getStorageSync('nuId')}&elderId=${uni.getStorageSync('elderId')}&queryDate=${date}`,
method: 'get', method: 'get',
@ -119,7 +118,7 @@ export const getDirectiveOrders = (date) => {
// 新增服务指令 // 新增服务指令
export const addDirective = (params) => { export const addDirective = (params) => {
return request({ return request({
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/directive/addDirective`, url: `${uni.getStorageSync('serverUrl')}/api/pad/care/directive/addDirective`,
method: 'post', method: 'post',
data: params, data: params,
}) })

View File

@ -173,7 +173,7 @@
:class="moveById===item.id? `future-item-target`: `future-item`" :style="{ :class="moveById===item.id? `future-item-target`: `future-item`" :style="{
height: firstListTarget === index ? '300rpx' : '140rpx', height: firstListTarget === index ? '300rpx' : '140rpx',
left: firstListTargetShow === index ? '0' : '999rpx', left: firstListTargetShow === index ? '0' : '999rpx',
top: index === upmenuarray.length - 1 && firstListTarget === index? `-164rpx`:`0rpx` // top: index === upmenuarray.length - 1 && firstListTarget === index? `-164rpx`:`0rpx`
}"> }">
<view class="future-fonts"> <view class="future-fonts">
<view class="card-over"> <view class="card-over">

View File

@ -2510,14 +2510,250 @@
} }
} }
.target-items-father {
margin-top: 20rpx;
width: 90%;
margin-left: 7%;
height: 510rpx;
position: relative;
.target-edit {
position: absolute;
right: 5rpx;
bottom: 5rpx;
width: 130rpx;
height: 60rpx;
display: flex;
justify-content: center;
align-items: center;
background-color: #F5FAFF;
border: 2rpx solid #0080FC;
border-radius: 10rpx;
color: #0089FE;
font-size: 33rpx;
}
.target-items {
width: 100%;
height: 50rpx;
margin-top: 30rpx;
margin-left: -5rpx;
display: flex;
align-items: center;
.target-gray {
background-color: #F8F8FA;
border: 1rpx solid #D5D5D5;
display: flex;
height: 100%;
align-items: center;
padding: 0 18rpx;
border-radius: 10rpx;
font-size: 28rpx;
color: #222222;
}
}
.target-contain {
margin-top: 20rpx;
height: 135rpx;
width: 100%;
display: flex;
/* background-color: blue; */
.image-father {
width: 100rpx;
height: 150rpx;
display: flex;
justify-content: center;
/* align-items: center; */
.target-img {
margin-top: 20rpx;
width: 80rpx;
height: 80rpx;
}
}
.image-right {
width: 500rpx;
height: 100%;
margin-left: 15rpx;
/* background-color: green; */
.right-title {
font-size: 31rpx;
color: #555555;
margin-left: 5rpx;
}
.target-many {
/* margin-top: 10rpx; */
height: 75rpx;
width: 150rpx;
display: flex;
/* background-color: red; */
.target-strart {
font-size: 65rpx;
color: #2A2A2A;
font-weight: 800;
margin-right: 6rpx;
}
.target-other {
min-width: 800rpx;
margin-top: 35rpx;
display: flex;
align-items: center;
/* background-color: red; */
.target-blue {
color: #0089FE;
}
.target-shu {
margin: 0 10rpx;
}
}
}
}
}
.target-smalltext {
width: 95%;
height: 200rpx;
/* background-color: red; */
color: #666666;
font-size: 27rpx;
}
}
.edit-open {
position: absolute;
top: 310rpx;
left: 0;
width: 100%;
height: 472rpx;
background-color: #fff;
border: 2rpx solid rgba(0, 137, 254, 0.29);
border-radius: 35rpx;
z-index: 1;
.edit-week {
width: 90%;
margin-left: 5%;
margin-top: 20rpx;
display: flex;
flex-wrap: wrap;
.week-day {
width: 25%;
height: 70rpx;
display: flex;
justify-content: center;
align-items: center;
/* background-color: blue; */
}
}
.edit-month {
width: 90%;
margin-left: 5%;
margin-top: -30rpx;
display: flex;
flex-wrap: wrap;
.month-day {
width: 14%;
height: 50rpx;
display: flex;
justify-content: center;
align-items: center;
font-size: 27rpx;
color: #666666;
/* background-color: red; */
/* background-color: blue; */
}
}
.edit-right {
position: absolute;
right: 30rpx;
bottom: 25rpx;
width: 120rpx;
height: 60rpx;
font-size: 30rpx;
display: flex;
justify-content: center;
align-items: center;
color: #0080FC;
border: 2rpx solid #0080FC;
border-radius: 10rpx;
background-color: #F5FAFF;
}
.triangle {
position: absolute;
top: -8.34rpx;
right: 250rpx;
width: 0;
height: 0;
border-left: 14.44rpx solid transparent;
border-right: 14.44rpx solid transparent;
border-bottom: 8.34rpx solid rgba(0, 137, 254, 0.29);
.triangle-small {
position: absolute;
top: 1.2rpx;
right: 50%;
transform: translateX(50%);
width: 0;
height: 0;
border-left: 14.44rpx solid transparent;
border-right: 14.44rpx solid transparent;
border-bottom: 8.34rpx solid #fff;
}
}
.edit-menu {
width: 100%;
height: 100rpx;
display: flex;
align-items: center;
margin-left: 35rpx;
position: relative;
.edit-tags {
width: 100rpx;
display: flex;
justify-content: center;
font-size: 30rpx;
}
.edit-heng {
position: absolute;
bottom: 23rpx;
left: 40rpx;
width: 20rpx;
height: 5rpx;
border-radius: 5rpx;
background-color: #0080FC;
transition: left 0.3s ease;
}
}
}
.three-items { .three-items {
margin-top: 20rpx; margin-top: 20rpx;
width: 90%; width: 90%;
margin-left: 7%; margin-left: 7%;
height: 510rpx; height: 510rpx;
display: flex; display: flex;
/* background-color: #fff; */
/* 禁止元素拖动 */ /* 禁止元素拖动 */
.tree-item { .tree-item {
@ -2617,3 +2853,25 @@
/* 添加毛玻璃效果 */ /* 添加毛玻璃效果 */
z-index: 10; z-index: 10;
} }
.target-shu {
font-size: 32rpx;
color: #9e9e9e;
margin: 0 8rpx;
}
.card-bao {
position: absolute;
left: 35rpx;
top: 110rpx;
width: 32rpx;
height: 32rpx;
font-size: 24rpx;
display: flex;
justify-content: center;
align-items: center;
background-color: #4690FF;
color: #fff;
border-radius: 5rpx;
}

View File

@ -114,7 +114,8 @@
分享 分享
</view> </view>
<view class="white-button" @click="changLeft(5)"> <view class="white-button" @click="changLeft(5)">
<image class="white-img" style="width: 45rpx;height: 45rpx;" :src="`/static/index/newruler/watch.png`" /> <image class="white-img" style="width: 45rpx;height: 45rpx;"
:src="`/static/index/newruler/watch.png`" />
监控 监控
</view> </view>
</view> </view>
@ -138,8 +139,8 @@
</view> </view>
<view class="super-card-container"> <view class="super-card-container">
<scroll-view style="height: 100%" scroll-with-animation <scroll-view style="height: 100%" scroll-with-animation :scroll-left="cardLeft" scroll-x
:scroll-left="cardLeft" scroll-x @scroll="handleTop" :show-scrollbar="false"> @scroll="handleTop" :show-scrollbar="false">
<view style="display: flex;width:4824rpx;"> <view style="display: flex;width:4824rpx;">
<view v-for="(item0,index0) in timearr" :key="index0"> <view v-for="(item0,index0) in timearr" :key="index0">
<view class="super-card-time"> <view class="super-card-time">
@ -184,7 +185,6 @@
:style="{ animationDelay:`-${computeDelay(index0, index1).toFixed(2)}s` }"> :style="{ animationDelay:`-${computeDelay(index0, index1).toFixed(2)}s` }">
<view class="title-time" v-if="item1.startTime" <view class="title-time" v-if="item1.startTime"
style="flex-direction: column;"> style="flex-direction: column;">
<image v-show="item1.startTime" <image v-show="item1.startTime"
style="width: 50rpx;height: 50rpx;margin: 0 auto;margin-top: 20rpx" style="width: 50rpx;height: 50rpx;margin: 0 auto;margin-top: 20rpx"
@ -1392,11 +1392,11 @@
izPackage: 'Y', izPackage: 'Y',
previewFile: "", previewFile: "",
previewFileSmall: "", previewFileSmall: "",
netPreviewFile:"", netPreviewFile: "",
netPreviewFileSmall:"", netPreviewFileSmall: "",
immediateFile: "", immediateFile: "",
immediateFileFocus: "", immediateFileFocus: "",
netImmediateFileFocus:"", netImmediateFileFocus: "",
netImmediateFile: "", netImmediateFile: "",
tagName: timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1].tagName, tagName: timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1].tagName,
mp3File: allobject.mp3File, mp3File: allobject.mp3File,
@ -1545,7 +1545,7 @@
serviceDuration: allobject.serviceDuration, serviceDuration: allobject.serviceDuration,
immediateFile: allobject.immediateFile, immediateFile: allobject.immediateFile,
immediateFileFocus: allobject.immediateFileFocus, immediateFileFocus: allobject.immediateFileFocus,
netImmediateFileFocus:allobject.netImmediateFileFocus, netImmediateFileFocus: allobject.netImmediateFileFocus,
netImmediateFile: allobject.netImmediateFile, netImmediateFile: allobject.netImmediateFile,
tagName: timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1].tagName, tagName: timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1].tagName,
mp3File: allobject.mp3File, mp3File: allobject.mp3File,
@ -1553,8 +1553,8 @@
mp4File: allobject.mp4File, mp4File: allobject.mp4File,
netMp4File: allobject.netMp4File, netMp4File: allobject.netMp4File,
serviceContent: allobject.serviceContent, serviceContent: allobject.serviceContent,
netPreviewFile:allobject.netPreviewFile, netPreviewFile: allobject.netPreviewFile,
netPreviewFileSmall:allobject.netPreviewFileSmall, netPreviewFileSmall: allobject.netPreviewFileSmall,
} }
// //
timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1] = param; timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1] = param;

View File

@ -48,11 +48,13 @@
@click="rulerTouchClick(item1,index0,index1)" @click="rulerTouchClick(item1,index0,index1)"
:data-index0="index0" :data-index1="index1"> :data-index0="index0" :data-index1="index1">
<view class="title-time-blue" <view class="title-time-blue"
v-show="saveEditIndex.index0 == index0 && saveEditIndex.index1 == index1 && isRule"> v-show="saveEditIndex.index0 == index0 && saveEditIndex.index1 == index1">
<image class="blue-img" lazy-load <image class="blue-img"
src="/static/index/bluetarget.png" /> src="/static/index/bluetarget.png" />
</view> </view>
<view class="card-bao" v-if="item1.izPackage==`Y`">
</view>
<view :class="getClass(item1,index0,index1)" <view :class="getClass(item1,index0,index1)"
style="font-size: 30rpx;overflow: hidden;" style="font-size: 30rpx;overflow: hidden;"
:style="{ animationDelay:`-${computeDelay(index0, index1).toFixed(2)}s`,border:saveEditIndex.index0 == index0 && saveEditIndex.index1 == index1? `2rpx solid #46B2F6`:'' }"> :style="{ animationDelay:`-${computeDelay(index0, index1).toFixed(2)}s`,border:saveEditIndex.index0 == index0 && saveEditIndex.index1 == index1? `2rpx solid #46B2F6`:'' }">
@ -193,7 +195,7 @@
src="/static/index/procurement/haven.png" mode="aspectFill"></image> src="/static/index/procurement/haven.png" mode="aspectFill"></image>
</view> </view>
</view> </view>
<view class="right-tree"> <view class="right-tree" @click="editopen=false">
<view class="right-servers"> <view class="right-servers">
<view :class="servertype===index?`servertarget`:`server`" <view :class="servertype===index?`servertarget`:`server`"
v-for="(item,index) in [`服务指令`,`服务指令包`]" :key="index" @click="openserver(index)"> v-for="(item,index) in [`服务指令`,`服务指令包`]" :key="index" @click="openserver(index)">
@ -211,7 +213,7 @@
双击服务指令可编辑矩阵 双击服务指令可编辑矩阵
</view> </view>
</view> </view>
<view class="three-items"> <view class="three-items" v-show="!ruleritem.directiveName">
<view class="tree-item"> <view class="tree-item">
<scroll-view style="height: 100%;width:100%;" :scroll-y="canmove" <scroll-view style="height: 100%;width:100%;" :scroll-y="canmove"
@scroll="handleScroll"> @scroll="handleScroll">
@ -257,6 +259,84 @@
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
<view class="target-items-father" v-if="ruleritem.directiveName">
<view class="target-items">
<view class="target-gray">
{{ ruleritem.categoryName }}
</view>
<view class="target-shu">
|
</view>
<view class="target-gray">
{{ ruleritem.typeName }}
</view>
</view>
<view class="target-contain">
<view class="image-father">
<image class="target-img" :src="serverUrl + ruleritem.immediateFile" />
</view>
<view class="image-right">
<view class="right-title">
{{ ruleritem.directiveName }}
</view>
<view class="target-many">
<view class="target-strart">
{{ ruleritem.startTime }}
</view>
<view class="target-other">
<view class="target-shu">
|
</view>
<text class="target-blue">
{{ ruleritem.newtypename }}
</text>
<view class="target-shu">
|
</view>
<view class="">
{{ ruleritem.serviceDuration }}分钟
</view>
</view>
</view>
</view>
</view>
<view class="target-smalltext">
{{ ruleritem.serviceContent }}
</view>
<view class="target-edit" @click.stop="editopen = !editopen">
编辑
</view>
</view>
<view class="edit-open" v-show="editopen" @click.stop>
<view class="edit-menu">
<view class="triangle">
<view class="triangle-small"></view>
</view>
<view class="edit-tags" :style="edittype===index?{fontWeight:`700`}:{}"
v-for="(item,index) in [`星期`,`日期`,`频率`]" :key="index"
@click="clickedit(index) ">
{{ item }}
</view>
<view class="edit-heng" :style="{left:`${40+edittype*100}rpx`}"></view>
</view>
<view class="edit-week">
<view class="week-day" v-for="(item,index) in weekDays" :key="index"
v-show="!edittype">
{{ item }}
</view>
</view>
<view class="edit-month">
<view class="month-day" v-for="(item,index) in monthDays" :key="index"
v-show="edittype==1">
{{ item }}
</view>
</view>
<view class="edit-right">
确定
</view>
</view>
</view> </view>
<view class="right-finally"> <view class="right-finally">
<image class="finally-older" <image class="finally-older"
@ -276,6 +356,7 @@
<view class="blue-right" @click="cleanallopen();editingmode = !editingmode"> <view class="blue-right" @click="cleanallopen();editingmode = !editingmode">
{{ editingmode?"确定":"+编辑" }} {{ editingmode?"确定":"+编辑" }}
</view> </view>
</view> </view>
</view> </view>
</view> </view>
@ -529,7 +610,9 @@
const timeArray = [ const timeArray = [
`00`, `05`, `10`, `15`, `20`, `25`, `30`, `35`, `40`, `45`, `50`, `55` `00`, `05`, `10`, `15`, `20`, `25`, `30`, `35`, `40`, `45`, `50`, `55`
]; ];
const weekDays = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"]; const now = new Date();
const monthDays = ref(getMonthDaysArray(now.getFullYear(), now.getMonth(), true));
const weekDays = ["星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"];
const days = Array.from({ length: 31 }, (_, i) => (i + 1).toString().padStart(2, "0")); const days = Array.from({ length: 31 }, (_, i) => (i + 1).toString().padStart(2, "0"));
const isweek = ref(true); const isweek = ref(true);
// //
@ -572,10 +655,12 @@
return "right-top" return "right-top"
} }
}) })
const editopen = ref(false)
// //
const cleanallopen = () => { const cleanallopen = () => {
settingopen.value = false; settingopen.value = false;
explainopen.value = false; explainopen.value = false;
editopen.value = false
} }
// //
const secondtemp = ref([]) const secondtemp = ref([])
@ -643,6 +728,7 @@
}; };
const sOrig = parseTime(startTime); const sOrig = parseTime(startTime);
const eOrig = parseTime(endTime); const eOrig = parseTime(endTime);
// 24*60 // 24*60
@ -1023,7 +1109,27 @@
saveEditIndex.value.index1 = index1; saveEditIndex.value.index1 = index1;
centerCell(); centerCell();
ruleritem.value = item; ruleritem.value = item;
console.log("点击表格",item)
switch (ruleritem.value.cycleTypeId) {
case `1`:
ruleritem.value.newtypename = "每天"
break
case `3`:
ruleritem.value.newtypename = weekDays[Number(ruleritem.value.cycleValue)]
break
case `4`:
ruleritem.value.newtypename = Number(ruleritem.value.cycleValue) + "日"
break
case `5`:
ruleritem.value.newtypename = `每隔` + Number(ruleritem.value.cycleValue) + "天执行一次"
break
}
// if(ruleritem.value.cycleTypeId){
// if(ruleritem.value.cycleValue)
// ruleritem.value.typename =
// }
console.log("点击表格", item)
// isRule.value = true; // isRule.value = true;
// setTimeout(() => { // setTimeout(() => {
@ -1527,7 +1633,8 @@
onMounted(() => { onMounted(() => {
savePackagelist.value = uni.getStorageSync('Packagelist') || [] savePackagelist.value = uni.getStorageSync('Packagelist') || []
let res = uni.getStorageSync('saveTree0') let res = uni.getStorageSync('saveTree0')
console.log("包", savePackagelist.value
)
let goodArray = [] let goodArray = []
myArray.forEach((element : any) => { myArray.forEach((element : any) => {
element?.children.forEach((element1 : any) => { element?.children.forEach((element1 : any) => {
@ -1672,6 +1779,16 @@
listsave.value = bodyTagListLooksave.value listsave.value = bodyTagListLooksave.value
} }
}
const edittype = ref(0)
const clickedit = (index : number) => {
edittype.value = index;
// if (index) {
// listsave.value = emotionTagListLooksave.value
// } else {
// listsave.value = bodyTagListLooksave.value
// }
} }
const clickcard = (index : number) => { const clickcard = (index : number) => {
let data = menutype.value ? emotionTagListLooksave.value : bodyTagListLooksave.value let data = menutype.value ? emotionTagListLooksave.value : bodyTagListLooksave.value
@ -1946,7 +2063,7 @@
const formattedEnd = `${String(endHour)}:${String(endMinute % 60).padStart(2, '0')}` const formattedEnd = `${String(endHour)}:${String(endMinute % 60).padStart(2, '0')}`
// //
let param = { let param = {
id: timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1].id , id: timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1].id,
nuId: uni.getStorageSync('nuId'), nuId: uni.getStorageSync('nuId'),
nuName: uni.getStorageSync('nuName'), nuName: uni.getStorageSync('nuName'),
elderId: uni.getStorageSync('elderId'), elderId: uni.getStorageSync('elderId'),
@ -1990,30 +2107,77 @@
} }
whereEvent(data); whereEvent(data);
const now = new Date(); const now = new Date();
const ts = `${now.getFullYear()}-${(now.getMonth()+1).toString().padStart(2,'0')}-${now.getDate().toString().padStart(2,'0')} ${now.getHours().toString().padStart(2,'0')}:${now.getMinutes().toString().padStart(2,'0')}:${now.getSeconds().toString().padStart(2,'0')}`; const ts = `${now.getFullYear()}-${(now.getMonth() + 1).toString().padStart(2, '0')}-${now.getDate().toString().padStart(2, '0')} ${now.getHours().toString().padStart(2, '0')}:${now.getMinutes().toString().padStart(2, '0')}:${now.getSeconds().toString().padStart(2, '0')}`;
let postdata = { let postdata = {
nuId : uni.getStorageSync('nuId'), nuId: uni.getStorageSync('nuId'),
directiveId: allobject.id, directiveId: allobject.id,
positioning:saveEditIndex.value.index0.toString(), positioning: saveEditIndex.value.index0.toString(),
positioningLong: saveEditIndex.value.index1.toString(), positioningLong: saveEditIndex.value.index1.toString(),
tagName:timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1].tagName, tagName: timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1].tagName,
startTime: formattedStart, startTime: formattedStart,
izPackage:`N`, izPackage: `N`,
cycleTypeId:3, cycleTypeId: 3,
cycleValue:0, cycleValue: 0,
optTime:ts, optTime: ts,
// optCount:""
} }
addDirective(postdata).then((res)=>{ // let postdata = {
console.log("kankan",postdata,res) // nuId: 2512101001,
// directiveId: 2013784872664961025,
// positioning: 8,
// positioningLong: 3,
// tagName: ``,
// startTime: `08:15`,
// izPackage: `Y`,
// cycleTypeId: 3,
// cycleValue: 0,
// // optTime: ts,
// optTime: "2026-01-26 16:43:14"
// }
// {
// "nuId": "2512101001",
// "directiveId": "2013784872664961025",
// "positioning": "8",
// "positioningLong": "3",
// "tagName": "",
// "startTime": "08:15",
// "izPackage": "Y",
// "cycleTypeId": 3,
// "cycleValue": 0,
// "optTime": "2026-01-26 16:43:14"
// }
addDirective(postdata).then((res) => {
console.log("kankan", postdata, res)
if (res.success) { if (res.success) {
geteverything() geteverything()
setTimeout(() => {
rulerTouchClick(timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1], saveEditIndex.value.index0, saveEditIndex.value.index1)
}, 200)
} }
}) })
} }
onBeforeUnmount(() => { onBeforeUnmount(() => {
if (singleTimer) clearTimeout(singleTimer) if (singleTimer) clearTimeout(singleTimer)
}) })
function getMonthDaysArray(year, month, padEnd = false) {
const firstDay = new Date(year, month, 1);
// Mon=0 ... Sun=6
const leadingEmptyCount = (firstDay.getDay() + 6) % 7;
const daysInMonth = new Date(year, month + 1, 0).getDate();
const arr = Array.from({ length: leadingEmptyCount }, () => '');
for (let d = 1; d <= daysInMonth; d++) {
arr.push(String(d).padStart(2, '0')); // 0
}
// 7
if (padEnd) {
while (arr.length % 7 !== 0) arr.push('');
}
return arr;
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>

View File

@ -80,10 +80,11 @@
menuIndex.value = 0; menuIndex.value = 0;
swipedex.value = 0; swipedex.value = 0;
// getNcPackagelist().then((res : any) => { getNcPackagelist().then((res : any) => {
// // //
// uni.setStorageSync("Packagelist", res.result) console.log("缓存指令包",res)
// }) uni.setStorageSync("Packagelist", res.result)
})
getPermissionList({ employessId: uni.getStorageSync('userInfo').employessId }).then(res => { getPermissionList({ employessId: uni.getStorageSync('userInfo').employessId }).then(res => {
listarr.value = res.result; listarr.value = res.result;
console.log("这个是啥",listarr.value) console.log("这个是啥",listarr.value)

View File

@ -2,7 +2,7 @@
<template> <template>
<view> <view>
<view class="ceshi" v-if="ceshiopen" @click="ceshiopen=false"> <view class="ceshi" v-if="ceshiopen" @click="ceshiopen=false">
<image class="all-home" src="/static/ceshi5.png" mode="aspectFit"></image> <image class="all-home" src="/static/ceshi6.png" mode="aspectFit"></image>
</view> </view>
<view class="home"> <view class="home">
<image class="all-home" src="/static/index/warehouse/newindexhome/backdro.jpg" mode="scaleToFill"></image> <image class="all-home" src="/static/index/warehouse/newindexhome/backdro.jpg" mode="scaleToFill"></image>

View File

@ -1,7 +1,7 @@
// 全局请求封装 // 全局请求封装
const base_url = 'https://www.focusnu.com/opeapi' const base_url = 'https://www.focusnu.com/opeapi'
// const base_url = 'http://192.168.2.27:8081/opeapi' // const base_url = 'http://192.168.2.27:8081/opeapi'
// const base_url = 'http://localhost:8091/opeapi' // const base_url = 'http://192.168.2.27:8081/opeapi/'
// 请求超出时间 // 请求超出时间
const timeout = 5000 const timeout = 5000
// 登录过期防止多次弹出 // 登录过期防止多次弹出

BIN
static/ceshi6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB