Muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalar universetuti


Download 12.22 Kb.
bet3/3
Sana05.04.2023
Hajmi12.22 Kb.
#1277020
1   2   3
Bog'liq
MBBBAAAAA

Paginationni hosil qilish

  •  async getPaginationUser() {
  • const res = await axios.get("http://localhost:3000/users", {
  • params: {
  • _limit: this.limit,
  • _page: this.page,
  • },
  • });
  • this.paginationUser = res.data;
  • this.paginationUser2 = res.data;
  • this.totalUser = res.headers["x-total-count"];
  • this.totalPage = Math.ceil(res.headers["x-total-count"] / this.limit);
  • },

Statistikani hosil qilish malumotlarni ustudida ishlash


Malumotlar statistikasini hosil qilib turgan aylanalar Chart js orqali hosil qilindi
  • methods: {
  • addStyle() {
  • this.itProsent = Math.round((this.counts[0] * 100) / this.counts[3]);
  • this.marketingProsent = Math.round(
  • (this.counts[1] * 100) / this.counts[3]
  • );
  • this.acountingProsent = Math.round(
  • (this.counts[2] * 100) / this.counts[3]
  • );
  • },
  • },
  • mounted() {
  • styleScript(this.counts[0], this.counts[1], this.counts[2]);
  • this.addStyle();
  • },
  • const styleScript = (count1, count2, count3) => {
  • let hh = document.getElementById("hh");
  • let mm = document.getElementById("mm");
  • let ss = document.getElementById("ss");
  • let dotH = document.querySelector(".h_dot");
  • let dotM = document.querySelector(".m_dot");
  • let dotS = document.querySelector(".s_dot");
  • hh.style.strokeDashoffset = 440 - (440 * +count1 * 3) / 60;
  • mm.style.strokeDashoffset = 440 - (440 * +count2 * 3) / 60;
  • ss.style.strokeDashoffset = 440 - (440 * +count3 * 3) / 60;
  • dotH.style.transform = `rotate(${+count1 * 3 * 6}deg)`;
  • dotM.style.transform = `rotate(${+count2 * 3 * 6}deg)`;
  • dotS.style.transform = `rotate(${+count3 * 3 * 6}deg)`;
  • };

XULOSA

  • Xulosa o’rninda shuni aytaolamanki bugungi kunda tobora ommalishib borayotgan innavatsion texnologiyalar davrida malumotlar va ular bilan ishlash juda ham kerak katta ahamiyatga ega hisoblanadi. Malumotlar saqlab qolish va ular bilan qayta ishlash uchun bizga malumotlar bazasi tashkil qiladigan texnologiyalar yordamga keladi. Misol tariqasida SQL,MySQL MongoDB, Oracle kabilarni misol qilishimiz mukin.Bular yordamida biz malumotlarni saqlab qolishimiz dasturlash tillari yordamida malumotlar ustida qayta ishlashimiz mumkin.

Download 12.22 Kb.

Do'stlaringiz bilan baham:
1   2   3




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling