|
@@ -341,7 +341,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</u-popup>
|
|
</u-popup>
|
|
|
|
|
|
|
|
- <u-popup :show="true" mode="center" >
|
|
|
|
|
|
|
+ <u-popup :show="deviceInfo.status != 3" mode="center" >
|
|
|
<view style="
|
|
<view style="
|
|
|
margin:2%;padding:10%; /* 背景色 */color: #000; padding: 10px; /* 内边距 */border-radius: 5px; /* 圆角 */font-size: 16px; /* 文字大小 */text-align: center; /* 文字居中 */ ">
|
|
margin:2%;padding:10%; /* 背景色 */color: #000; padding: 10px; /* 内边距 */border-radius: 5px; /* 圆角 */font-size: 16px; /* 文字大小 */text-align: center; /* 文字居中 */ ">
|
|
|
<view style="width: 100px;margin-top:40rpx;">设备未在线</view>
|
|
<view style="width: 100px;margin-top:40rpx;">设备未在线</view>
|
|
@@ -580,6 +580,16 @@
|
|
|
<uni-icons type="forward" size="16"></uni-icons>
|
|
<uni-icons type="forward" size="16"></uni-icons>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+<!-- <view class="prop-item">-->
|
|
|
|
|
+<!-- <view class="prop-item-image">-->
|
|
|
|
|
+<!-- <image :src="imgUrl+'/setting/runinfo.png'" style="width: 100%;height:100%;"/>-->
|
|
|
|
|
+<!-- </view>-->
|
|
|
|
|
+<!-- <view class="prop-item-left">修改名称</view>-->
|
|
|
|
|
+<!-- <view class="prop-item-right" @click="modifyName">-->
|
|
|
|
|
+<!-- <uni-icons type="forward" size="16"></uni-icons>-->
|
|
|
|
|
+<!-- </view>-->
|
|
|
|
|
+<!-- </view>-->
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -619,7 +629,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { getDetail,getDeviceStatus,cacheJsonThingsModel,reportError ,getDeviceRunTime,getLatestFirmware} from '@/api/device/device.js'
|
|
|
|
|
|
|
+import { getDetail,getDeviceStatus,cacheJsonThingsModel,reportError ,getDeviceRunTime,getLatestFirmware,bingDeviceDept} from '@/api/device/device.js'
|
|
|
import config from '@/config'
|
|
import config from '@/config'
|
|
|
export default {
|
|
export default {
|
|
|
data(){
|
|
data(){
|
|
@@ -746,6 +756,28 @@ export default {
|
|
|
clearTimeout(this.checkTimer);
|
|
clearTimeout(this.checkTimer);
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
|
|
+ modifyName(){
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title: "修改设备名称",
|
|
|
|
|
+ editable: true,
|
|
|
|
|
+ placeholderText: "请输入设备名称",
|
|
|
|
|
+ content: this.deviceInfo.deviceName,
|
|
|
|
|
+ showCancel: true,
|
|
|
|
|
+ success: function (res) {
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+ if(res.confirm){
|
|
|
|
|
+ let content = res.content;
|
|
|
|
|
+ let obj = {id:this.id,deviceName:content};
|
|
|
|
|
+ bingDeviceDept(obj).then(res=>{
|
|
|
|
|
+ // debugger;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ fail: function (res) {
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
showWorkPicker(){
|
|
showWorkPicker(){
|
|
|
let self = this;
|
|
let self = this;
|
|
|
|
|
|