Explorar o código

完善液位高度和宽度

hfxc226 hai 1 ano
pai
achega
fa0dd82b54

+ 4 - 3
src/views/remote/opc-log/modules/Detail.vue

@@ -15,7 +15,7 @@
             :format="BaseTool.Date.PICKER_NORM_DATE_PATTERN"
             @change="onChange"
             v-model="searchDay"/>-->
-<!--          <a-select v-model="searchDay" style="width: 120px" @change="onChange">
+          <!--          <a-select v-model="searchDay" style="width: 120px" @change="onChange">
             <a-select-option :value="parseInt('1')">
               5分钟
             </a-select-option>
@@ -199,6 +199,7 @@ export default {
       this.confirmLoading = false
       this.modalTitle = '详情'
       this.model = record
+      this.doSelect()
       // this.onChange(1)
     },
     getCharts () {
@@ -257,14 +258,14 @@ export default {
       this.endTime = this.BaseTool.Date.formatter(dateString, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN)
     },
     doSelect () {
-      if (this.startTime == null) {
+      /* if (this.startTime == null) {
         this.$message.error('请选择查询开始时间')
         return
       }
       if (this.endTime == null) {
         this.$message.error('请选择查询截止时间')
         return
-      }
+      } */
       this.confirmLoading = true
       this.model.startTime = this.startTime
       this.model.endTime = this.endTime

+ 2 - 2
src/views/remote/opc/RemoteOpc.vue

@@ -142,7 +142,7 @@
               v-if="record.type == 4"
               @click="handleAddFetch(record)">设置M点位
             </a>
-<!--            <a
+            <a
               style="margin-left: 8px"
               @click="doTestAdd(record)">测试写入
             </a>
@@ -155,7 +155,7 @@
             <a
               style="margin-left: 8px"
               @click="doTestSelect(record)">测试查询
-            </a>-->
+            </a>
           </template>
         </span>
       </s-table>