ll
liukangdong
2024-12-09 1c1dc56be93441e39da19d8de2e65ebb7f6704c2
h5/pages/operation/device.vue
@@ -6,7 +6,7 @@
            <view class="line">
               <view class="sel_wrap" @click="showModal = true">
                  <view class="left" :class="(param.deviceName || param.deviceCode) ? '' : 'placeholder9'">
                     {{ (param.deviceName || param.deviceCode) ? `[${param.deviceCode}] ` + param.deviceName : '请选择设备' }}
                     {{ (param.deviceName || param.deviceCode) ? param.deviceName ? `[${param.deviceCode}] ` + param.deviceName : `[${param.deviceCode}]` : '请选择设备' }}
                  </view>
                  <u-icon name="arrow-right" color="#999999" size="17"></u-icon>
               </view>
@@ -118,6 +118,25 @@
            } = this
            if (!param.deviceId) return this.showToast('请先选择要维护的设备')
            if (param.status != 0) {
               uni.showModal({
                  title: '温馨提示',
                  content: '设备运维结果异常,是否前往提交工单?',
                  success: function(res) {
                     if (res.confirm) {
                        this.handleP()
                     } else if (res.cancel) {}
                  }
               });
            }else{
               this.handleP()
            }
         },
         handleP() {
            const {
               param,
               fileList
            } = this
            ywDeviceCreate({
               ...param,
               userId: uni.getStorageSync('userInfo').id,
@@ -460,6 +479,7 @@
      .modal_list {
         height: calc(100% - 360rpx);
         margin-bottom: -20rpx;
         .item {
            display: flex;
            align-items: center;