Ai trái ngành muốn chuyển sang IT hãy nhìn những hình này

Lý do nên chuyển :boss:
Screen Shot 2021-03-12 at 19.40.58.png
 
Mấy cái trên kia có khó cũng chỉ trong nội cái pc xử lí, ngòi mát mẻ văn phòng
Quăng cho cái bản vẽ xây dựng đọc còn rối hơn mớ con nít trên kia
Nhìn từ mấy cái zống ôn này mà hiểu xây ra được cái nhà thật vkl :beat_shot:

00-6.jpg

file-cad-ban-ve-xay-dung-chi-tiet-kien-truc-nha-lop-hoc-2-tang-truong-thcs-long-bien-144754.jpg

Huong-dan-cach-doc-ban-ve-xay-dung-don-gian-trong-10-phut-9-768x547.jpg
 
Last edited:
Nhìn cái hình thật sự méo hiểu ông muốn nói gì luôn :angry:
Hình 1 đoán là đang làm navbar dropdown,
Hình 2 setup môi trường.
Hình 3 gọi API để làm gì đấy.
Hình 4 funtion có chức năng lấy tọa độ và vẽ lên màn hình.

:rolleyes:.

đấy là bình thường chứ nhìn code cũ của cty tôi đây, 1 đoạn thần chú mà đéo ai biết nó làm cái gì luôn. Tự tin public vì éo sợ ai đọc và hiểu đc :after_boom:

JavaScript:
    async getUser() {
        const { dispatch } = this.props;
        const user = await dispatch(getCookie("user"));
        //console.log(user.user);
        if (typeof user !== "undefined") {
            this.setState({ user: JSON.parse(user) });
            //console.log(this.state.user.user.email)
            //console.log(this.state.user.token);
            let token = "Bearer " + this.state.user.token;
            let params = {
                email: this.state.user.user.email,
            };
            await callApi("POST", GETAVATARUSER, params, token).then((res) => {
                this.setState({
                    avatar: res.data.data ? URLSERVERIMAGE + res.data.data : "",
                });
            });
            // console.log(this.state.user.user.userType === Constant.FACTORY);
            if (
                this.state.user.user.userType === Constant.SUPERADMIN ||
                this.state.user.user.userType === Constant.GOVERMENT
            ) {
                this.setState({
                    isShowMenu: [
                        true,
                        true,
                        true,
                        true,
                        true,
                        true,
                        true,
                        true,
                        true,
                        true,
                        true,
                        false,
                        true,
                        true,
                        true,
                        true,
                    ],
                    isShowDriver: true,
                    isShowGoogleMap: true,
                    isShowThanhtra: true,
                    isShowCalender: true,
                    isShowUpdateOrder: true,
                    isShowShippingManager: true,
                    isShowRentalPartner: true,
                    isShowDistributionAgency: true,
                    isShowIndustry: true,
                    isShowRestaurant: true,
                    isShowCar: true,
                    isOrder: true,
                    isShowKinhDoanh: true,
                });
            } else if (
                this.state.user.user.userType === Constant.FACTORY &&
                this.state.user.user.userRole !== "Deliver" &&
                this.state.user.user.userRole !== "Inspector"
            ) {
                if (this.state.user.user.userRole === "SuperAdmin") {
                    this.setState({
                        isShowMenu: [
                            true,
                            false,
                            false,
                            true,
                            true,
                            false,
                            true,
                            true,
                            false,
                            true,
                            false,
                            false,
                            true,
                            true,
                        ],
                        isShowDriver: true,
                        isShowGoogleMap: true,
                        isShowThanhtra: true,
                        isShowCalender: true,
                        isShowCreateOrder: true,
                        isShowRentalPartner: true,
                        isShowDistributionAgency: true,
                        isShowIndustry: true,
                        isShowRestaurant: true,
                        isShowCar: true,
                        isOrder: true,
                        isShowKinhDoanh: true,
                        isShowTurnBack: true,
                    });
                } else {
                    this.setState({
                        isShowMenu: [
                            true,
                            false,
                            false,
                            true,
                            true,
                            false,
                            true,
                            true,
                            false,
                            false,
                            false,
                            false,
                            false,
                            false,
                        ],

                        // isShowMenu: [true, false, false, true, true, true, true, true, false, true, false, false, true, false],
                        isShowDriver: true,
                        isShowGoogleMap: true,
                        isShowThanhtra: false,
                        isShowCalender: false,
                        isShowCreateOrder: false,
                        isShowUpdateOrder: true,
                        isShowShippingManager: true,
                        isShowRentalPartner: false,
                        isShowCar: true,
                        isOrder: false,
                        isShowKinhDoanh: false,
                    });
                }
            } else if (
                this.state.user.user.userType === Constant.STATION &&
                this.state.user.user.userRole !== "Deliver" &&
                this.state.user.user.userRole !== "Inspector"
            ) {
                this.setState({
                    isShowMenu: [
                        true,
                        false,
                        false,
                        false,
                        false,
                        false,
                        true,
                        false,
                        false,
                        false,
                    ],
                    isShowDriver: true,
                    isShowGoogleMap: true,
                    isShowThanhtra: false,
                    isShowCalender: true,
                    isShowCreateOrder: false,
                    isShowUpdateOrder: true,
                    isShowShippingManager: true,
                    isShowRentalPartner: false,
                    isShowDistributionAgency: false,
                    isShowIndustry: false,
                    isShowRestaurant: false,
                    isShowCar: false,
                    isOrder: false,
                    isShowKinhDoanh: true,
                });
            } else if (
                this.state.user.user.userType === Constant.GENERAL &&
                this.state.user.user.userRole !== "Deliver" &&
                this.state.user.user.userRole !== "Inspector"
            ) {
                this.setState({
                    isShowMenu: [
                        true,
                        false,
                        false,
                        false,
                        false,
                        true,
                        true,
                        false,
                        false,
                        false,
                    ],
                    isShowDriver: true,
                    isShowGoogleMap: false,
                    isShowThanhtra: false,
                    isShowCalender: false,
                    isShowCreateOrder: false,
                    isShowUpdateOrder: true,
                    isShowShippingManager: true,
                    isShowRentalPartner: false,
                    isShowDistributionAgency: false,
                    isShowIndustry: false,
                    isShowRestaurant: false,
                    isShowCar: false,
                    isOrder: false,
                    isShowKinhDoanh: true,
                });
            } else if (
                this.state.user.user.userType === Constant.FIXER &&
                this.state.user.user.userRole !== "Deliver" &&
                this.state.user.user.userRole !== "Inspector"
            ) {
                this.setState({
                    isShowMenu: [
                        false,
                        false,
                        false,
                        false,
                        false,
                        false,
                        true,
                        false,
                        false,
                        false,
                    ],
                    isShowDriver: true,
                    isShowGoogleMap: false,
                    isShowThanhtra: false,
                    isShowCalender: false,
                    isShowCreateOrder: false,
                    isShowUpdateOrder: true,
                    isShowShippingManager: true,
                    isShowRentalPartner: false,
                    isShowDistributionAgency: false,
                    isShowIndustry: false,
                    isShowRestaurant: false,
                    isShowCar: false,
                    isOrder: false,
                    isShowKinhDoanh: false,
                });
            } else if (
                this.state.user.user.userType === Constant.AGENCY &&
                this.state.user.user.userRole !== "Deliver" &&
                this.state.user.user.userRole !== "Inspector"
            ) {
                if (this.state.user.user.parentRoot === "")
                    this.setState({
                        isShowMenu: [
                            true,
                            false,
                            false,
                            false,
                            false,
                            false,
                            true,
                            false,
                            true,
                            true,
                            true,
                        ],
                        isShowDriver: true,
                        isShowGoogleMap: false,
                        isShowThanhtra: false,
                        isShowCalender: false,
                        isShowCreateOrder: false,
                        isShowUpdateOrder: false,
                        isShowShippingManager: false,
                        isShowRentalPartner: false,
                        isShowDistributionAgency: false,
                        isShowIndustry: false,
                        isShowRestaurant: false,
                        isShowCar: false,
                        isOrder: false,
                        isShowKinhDoanh: true,
                    });
                else
                    this.setState({
                        isShowMenu: [
                            true,
                            false,
                            false,
                            false,
                            false,
                            false,
                            true,
                            false,
                            false,
                            false,
                            false,
                        ],
                        isShowDriver: true,
                        isShowGoogleMap: false,
                        isShowThanhtra: false,
                        isShowCalender: false,
                        isShowCreateOrder: false,
                        isShowUpdateOrder: false,
                        isShowShippingManager: true,
                        isShowRentalPartner: false,
                        isShowDistributionAgency: false,
                        isShowIndustry: false,
                        isShowRestaurant: false,
                        isShowCar: false,
                        isOrder: false,
                        isShowKinhDoanh: false,
                    });
            } else if (
                this.state.user.user.userType === Constant.NORMAL &&
                this.state.user.user.userRole !== "Deliver" &&
                this.state.user.user.userRole !== "Inspector"
            ) {
                this.setState({
                    isShowMenu: [
                        true,
                        true,
                        true,
                        true,
                        true,
                        true,
                        true,
                        true,
                        true,
                        false,
                    ],
                    isShowDriver: true,
                    isShowGoogleMap: true,
                    isShowThanhtra: false,
                    isShowCalender: false,
                    isShowCreateOrder: false,
                    isShowUpdateOrder: true,
                    isShowShippingManager: true,
                    isShowRentalPartner: false,
                    isShowDistributionAgency: false,
                    isShowIndustry: false,
                    isShowRestaurant: false,
                    isShowCar: false,
                    isOrder: false,
                });
            } else if (
                this.state.user.user.userRole === "Deliver" ||
                this.state.user.user.userRole === "Inspector"
            ) {
                this.setState({
                    isShowMenu: [
                        false,
                        false,
                        false,
                        false,
                        false,
                        false,
                        false,
                        false,
                        false,
                        false,
                        false,
                        false,
                        false,
                        false,
                    ],
                    isShowDriver: false,
                    isShowGoogleMap: false,
                    isShowThanhtra: false,
                    isShowCalender: false,
                    isShowCreateOrder: false,
                    isShowUpdateOrder: false,
                    isShowShippingManager: false,
                    isShowRentalPartner: false,
                    isShowDistributionAgency: false,
                    isShowIndustry: false,
                    isShowRestaurant: false,
                    isShowCar: false,
                    isOrder: false,
                });
            }
        }
    }
 
Back
Top