Jelajahi Sumber

feat: H5 设施环境管理下,新增冰箱温度检测

johnsen 8 bulan lalu
induk
melakukan
befcd6e7a4

+ 1 - 1
src/business/platform/data/data-template/template.vue

@@ -502,7 +502,7 @@ export default {
                     fieldType: 'linkdata',
                     fieldOptions: {}
                   }
-                  console.log('d===>', k)
+                  // console.log('d===>', k)
                   key = k
                 }
 

+ 1 - 1
src/business/platform/form/utils/JForm.js

@@ -117,7 +117,7 @@ _.extend(JForm, {
   },
   // 统一事件出口
   _on: function (tableForm, action, position, params) {
-    if (_.isFunction(this._on)) {
+    if (_.isFunction(this.onEvent)) {
       return this.onEvent(tableForm, action, position, params)
     }
   },

+ 10 - 0
src/utils/action.js

@@ -32,6 +32,16 @@ const action = {
       messageAlign: 'left'
     })
   },
+  confirm: function (message, title, options = {
+    className: 'ibps-dialog-desc',
+    confirmButtonColor: '#3396FB',
+  }) {
+    return Dialog.confirm({
+      title,
+      message,
+      ...options
+    })
+  },
   msg: function (message, options) {
     if (!options) {
       options = options || {}

+ 7 - 8
src/views/component/facility/facilityData.vue

@@ -28,7 +28,7 @@
                 type="primary"
                 >{{ i + 1 }}</van-tag
               >
-              室内{{ item.label }}记录
+              {{ item.label }}记录
             </div>
           </div>
         </template>
@@ -48,7 +48,7 @@
             label="参数范围限值"
             :readonly="!(!readonly && !isCul)"
           />
-          <van-field
+          <!-- <van-field
             v-model="item.fixValue"
             label="参数修正值"
             :readonly="!(!readonly && !isCul)"
@@ -57,7 +57,7 @@
             v-model="item.rate"
             label="填写频率"
             :readonly="!(!readonly && !isCul)"
-          />
+          /> -->
           <van-field
             v-model="item.value"
             required
@@ -66,8 +66,8 @@
             :placeholder="readonly ? '' : '请输入'"
             :readonly="readonly"
           />
-          <van-field v-model="item.result" label="最终值" :readonly="true" />
-          <van-field v-model="item.status" label="状态" :readonly="true" />
+          <!-- <van-field v-model="item.result" label="最终值" :readonly="true" />
+          <van-field v-model="item.status" label="状态" :readonly="true" /> -->
         </div>
         <template #right-icon>
           <div class="expand">
@@ -189,7 +189,7 @@ export default {
       forms: [],
       multipleSelection: [],
       config: 1,
-      activeNames: [1]
+      activeNames: []
     }
   },
   computed: {},
@@ -211,7 +211,6 @@ export default {
           } else {
             if (this.isFirst) {
               this.forms = this.initData(val.lieBiaoShuJu)
-
               this.forms.forEach((item, i) => {
                 item['rangeArr'] = item.range.map((t) => (t === null ? '/' : t))
                 item['rangeStr'] =
@@ -279,7 +278,6 @@ export default {
       const ans = JSON.parse(data)
       const result = []
       if (this.isFirst) {
-        console.log(ans)
         console.log('formData', this.formData)
       }
       ans.forEach((item) => {
@@ -374,6 +372,7 @@ export default {
           result.push(item)
         }
       })
+      this.activeNames = result.map((t, i) => 'van' + i)
       return result
     },
     // 默认单位