|  | @@ -0,0 +1,40 @@
 | 
	
		
			
				|  |  | +<template>
 | 
	
		
			
				|  |  | +    <div style="display: flex;">
 | 
	
		
			
				|  |  | +        <el-select v-model="value" placeholder="请选择" filterable clearable>
 | 
	
		
			
				|  |  | +            <el-option v-for="item in corpList" :key="item.id" :label="item.cname" :value="item.id">
 | 
	
		
			
				|  |  | +            </el-option>
 | 
	
		
			
				|  |  | +        </el-select>
 | 
	
		
			
				|  |  | +        <el-button icon="el-icon-refresh" size="mini" v-if="label != 'shortName'" :disabled="disabled"
 | 
	
		
			
				|  |  | +            @click="refreshData"></el-button>
 | 
	
		
			
				|  |  | +    </div>
 | 
	
		
			
				|  |  | +</template>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +<script>
 | 
	
		
			
				|  |  | +import { allCropList } from "@/api/basicData/customerInformation";
 | 
	
		
			
				|  |  | +import { kMaxLength } from "buffer";
 | 
	
		
			
				|  |  | +export default {
 | 
	
		
			
				|  |  | +    name: "main",
 | 
	
		
			
				|  |  | +    data() {
 | 
	
		
			
				|  |  | +        return {
 | 
	
		
			
				|  |  | +            form:{},
 | 
	
		
			
				|  |  | +            corpList: []
 | 
	
		
			
				|  |  | +        };
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    props: {
 | 
	
		
			
				|  |  | +        value: String,
 | 
	
		
			
				|  |  | +        disabled: Boolean,
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    created() {
 | 
	
		
			
				|  |  | +        let userObj = JSON.parse(localStorage.getItem("saber-userInfo")).content;
 | 
	
		
			
				|  |  | +        allCropList({corpType:'KH', adminProfiles: userObj.role_name != "admin" ? userObj.user_id : null }).then(res => {
 | 
	
		
			
				|  |  | +            this.corpList = res.data.data;
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    methods: {},
 | 
	
		
			
				|  |  | +    watch: {
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +</script>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +<style lang="scss" scoped>
 | 
	
		
			
				|  |  | +</style>
 |