用户修改

This commit is contained in:
仲么了
2023-07-06 14:24:03 +08:00
parent 77fd768acf
commit 69063cb241
20 changed files with 331 additions and 154 deletions

View File

@@ -90,8 +90,6 @@ export default {
<style lang="scss">
.message {
padding-top: 20rpx;
.message-header {
padding: 200rpx 34rpx 34rpx;
display: flex;

View File

@@ -150,9 +150,7 @@ export default {
this.store.params.pageSize = 999
this.store.params.engineerId = this.select.engineeringId
this.store.reload()
this.store.firstCallBack = () => {
console.log(this.store)
}
},
getProjectList() {
getProjectList({

View File

@@ -2,15 +2,15 @@
<view class="index-zhuyonghu">
<div class="header">
<div class="header-item">
<div class="header-item-value">3</div>
<div class="header-item-value">{{ devCount.onLineCount || 0 }}</div>
<div class="header-item-label">正常设备</div>
</div>
<div class="header-item">
<div class="header-item-value">1</div>
<div class="header-item-value">{{ devCount.alarmLineCount || 0 }}</div>
<div class="header-item-label">报警设备</div>
</div>
<div class="header-item">
<div class="header-item-value">0</div>
<div class="header-item-value">{{ devCount.offLineCount || 0 }}</div>
<div class="header-item-label">离线设备</div>
</div>
</div>
@@ -30,7 +30,12 @@ export default {
loading: false,
}
},
props: {
devCount: {
type: Object,
default: {},
},
},
methods: {
submitFeedBack() {
uni.navigateTo({ url: '/pages/home/feedback' })

View File

@@ -2,15 +2,15 @@
<view class="index-zhuyonghu">
<div class="header">
<div class="header-item">
<div class="header-item-value">3</div>
<div class="header-item-value">{{ devCount.onLineCount || 0 }}</div>
<div class="header-item-label">正常设备</div>
</div>
<div class="header-item">
<div class="header-item-value">1</div>
<div class="header-item-value">{{ devCount.alarmLineCount || 0 }}</div>
<div class="header-item-label">报警设备</div>
</div>
<div class="header-item">
<div class="header-item-value">0</div>
<div class="header-item-value">{{ devCount.offLineCount || 0 }}</div>
<div class="header-item-label">离线设备</div>
</div>
</div>
@@ -18,7 +18,12 @@
</template>
<script>
export default {
props: {
devCount: {
type: Object,
default: {},
},
},
}
</script>
<style lang="scss"></style>

View File

@@ -2,21 +2,28 @@
<view class="index-zhuyonghu">
<div class="header">
<div class="header-item">
<div class="header-item-value">3</div>
<div class="header-item-value">{{ devCount.onLineCount || 0 }}</div>
<div class="header-item-label">正常设备</div>
</div>
<div class="header-item">
<div class="header-item-value">1</div>
<div class="header-item-value">{{ devCount.alarmLineCount || 0 }}</div>
<div class="header-item-label">报警设备</div>
</div>
<div class="header-item">
<div class="header-item-value">0</div>
<div class="header-item-value">{{ devCount.offLineCount || 0 }}</div>
<div class="header-item-label">离线设备</div>
</div>
</div>
</view>
</template>
<script>
export default {}
export default {
props: {
devCount: {
type: Object,
default: {},
},
},
}
</script>
<style lang="scss"></style>

View File

@@ -2,15 +2,15 @@
<view class="index-zhuyonghu">
<div class="header">
<div class="header-item">
<div class="header-item-value">3</div>
<div class="header-item-value">{{ devCount.onLineCount || 0 }}</div>
<div class="header-item-label">正常设备</div>
</div>
<div class="header-item">
<div class="header-item-value">1</div>
<div class="header-item-value">{{ devCount.alarmLineCount || 0 }}</div>
<div class="header-item-label">报警设备</div>
</div>
<div class="header-item">
<div class="header-item-value">0</div>
<div class="header-item-value">{{ devCount.offLineCount || 0 }}</div>
<div class="header-item-label">离线设备</div>
</div>
</div>
@@ -30,7 +30,12 @@ export default {
loading: false,
}
},
props: {
devCount: {
type: Object,
default: {},
},
},
methods: {
submitFeedBack() {
uni.navigateTo({ url: '/pages/home/feedback' })

View File

@@ -6,15 +6,15 @@
<div class="header-item-label">设备总数</div>
</div>
<div class="header-item">
<div class="header-item-value">1</div>
<div class="header-item-value">{{ devCount.onLineCount || 0 }}</div>
<div class="header-item-label">正常设备</div>
</div>
<div class="header-item" @click="projectWarning">
<div class="header-item-value">4</div>
<div class="header-item-value">{{ devCount.alarmLineCount || 0 }}</div>
<div class="header-item-label">报警设备</div>
</div>
<div class="header-item">
<div class="header-item-value">3</div>
<div class="header-item-value">{{ devCount.offLineCount || 0 }}</div>
<div class="header-item-label">离线设备</div>
</div>
<div class="header-item">
@@ -34,38 +34,44 @@
</template>
<script>
export default {
data () {
data() {
return {
loading: false,
}
},
props: {
devCount: {
type: Object,
default: {},
},
},
methods: {
projectWarning () {
projectWarning() {
uni.navigateTo({
url: '/pages/zhuanzhi/warning'
url: '/pages/zhuanzhi/warning',
})
},
projectNum () {
projectNum() {
uni.navigateTo({
url: '/pages/project/list'
url: '/pages/project/list',
})
},
jump (item) {
jump(item) {
if (item.name.indexOf('APF') > -1) {
uni.navigateTo({
url: '/pages/device/APF/detail'
url: '/pages/device/APF/detail',
})
} else if (item.name.indexOf('DVR') > -1) {
uni.navigateTo({
url: '/pages/device/DVR/detail'
url: '/pages/device/DVR/detail',
})
}
},
},
created(){
},
created() {},
}
</script>
<style lang='scss'>
.index-zhuanzhi {}
</style>
<style lang="scss">
.index-zhuanzhi {
}
</style>

View File

@@ -3,14 +3,14 @@
<view slot="body">
<view class="index">
<!-- 运维 -->
<YunWei v-if="userInfo.authorities === 'operation_manager'" />
<YunWei :devCount="devCount" v-if="userInfo.authorities === 'operation_manager'" />
<!-- 专职 -->
<ZhuanZhi v-if="userInfo.authorities === 'market_user'" />
<ZhuanZhi :devCount="devCount" v-if="userInfo.authorities === 'market_user'" />
<!-- 工程 -->
<GongCheng v-if="userInfo.authorities === 'engineering_user'" />
<GongCheng :devCount="devCount" v-if="userInfo.authorities === 'engineering_user'" />
<!-- 主用户 -->
<ZhuYongHu v-if="userInfo.authorities === 'app_vip_user'" />
<YouKe v-if="userInfo.authorities === 'tourist'"> </YouKe>
<ZhuYongHu :devCount="devCount" v-if="userInfo.authorities === 'app_vip_user'" />
<YouKe :devCount="devCount" v-if="userInfo.authorities === 'tourist'"> </YouKe>
<Device ref="device" :store="store" />
</view>
</view>
@@ -24,7 +24,7 @@ import ZhuanZhi from './comp/indexZhuanZhi.vue'
import YouKe from './comp/indexYouKe.vue'
import Device from './comp/device.vue'
import list from '../../common/js/list'
import { getDevCount } from '../../common/api/device.js'
export default {
mixins: [list],
components: {
@@ -39,6 +39,7 @@ export default {
return {
loading: false,
userInfo: {},
devCount: {},
}
},
methods: {
@@ -60,6 +61,11 @@ export default {
},
onLoad() {
this.store = this.DataSource('/cs-device-boot/EquipmentDelivery/queryEquipmentByProject')
this.store.firstCallBack = () => {
getDevCount(this.store.params.engineerId).then((res) => {
this.devCount = res.data
})
}
},
onShow() {
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)

View File

@@ -1,27 +1,53 @@
<template>
<view>
<view>
<web-view src="http://112.4.156.196:8040/shiningCloud/business/userAgreement"></web-view>
</view>
</view>
<Cn-page :loading="loading">
<view slot="body">
<view class="html-wrap">
<view v-html="value"></view>
</view>
</view>
</Cn-page>
</template>
<script>
export default {
data() {
return {
showFlag:0,
pageNameFlag:1,
pageName:'用户协议',
}
},
methods: {
},
}
import { queryAppInfoByType } from '@/common/api/mine.js'
export default {
data() {
return {
showFlag: 0,
pageNameFlag: 1,
pageName: '用户协议',
loading: true,
value: '',
}
},
methods: {},
created() {
let dictData = uni.getStorageSync(this.$cacheKey.dictData)
dictData.forEach((item) => {
if (item.code === 'appInformationType') {
item.children.forEach((item2) => {
if (item2.code === 'User_Agreement') {
queryAppInfoByType(item2.id).then((res) => {
this.value = res.data.content
this.loading = false
})
}
})
}
})
},
}
</script>
<style>
<style lang="scss">
.html-wrap {
width: 750rpx;
box-sizing: border-box;
padding: 20rpx;
font-size: 24rpx;
color: #666;
img {
width: 100%;
}
}
</style>

View File

@@ -1,25 +1,53 @@
<template>
<Cn-page :loading='loading'>
<view slot='body'>
<view class='index'>
说明书pdf
<Cn-page :loading="loading">
<view slot="body">
<view class="html-wrap">
<view v-html="value"></view>
</view>
</view>
</Cn-page>
</template>
<script>
import { queryAppInfoByType } from '@/common/api/mine.js'
export default {
data () {
data() {
return {
loading: false
showFlag: 0,
pageNameFlag: 1,
pageName: '用户协议',
loading: true,
value: '',
}
},
methods: {
}
methods: {},
created() {
let dictData = uni.getStorageSync(this.$cacheKey.dictData)
dictData.forEach((item) => {
if (item.code === 'appInformationType') {
item.children.forEach((item2) => {
if (item2.code === 'User_Manual') {
queryAppInfoByType(item2.id).then((res) => {
this.value = res.data.content
this.loading = false
})
}
})
}
})
},
}
</script>
<style lang='scss'>
.index {
padding: 34rpx;
<style lang="scss">
.html-wrap {
width: 750rpx;
box-sizing: border-box;
padding: 20rpx;
font-size: 24rpx;
color: #666;
img {
width: 100%;
}
}
</style>
</style>

View File

@@ -1,25 +1,53 @@
<template>
<Cn-page :loading='loading'>
<view slot='body'>
<view class='index'>
公司介绍
<Cn-page :loading="loading">
<view slot="body">
<view class="html-wrap">
<view v-html="value"></view>
</view>
</view>
</Cn-page>
</template>
<script>
import { queryAppInfoByType } from '@/common/api/mine.js'
export default {
data () {
data() {
return {
loading: false
showFlag: 0,
pageNameFlag: 1,
pageName: '用户协议',
loading: true,
value: '',
}
},
methods: {
}
methods: {},
created() {
let dictData = uni.getStorageSync(this.$cacheKey.dictData)
dictData.forEach((item) => {
if (item.code === 'appInformationType') {
item.children.forEach((item2) => {
if (item2.code === 'Company_Profile') {
queryAppInfoByType(item2.id).then((res) => {
this.value = res.data.content
this.loading = false
})
}
})
}
})
},
}
</script>
<style lang='scss'>
.index {
<style lang="scss">
.html-wrap {
width: 750rpx;
box-sizing: border-box;
padding: 20rpx;
font-size: 24rpx;
color: #666;
img {
width: 100%;
}
}
</style>
</style>

View File

@@ -1,25 +1,53 @@
<template>
<Cn-page :loading='loading'>
<view slot='body'>
<view class='index'>
数据库pdf
<Cn-page :loading="loading">
<view slot="body">
<view class="html-wrap">
<view v-html="value"></view>
</view>
</view>
</Cn-page>
</template>
<script>
import { queryAppInfoByType } from '@/common/api/mine.js'
export default {
data () {
data() {
return {
loading: false
showFlag: 0,
pageNameFlag: 1,
pageName: '用户协议',
loading: true,
value: '',
}
},
methods: {
}
methods: {},
created() {
let dictData = uni.getStorageSync(this.$cacheKey.dictData)
dictData.forEach((item) => {
if (item.code === 'appInformationType') {
item.children.forEach((item2) => {
if (item2.code === 'Data_base') {
queryAppInfoByType(item2.id).then((res) => {
this.value = res.data.content
this.loading = false
})
}
})
}
})
},
}
</script>
<style lang='scss'>
.index {
padding: 34rpx;
<style lang="scss">
.html-wrap {
width: 750rpx;
box-sizing: border-box;
padding: 20rpx;
font-size: 24rpx;
color: #666;
img {
width: 100%;
}
}
</style>
</style>

View File

@@ -58,8 +58,6 @@ export default {
},
methods: {
async init() {
const res = await queryPersonSet()
console.log(res);
},
jump(type) {
switch (type) {

View File

@@ -1,25 +1,53 @@
<template>
<Cn-page :loading='loading'>
<view slot='body'>
<view class='index'>
系统介绍
<Cn-page :loading="loading">
<view slot="body">
<view class="html-wrap">
<view v-html="value"></view>
</view>
</view>
</Cn-page>
</template>
<script>
import { queryAppInfoByType } from '@/common/api/mine.js'
export default {
data () {
data() {
return {
loading: false
showFlag: 0,
pageNameFlag: 1,
pageName: '用户协议',
loading: true,
value: '',
}
},
methods: {
}
methods: {},
created() {
let dictData = uni.getStorageSync(this.$cacheKey.dictData)
dictData.forEach((item) => {
if (item.code === 'appInformationType') {
item.children.forEach((item2) => {
if (item2.code === 'introduction') {
queryAppInfoByType(item2.id).then((res) => {
this.value = res.data.content
this.loading = false
})
}
})
}
})
},
}
</script>
<style lang='scss'>
.index {
<style lang="scss">
.html-wrap {
width: 750rpx;
box-sizing: border-box;
padding: 20rpx;
font-size: 24rpx;
color: #666;
img {
width: 100%;
}
}
</style>
</style>

View File

@@ -155,7 +155,9 @@ export default {
})
},
},
onLoad(o) {},
onLoad(o) {
uni.removeStorageSync('engineering')
},
}
</script>
<style lang="scss">