|
@@ -82,7 +82,7 @@ let width = ref(0);
|
|
let mapStyle = computed(() => {
|
|
let mapStyle = computed(() => {
|
|
const baseUrl = import.meta.env.VITE_AXIOS_BASE_URL;
|
|
const baseUrl = import.meta.env.VITE_AXIOS_BASE_URL;
|
|
return {
|
|
return {
|
|
- backgroundImage: `url(${baseUrl + "/uploadFile/" + props.imgUrl})`,
|
|
|
|
|
|
+ backgroundImage: `url(${ props.imgUrl})`,
|
|
width: width.value + "px",
|
|
width: width.value + "px",
|
|
height: height.value + "px",
|
|
height: height.value + "px",
|
|
left: dragOption.x1 + "px",
|
|
left: dragOption.x1 + "px",
|
|
@@ -111,7 +111,7 @@ function setImgSize(url) {
|
|
width.value = m.clientWidth;
|
|
width.value = m.clientWidth;
|
|
height.value = m.clientWidth * (img.naturalHeight / img.naturalWidth);
|
|
height.value = m.clientWidth * (img.naturalHeight / img.naturalWidth);
|
|
};
|
|
};
|
|
- img.src = import.meta.env.VITE_AXIOS_BASE_URL + "/uploadFile/" + url;
|
|
|
|
|
|
+ img.src = url;
|
|
}
|
|
}
|
|
|
|
|
|
watch(() => props.imgUrl, (newValue) => {
|
|
watch(() => props.imgUrl, (newValue) => {
|
|
@@ -192,22 +192,22 @@ let formRules = reactive({
|
|
id: [{ required: true, message: "不能为空", trigger: "blur" }]
|
|
id: [{ required: true, message: "不能为空", trigger: "blur" }]
|
|
});
|
|
});
|
|
|
|
|
|
-let statusList = [
|
|
|
|
- { label: "可售", backGround: "#0bc933", color: "#000000" },
|
|
|
|
- { label: "已售", backGround: "#fd0002", color: "#ffffff" },
|
|
|
|
- { label: "待租", backGround: "#fde801", color: "#000000" },
|
|
|
|
- { label: "已租", backGround: "#006efd", color: "#ffffff" }
|
|
|
|
-];
|
|
|
|
|
|
|
|
function setMarkStyle(row) {
|
|
function setMarkStyle(row) {
|
|
- if (row.saleStatus == 1) {
|
|
|
|
- return { label: "已售", backGround: "#fd0002", color: "#ffffff" };
|
|
|
|
- } else if (row.isSale == 1) {
|
|
|
|
- return { label: "待售", backGround: "#0bc933", color: "#000000" };
|
|
|
|
- } else if (row.isHire == 1) {
|
|
|
|
- return { label: "已租", backGround: "#006efd", color: "#ffffff" };
|
|
|
|
- } else {
|
|
|
|
- return { label: "待租", backGround: "#fde801", color: "#000000" };
|
|
|
|
|
|
+ if (row.isSale === 1 && row.saleStatus === 0 && row.isHire === 1 && row.hireStatus == 0) {
|
|
|
|
+ return { label: "租售", backGround: "#fd0002", color: "#ffffff" };
|
|
|
|
+ } else if (row.isSale === 1 && row.saleStatus === 0) {
|
|
|
|
+ return { label: "待售", backGround: "#0bc933", color: "#ffffff" };
|
|
|
|
+ } else if (row.isSale === 1 && row.saleStatus == 1) {
|
|
|
|
+ return { label: "已售", backGround: "#fdda01", color: "#8a8a8a" };
|
|
|
|
+ } else if (row.isSale === 1 && row.saleStatus == 2) {
|
|
|
|
+ return { label: "预售", backGround: "#fdda01", color: "#8a8a8a" };
|
|
|
|
+ } else if (row.isHire === 1 && row.hireStatus == 0) {
|
|
|
|
+ return { label: "待租", backGround: "#006efd", color: "#ffffff" };
|
|
|
|
+ } else if (row.isHire === 1 && row.hireStatus == 1) {
|
|
|
|
+ return { label: "已租", backGround: "#fdda01", color: "#8a8a8a" };
|
|
|
|
+ } else if (row.isHire === 1 && row.hireStatus == 2) {
|
|
|
|
+ return { label: "预租", backGround: "#fdda01", color: "#8a8a8a" };
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -334,7 +334,7 @@ function wheel(event) {
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
- white-space:nowrap;
|
|
|
|
|
|
+ white-space: nowrap;
|
|
user-select: none;
|
|
user-select: none;
|
|
position: absolute;
|
|
position: absolute;
|
|
cursor: pointer;
|
|
cursor: pointer;
|