Bladeren bron

修改界面

gaoxiong 1 jaar geleden
bovenliggende
commit
00746f86f0
3 gewijzigde bestanden met toevoegingen van 9 en 6 verwijderingen
  1. 1 0
      src/api/system/device.js
  2. 4 3
      src/views/core/accessPlan/index.vue
  3. 4 3
      src/views/system/device/index.vue

+ 1 - 0
src/api/system/device.js

@@ -25,6 +25,7 @@ export function getDevice(id) {
   })
 }
 
+
 // 查询主机
 export function getHostByOrgId(orgId) {
   return request({

+ 4 - 3
src/views/core/accessPlan/index.vue

@@ -228,7 +228,7 @@
                   size="mini"
                   type="text"
                   icon="el-icon-arrow-down"
-                  v-if="
+                  v-show="
                     scope.row.parentId == null &&
                     scope.row.orgId == isEdit &&
                     scope.row.isDistribute == 0 &&
@@ -242,7 +242,7 @@
                   size="mini"
                   type="text"
                   icon="el-icon-top-left"
-                  v-if="
+                  v-show="
                     scope.row.orgId == isEdit &&
                     scope.row.isDistribute == 1 &&
                     scope.row.planStatus == 1 &&
@@ -257,7 +257,7 @@
                   type="text"
                   icon="el-icon-edit-outline"
                   @click="handleUpdate(scope.row)"
-                  v-if="scope.row.orgId == isEdit"
+                  v-show="scope.row.orgId == isEdit"
                   v-hasPermi="['core:accessPlan:edit']"
                   >编辑
                 </el-button>
@@ -943,6 +943,7 @@ export default {
         .distribute(id, immediateEffect)
         .then((response) => {
           if (response.data == 0) {
+            this.getList();
             this.loading = false;
           } else {
             this.getList();

+ 4 - 3
src/views/system/device/index.vue

@@ -249,12 +249,12 @@
             </el-form-item>
           </el-col>
 
-   
-    
+
+
 
         </el-row>
         <el-row>
-        
+
           <el-col :span="12">
             <el-form-item label="设备名称" prop="deviceName">
               <el-input
@@ -386,6 +386,7 @@ import {
   addDevice,
   updateDevice,
   getHostByOrgId,
+  getDeviceByHost,
   downInCharge,
 } from "@/api/system/device";
 export default {