反馈修改

This commit is contained in:
仲么了
2023-10-09 16:12:27 +08:00
parent 9c8dc2cd0a
commit bd8e137c26
20 changed files with 167 additions and 25 deletions

View File

@@ -5,15 +5,13 @@ import config from '../js/config';
* 已读暂态 * 已读暂态
* @returns {*} * @returns {*}
*/ */
export function updateStatus(eventIds) { export function updateStatus(params) {
return request({ return request({
url: '/cs-harmonic-boot/eventUser/updateStatus', url: '/cs-harmonic-boot/eventUser/updateStatus',
method: 'post', method: 'post',
header: { header: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
data: { data: params,
eventIds
},
}) })
} }

View File

@@ -2,7 +2,7 @@
<uni-card <uni-card
:title="device.equipmentName" :title="device.equipmentName"
:sub-title="device.mac" :sub-title="device.mac"
:extra="device.isPrimaryUser ? '主用户' : '子用户'" :extra="device.isPrimaryUser == 1 ? '主用户' : '子用户'"
padding="0" padding="0"
@click="jump(device)" @click="jump(device)"
:thumbnail="deviceIcon(device.runStatus)" :thumbnail="deviceIcon(device.runStatus)"

View File

@@ -190,7 +190,24 @@
{ {
"path": "pages/message/transient", "path": "pages/message/transient",
"style": { "style": {
"navigationBarTitleText": "暂态事件" "app-plus": {
"bounce": "none",
//关闭窗口回弹效果
"titleNView": {
"titleText": "暂态事件",
// 窗口的标题
"titleAlign": "center",
"padding-right": "20rpx",
"buttons": [
{
"text": "一键已读",
"fontSize": "28rpx",
"select": false,
"width": "auto"
}
]
}
}
} }
}, },
{ {
@@ -202,7 +219,24 @@
{ {
"path": "pages/message/report", "path": "pages/message/report",
"style": { "style": {
"navigationBarTitleText": "设备告警" "app-plus": {
"bounce": "none",
//关闭窗口回弹效果
"titleNView": {
"titleText": "设备告警",
// 窗口的标题
"titleAlign": "center",
"padding-right": "20rpx",
"buttons": [
{
"text": "一键已读",
"fontSize": "28rpx",
"select": false,
"width": "auto"
}
]
}
}
} }
}, },
{ {
@@ -220,13 +254,47 @@
{ {
"path": "pages/message/steady", "path": "pages/message/steady",
"style": { "style": {
"navigationBarTitleText": "稳态越限" "app-plus": {
"bounce": "none",
//关闭窗口回弹效果
"titleNView": {
"titleText": "稳态越限",
// 窗口的标题
"titleAlign": "center",
"padding-right": "20rpx",
"buttons": [
{
"text": "一键已读",
"fontSize": "28rpx",
"select": false,
"width": "auto"
}
]
}
}
} }
}, },
{ {
"path": "pages/message/run", "path": "pages/message/run",
"style": { "style": {
"navigationBarTitleText": "运行事件" "app-plus": {
"bounce": "none",
//关闭窗口回弹效果
"titleNView": {
"titleText": "运行事件",
// 窗口的标题
"titleAlign": "center",
"padding-right": "20rpx",
"buttons": [
{
"text": "一键已读",
"fontSize": "28rpx",
"select": false,
"width": "auto"
}
]
}
}
} }
}, },
{ {

View File

@@ -140,7 +140,8 @@ export default {
immediate: true, immediate: true,
}, },
}, },
methods: {}, methods: {
},
} }
</script> </script>
<style lang="scss"> <style lang="scss">

View File

@@ -249,10 +249,6 @@ export default {
this.$refs.inputDialog.close() this.$refs.inputDialog.close()
}, },
dialogInputConfirm(val) { dialogInputConfirm(val) {
if (!val) {
this.$util.toast('请输入备注')
return
}
if (this.dialogType == '取消调试') { if (this.dialogType == '取消调试') {
cancelDebug({ cancelDebug({
deviceId: this.devId, deviceId: this.devId,

View File

@@ -30,7 +30,7 @@
:localdata="projectRange" :localdata="projectRange"
@change="queryTopologyDiagramPage" @change="queryTopologyDiagramPage"
disabled disabled
:clearable="false" :clear="false"
></uni-data-select> ></uni-data-select>
</uni-forms-item> </uni-forms-item>
<!-- <uni-forms-item label="型号"> <!-- <uni-forms-item label="型号">
@@ -114,6 +114,8 @@
v-model="point.linePostion" v-model="point.linePostion"
:localdata="positionList" :localdata="positionList"
@change="positionChange" @change="positionChange"
:clear="false"
disabled
></uni-data-select> ></uni-data-select>
<uni-easyinput <uni-easyinput
:clearable="false" :clearable="false"

View File

@@ -30,6 +30,7 @@
v-model="formData.projectId" v-model="formData.projectId"
:localdata="projectRange" :localdata="projectRange"
@change="queryTopologyDiagramPage" @change="queryTopologyDiagramPage"
:clear="false"
></uni-data-select> ></uni-data-select>
<uni-icons <uni-icons
type="plusempty" type="plusempty"
@@ -142,6 +143,8 @@
v-model="point.position" v-model="point.position"
:localdata="positionList" :localdata="positionList"
@change="positionChange" @change="positionChange"
disabled
:clear="false"
></uni-data-select> ></uni-data-select>
<uni-easyinput <uni-easyinput
:clearable="false" :clearable="false"

View File

@@ -74,7 +74,7 @@ export default {
if (confirm) { if (confirm) {
if (this.devCount.engineeringListLength > 0) { if (this.devCount.engineeringListLength > 0) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/device/new', url: '/pages/device/new?type=',
}) })
} else { } else {
uni.navigateTo({ uni.navigateTo({

View File

@@ -43,13 +43,13 @@
</view> </view>
<view class="mine-nav" @click="jump('engineering')"> <view class="mine-nav" @click="jump('engineering')">
<image mode="aspectFill" class="mine-nav-icon" src="/static/project.png" /> <image mode="aspectFill" class="mine-nav-icon" src="/static/project.png" />
<view class="mine-nav-label">工程列表</view> <view class="mine-nav-label">工程管理</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons> <uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view> </view>
<view class="mine-nav" @click="jump('project')"> <view class="mine-nav" @click="jump('project')">
<image mode="aspectFill" class="mine-nav-icon" src="/static/project.png" /> <image mode="aspectFill" class="mine-nav-icon" src="/static/project.png" />
<view class="mine-nav-label">项目列表</view> <view class="mine-nav-label">项目管理</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons> <uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view> </view>
<view class="mine-nav" @click="jump('feedback')"> <view class="mine-nav" @click="jump('feedback')">

View File

@@ -22,6 +22,7 @@
<script> <script>
import list from '@/common/js/list' import list from '@/common/js/list'
import { updateStatus } from '@/common/api/message'
export default { export default {
mixins: [list], mixins: [list],
@@ -33,6 +34,22 @@ export default {
onShow() { onShow() {
this.init() this.init()
}, },
onNavigationBarButtonTap(e) {
uni.showModal({
title: '提示',
content: '确定要全部标记为已读吗?',
success: (res) => {
if (res.confirm) {
updateStatus({
type: 3,
eventIds:[]
}).then(() => {
this.store.reload()
})
}
},
})
},
methods: { methods: {
async init() { async init() {
let dictData = await this.$util.getDictData('app_event') let dictData = await this.$util.getDictData('app_event')

View File

@@ -33,7 +33,9 @@ export default {
this.detail = JSON.parse(decodeURIComponent(options.detail).replace(/百分比/g, '%')) this.detail = JSON.parse(decodeURIComponent(options.detail).replace(/百分比/g, '%'))
this.loading = false this.loading = false
if (this.detail.status != 1) { if (this.detail.status != 1) {
updateStatus([this.detail.id]) updateStatus({
eventIds: [this.detail.id],
})
} }
}, },
methods: {}, methods: {},

View File

@@ -21,6 +21,7 @@
</template> </template>
<script> <script>
import list from '@/common/js/list' import list from '@/common/js/list'
import { updateStatus } from '@/common/api/message'
export default { export default {
mixins: [list], mixins: [list],
@@ -32,6 +33,22 @@ export default {
onShow() { onShow() {
this.init() this.init()
}, },
onNavigationBarButtonTap(e) {
uni.showModal({
title: '提示',
content: '确定要全部标记为已读吗?',
success: (res) => {
if (res.confirm) {
updateStatus({
type: 2,
eventIds:[]
}).then(() => {
this.store.reload()
})
}
},
})
},
methods: { methods: {
async init() { async init() {
let dictData = await this.$util.getDictData('app_event') let dictData = await this.$util.getDictData('app_event')

View File

@@ -33,7 +33,9 @@ export default {
this.detail = JSON.parse(decodeURIComponent(options.detail).replace(/百分比/g, '%')) this.detail = JSON.parse(decodeURIComponent(options.detail).replace(/百分比/g, '%'))
this.loading = false this.loading = false
if (this.detail.status != 1) { if (this.detail.status != 1) {
updateStatus([this.detail.id]) updateStatus({
eventIds: [this.detail.id],
})
} }
}, },
methods: {}, methods: {},

View File

@@ -22,6 +22,7 @@
<script> <script>
import list from '@/common/js/list' import list from '@/common/js/list'
import { updateStatus } from '@/common/api/message'
export default { export default {
mixins: [list], mixins: [list],
@@ -33,6 +34,22 @@ export default {
onShow() { onShow() {
this.init() this.init()
}, },
onNavigationBarButtonTap(e) {
uni.showModal({
title: '提示',
content: '确定要全部标记为已读吗?',
success: (res) => {
if (res.confirm) {
updateStatus({
type: 1,
eventIds:[]
}).then(() => {
this.store.reload()
})
}
},
})
},
methods: { methods: {
async init() { async init() {
let dictData = await this.$util.getDictData('app_event') let dictData = await this.$util.getDictData('app_event')

View File

@@ -33,7 +33,9 @@ export default {
this.detail = JSON.parse(decodeURIComponent(options.detail).replace(/百分比/g, '%')) this.detail = JSON.parse(decodeURIComponent(options.detail).replace(/百分比/g, '%'))
this.loading = false this.loading = false
if (this.detail.status != 1) { if (this.detail.status != 1) {
updateStatus([this.detail.id]) updateStatus({
eventIds: [this.detail.id],
})
} }
}, },
methods: {}, methods: {},

View File

@@ -11,9 +11,7 @@
> >
<view class="term-list-bottom"> <view class="term-list-bottom">
<view class="term-list-bottom-item" v-for="(item2, textIndex) in item.dataSet" :key="textIndex"> <view class="term-list-bottom-item" v-for="(item2, textIndex) in item.dataSet" :key="textIndex">
{{ {{ item2.showName + ':' + (item2.value == 3.1415926 ? '-' : item2.value) + (item2.unit || '') }}
item2.showName + ':' + (item2.value == 3.1415926 ? '-' : item2.value) + (item2.unit || '')
}}
</view> </view>
</view> </view>
</uni-card> </uni-card>
@@ -25,6 +23,7 @@
<script> <script>
import list from '@/common/js/list' import list from '@/common/js/list'
import { updateStatus } from '@/common/api/message'
export default { export default {
mixins: [list], mixins: [list],
@@ -36,6 +35,22 @@ export default {
onShow() { onShow() {
this.init() this.init()
}, },
onNavigationBarButtonTap(e) {
uni.showModal({
title: '提示',
content: '确定要全部标记为已读吗?',
success: (res) => {
if (res.confirm) {
updateStatus({
type: 0,
eventIds:[]
}).then(() => {
this.store.reload()
})
}
},
})
},
methods: { methods: {
async init() { async init() {
let dictData = await this.$util.getDictData('app_event') let dictData = await this.$util.getDictData('app_event')

View File

@@ -57,7 +57,9 @@ export default {
this.detail.instantPics && (this.detail.instantPics = this.$config.static + this.detail.instantPics) this.detail.instantPics && (this.detail.instantPics = this.$config.static + this.detail.instantPics)
this.loading = false this.loading = false
if (this.detail.status != 1) { if (this.detail.status != 1) {
updateStatus([this.detail.id]) updateStatus({
eventIds: [this.detail.id],
})
} }
}, },
methods: { methods: {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB