This commit is contained in:
仲么了
2023-10-31 09:18:44 +08:00
parent d6b02c77cd
commit a60cdc066e
8 changed files with 22 additions and 12 deletions

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 == 1 ? '主用户' : '用户'" :extra="device.isPrimaryUser == 1 ? '主用户' : '分享用户'"
padding="0" padding="0"
@click="jump(device)" @click="jump(device)"
:thumbnail="deviceIcon(device.runStatus)" :thumbnail="deviceIcon(device.runStatus)"

View File

@@ -2,8 +2,8 @@
"name" : "灿能物联", "name" : "灿能物联",
"appid" : "__UNI__88BC25B", "appid" : "__UNI__88BC25B",
"description" : "", "description" : "",
"versionName" : "1.3.8", "versionName" : "1.3.9",
"versionCode" : 138, "versionCode" : 139,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@@ -87,7 +87,7 @@
<view style="height: 40rpx; background: #fff"></view> <view style="height: 40rpx; background: #fff"></view>
</uni-popup> </uni-popup>
<!-- 完成调试输入框 --> <!-- 完成调试输入框 -->
<uni-popup ref="inputDialog" type="dialog"> <!-- <uni-popup ref="inputDialog" type="dialog">
<uni-popup-dialog <uni-popup-dialog
ref="inputClose" ref="inputClose"
mode="input" mode="input"
@@ -97,6 +97,15 @@
@close="dialogInputClose" @close="dialogInputClose"
@confirm="dialogInputConfirm" @confirm="dialogInputConfirm"
></uni-popup-dialog> ></uni-popup-dialog>
</uni-popup> -->
<!-- 输入框示例 -->
<uni-popup ref="inputDialog" type="dialog">
<uni-popup-dialog ref="inputClose" type="info" mode="input" :title="dialogType"
value="对话框预置提示内容!"
placeholder="请输入内容" @confirm="dialogInputConfirm">
<uni-easyinput type="textarea" :maxlength="250" autoHeight v-model="remarkContent"
placeholder="请输入备注"></uni-easyinput>
</uni-popup-dialog>
</uni-popup> </uni-popup>
</view> </view>
</view> </view>
@@ -123,6 +132,7 @@ export default {
}, },
data() { data() {
return { return {
remarkContent: '',
dialogType: '', dialogType: '',
domLoading: true, domLoading: true,
loading: true, loading: true,
@@ -252,7 +262,7 @@ export default {
if (this.dialogType == '取消调试') { if (this.dialogType == '取消调试') {
cancelDebug({ cancelDebug({
deviceId: this.devId, deviceId: this.devId,
remark: val, remark: this.remarkContent,
type: Number(this.pageOptions.process), type: Number(this.pageOptions.process),
}).then((res) => { }).then((res) => {
this.$util.toast(res.message) this.$util.toast(res.message)
@@ -263,7 +273,7 @@ export default {
} else { } else {
finishDebug({ finishDebug({
deviceId: this.devId, deviceId: this.devId,
remark: val, remark: this.remarkContent,
type: Number(this.pageOptions.process), type: Number(this.pageOptions.process),
}).then((res) => { }).then((res) => {
console.log(res) console.log(res)
@@ -448,11 +458,11 @@ export default {
text: '编辑', text: '编辑',
}, },
{ {
iconPath: '/static/delate.png', iconPath: '/static/cancel.png',
text: '取消调试', text: '取消调试',
}, },
{ {
iconPath: '/static/delate.png', iconPath: '/static/confirm.png',
text: '完成调试', text: '完成调试',
}, },
) )

View File

@@ -29,7 +29,7 @@
<!-- <view class="mine-nav" @click="jump('user')" v-if="userInfo.authorities === 'app_vip_user'"> <!-- <view class="mine-nav" @click="jump('user')" v-if="userInfo.authorities === 'app_vip_user'">
<image mode="aspectFill" class="mine-nav-icon" src="/static/subordinate.png" /> <image mode="aspectFill" class="mine-nav-icon" src="/static/subordinate.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 <view
@@ -42,7 +42,7 @@
<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('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/gongcheng.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 File

@@ -3,13 +3,13 @@
<view slot='body'> <view slot='body'>
<view class='index'> <view class='index'>
<uni-list> <uni-list>
<uni-list-item title="张三申请成为您的用户" note="2023-02-10 14:55" thumb="/static/head.png" thumb-size="lg"> <uni-list-item title="张三申请成为您的分享用户" note="2023-02-10 14:55" thumb="/static/head.png" thumb-size="lg">
<template v-slot:footer> <template v-slot:footer>
<view class="footer-btn mt20" style="background:#e47470" @click="del">拒绝</view> <view class="footer-btn mt20" style="background:#e47470" @click="del">拒绝</view>
<view class="footer-btn mt20 ml10" @click="jump">通过</view> <view class="footer-btn mt20 ml10" @click="jump">通过</view>
</template> </template>
</uni-list-item> </uni-list-item>
<uni-list-item title="李四申请成为您的用户" note="2023-02-10 14:55" thumb="/static/head.png" thumb-size="lg"> <uni-list-item title="李四申请成为您的分享用户" note="2023-02-10 14:55" thumb="/static/head.png" thumb-size="lg">
<template v-slot:footer> <template v-slot:footer>
<view class="footer-btn mt20" style="background:#e47470" @click="del">拒绝</view> <view class="footer-btn mt20" style="background:#e47470" @click="del">拒绝</view>
<view class="footer-btn mt20 ml10" @click="jump">通过</view> <view class="footer-btn mt20 ml10" @click="jump">通过</view>

BIN
static/cancel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
static/confirm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
static/gongcheng.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB