|  | @@ -42,7 +42,10 @@
 | 
	
		
			
				|  |  |                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
 | 
	
		
			
				|  |  |                  v-hasPermi="['system:device:add']">新增</el-button>
 | 
	
		
			
				|  |  |              </el-col>
 | 
	
		
			
				|  |  | -         
 | 
	
		
			
				|  |  | +            <el-col :span="1.5">
 | 
	
		
			
				|  |  | +              <el-button type="info" plain icon="el-icon-upload2" size="mini" @click="handleImport"
 | 
	
		
			
				|  |  | +                v-hasPermi="['system:device:import']">导入</el-button>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  |              <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
 | 
	
		
			
				|  |  |            </el-row>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -197,6 +200,7 @@
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | +import { getToken } from "@/utils/auth";
 | 
	
		
			
				|  |  |  import orgDropDown from "../../../components/orgTree/orgDropDown.vue";
 | 
	
		
			
				|  |  |  import OrgTree from "@/components/orgTree";
 | 
	
		
			
				|  |  |  import tableList from '@/mixins/tableList'
 | 
	
	
		
			
				|  | @@ -274,6 +278,19 @@ export default {
 | 
	
		
			
				|  |  |        dept:{
 | 
	
		
			
				|  |  |          id:null
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | +      upload: {
 | 
	
		
			
				|  |  | +        // 是否显示弹出层(用户导入)
 | 
	
		
			
				|  |  | +        open: false,
 | 
	
		
			
				|  |  | +        // 弹出层标题(用户导入)
 | 
	
		
			
				|  |  | +        title: "",
 | 
	
		
			
				|  |  | +        // 是否禁用上传
 | 
	
		
			
				|  |  | +        isUploading: false,
 | 
	
		
			
				|  |  | +       
 | 
	
		
			
				|  |  | +        // 设置上传的请求头部
 | 
	
		
			
				|  |  | +        headers: { Authorization: "Bearer " + getToken() },
 | 
	
		
			
				|  |  | +        // 上传的地址
 | 
	
		
			
				|  |  | +        url: process.env.VUE_APP_BASE_API + "/system/device/importData",
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |        queryParams: {
 | 
	
		
			
				|  |  |          pageNum: 1,
 | 
	
		
			
				|  |  |          pageSize: 10,
 | 
	
	
		
			
				|  | @@ -328,6 +345,9 @@ export default {
 | 
	
		
			
				|  |  |        debugger
 | 
	
		
			
				|  |  |        this.form.orgName = node.name;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    getDefaultOrg(org){
 | 
	
		
			
				|  |  | +      this.orgName = org.name;
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      getDefaultKey(key) {
 | 
	
		
			
				|  |  |        this.queryParams.orgId = key;
 | 
	
		
			
				|  |  |        this.getList();
 | 
	
	
		
			
				|  | @@ -380,7 +400,11 @@ export default {
 | 
	
		
			
				|  |  |          this.loading = false;
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | + /** 导入按钮操作 */
 | 
	
		
			
				|  |  | + handleImport() {
 | 
	
		
			
				|  |  | +      this.upload.title = "用户导入";
 | 
	
		
			
				|  |  | +      this.upload.open = true;
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      /** 查询部门下拉树结构 */
 | 
	
		
			
				|  |  |      getDeptTree() {
 | 
	
		
			
				|  |  |        deptTreeSelect().then(response => {
 |