|
|
|
@ -1,17 +1,28 @@
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { computed, PropType } from "vue";
|
|
|
|
|
import generalIndustry from "@/assets/dataScreen/modelList/generalIndustry.png";
|
|
|
|
|
import phoneIndustry from "@/assets/dataScreen/modelList/phoneIndustry.png";
|
|
|
|
|
import photovoltaicIndustry from "@/assets/dataScreen/modelList/photovoltaicIndustry.png";
|
|
|
|
|
import pipeIndustry from "@/assets/dataScreen/modelList/pipeIndustry.png";
|
|
|
|
|
import mechanicalIndustry from "@/assets/dataScreen/modelList/mechanicalIndustry.png";
|
|
|
|
|
import lithiumBatteryIndustry from "@/assets/dataScreen/modelList/lithiumBatteryIndustry.png";
|
|
|
|
|
import healthcareIndustry from "@/assets/dataScreen/modelList/healthcareIndustry.png";
|
|
|
|
|
import foundryIndustry from "@/assets/dataScreen/modelList/foundryIndustry.png";
|
|
|
|
|
import electronicsIndustry from "@/assets/dataScreen/modelList/electronicsIndustry.png";
|
|
|
|
|
import bathroomIndustry from "@/assets/dataScreen/modelList/bathroomIndustry.png";
|
|
|
|
|
import bankIndustry from "@/assets/dataScreen/modelList/bankIndustry.png";
|
|
|
|
|
import PCBIndustry from "@/assets/dataScreen/modelList/PCBIndustry.png";
|
|
|
|
|
// import generalIndustry from "@/assets/dataScreen/modelList/generalIndustry.png";
|
|
|
|
|
// import phoneIndustry from "@/assets/dataScreen/modelList/phoneIndustry.png";
|
|
|
|
|
// import photovoltaicIndustry from "@/assets/dataScreen/modelList/photovoltaicIndustry.png";
|
|
|
|
|
// import pipeIndustry from "@/assets/dataScreen/modelList/pipeIndustry.png";
|
|
|
|
|
// import mechanicalIndustry from "@/assets/dataScreen/modelList/mechanicalIndustry.png";
|
|
|
|
|
// import lithiumBatteryIndustry from "@/assets/dataScreen/modelList/lithiumBatteryIndustry.png";
|
|
|
|
|
// import healthcareIndustry from "@/assets/dataScreen/modelList/healthcareIndustry.png";
|
|
|
|
|
// import foundryIndustry from "@/assets/dataScreen/modelList/foundryIndustry.png";
|
|
|
|
|
// import electronicsIndustry from "@/assets/dataScreen/modelList/electronicsIndustry.png";
|
|
|
|
|
// import bathroomIndustry from "@/assets/dataScreen/modelList/bathroomIndustry.png";
|
|
|
|
|
// import bankIndustry from "@/assets/dataScreen/modelList/bankIndustry.png";
|
|
|
|
|
// import PCBIndustry from "@/assets/dataScreen/modelList/PCBIndustry.png";
|
|
|
|
|
import model_bank from "@/assets/svg/model/model_bank.png";
|
|
|
|
|
import model_battery from "@/assets/svg/model/model_battery.png";
|
|
|
|
|
import model_car from "@/assets/svg/model/model_car.png";
|
|
|
|
|
import model_ceramics from "@/assets/svg/model/model_ceramics.png";
|
|
|
|
|
import model_medical from "@/assets/svg/model/model_medical.png";
|
|
|
|
|
import model_metal from "@/assets/svg/model/model_metal.png";
|
|
|
|
|
import model_metallurgy from "@/assets/svg/model/model_metallurgy.png";
|
|
|
|
|
import model_PCB from "@/assets/svg/model/model_PCB.png";
|
|
|
|
|
import model_phone from "@/assets/svg/model/model_phone.png";
|
|
|
|
|
import model_photovoltaic from "@/assets/svg/model/model_photovoltaic.png";
|
|
|
|
|
import model_PVC from "@/assets/svg/model/model_PVC.png";
|
|
|
|
|
|
|
|
|
|
defineOptions({
|
|
|
|
|
name: "ModelBox"
|
|
|
|
@ -45,37 +56,37 @@ function getModelIcon(params: string) {
|
|
|
|
|
params == "手机、电子、SMT" ||
|
|
|
|
|
params == "手机、液晶显示屏"
|
|
|
|
|
) {
|
|
|
|
|
return phoneIndustry;
|
|
|
|
|
return model_phone;
|
|
|
|
|
} else if (
|
|
|
|
|
params ==
|
|
|
|
|
"机械、金属工件、线缆、铸造、薄膜、玻璃、造纸、铝板带、铝箔、铜箔、无纺布"
|
|
|
|
|
) {
|
|
|
|
|
return mechanicalIndustry;
|
|
|
|
|
return model_metal;
|
|
|
|
|
} else if (
|
|
|
|
|
params == "PVC管材、金属管材、金属工件、塑料水管、汽车软管、线缆"
|
|
|
|
|
) {
|
|
|
|
|
return pipeIndustry;
|
|
|
|
|
return model_PVC;
|
|
|
|
|
} else if (params == "锂电池") {
|
|
|
|
|
return lithiumBatteryIndustry;
|
|
|
|
|
return model_battery;
|
|
|
|
|
} else if (params == "食品、饮料、医疗卫生" || params == "食品、饮料") {
|
|
|
|
|
return healthcareIndustry;
|
|
|
|
|
return model_medical;
|
|
|
|
|
} else if (params == "陶瓷、卫浴、瓷砖") {
|
|
|
|
|
return bathroomIndustry;
|
|
|
|
|
return model_ceramics;
|
|
|
|
|
} else if (
|
|
|
|
|
params == "机加工、光伏、电子、SMT、手机、锂电池、精密零部件加工" ||
|
|
|
|
|
params == "光伏"
|
|
|
|
|
) {
|
|
|
|
|
return photovoltaicIndustry;
|
|
|
|
|
return model_photovoltaic;
|
|
|
|
|
} else if (params == "钢铁、冶金、铸造") {
|
|
|
|
|
return foundryIndustry;
|
|
|
|
|
return model_metallurgy;
|
|
|
|
|
} else if (params == "银行、营业厅") {
|
|
|
|
|
return bankIndustry;
|
|
|
|
|
return model_bank;
|
|
|
|
|
} else if (params == "机加工、电子、手机、精密零部件加工、汽车") {
|
|
|
|
|
return electronicsIndustry;
|
|
|
|
|
return model_car;
|
|
|
|
|
} else if (params == "PCB") {
|
|
|
|
|
return PCBIndustry;
|
|
|
|
|
return model_PCB;
|
|
|
|
|
} else {
|
|
|
|
|
return generalIndustry;
|
|
|
|
|
return model_PCB;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const emit = defineEmits(["check-detail", "delete-item"]);
|
|
|
|
@ -140,7 +151,7 @@ const handleClickDetail = (modelData: CardProductType) => {
|
|
|
|
|
rgba(255, 207, 95, 0.4) 0%,
|
|
|
|
|
rgba(255, 207, 95, 0) 100%
|
|
|
|
|
);
|
|
|
|
|
background-image: url("@/assets/dataScreen/modelList/inUsed.svg");
|
|
|
|
|
// background-image: url("@/assets/dataScreen/modelList/inUsed.svg");
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
.model-box-state {
|
|
|
|
|