luowei há 2 anos atrás
pai
commit
49439062a4
1 ficheiros alterados com 13 adições e 10 exclusões
  1. 13 10
      src/views/system/device/index.vue

+ 13 - 10
src/views/system/device/index.vue

@@ -97,14 +97,15 @@
 
     </el-row>
 
-
-
-
-
-
     <!-- 添加或修改【请填写功能名称】对话框 -->
-    <el-dialog :title="title" :visible="open" width="800px" append-to-body @close="cancel">
-      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+    <DialogCom
+      :title="title"
+      :visible.sync="open"
+      width="700px"
+      @close="closeHandler"
+      append-to-body
+    >
+    <el-form ref="form" :model="form" :rules="rules" label-width="80px">
         <el-row>
           <el-col :span="20">
             <el-form-item label="所属机构" prop="orgId">
@@ -121,8 +122,6 @@
             </el-form-item>
           </el-col>
         </el-row>
-
-
         <el-row>
           <el-col :span="12">
             <el-form-item label="资产类别" prop="assetType">
@@ -189,7 +188,7 @@
         <el-button type="primary" @click="submitForm">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>
-    </el-dialog>
+  </DialogCom>
 
         <!-- 设备导入对话框 -->
         <DialogCom :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
@@ -205,6 +204,7 @@
         <el-button @click="upload.open = false">取 消</el-button>
       </div>
     </DialogCom>
+   
   </div>
 </template>
 
@@ -471,6 +471,9 @@ export default {
       this.open = false;
       this.reset();
     },
+    closeHandler() {
+      // alert(11111)
+    },
     // 表单重置
     reset() {
       this.form = {