In this study, 30 chalcone derivatives containing [1,2,4]-triazole-[4,3-a]-pyridine were designed and synthesized. The results of antibacterial activity showed that EC50 values of N26 against Xoo, Pcb was 36.41, 38.53 μg/mL, respectively, which were better than those of thiodiazole copper, whose EC50 values were 60.62, 106.75 μg/mL, respectively. The bacterial inhibitory activity of N26 against Xoo was verified by SEM. Antibacterial mechanism between N26 and Xoo was preliminarily explored, the experimental results showed that when the drug concentration was 100 mg/L, N26 had a good cell membrane permeability of Xoo, and it can inhibit the production of EPS content and extracellular enzyme content to disrupt the integrity of the Xoo biofilms achieving the effect of inhibiting Xoo. At 200 mg/L, N26 can protect and inhibit the lesions of post-harvested potatoes in vivo. The activities of N1-N30 against TMV were determined with half leaf dry spot method. The EC50 values of the curative and protective activity of N22 was 77.64 and 81.55 μg/mL, respectively, which were superior to those of NNM (294.27, 175.88 μg/mL, respectively). MST experiments demonstrated that N22 (Kd = 0.0076 ± 0.0007 μmol/L) had a stronger binding ability with TMV-CP, which was much higher than that of NNM (Kd = 0.7372 ± 0.2138 μmol/L). Molecular docking results showed that N22 had a significantly higher affinity with TMV-CP than NNM.