提交 2a2e24e9 authored 作者: 邓文彬's avatar 邓文彬

fix(样式修改)

上级 c31b11e4
<template> <template>
<view class="inspect-item"> <view class="inspect-item">
<view class="content"> <view class="content">
<view class="name">机房</view> <view class="name">机房</view>
<view class="info"> <view class="info">
<view class="info-row"> <view class="info-row">
<text class="title">2024-08-24-F301机房巡检记录</text> <text class="title">2024-08-24-F301机房巡检记录</text>
<text class="status">待同步</text> <text class="status">待同步</text>
<view class="status alarm"> <view class="status alarm">
<text class="iconfont icon-yichang1"></text> <text class="iconfont icon-yichang1"></text>
<text>有异常</text></view <text>有异常</text></view
> >
</view> </view>
<view class="info-row info-row-code"> <view class="info-row info-row-code">
<text>编号:</text> <text>编号:</text>
<text class="code-num">JF202408241002</text> <text class="code-num">JF202408241002</text>
</view> </view>
</view> </view>
<view class="img"> <view class="img">
<!-- <image class="bg-img" src="../../static/img/add-img/default.png"></image> --> <!-- <image class="bg-img" src="../../static/img/add-img/default.png"></image> -->
<image <image class="bg-img" src="../../static/img/add-img/active.png"></image>
class="bg-img" </view>
src="../../static/img/add-img/active.png" </view>
></image> </view>
</view>
</view>
</view>
</template> </template>
<script> <script>
export default { export default {
props:{ props: {},
};
},
}
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.inspect-item { .inspect-item {
width: 50%; width: 50%;
padding-right: 16px; padding-right: 16px;
margin-bottom: 16px; margin-bottom: 16px;
.content { .content {
background: #fff; background: #fff;
border: 0.4px solid rgba(224, 224, 224, 1); border: 0.4px solid rgba(224, 224, 224, 1);
border-radius: 12px; border-radius: 12px;
padding: 18px 16px 14px 16px; padding: 18px 16px 14px 10px;
display: flex; display: flex;
align-items: center; align-items: center;
height: 84px; height: 84px;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
.name { .name {
background: #ffab2471; background: #ffab2471;
border-radius: 12px; border-radius: 12px;
width: 54px; width: 54px;
height: 54px; height: 54px;
margin-right: 12px; margin-right: 10px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
color: #f39800; color: #f39800;
} }
.info { .info {
.info-row { .info-row {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 8px; margin-bottom: 8px;
&:last-of-type { &:last-of-type {
margin: 0; margin: 0;
} }
.title { .title {
font-size: 12px; font-size: 12px;
color: #000000; color: #000000;
font-weight: bold; font-weight: bold;
margin-right: 8px; margin-right: 8px;
} }
.status { .status {
padding: 2px 4px; padding: 2px 4px;
font-size: 12px; font-size: 12px;
color: #ffffff; color: #ffffff;
text-align: center; text-align: center;
line-height: 20px; line-height: 20px;
font-weight: 400; font-weight: 400;
background: #ffab24; background: #ffab24;
border-radius: 3px; border-radius: 3px;
} }
.alarm { .alarm {
margin-left: 8px; margin-left: 8px;
background: rgba(255, 105, 82, 0.1); background: rgba(255, 105, 82, 0.1);
font-size: 12px; font-size: 12px;
color: #ff6952; color: #ff6952;
text-align: center; text-align: center;
line-height: 20px; line-height: 20px;
font-weight: 400; font-weight: 400;
} }
} }
.info-row-code { .info-row-code {
font-size: 14px; font-size: 14px;
color: #7c7c7c; color: #7c7c7c;
font-weight: 400; font-weight: 400;
.code-num { .code-num {
font-size: 14px; font-size: 14px;
color: #000000; color: #000000;
font-weight: 400; font-weight: 400;
} }
} }
} }
.img { .img {
position: absolute; position: absolute;
right: 0; right: 0;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
.bg-img { .bg-img {
width: 80px; width: 80px;
height: 80px; height: 80px;
} }
} }
} }
} }
</style> </style>
\ No newline at end of file
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
<view class="month-record-item" v-for="item in 20" :key="item"> <view class="month-record-item" v-for="item in 20" :key="item">
<view class="seconed-title"> 2024年08月 </view> <view class="seconed-title"> 2024年08月 </view>
<view class="inspect-list"> <view class="inspect-list">
<InspectionItem /> <InspectionItem />
</view> </view>
...@@ -103,8 +102,6 @@ export default { ...@@ -103,8 +102,6 @@ export default {
<style scoped lang="less"> <style scoped lang="less">
.home-page-content { .home-page-content {
.card-list { .card-list {
display: flex; display: flex;
...@@ -114,16 +111,27 @@ export default { ...@@ -114,16 +111,27 @@ export default {
margin-right: 16px; margin-right: 16px;
height: 166px; height: 166px;
box-sizing: border-box; box-sizing: border-box;
padding: 24px 0 24px 24px; padding: 32px 0 24px 24px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
&:nth-of-type(1) {
background-image: linear-gradient(-67deg, #dbeeff 6%, #f5fbff 100%);
}
&:nth-of-type(2) {
background-image: linear-gradient(108deg, #f2f6ff 0%, #e6eeff 92%);
}
&:nth-of-type(3) {
background-image: linear-gradient(-66deg, #dbeeff 6%, #f5fbff 100%);
}
.bg-img { .bg-img {
position: absolute; position: absolute;
top: 0; right: 0;
left: 0; bottom: 0px;
width: 100%; width: 160px;
height: 100%; height: 150px;
z-index: -1; z-index: 1;
} }
.title { .title {
...@@ -176,7 +184,7 @@ export default { ...@@ -176,7 +184,7 @@ export default {
} }
.seconed-title { .seconed-title {
margin-top: 16px; margin: 16px 0;
font-size: 18px; font-size: 18px;
color: #000000; color: #000000;
font-weight: bold; font-weight: bold;
...@@ -185,8 +193,11 @@ export default { ...@@ -185,8 +193,11 @@ export default {
.month-list { .month-list {
height: calc(100vh - 166px - 25px - 16px - 16px - 20px); height: calc(100vh - 166px - 25px - 16px - 16px - 20px);
overflow: auto; overflow: auto;
.seconed-title {
margin-top: 0;
margin-bottom: 5px;
}
.month-record-item { .month-record-item {
margin-bottom: 24px;
&:last-of-type { &:last-of-type {
margin: 0; margin: 0;
} }
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
}, },
data() { data() {
return { return {
activeTabIndex: 2, activeTabIndex: 0,
tabList: [ tabList: [
{ {
defaultIcon: "iconfont icon-yingyongyewuguanli1", defaultIcon: "iconfont icon-yingyongyewuguanli1",
...@@ -161,7 +161,6 @@ export default { ...@@ -161,7 +161,6 @@ export default {
.left-tab { .left-tab {
z-index: 10; z-index: 10;
width: 120px; width: 120px;
border: 1px solid;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
...@@ -178,6 +177,7 @@ export default { ...@@ -178,6 +177,7 @@ export default {
width: 48px; width: 48px;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
box-shadow: 5px 5px 10px #e7e7e7;
} }
.text { .text {
font-size: 16px; font-size: 16px;
......
<template> <template>
<view class="container"> <view class="edit-password">
<uni-nav-bar <uni-nav-bar
dark
:fixed="true" :fixed="true"
background-color="#5474e8" background-color="rgba(214, 240, 255, 0.0)"
status-bar status-bar
left-icon="left" rightWidth="300"
left-text="返回" >
@clickLeft="back" <block slot="left">
title="杭州内网监管在线" <view class="uni-nav-bar-text" @click="back">
/> <text class="iconfont icon-Arrow-Left"></text
></view>
</block>
</uni-nav-bar>
<view class="edit-main"> <view class="edit-main">
<!-- 占位---不可删除 -->
<view class="seize-seat"> </view>
<view class="content-main box-shaow-box"> <view class="content-main box-shaow-box">
<view class="content_header">修改密码</view> <view class="content_header">修改密码</view>
<view class="input-content"> <view class="input-content">
...@@ -141,18 +147,17 @@ export default { ...@@ -141,18 +147,17 @@ export default {
// key = index; // key = index;
// } // }
// }); // });
// console.log("---- this.user", this.user) // console.log("---- this.user", this.user)
// 将数组中与当前登录账号ID相同项替换 // 将数组中与当前登录账号ID相同项替换
// this.personList.splice(key, 1, this.user); // this.personList.splice(key, 1, this.user);
const id = this.user.id; const id = this.user.id;
const tempPersonList = this.personList.map(item => { const tempPersonList = this.personList.map((item) => {
if(item.id ==id ){ if (item.id == id) {
item.passWord = this.formData.newPd item.passWord = this.formData.newPd;
} }
return item return item;
}) });
let timeStr = getDateTime.dateTimeStr("y-m-d h:i"); let timeStr = getDateTime.dateTimeStr("y-m-d h:i");
let operData = { let operData = {
...@@ -165,7 +170,7 @@ export default { ...@@ -165,7 +170,7 @@ export default {
time: timeStr, time: timeStr,
}; };
this.$store.state.oper_record.unshift(operData); this.$store.state.oper_record.unshift(operData);
// 重新存储本地用户信息 // 重新存储本地用户信息
// let _this = this; // let _this = this;
// plus.io.resolveLocalFileSystemURL( // plus.io.resolveLocalFileSystemURL(
...@@ -214,11 +219,9 @@ export default { ...@@ -214,11 +219,9 @@ export default {
// }) // })
// this.logOut() // this.logOut()
const temp = JSON.stringify(tempPersonList) const temp = JSON.stringify(tempPersonList);
const fileContent = JSON.stringify( const fileContent = JSON.stringify(Base64.encode(temp));
Base64.encode(temp)
);
createFileWithPlusIO( createFileWithPlusIO(
SYNCHRONIZE_DATA_PAD, SYNCHRONIZE_DATA_PAD,
USER_FILE_NAME, USER_FILE_NAME,
...@@ -253,30 +256,38 @@ export default { ...@@ -253,30 +256,38 @@ export default {
font-size: 14px !important; font-size: 14px !important;
} }
.container { .edit-password {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-image: linear-gradient(
90deg,
#e9f7fe 0%,
#dceffe 40%,
#d5ebfd 66%,
#c9e8fe 100%
);
.edit-main { .edit-main {
margin-top: -44px;
width: 100%; width: 100%;
// height: calc(100vh - 90px); // height: calc(100vh - 90px);
background-image: linear-gradient( // background-image: linear-gradient(
0deg, // 0deg,
#f3f6fa 0%, // #f3f6fa 0%,
rgba(130, 153, 238, 0.73) 49%, // rgba(130, 153, 238, 0.73) 49%,
#5474e8 100% // #5474e8 100%
); // );
background-size: 100% 40rpx; background-size: 100% 40rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
.content-main { .content-main {
width: 730rpx; height: calc(100vh - 44px - var(--status-bar-height) - 20px);
height: 400rpx; width: 95%;
margin: 0 auto; margin: 0 auto;
padding: 20px 30px 30px 20px; padding: 20px 30px 30px 20px;
background: #fff;
.content_header { .content_header {
border-left: 2px solid #5474e8;
padding-left: 5px; padding-left: 5px;
height: 18px; height: 18px;
line-height: 18px; line-height: 18px;
...@@ -297,5 +308,32 @@ export default { ...@@ -297,5 +308,32 @@ export default {
} }
} }
} }
.seize-seat {
height: 50px;
width: 100%;
background-image: linear-gradient(
90deg,
#e9f7fe 0%,
#dceffe 40%,
#d5ebfd 66%,
#c9e8fe 100%
);
}
// 导航栏样式
.uni-nav-bar-text {
height: 36px;
width: 36px;
background: #ffffff;
border: 0.4px solid rgba(224, 224, 224, 1);
border-radius: 18px;
border-radius: 50%;
color: #333;
text-align: center;
.iconfont {
font-size: 20px;
line-height: 36px;
}
}
} }
</style> </style>
<template> <template>
<view class="content"> <view class="operLog">
<uni-nav-bar <!-- <uni-nav-bar
dark dark
:fixed="true" :fixed="true"
background-color="#5474e8" background-color="#5474e8"
...@@ -10,50 +10,72 @@ ...@@ -10,50 +10,72 @@
@clickLeft="back" @clickLeft="back"
title="杭州内网监管在线" title="杭州内网监管在线"
> >
</uni-nav-bar> -->
<uni-nav-bar
:fixed="true"
background-color="rgba(214, 240, 255, 0.0)"
status-bar
rightWidth="300"
>
<block slot="left">
<view class="uni-nav-bar-text" @click="back">
<text class="iconfont icon-Arrow-Left"></text
></view>
</block>
</uni-nav-bar> </uni-nav-bar>
<view class="main"> <view class="main">
<!-- 搜索区域 --> <!-- 占位---不可删除 -->
<view class="search-com"> <view class="seize-seat"> </view>
<view class="search-com-left">
<uni-data-select <view class="container">
class="uni-search-item" <!-- 搜索区域 -->
v-model="searchFrom.type" <view class="search-com">
:localdata="typeList" <view class="search-com-left">
@change="change" <uni-data-select
placeholder="全部巡检" class="uni-search-item"
></uni-data-select> v-model="searchFrom.type"
:localdata="typeList"
@change="change"
placeholder="全部巡检"
></uni-data-select>
<view class="search-com-right"> <view class="search-com-right">
<uni-datetime-picker <uni-datetime-picker
class="uni-datetime-picker" class="uni-datetime-picker"
type="daterange" type="daterange"
v-model="searchFrom.inspectionTime" v-model="searchFrom.inspectionTime"
:border="false" :border="false"
@change="timeChange" @change="timeChange"
/> />
</view>
</view> </view>
</view> </view>
</view>
<view class="count-tatal"> <view class="count-tatal">
<text class="num">{{ tableData.length || 0 }}</text> <text class="num">{{ tableData.length || 0 }}</text>
<text>查询结果</text> <text>查询结果</text>
</view> </view>
<!-- 展示区域 --> <!-- 展示区域 -->
<view class="table-main box-shaow-box"> <view class="table-main box-shaow-box">
<view class="log-item" v-for="(item, index) in tableData" :key="index"> <view
<text class="time bold">{{ item.time }}</text> class="log-item"
v-for="(item, index) in tableData"
:key="index"
>
<text class="time bold">{{ item.time }}</text>
<view class="desc"> <view class="desc">
<text class="xuxian">......</text> <text class="xuxian">......</text>
<text class="bold">{{ item.name }} {{ item.user }}</text> <text class="bold">{{ item.name }} {{ item.user }}</text>
<text class="text">操作</text> <text class="text">操作</text>
<text class="bold">{{ item.module }}{{ item.type }}</text> <text class="bold">{{ item.module }}{{ item.type }}</text>
<text class="text">内容</text> <text class="text">内容</text>
<text class="bold">{{ item.detail }}</text> <text class="bold">{{ item.detail }}</text>
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -187,105 +209,148 @@ export default { ...@@ -187,105 +209,148 @@ export default {
}; };
</script> </script>
<style scoped lang="less"> <style scoped lang="less" scoped>
.main { .operLog {
padding: 16px 24px; background-image: linear-gradient(
} 90deg,
.search-com { #e9f7fe 0%,
display: flex; #dceffe 40%,
align-items: center; #d5ebfd 66%,
.search-com-left { #c9e8fe 100%
display: flex; );
align-items: center; .main {
border: 1px solid; margin-top: -44px;
.uni-search-item {
margin-right: 12px;
width: 200px;
background: #fff;
border-radius: 4px;
border: none !important;
}
} }
.search-com-right {
width: 300px;
.uni-datetime-picker {
background: #fff;
border: 1px solid;
}
}
}
.count-tatal { .container {
margin: 16px 0 8px 0; height: 100%;
font-size: 14px; padding: 16px 24px;
color: #4a4a4a; height: calc(100vh - 50px - 24px - 8px);
font-weight: 400;
.num { .search-com {
margin-right: 5px; display: flex;
font-size: 18px; align-items: center;
color: #3774f6; .search-com-left {
line-height: 26px; display: flex;
font-weight: 500; align-items: center;
} border: 1px solid;
} .uni-search-item {
.table-main { margin-right: 12px;
padding: 28px 24px; width: 200px;
background: #fff; background: #fff;
overflow: auto; border-radius: 4px;
height: calc(100vh - 26px - 16px - 8px - 36px - 62px - 18px); border: none !important;
.log-item { }
display: flex;
align-items: flex-start;
padding-bottom: 20px;
&:last-of-type {
.xuxian {
display: none;
} }
} .search-com-right {
.time { width: 300px;
font-size: 16px; .uni-datetime-picker {
color: #000000; background: #fff;
text-align: right; border: 1px solid;
line-height: 24px; }
font-weight: 500;
position: relative;
margin-right: 40px;
&::after {
position: absolute;
content: " ";
right: -22px;
top: 50%;
transform: translateY(-50%);
width: 8px;
height: 8px;
border-radius: 50%;
background: #3774f6;
} }
} }
.bold {
font-weight: bold !important; .count-tatal {
color: #000000 !important; margin: 16px 0 8px 0;
} font-size: 14px;
.desc { color: #4a4a4a;
position: relative; font-weight: 400;
.xuxian { .num {
position: absolute; font-size: 18px;
transform: rotate(90deg);
font-size: 10px;
color: #3774f6; color: #3774f6;
left: -29px; line-height: 26px;
top: 24px; font-weight: 600;
margin-right: 5px;
} }
text { }
font-size: 14px; .table-main {
color: #4a4a4a; padding: 28px 24px;
line-height: 22px; background: #fff;
font-weight: 400; overflow: auto;
} height: calc(100vh - 26px - 16px - 8px - 36px - 62px - 18px - 50px);
.text { .log-item {
margin: 0 8px; display: flex;
align-items: flex-start;
padding-bottom: 20px;
&:last-of-type {
.xuxian {
display: none;
}
}
.time {
font-size: 16px;
color: #000000;
text-align: right;
line-height: 24px;
font-weight: 500;
position: relative;
margin-right: 40px;
&::after {
position: absolute;
content: " ";
right: -22px;
top: 50%;
transform: translateY(-50%);
width: 8px;
height: 8px;
border-radius: 50%;
background: #3774f6;
}
}
.bold {
font-weight: bold !important;
color: #000000 !important;
}
.desc {
position: relative;
.xuxian {
position: absolute;
transform: rotate(90deg);
font-size: 10px;
color: #3774f6;
left: -29px;
top: 24px;
}
text {
font-size: 14px;
color: #4a4a4a;
line-height: 22px;
font-weight: 400;
}
.text {
margin: 0 8px;
}
}
} }
} }
} }
.seize-seat {
height: 50px;
width: 100%;
background-image: linear-gradient(
90deg,
#e9f7fe 0%,
#dceffe 40%,
#d5ebfd 66%,
#c9e8fe 100%
);
}
// 导航栏样式
.uni-nav-bar-text {
height: 36px;
width: 36px;
background: #ffffff;
border: 0.4px solid rgba(224, 224, 224, 1);
border-radius: 18px;
border-radius: 50%;
color: #333;
text-align: center;
.iconfont {
font-size: 20px;
line-height: 36px;
}
}
} }
</style> </style>
<template> <template>
<view class="container"> <view class="container">
<!-- 导航栏 --> <!-- 导航栏 -->
<uni-nav-bar <!-- <uni-nav-bar
dark dark
:fixed="true" :fixed="true"
background-color="#5474e8" background-color="#5474e8"
...@@ -11,9 +11,25 @@ ...@@ -11,9 +11,25 @@
left-icon="left" left-icon="left"
@clickLeft="back" @clickLeft="back"
> >
</uni-nav-bar> -->
<uni-nav-bar
:fixed="true"
background-color="rgba(214, 240, 255, 0.0)"
status-bar
rightWidth="300"
>
<block slot="left">
<view class="uni-nav-bar-text" @click="back">
<text class="iconfont icon-Arrow-Left"></text
></view>
</block>
</uni-nav-bar> </uni-nav-bar>
<view class="content"> <view class="content">
<!-- 占位---不可删除 -->
<view class="seize-seat"> </view>
<view class="main box-shaow-box"> <view class="main box-shaow-box">
<view class="content_header">机房巡检</view> <view class="content_header">机房巡检</view>
...@@ -96,14 +112,14 @@ export default { ...@@ -96,14 +112,14 @@ export default {
position: "", // 位置 position: "", // 位置
isSubmit: "", // 0 是草稿态; 1 是正式提交 isSubmit: "", // 0 是草稿态; 1 是正式提交
conclusion: "", //结论 conclusion: "", //结论
"fillCheck": "", // tab字典的value值, 校验通过的 fillCheck: "", // tab字典的value值, 校验通过的
items:[ items: [
// { // {
// "itemCode": "1", // 检查项 // "itemCode": "1", // 检查项
// "measuredData": "2,3", // 异常的楼层 // "measuredData": "2,3", // 异常的楼层
// "inspectionResult": "1" // 检查项的结果, 1是异常 0 是正常 // "inspectionResult": "1" // 检查项的结果, 1是异常 0 是正常
// }, // },
] ],
}; };
}, },
...@@ -238,19 +254,32 @@ export default { ...@@ -238,19 +254,32 @@ export default {
.container { .container {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-image: linear-gradient(
90deg,
#e9f7fe 0%,
#dceffe 40%,
#d5ebfd 66%,
#c9e8fe 100%
);
.content { .content {
margin-top: -44px;
width: 100%; width: 100%;
background-image: linear-gradient(
0deg, height: calc(100vh - var(--status-bar-height) - 50px);
#f3f6fa 0%,
rgba(130, 153, 238, 0.73) 49%,
#5474e8 100%
);
height: calc(100vh - 44px - var(--status-bar-height));
background-size: 100% 40rpx; background-size: 100% 40rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
padding: 0 20px 20px 20px;
.seize-seat {
height: 50px;
width: 100%;
background-image: linear-gradient(
90deg,
#e9f7fe 0%,
#dceffe 40%,
#d5ebfd 66%,
#c9e8fe 100%
);
}
.main { .main {
width: 100%; width: 100%;
...@@ -300,5 +329,21 @@ export default { ...@@ -300,5 +329,21 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
} }
// 导航栏样式
.uni-nav-bar-text {
height: 36px;
width: 36px;
background: #ffffff;
border: 0.4px solid rgba(224, 224, 224, 1);
border-radius: 18px;
border-radius: 50%;
color: #333;
text-align: center;
.iconfont {
font-size: 20px;
line-height: 36px;
}
}
} }
</style> </style>
<template> <template>
<view class="container"> <view class="inspectionContent">
<!-- 导航栏 --> <!-- 导航栏 -->
<uni-nav-bar <uni-nav-bar
dark
:fixed="true" :fixed="true"
background-color="#5474e8" background-color="rgba(214, 240, 255, 0.0)"
status-bar status-bar
left-text="返回" rightWidth="300"
title="杭州内网监管在线"
left-icon="left"
@clickLeft="back"
> >
<block slot="left">
<view class="uni-nav-bar-text" @click="back">
<text class="iconfont icon-Arrow-Left"></text
></view>
</block>
<block slot="right">
<view class="nav-right">
<view class="uni-nav-bar-text" @click="deleteClick">
<text class="iconfont icon-delete"></text
></view>
<view class="look-from" @click="lookTable">
<text class="iconfont icon-see-s"></text>
查看样表</view
></view
>
</block>
</uni-nav-bar> </uni-nav-bar>
<view class="content"> <view class="content">
<view class="base-info"> <view class="base-info">
<view class="title">F301机房巡检</view> <view class="title">{{ baseInfo.recordName }}</view>
<view class="" <view class="base-row">
><text class="name">巡检编号</text><text class="text">巡检编号</text> <view class="base-row-item"
</view> ><text class="name">巡检编号</text
<view class="" ><text class="text">{{ baseInfo.inspectionCode }}</text>
><text class="name">巡检编号</text><text class="text">巡检编号</text> </view>
<view class="base-row-item"
><text class="name">巡检日期</text
><text class="text">{{ baseInfo.inspectionTime }}</text>
</view>
</view> </view>
</view> </view>
<view class="main box-shaow-box"> <view class="main">
<view class="content_header">巡检项目(pm)</view> <view class="content_header">巡检项目(pm)</view>
<!-- tabls --> <!-- tabls -->
...@@ -46,7 +64,9 @@ ...@@ -46,7 +64,9 @@
ref="DutyHandover" ref="DutyHandover"
v-show="activeTabIndex == 4" v-show="activeTabIndex == 4"
></DutyHandover> ></DutyHandover>
</view>
<view class="fixed-btns">
<view class="button-group"> <view class="button-group">
<view class="btn-draft btn-class" @tap="draft(activeTabIndex)"> <view class="btn-draft btn-class" @tap="draft(activeTabIndex)">
保存草稿 保存草稿
...@@ -144,6 +164,19 @@ export default { ...@@ -144,6 +164,19 @@ export default {
this.tabList[index].value = item.dictValue; this.tabList[index].value = item.dictValue;
}); });
}, },
// 删除
deleteClick() {
uni.showToast({
title: "删除",
});
},
lookTable() {
uni.navigateTo({
url: "/pages/report/sampleTable"
})
},
// tab选中change 时间 // tab选中change 时间
changeTab(index, item) { changeTab(index, item) {
this.draft(this.activeTabIndex, false, false).then(() => { this.draft(this.activeTabIndex, false, false).then(() => {
...@@ -237,7 +270,6 @@ export default { ...@@ -237,7 +270,6 @@ export default {
all_data.push(params); all_data.push(params);
// all_data[time] = tempItem; // all_data[time] = tempItem;
// all_data.push(params); // all_data.push(params);
// 更新巡检list // 更新巡检list
...@@ -338,76 +370,24 @@ export default { ...@@ -338,76 +370,24 @@ export default {
}); });
}); });
}, },
// submit() {
// this.$refs.forms
// .validate()
// .then((res) => {
// uni.showLoading({
// title: "加载中",
// });
// // console.log('校验通过');
// // let timeStr = getDateTime.dateTimeStr("y-m-d h:i");
// // let timeStr2 = getDateTime.dateTimeStr("y-m-d h:i:s");
// // this.formData.type = "1"; //巡检为1
// // this.formData.oid = this.$store.state.now_user.areaName; //区域名
// // this.formData.status = "编辑中"; //pad端添加状态
// // this.formData.isDel = "0";
// // this.formData.id = "";
// // this.formData.errorData = {};
// // this.formData.createBy = this.$store.state.now_user.name;
// // this.formData.creatTime = timeStr2;
// // this.formData.uid =
// // this.$store.state.now_user.oid +
// // Number(
// // Math.random().toString().substr(3, 10) + Date.now()
// // ).toString(36);
// // this.$store.state.all_data.push(this.formData);
// // 记录操作日志
// let operData = {
// name: this.$store.state.now_user.name,
// level: "秘密",
// user: this.$store.state.now_user.user,
// module: "巡检",
// detail:
// this.showRoomName(this.formData.room) +
// "巡检记录" +
// "(" +
// this.formData.number +
// ")",
// type: this.$store.state.oper_type,
// time: timeStr,
// ...this.formData,
// level: "秘密",
// };
// this.$store.state.oper_record.unshift(operData); //保存该操作记录
// this.$store.commit("SET_TEMP_DATA", this.formData); // 缓存[巡检信息]
// uni.redirectTo({
// url: "/pages/inspectionContent/inspectionContent",
// success() {
// uni.hideLoading();
// },
// });
// })
// .catch((err) => {
// console.log(err);
// });
// },
}, },
}; };
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.container { .inspectionContent {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-image: linear-gradient(
180deg,
#f8fafc 0%,
rgba(255, 255, 255, 0) 91%
);
.content { .content {
position: absolute;
top: 0;
width: 100%; width: 100%;
background-image: linear-gradient( background-image: linear-gradient(
0deg, 0deg,
...@@ -415,17 +395,24 @@ export default { ...@@ -415,17 +395,24 @@ export default {
rgba(130, 153, 238, 0.73) 49%, rgba(130, 153, 238, 0.73) 49%,
#5474e8 100% #5474e8 100%
); );
height: calc(100vh - 44px - var(--status-bar-height)); height: calc(100vh - 44px - var(--status-bar-height) - 20px);
background-size: 100% 40rpx; background-size: 100% 40rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
padding: 0 20px 20px 20px;
padding-bottom: 160px;
.content_header {
font-size: 18px;
color: #000000;
line-height: 26px;
font-weight: 500;
}
.main { .main {
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 20px 24px; overflow: auto;
padding: 20px 0;
position: relative; position: relative;
padding: 0 20px 20px 20px;
.tabs { .tabs {
margin: 16px 0; margin: 16px 0;
} }
...@@ -434,12 +421,19 @@ export default { ...@@ -434,12 +421,19 @@ export default {
// 基础信息 // 基础信息
.base-info { .base-info {
height: 170px;
padding: 20px 24px; padding: 20px 24px;
background: #fff; background-image: linear-gradient(
border-radius: 10px; 90deg,
#e9f7fe 0%,
#dceffe 40%,
#d5ebfd 66%,
#c9e8fe 100%
);
background-repeat: no-repeat;
background-size: 100% 100%;
margin-bottom: 16px; margin-bottom: 16px;
display: flex; padding-top: 80px;
align-items: center;
.title { .title {
font-size: 26px; font-size: 26px;
color: #000000; color: #000000;
...@@ -447,44 +441,98 @@ export default { ...@@ -447,44 +441,98 @@ export default {
font-weight: 600; font-weight: 600;
margin-bottom: 16px; margin-bottom: 16px;
} }
.base-row {
display: flex;
align-items: center;
.base-row-item {
margin-right: 32px;
}
}
.name { .name {
font-size: 14px; font-size: 14px;
color: #7c7c7c; color: #7c7c7c;
font-weight: 400; font-weight: 400;
} }
.text { .text {
margin-left: 12px;
font-size: 14px; font-size: 14px;
color: #000000; color: #000000;
font-weight: 400; font-weight: 400;
} }
} }
.button-group { .fixed-btns {
position: fixed; height: 70px;
bottom: 32px; background-image: linear-gradient(-87deg, #ecf1f4 3%, #eaf6fc 100%);
left: 50%; width: 100%;
transform: translateX(-50%);
display: flex; display: flex;
align-items: center; align-items: center;
.btn-class { justify-content: center;
width: 180px; .button-group {
height: 48px; display: flex;
background-image: linear-gradient(180deg, #3773f6 0%, #2c57f6 99%); align-items: center;
box-shadow: 0px 10px 24px 0px rgba(51, 104, 246, 0.24); background-image: linear-gradient(-87deg, #ecf1f4 3%, #eaf6fc 100%);
border-radius: 27px; .btn-class {
width: 180px;
height: 40px;
background-image: linear-gradient(180deg, #3773f6 0%, #2c57f6 99%);
box-shadow: 0px 10px 24px 0px rgba(51, 104, 246, 0.24);
border-radius: 27px;
font-size:18px;
color: #ffffff;
text-align: center;
font-weight: 400;
text-align: center;
line-height: 40px;
margin-right: 24px;
}
.btn-draft {
background: #fff;
border: 1px solid #3773f6;
color: #3773f6;
box-shadow: none;
}
}
}
// 导航栏样式
.uni-nav-bar-text {
height: 36px;
width: 36px;
background: #ffffff;
border: 0.4px solid rgba(224, 224, 224, 1);
border-radius: 18px;
border-radius: 50%;
color: #333;
text-align: center;
.iconfont {
font-size: 20px; font-size: 20px;
color: #ffffff; line-height: 36px;
text-align: center; }
font-weight: 400; }
text-align: center;
line-height: 48px; .nav-right {
margin-right: 24px; display: flex;
align-items: center;
.icon-delete {
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
} }
.btn-draft { .look-from {
background: #fff; margin-left: 12px;
border: 1px solid #3773f6; height: 36px;
color: #3773f6; line-height: 36px;
box-shadow: none; padding: 0 12px;
background: #ffffff;
border: 0.4px solid rgba(224, 224, 224, 1);
border-radius: 10px;
.iconfont {
margin-top: 5px;
margin-right: 5px;
font-size: 14px;
}
} }
} }
} }
......
...@@ -64,13 +64,13 @@ export default { ...@@ -64,13 +64,13 @@ export default {
font-size: 18px; font-size: 18px;
color: #3774f6; color: #3774f6;
line-height: 26px; line-height: 26px;
font-weight: 500; font-weight: 600;
margin-right: 5px;
} }
} }
.inspection-management-content { .inspection-management-content {
.month-list { .month-list {
height: calc(100vh - 26px - 16px - 8px - 36px - 62px); height: calc(100vh - 26px - 16px - 8px - 36px - 62px);
border: 1px solid;
overflow: auto; overflow: auto;
.seconed-title { .seconed-title {
margin-top: 16px; margin-top: 16px;
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
position: fixed; position: fixed;
bottom: 60px; bottom: 60px;
width: 240px; width: 240px;
height: 40px; height: 48px;
left: 50%; left: 50%;
color: #fff; color: #fff;
transform: translateX(-50%); transform: translateX(-50%);
......
<template> <template>
<view class="content"> <view class="sampleTable">
<uni-nav-bar dark :fixed="true" background-color="#5474e8" status-bar left-icon="left" left-text="返回" <uni-nav-bar
@clickLeft="back" title="杭州内网监管在线" /> :fixed="true"
<view class="main"> background-color="rgba(214, 240, 255, 0.0)"
<view class="container box-shaow-box"> status-bar
<view class="image-item top-image"> rightWidth="300"
<image src="../../static/img/report-table/index.png" mode="widthFix"></image> >
</view> <block slot="left">
<view class="image-item top-image"> <view class="uni-nav-bar-text" @click="back">
<image src="../../static/img/report-table/report1.png" mode="widthFix"></image> <text class="iconfont icon-Arrow-Left"></text
</view> ></view>
<view class="image-item" v-for="(item,index) in 17"> </block>
<image :src="checkImage(item)" mode="widthFix"></image> </uni-nav-bar>
</view>
</view> <view class="main">
</view> <!-- 占位---不可删除 -->
</view> <view class="seize-seat"> </view>
<view class="container box-shaow-box">
<view class="image-item top-image">
<image
src="../../static/img/report-table/index.png"
mode="widthFix"
></image>
</view>
<view class="image-item top-image">
<image
src="../../static/img/report-table/report1.png"
mode="widthFix"
></image>
</view>
<view class="image-item" v-for="(item, index) in 17">
<image :src="checkImage(item)" mode="widthFix"></image>
</view>
</view>
</view>
</view>
</template> </template>
<script> <script>
export default { export default {
onNavigationBarButtonTap(val) { onNavigationBarButtonTap(val) {
// console.log(val); // console.log(val);
uni.navigateBack() uni.navigateBack();
}, },
methods: { methods: {
checkImage(val) { checkImage(val) {
let res = '' let res = "";
res = `/static/img/report-table/report${val +1}.png` res = `/static/img/report-table/report${val + 1}.png`;
return res return res;
}, },
back() { back() {
uni.navigateBack() uni.navigateBack();
} },
} },
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.content { .sampleTable {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-image: linear-gradient(
90deg,
#e9f7fe 0%,
#dceffe 40%,
#d5ebfd 66%,
#c9e8fe 100%
);
.main {
margin-top: -44px;
width: 100%;
background-size: 100% 40rpx;
background-repeat: no-repeat;
.container {
margin: 0 auto;
width: 730rpx;
height: calc(100vh - 44px - var(--status-bar-height) - 20px);
.main { padding: 23.53rpx 17.65rpx;
width: 100%; padding-bottom: 0;
// background-color: red; // width: 341.18rpx;
background-image: linear-gradient(0deg, #f3f6fa 0%, rgba(130, 153, 238, 0.73) 49%, #5474e8 100%); overflow: hidden;
background-size: 100% 40rpx; overflow: auto;
background-repeat: no-repeat; display: flex;
flex-wrap: wrap;
justify-sampletable: space-between;
.container { .image-item {
margin: 0 auto; width: 341.18rpx;
width: 730rpx; height: 464.71rpx;
height: 400rpx; background-color: #ffffff;
padding: 23.53rpx 17.65rpx; box-shadow: 0px 0px 9.41rpx 0px rgba(84, 116, 232, 0.2);
padding-bottom: 0; border-radius: 4px;
// width: 341.18rpx; margin-bottom: 11.76rpx;
overflow: hidden; }
overflow: auto;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.image-item { .top-image {
width: 341.18rpx; height: 288.24rpx;
height: 464.71rpx; }
background-color: #ffffff;
box-shadow: 0px 0px 9.41rpx 0px rgba(84, 116, 232, 0.2);
border-radius: 4px;
margin-bottom: 11.76rpx;
}
.top-image { image {
height: 288.24rpx; width: 100%;
} // object-fit: contain;
}
}
}
image { .seize-seat {
width: 100%; height: 50px;
// object-fit: contain; width: 100%;
} background-image: linear-gradient(
} 90deg,
} #e9f7fe 0%,
} #dceffe 40%,
</style> #d5ebfd 66%,
\ No newline at end of file #c9e8fe 100%
);
}
// 导航栏样式
.uni-nav-bar-text {
height: 36px;
width: 36px;
background: #ffffff;
border: 0.4px solid rgba(224, 224, 224, 1);
border-radius: 18px;
border-radius: 50%;
color: #333;
text-align: center;
.iconfont {
font-size: 20px;
line-height: 36px;
}
}
}
</style>
...@@ -154,13 +154,13 @@ export default { ...@@ -154,13 +154,13 @@ export default {
font-size: 18px; font-size: 18px;
color: #3774f6; color: #3774f6;
line-height: 26px; line-height: 26px;
font-weight: 500; font-weight: 600;
margin-right: 5px;
} }
} }
.synchronous-management-content { .synchronous-management-content {
.month-list { .month-list {
height: calc(100vh - 26px - 16px - 8px - 36px - 62px); height: calc(100vh - 26px - 16px - 8px - 36px - 62px);
border: 1px solid;
overflow: auto; overflow: auto;
.seconed-title { .seconed-title {
margin-top: 16px; margin-top: 16px;
...@@ -189,7 +189,7 @@ export default { ...@@ -189,7 +189,7 @@ export default {
position: fixed; position: fixed;
bottom: 60px; bottom: 60px;
width: 240px; width: 240px;
height: 40px; height: 48px;
left: 50%; left: 50%;
color: #fff; color: #fff;
transform: translateX(-50%); transform: translateX(-50%);
......
static/img/add-img/home1.png

215.1 KB | W: | H:

static/img/add-img/home1.png

49.6 KB | W: | H:

static/img/add-img/home1.png
static/img/add-img/home1.png
static/img/add-img/home1.png
static/img/add-img/home1.png
  • 2-up
  • Swipe
  • Onion skin
static/img/add-img/home2.png

206.2 KB | W: | H:

static/img/add-img/home2.png

47.0 KB | W: | H:

static/img/add-img/home2.png
static/img/add-img/home2.png
static/img/add-img/home2.png
static/img/add-img/home2.png
  • 2-up
  • Swipe
  • Onion skin
static/img/add-img/home3.png

211.7 KB | W: | H:

static/img/add-img/home3.png

60.3 KB | W: | H:

static/img/add-img/home3.png
static/img/add-img/home3.png
static/img/add-img/home3.png
static/img/add-img/home3.png
  • 2-up
  • Swipe
  • Onion skin
No preview for this file type
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论