408249787 2 years ago
parent
commit
9d2802d0c6

+ 2 - 2
src/views/remote/degree-log/RemoteDegreeLog.vue

@@ -28,8 +28,8 @@
       <div class="table-operator" style="margin-bottom: 8px;">
         <a-row>
           <a-col :md="16">
-            <a-button v-if="$auth('remote-degree-logs-add')" type="primary" icon="plus" @click="handleAdd()">新增
-            </a-button>
+            <!-- <a-button v-if="$auth('remote-degree-logs-add')" type="primary" icon="plus" @click="handleAdd()">新增 -->
+            <!-- </a-button> -->
             <a-button
               style="margin-left: 8px"
               v-if="$auth('remote-degree-logs-export')"

+ 3 - 11
src/views/remote/degree-log/modules/BaseForm.vue

@@ -12,20 +12,11 @@
 
       <a-form-item v-show="false">
         <a-input v-decorator="['id']" type="hidden"/>
+        <a-input v-decorator="['sbId']" type="hidden"/>
+
       </a-form-item>
 
       <row-list :col="2">
-        <row-item>
-
-          <a-form-item
-            label="设备id"
-            :labelCol="BaseTool.Constant.labelCol"
-            :wrapperCol="BaseTool.Constant.wrapperCol"
-          >
-            <a-input
-              v-decorator="['sbId', {rules: [{required: true, message: '设备id不能为空'}]}]"/>
-          </a-form-item>
-        </row-item>
         <row-item>
 
           <a-form-item
@@ -34,6 +25,7 @@
             :wrapperCol="BaseTool.Constant.wrapperCol"
           >
             <a-input
+              disabled
               v-decorator="['sbName', {rules: [{required: true, message: '设备名称不能为空'}]}]"/>
           </a-form-item>
         </row-item>