Compare commits
5 Commits
5813d64b0f
...
7e88642740
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e88642740 | ||
|
|
1fc379e0ae | ||
|
|
cd7502f958 | ||
|
|
3ca0bad453 | ||
|
|
f5128e32d8 |
@ -2,7 +2,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
// baseUrl: 'https://www.nuoyunr.com/admin-api',
|
// baseUrl: 'https://www.nuoyunr.com/admin-api',
|
||||||
baseUrl: 'http://127.0.0.1:48080/admin-api',
|
baseUrl: 'http://127.0.0.1:48080/admin-api',
|
||||||
// baseUrl: 'http://i3472v.natappfree.cc/admin-api',
|
// baseUrl: 'http://xp5ane.natappfree.cc/admin-api',
|
||||||
imagesUrl: 'http://www.nuoyunr.com/lananRsc',
|
imagesUrl: 'http://www.nuoyunr.com/lananRsc',
|
||||||
baseImageUrl: 'https://www.nuoyunr.com/minio',
|
baseImageUrl: 'https://www.nuoyunr.com/minio',
|
||||||
wsUrl: 'ws://127.0.0.1:48080',
|
wsUrl: 'ws://127.0.0.1:48080',
|
||||||
|
|||||||
@ -38,16 +38,17 @@
|
|||||||
<view class="a-box" v-for="(item,index) in goodsList" :key="index">
|
<view class="a-box" v-for="(item,index) in goodsList" :key="index">
|
||||||
<view class="t-box">
|
<view class="t-box">
|
||||||
<label>
|
<label>
|
||||||
<checkbox :value="item.id" color="#FFCC33" style="transform:scale(0.7)"/>
|
<checkbox :value="item.id+''" color="#FFCC33" style="transform:scale(0.7)"/>
|
||||||
</label>
|
</label>
|
||||||
<view class="s-img">
|
<view class="s-img">
|
||||||
<image :src="item.avatar" mode="aspectFill"></image>
|
<image :src="item.avatar" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="s-right">
|
<view class="s-right">
|
||||||
<view class="s-title">{{ item.nickname }}</view>
|
<view class="s-title">{{ item.nickname || item.username }}</view>
|
||||||
<view class="s-hui">电话:{{ item.mobile }}</view>
|
<view class="s-hui">岗位:{{item.roleName}}</view>
|
||||||
|
<view class="s-hui">电话:{{ item.mobile || item.username }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bottom-box" @click="gettel(item.mobile)">
|
<view class="bottom-box" @click="gettel(item)">
|
||||||
<uni-icons type="phone-filled" color="#0D2E8D" size="18"></uni-icons>
|
<uni-icons type="phone-filled" color="#0D2E8D" size="18"></uni-icons>
|
||||||
<text>电话</text>
|
<text>电话</text>
|
||||||
<!-- @click="getdelete(item.id)" -->
|
<!-- @click="getdelete(item.id)" -->
|
||||||
@ -138,7 +139,7 @@ export default {
|
|||||||
gwindex: 0,
|
gwindex: 0,
|
||||||
gwid: 0,
|
gwid: 0,
|
||||||
roleId:undefined,
|
roleId:undefined,
|
||||||
addRoleId:undefined
|
addRoleId:undefined,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@ -170,8 +171,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
gettel(num) {
|
gettel(num) {
|
||||||
|
const value = num.mobile || num.username
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber: num //仅为示例
|
phoneNumber: value //仅为示例
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
xgang(index, id) {
|
xgang(index, id) {
|
||||||
@ -239,7 +241,18 @@ export default {
|
|||||||
let total = res.total
|
let total = res.total
|
||||||
this.totalPages = Math.ceil(total / this.pageSize);
|
this.totalPages = Math.ceil(total / this.pageSize);
|
||||||
}
|
}
|
||||||
|
const newUsers = this.goodsList.filter(item => !item.roleName)
|
||||||
|
if (newUsers && newUsers.length > 0){
|
||||||
|
const ids = newUsers.map(item => item.id)
|
||||||
|
request({
|
||||||
|
url: '/inspection/util/getRoleNameByIds?ids=' + ids,
|
||||||
|
method: 'get'
|
||||||
|
}).then(res => {
|
||||||
|
this.goodsList.filter(item => !item.roleName).map(item => {
|
||||||
|
this.$set(item, "roleName", res.data[item.id])
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 去编辑
|
// 去编辑
|
||||||
getedit(id) {
|
getedit(id) {
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
<view class="sou" @click="handleSearch">搜索</view>
|
<view class="sou" @click="handleSearch">搜索</view>
|
||||||
<view class="sou" @click="handleReset">重置</view>
|
<view class="sou" @click="handleReset">重置</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view style="display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.5rem auto; justify-content: flex-start;">
|
||||||
|
<view v-for="[key, value] in countMap" :key="key" style="flex: 0 0 auto;">
|
||||||
|
<view>{{key}}: {{value}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="table-container">
|
<view class="table-container">
|
||||||
<view class="table-row header-row">
|
<view class="table-row header-row">
|
||||||
<view class="table-cell">序号</view>
|
<view class="table-cell">序号</view>
|
||||||
@ -80,8 +85,8 @@ export default {
|
|||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
this.setLandscape();
|
this.setLandscape();
|
||||||
this.getTableData();
|
|
||||||
this.getCountMap()
|
this.getCountMap()
|
||||||
|
this.getTableData();
|
||||||
this.getDictData()
|
this.getDictData()
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
@ -105,7 +110,7 @@ export default {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.queryParams
|
params: this.queryParams
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res)
|
this.countMap = Object.entries(res.data)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleShow(id) {
|
handleShow(id) {
|
||||||
@ -140,17 +145,18 @@ export default {
|
|||||||
chooseStatus: "1"
|
chooseStatus: "1"
|
||||||
};
|
};
|
||||||
this.tableData = []; // 重置时清空数据
|
this.tableData = []; // 重置时清空数据
|
||||||
this.getTableData();
|
|
||||||
this.getCountMap()
|
this.getCountMap()
|
||||||
|
this.getTableData();
|
||||||
},
|
},
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
|
this.tableData = []
|
||||||
this.queryParams.pageNum = 1
|
this.queryParams.pageNum = 1
|
||||||
if (this.queryParams.queryTime) {
|
if (this.queryParams.queryTime) {
|
||||||
this.queryParams.startTime = this.queryParams.queryTime[0];
|
this.queryParams.startTime = this.queryParams.queryTime[0];
|
||||||
this.queryParams.endTime = this.queryParams.queryTime[1];
|
this.queryParams.endTime = this.queryParams.queryTime[1];
|
||||||
this.getTableData();
|
|
||||||
this.getCountMap()
|
|
||||||
}
|
}
|
||||||
|
this.getCountMap()
|
||||||
|
this.getTableData();
|
||||||
},
|
},
|
||||||
getTableData(isLoadMore = false) {
|
getTableData(isLoadMore = false) {
|
||||||
this.loading = true; // 开始加载更多
|
this.loading = true; // 开始加载更多
|
||||||
|
|||||||
@ -28,24 +28,24 @@
|
|||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
<view class="threebox">
|
<!-- <view class="threebox">-->
|
||||||
<!-- @click="gostatistics()" -->
|
<!-- <!– @click="gostatistics()" –>-->
|
||||||
<view class="t-box">
|
<!-- <view class="t-box">-->
|
||||||
<view class="xbai">合规合格</view>
|
<!-- <view class="xbai">合规合格</view>-->
|
||||||
<view class="dbai">{{threenum.hgNum}}</view>
|
<!-- <view class="dbai">{{threenum.hgNum}}</view>-->
|
||||||
|
|
||||||
</view>
|
<!-- </view>-->
|
||||||
<view class="t-box">
|
<!-- <view class="t-box">-->
|
||||||
<view class="xbai">当日订单</view>
|
<!-- <view class="xbai">当日订单</view>-->
|
||||||
<view class="dbai">{{threenum.todayOrderNum}}</view>
|
<!-- <view class="dbai">{{threenum.todayOrderNum}}</view>-->
|
||||||
|
|
||||||
</view>
|
<!-- </view>-->
|
||||||
<view class="t-box">
|
<!-- <view class="t-box">-->
|
||||||
<view class="xbai">双燃料合格</view>
|
<!-- <view class="xbai">双燃料合格</view>-->
|
||||||
<view class="dbai">{{threenum.srlNum}}</view>
|
<!-- <view class="dbai">{{threenum.srlNum}}</view>-->
|
||||||
|
|
||||||
</view>
|
<!-- </view>-->
|
||||||
</view>
|
<!-- </view>-->
|
||||||
<!-- <view class="threebox" @click="gocode">
|
<!-- <view class="threebox" @click="gocode">
|
||||||
扫一扫
|
扫一扫
|
||||||
</view> -->
|
</view> -->
|
||||||
@ -110,6 +110,16 @@
|
|||||||
</view>
|
</view>
|
||||||
<text class="h-text">上门取车</text>
|
<text class="h-text">上门取车</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="f-box" @click="goPresent">
|
||||||
|
<view class="j-icon" v-if="appAndPick.pickNum != 0">
|
||||||
|
<text>{{appAndPick.pickNum }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="jgbox" style="width: 32px;height: 32px">
|
||||||
|
<image src="../../static/detection/present.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<text class="h-text">使用说明</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -173,24 +183,59 @@
|
|||||||
appAndPick: {
|
appAndPick: {
|
||||||
appointNum: 0,
|
appointNum: 0,
|
||||||
pickNum: 0
|
pickNum: 0
|
||||||
}
|
},
|
||||||
|
present: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.baseUrl = this.$baseUrl
|
this.baseUrl = this.$baseUrl
|
||||||
this.startScrolling();
|
this.startScrolling();
|
||||||
|
this.getPresent()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getindex()
|
this.getindex()
|
||||||
this.getAppointAndPickNum()
|
this.getAppointAndPickNum()
|
||||||
this.getbottom()
|
this.getbottom()
|
||||||
|
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
tabBar,
|
tabBar,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
goPresent(){
|
||||||
|
if (!this.present?.filePath){
|
||||||
|
uni.showToast({
|
||||||
|
title: '暂无使用说明',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
let old = this.present.filePath
|
||||||
|
if (old[0] !== '/'){
|
||||||
|
old = "/" + old
|
||||||
|
}
|
||||||
|
uni.downloadFile({
|
||||||
|
url: this.$baseImageUrl+old,
|
||||||
|
success: function (res) {
|
||||||
|
var filePath = res.tempFilePath;
|
||||||
|
uni.openDocument({
|
||||||
|
filePath: filePath,
|
||||||
|
showMenu: true,
|
||||||
|
success: function (res) {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getPresent(){
|
||||||
|
request({
|
||||||
|
url: '/inspectionFile/inspectionFile/getPresent',
|
||||||
|
method: 'get'
|
||||||
|
}).then(res => {
|
||||||
|
if (res.data){
|
||||||
|
this.present = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
async getAppointAndPickNum() {
|
async getAppointAndPickNum() {
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: '/partnerOwn/partner/getAppointAndPickNum',
|
url: '/partnerOwn/partner/getAppointAndPickNum',
|
||||||
|
|||||||
@ -454,6 +454,7 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 5px 15px;
|
padding: 5px 15px;
|
||||||
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
.t-title{
|
.t-title{
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
|
|||||||
@ -12,51 +12,79 @@
|
|||||||
<view class="dil">
|
<view class="dil">
|
||||||
<view class="tinput">
|
<view class="tinput">
|
||||||
|
|
||||||
<view class="text1" > <text class="hong1">*</text> 设备名称</view>
|
<view class="text1">
|
||||||
|
<text class="hong1">*</text>
|
||||||
|
设备名称
|
||||||
|
</view>
|
||||||
<view class="you">
|
<view class="you">
|
||||||
<input type="text" placeholder="请输入设备名称" v-model="box.equName">
|
<input type="text" placeholder="请输入设备名称" v-model="box.equName">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tinput">
|
<view class="tinput">
|
||||||
|
|
||||||
<view class="text1" > <text class="hong1">*</text> 设备型号</view>
|
<view class="text1">
|
||||||
|
<text class="hong1">*</text>
|
||||||
|
设备型号
|
||||||
|
</view>
|
||||||
<view class="you">
|
<view class="you">
|
||||||
<input type="text" placeholder="请输入设备型号" v-model="box.equModel">
|
<input type="text" placeholder="请输入设备型号" v-model="box.equModel">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tinput">
|
<view class="tinput">
|
||||||
|
|
||||||
<view class="text1" > <text class="hong1">*</text> 设备编号</view>
|
<view class="text1">
|
||||||
|
<text class="hong1">*</text>
|
||||||
|
设备编号
|
||||||
|
</view>
|
||||||
<view class="you">
|
<view class="you">
|
||||||
<input type="text" placeholder="请输入设备编号" v-model="box.equNumber">
|
<input type="text" placeholder="请输入设备编号" v-model="box.equNumber">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="tinput" @click="typeShow = true">
|
||||||
|
<view class="text1">
|
||||||
|
设备类别
|
||||||
|
</view>
|
||||||
|
<view class="you">
|
||||||
|
<input type="text" placeholder="请选择设备类别" v-model="typeName">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="tinput">
|
<view class="tinput">
|
||||||
|
|
||||||
<view class="text1" > <text class="hong1">*</text> 设备检定周期</view>
|
<view class="text1">
|
||||||
|
<text class="hong1">*</text>
|
||||||
|
设备检定周期
|
||||||
|
</view>
|
||||||
<view class="you">
|
<view class="you">
|
||||||
<input type="text" placeholder="请输入设备检定周期" v-model="box.equZq">
|
<input type="text" placeholder="请输入设备检定周期" v-model="box.equZq">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tinput">
|
<view class="tinput">
|
||||||
|
|
||||||
<view class="text1" > <text class="hong1">*</text> 上次检定单位</view>
|
<view class="text1">
|
||||||
|
<text class="hong1">*</text>
|
||||||
|
上次检定单位
|
||||||
|
</view>
|
||||||
<view class="you">
|
<view class="you">
|
||||||
<input type="text" placeholder="请输入上次检定单位" v-model="box.lastUnit">
|
<input type="text" placeholder="请输入上次检定单位" v-model="box.lastUnit">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<view class="tinput">
|
<view class="tinput">
|
||||||
<view class="text1"> <text class="hong1">*</text> 有效期</view>
|
<view class="text1">
|
||||||
|
<text class="hong1">*</text>
|
||||||
|
有效期
|
||||||
|
</view>
|
||||||
<!-- validTime -->
|
<!-- validTime -->
|
||||||
<view class="you" @click="show = true ">
|
<view class="you" @click="show = true ">
|
||||||
<text>{{ time || '' }}</text>
|
<text>{{ time || '' }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tinput">
|
<view class="tinput">
|
||||||
<view class="text1"> <text class="hong1">*</text> 下次检定时间</view>
|
<view class="text1">
|
||||||
|
<text class="hong1">*</text>
|
||||||
|
下次检定时间
|
||||||
|
</view>
|
||||||
<!-- nextCheckTime -->
|
<!-- nextCheckTime -->
|
||||||
<view class="you" @click="show1 = true ">
|
<view class="you" @click="show1 = true ">
|
||||||
<text>{{ time1 || '' }}</text>
|
<text>{{ time1 || '' }}</text>
|
||||||
@ -79,7 +107,8 @@
|
|||||||
return-type='string'
|
return-type='string'
|
||||||
></u-datetime-picker>
|
></u-datetime-picker>
|
||||||
|
|
||||||
|
<u-picker :show="typeShow" :columns="columns" @confirm="confirmsType" @cancel="typeShow = false"
|
||||||
|
keyName="label"></u-picker>
|
||||||
<view class="anniu" @click="getnewsadd()">
|
<view class="anniu" @click="getnewsadd()">
|
||||||
<text>保存</text>
|
<text>保存</text>
|
||||||
</view>
|
</view>
|
||||||
@ -95,6 +124,8 @@
|
|||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
import {getToken} from '@/utils/auth'
|
import {getToken} from '@/utils/auth'
|
||||||
import upload from '@/utils/upload.js'
|
import upload from '@/utils/upload.js'
|
||||||
|
import {getDictDataByType} from "../../utils/utils";
|
||||||
|
|
||||||
var wvCurrent;
|
var wvCurrent;
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -110,6 +141,9 @@
|
|||||||
id: '',
|
id: '',
|
||||||
type: 'add',
|
type: 'add',
|
||||||
box: {},
|
box: {},
|
||||||
|
typeShow: false,
|
||||||
|
columns: [],
|
||||||
|
typeName: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
@ -117,13 +151,25 @@
|
|||||||
if (option.type == 'edit') {
|
if (option.type == 'edit') {
|
||||||
this.box.id = option.id
|
this.box.id = option.id
|
||||||
}
|
}
|
||||||
|
this.getInsType()
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
if (this.type == 'edit') this.getDetail();
|
if (this.type == 'edit') this.getDetail();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
confirmsType(e){
|
||||||
|
console.log(e)
|
||||||
|
this.box.type = e.value[0].value
|
||||||
|
this.typeName = e.value[0].label
|
||||||
|
this.typeShow = false
|
||||||
|
},
|
||||||
|
getInsType(){
|
||||||
|
if (!this.columns || this.columns.length === 0){
|
||||||
|
this.columns = [getDictDataByType("ins_equ_type")]
|
||||||
|
}
|
||||||
|
console.log(this.columns)
|
||||||
|
},
|
||||||
async getDetail() {
|
async getDetail() {
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: '/system/equInfo/' + this.box.id,
|
url: '/system/equInfo/' + this.box.id,
|
||||||
@ -135,6 +181,13 @@
|
|||||||
this.time = this.box.validTime
|
this.time = this.box.validTime
|
||||||
this.time1 = this.box.nextCheckTime
|
this.time1 = this.box.nextCheckTime
|
||||||
}
|
}
|
||||||
|
if (this.box.type){
|
||||||
|
const data = this.columns[0]
|
||||||
|
const index = data.findIndex(item => item.value === this.box.type)
|
||||||
|
if (index !== -1){
|
||||||
|
this.typeName = data[index].label
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
cancels() {
|
cancels() {
|
||||||
this.show = false
|
this.show = false
|
||||||
@ -176,7 +229,6 @@
|
|||||||
// })
|
// })
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (this.type == 'add') {
|
if (this.type == 'add') {
|
||||||
|
|
||||||
let res = await request({
|
let res = await request({
|
||||||
@ -243,9 +295,11 @@
|
|||||||
padding: 0px 12px;
|
padding: 0px 12px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-icon {
|
.top-icon {
|
||||||
margin-bottom: 45px;
|
margin-bottom: 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-top {
|
.c-top {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -256,16 +310,19 @@
|
|||||||
background-color: white;
|
background-color: white;
|
||||||
padding-top: 40px;
|
padding-top: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-title {
|
.c-title {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
}
|
}
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0px 15px;
|
padding: 0px 15px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-box {
|
.top-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@ -273,12 +330,14 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 20px 0px;
|
padding: 20px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tb-left {
|
.tb-left {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uicon {
|
.uicon {
|
||||||
width: 18px;
|
width: 18px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
@ -293,6 +352,7 @@
|
|||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tb-right {
|
.tb-right {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 26px;
|
height: 26px;
|
||||||
@ -302,23 +362,27 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.text1 {
|
.text1 {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #363636;
|
color: #363636;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hong1 {
|
.hong1 {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #FF5453;
|
color: #FF5453;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hong2 {
|
.hong2 {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tinput {
|
.tinput {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -330,6 +394,7 @@
|
|||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
margin-bottom: 14px;
|
margin-bottom: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xinput {
|
.xinput {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: white;
|
background: white;
|
||||||
@ -337,16 +402,19 @@
|
|||||||
padding: 16px;
|
padding: 16px;
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.you {
|
.you {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.xz {
|
.xz {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.kuang {
|
.kuang {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
@ -359,11 +427,13 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xlan {
|
.xlan {
|
||||||
background: #CDE7FF !important;
|
background: #CDE7FF !important;
|
||||||
color: #1D62FF !important;
|
color: #1D62FF !important;
|
||||||
border: 1px solid #2A96FE;
|
border: 1px solid #2A96FE;
|
||||||
}
|
}
|
||||||
|
|
||||||
.anniu {
|
.anniu {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: linear-gradient(180deg, #3F61C0 0%, #0D2E8D 100%);
|
background: linear-gradient(180deg, #3F61C0 0%, #0D2E8D 100%);
|
||||||
|
|||||||
@ -22,9 +22,16 @@
|
|||||||
|
|
||||||
<view class="cont">
|
<view class="cont">
|
||||||
|
|
||||||
<view @click="goadd('add')" style="width: 100%; display: flex; justify-content: center;background:white; margin: 10px 0px; box-sizing: border-box; padding: 10px;font-weight: bold;border-radius: 8px;">
|
<view @click="goadd('add')"
|
||||||
|
style="width: 100%; display: flex; justify-content: center;background:white; margin: 10px 0px; box-sizing: border-box; padding: 10px;font-weight: bold;border-radius: 8px;">
|
||||||
<text> + 新增设备</text>
|
<text> + 新增设备</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="box-bottom">
|
||||||
|
<view class="tap-box" v-for="(item,index) in tabList" :key="index" @click="gettap(item.value)">
|
||||||
|
<view :class="{'lan' : tapindex == item.value}">{{ item.label }}</view>
|
||||||
|
<view class="gang" v-if="tapindex == item.value"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="bjimg" v-if="arrlist == ''">
|
<view class="bjimg" v-if="arrlist == ''">
|
||||||
<image src="http://www.nuoyunr.com/lananRsc/detection/qs.png" mode=""></image>
|
<image src="http://www.nuoyunr.com/lananRsc/detection/qs.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
@ -63,7 +70,8 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
<uni-popup ref="alertDialog" type="dialog">
|
<uni-popup ref="alertDialog" type="dialog">
|
||||||
<uni-popup-dialog cancelText="关闭" confirmText="同意" title="通知" content="您确认要删除吗" @confirm="dialogConfirm"
|
<uni-popup-dialog cancelText="关闭" confirmText="同意" title="通知" content="您确认要删除吗"
|
||||||
|
@confirm="dialogConfirm"
|
||||||
@close="dialogClose"></uni-popup-dialog>
|
@close="dialogClose"></uni-popup-dialog>
|
||||||
</uni-popup>
|
</uni-popup>
|
||||||
|
|
||||||
@ -77,24 +85,35 @@
|
|||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
||||||
import request from '../../utils/request';
|
import request from '../../utils/request';
|
||||||
|
import {getDictDataByType} from "../../utils/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
||||||
partnerId: '',
|
partnerId: '',
|
||||||
arrlist:[],
|
arrlist: [
|
||||||
|
],
|
||||||
pageNum: 1,//第几页
|
pageNum: 1,//第几页
|
||||||
pageSize: 20,//一页多少张
|
pageSize: 20,//一页多少张
|
||||||
totalPages: 0,//总数
|
totalPages: 0,//总数
|
||||||
deleteid: '',
|
deleteid: '',
|
||||||
equName: null
|
equName: null,
|
||||||
|
tabList:[
|
||||||
|
{
|
||||||
|
label: "全部",
|
||||||
|
value: "0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
tapindex: 0,
|
||||||
|
type: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.partnerId = uni.getStorageSync('partnerId')
|
this.partnerId = uni.getStorageSync('partnerId')
|
||||||
this.getlistindex()
|
this.getlistindex()
|
||||||
|
this.getTab()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getlistindex()
|
this.getlistindex()
|
||||||
@ -113,6 +132,17 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
gettap(value){
|
||||||
|
this.tapindex = value
|
||||||
|
this.type = value === '0' ? null : value
|
||||||
|
this.getlistindex()
|
||||||
|
},
|
||||||
|
getTab(){
|
||||||
|
if (!this.tabList || this.tabList.length === 1){
|
||||||
|
this.tabList = [...this.tabList, ...getDictDataByType("ins_equ_type")]
|
||||||
|
}
|
||||||
|
console.log(this.tabList)
|
||||||
|
},
|
||||||
dialogToggle(id) {
|
dialogToggle(id) {
|
||||||
this.deleteid = id
|
this.deleteid = id
|
||||||
this.$refs.alertDialog.open()
|
this.$refs.alertDialog.open()
|
||||||
@ -154,7 +184,8 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
partnerId: this.partnerId,
|
partnerId: this.partnerId,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
pageNum: this.pageNum,
|
pageNum: this.pageNum,
|
||||||
equName: this.equName
|
equName: this.equName,
|
||||||
|
type: this.type
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// this.arrlist = res.rows
|
// this.arrlist = res.rows
|
||||||
@ -183,9 +214,11 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
// padding-top: 45px;
|
// padding-top: 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-icon {
|
.top-icon {
|
||||||
margin-bottom: 45px;
|
margin-bottom: 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.q-fab {
|
.q-fab {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 50px;
|
bottom: 50px;
|
||||||
@ -194,11 +227,13 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
height: 55px;
|
height: 55px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fab-z1 {
|
.fab-z1 {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 115px;
|
bottom: 115px;
|
||||||
@ -207,11 +242,13 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
height: 50px;
|
height: 50px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fab-z2 {
|
.fab-z2 {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 50px;
|
bottom: 50px;
|
||||||
@ -220,11 +257,13 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
height: 50px;
|
height: 50px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-tap {
|
.c-tap {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
@ -234,15 +273,18 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
background-color: white;
|
background-color: white;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-top {
|
.c-top {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-title {
|
.c-title {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
}
|
}
|
||||||
|
|
||||||
.cont {
|
.cont {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
@ -251,6 +293,7 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
background-color: #F6F6F6;
|
background-color: #F6F6F6;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hongdian {
|
.hongdian {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
@ -262,6 +305,7 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
right: 5px;
|
right: 5px;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-box {
|
.c-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -272,27 +316,32 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-b-top {
|
.c-b-top {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-left {
|
.t-left {
|
||||||
width: 40%;
|
width: 40%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-right {
|
.t-right {
|
||||||
width: 60%;
|
width: 60%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-tilte {
|
.t-tilte {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -302,6 +351,7 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tw-tilte {
|
.tw-tilte {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -313,6 +363,7 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-zi {
|
.t-zi {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@ -324,16 +375,19 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bjimg {
|
.bjimg {
|
||||||
width: 255px;
|
width: 255px;
|
||||||
height: 236px;
|
height: 236px;
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
margin-top: 100px;
|
margin-top: 100px;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-b-bom {
|
.c-b-bom {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -341,15 +395,18 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.b-left {
|
.b-left {
|
||||||
color: #0D2E8D;
|
color: #0D2E8D;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.b-right {
|
.b-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.z-lv {
|
.z-lv {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -357,6 +414,7 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.y-hong {
|
.y-hong {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -364,28 +422,35 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.z-img {
|
.z-img {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tap-box {
|
.tap-box {
|
||||||
width: 30%;
|
width: 30%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gang {
|
.gang {
|
||||||
height: 4px;
|
height: 4px;
|
||||||
background: #0D2E8D;
|
background: #0D2E8D;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lan {
|
.lan {
|
||||||
color: #0D2E8D;
|
color: #0D2E8D;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-heder {
|
.top-heder {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
@ -395,20 +460,25 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 5px 15px;
|
padding: 5px 15px;
|
||||||
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-title {
|
.t-title {
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-left {
|
.t-left {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-you {
|
.t-you {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-top {
|
.box-top {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -421,6 +491,7 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-hui {
|
.box-hui {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@ -428,6 +499,7 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-left {
|
.box-left {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
@ -455,4 +527,30 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.box-bottom {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
//width: 100%;
|
||||||
|
//height: 30px;
|
||||||
|
//box-sizing: border-box;
|
||||||
|
//white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tap-box {
|
||||||
|
width: 20%;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gang {
|
||||||
|
height: 4px;
|
||||||
|
background: #0D2E8D;
|
||||||
|
width: 80%;
|
||||||
|
margin: 0px auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lan {
|
||||||
|
color: #0D2E8D;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -17,9 +17,18 @@
|
|||||||
<!-- <view class="bjimg" v-if="arrlist == ''">
|
<!-- <view class="bjimg" v-if="arrlist == ''">
|
||||||
<image src="http://www.nuoyunr.com/lananRsc/detection/qs.png" mode=""></image>
|
<image src="http://www.nuoyunr.com/lananRsc/detection/qs.png" mode=""></image>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="c-box" @click="gostaff">员工管理</view>
|
<view class="c-box">
|
||||||
<view class="c-box" @click="goinformation">设备管理</view>
|
<view>员工管理({{ typeCount.get('staff') }})</view>
|
||||||
<view class="c-box" @click="godevice">资料管理</view>
|
<view class="btn" @click="gostaff">去查看</view>
|
||||||
|
</view>
|
||||||
|
<view class="c-box">
|
||||||
|
<view>设备管理({{ typeCount.get('equ') }})</view>
|
||||||
|
<view class="btn" @click="goinformation">去查看</view>
|
||||||
|
</view>
|
||||||
|
<view class="c-box">
|
||||||
|
<view>资料管理({{ typeCount.get('file') }})</view>
|
||||||
|
<view class="btn" @click="godevice">去查看</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -34,21 +43,27 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
typeCount: {},
|
||||||
|
partnerId: uni.getStorageSync('partnerId')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
this.getTypeCount()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
this.getTypeCount()
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
getTypeCount() {
|
||||||
|
request({
|
||||||
|
url: '/inspection/util/getTypeCount?partnerId=' + this.partnerId,
|
||||||
|
method: 'get',
|
||||||
|
}).then(res => {
|
||||||
|
this.typeCount = new Map(Object.entries(res.data))
|
||||||
|
})
|
||||||
|
},
|
||||||
getback() {
|
getback() {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
},
|
},
|
||||||
@ -83,9 +98,11 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
// padding-top: 45px;
|
// padding-top: 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-icon {
|
.top-icon {
|
||||||
margin-bottom: 45px;
|
margin-bottom: 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.q-fab {
|
.q-fab {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 50px;
|
bottom: 50px;
|
||||||
@ -94,11 +111,13 @@
|
|||||||
height: 55px;
|
height: 55px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fab-z1 {
|
.fab-z1 {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 115px;
|
bottom: 115px;
|
||||||
@ -107,11 +126,13 @@
|
|||||||
height: 50px;
|
height: 50px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fab-z2 {
|
.fab-z2 {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 50px;
|
bottom: 50px;
|
||||||
@ -120,11 +141,13 @@
|
|||||||
height: 50px;
|
height: 50px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-tap {
|
.c-tap {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
@ -134,23 +157,27 @@
|
|||||||
background-color: white;
|
background-color: white;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-top {
|
.c-top {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-title {
|
.c-title {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
}
|
}
|
||||||
|
|
||||||
.cont {
|
.cont {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
padding-top: 50px ;
|
padding-top: 25px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: #F6F6F6;
|
background-color: #F6F6F6;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hongdian {
|
.hongdian {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
@ -162,6 +189,7 @@
|
|||||||
right: 5px;
|
right: 5px;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-box {
|
.c-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -171,32 +199,37 @@
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: space-between;
|
||||||
font-size: 30px;
|
font-size: 20px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
height: 200px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-b-top {
|
.c-b-top {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-left {
|
.t-left {
|
||||||
width: 40%;
|
width: 40%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-right {
|
.t-right {
|
||||||
width: 60%;
|
width: 60%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-tilte {
|
.t-tilte {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -206,6 +239,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tw-tilte {
|
.tw-tilte {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -217,6 +251,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-zi {
|
.t-zi {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@ -228,16 +263,19 @@
|
|||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bjimg {
|
.bjimg {
|
||||||
width: 255px;
|
width: 255px;
|
||||||
height: 236px;
|
height: 236px;
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
margin-top: 100px;
|
margin-top: 100px;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-b-bom {
|
.c-b-bom {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -245,15 +283,18 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.b-left {
|
.b-left {
|
||||||
color: #0D2E8D;
|
color: #0D2E8D;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.b-right {
|
.b-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.z-lv {
|
.z-lv {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -261,6 +302,7 @@
|
|||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.y-hong {
|
.y-hong {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -268,28 +310,35 @@
|
|||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.z-img {
|
.z-img {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tap-box {
|
.tap-box {
|
||||||
width: 30%;
|
width: 30%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gang {
|
.gang {
|
||||||
height: 4px;
|
height: 4px;
|
||||||
background: #0D2E8D;
|
background: #0D2E8D;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lan {
|
.lan {
|
||||||
color: #0D2E8D;
|
color: #0D2E8D;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-heder {
|
.top-heder {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
@ -299,18 +348,31 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 5px 15px;
|
padding: 5px 15px;
|
||||||
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-title {
|
.t-title {
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-left {
|
.t-left {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-you {
|
.t-you {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: normal;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border-radius: 5px;
|
||||||
|
background-color: #326ef6;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
BIN
static/detection/present.png
Normal file
BIN
static/detection/present.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
Loading…
Reference in New Issue
Block a user