|
@@ -5,21 +5,21 @@
|
|
|
<div class="box3 flex-col">
|
|
|
<div class="main1 flex-col">
|
|
|
<div class="mod1 flex-col">
|
|
|
- <div class="section1 flex-row justify-between">
|
|
|
- <div class="ImageText1 flex-col">
|
|
|
- <div class="group4 flex-row justify-between">
|
|
|
- <div class="layer3 flex-col"></div>
|
|
|
- <span class="word3 flex-col">
|
|
|
- {{ $t("robotRanking.machineSalesRanking") }}
|
|
|
- </span>
|
|
|
- </div>
|
|
|
+ <div class="section1 flex-row justify-between">
|
|
|
+ <div class="ImageText1 flex-col">
|
|
|
+ <div class="group4 flex-row justify-between">
|
|
|
+ <div class="layer3 flex-col"></div>
|
|
|
+ <span class="word3 flex-col">
|
|
|
+ {{ $t("robotRanking.machineSalesRanking") }}
|
|
|
+ </span>
|
|
|
</div>
|
|
|
- <div class="flex-col">
|
|
|
- <div @click="noticeClk" class="main5 flex-row justify-between">
|
|
|
- <img class="label2" src="@/assets/device/searchIcon.png" />
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="flex-col">
|
|
|
+ <div @click="noticeClk" class="main5 flex-row justify-between">
|
|
|
+ <img class="label2" src="@/assets/device/searchIcon.png" />
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<img class="img1" referrerpolicy="no-referrer" src="../assets/line.png" />
|
|
|
<div class="l-f l-flex-e o-plr-15">
|
|
@@ -277,19 +277,20 @@ export default {
|
|
|
};
|
|
|
// 年的日期选择弹窗
|
|
|
// 点击确定
|
|
|
- const yearPopConfirm = (e) => {
|
|
|
- // console.log("e的值是11", e);
|
|
|
- const year = e.id;
|
|
|
+ const yearPopConfirm = ({ selectedOptions }) => {
|
|
|
+ const year = selectedOptions[0].id;
|
|
|
const startDate =
|
|
|
moment().year(year).startOf("year").format("YYYY-MM-DD") + " 00:00:00";
|
|
|
const endDate =
|
|
|
moment().year(year).endOf("year").format("YYYY-MM-DD") + " 23:59:59";
|
|
|
+ console.log("startDate", startDate);
|
|
|
+ console.log("endDate", endDate);
|
|
|
getEquipRankList("year", startDate, endDate);
|
|
|
yearShow.value = false;
|
|
|
};
|
|
|
// 获取当前年前4年后1年
|
|
|
let yearPopList = [];
|
|
|
- for (let i = -1; i < 5; i++) {
|
|
|
+ for (let i = 0; i < 4; i++) {
|
|
|
const year = moment().subtract(i, "years").format("YYYY");
|
|
|
yearPopList.push({
|
|
|
name: year,
|