提交 308a35c6 authored 作者: caodi\cd's avatar caodi\cd

fix:优化

上级 9e026987
...@@ -418,7 +418,6 @@ export default { ...@@ -418,7 +418,6 @@ export default {
height: calc(100vh - 180px); height: calc(100vh - 180px);
border-radius: 0 0 9.6px 9.6px; border-radius: 0 0 9.6px 9.6px;
background-color: #fff; background-color: #fff;
padding: 0 19.2px 19.2px;
.weitu { .weitu {
width: 100%; width: 100%;
margin-bottom: 19.2px; margin-bottom: 19.2px;
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</view> </view>
</view></view </view></view
> >
<view v-else class="card-box"> <view v-else class="card-box detail">
<view <view
class="card-row" class="card-row"
:class="{ right: rowIndex % 2 !== 0 }" :class="{ right: rowIndex % 2 !== 0 }"
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
options: {}, //存储数据 options: {}, //存储数据
backValue: "", backValue: "",
all_data: [], //所有数据 all_data: [], //所有数据
jfType:"0",//机房类型 jfType: "0", //机房类型
}; };
}, },
computed: { computed: {
...@@ -259,7 +259,7 @@ export default { ...@@ -259,7 +259,7 @@ export default {
// 获取机房详情 // 获取机房详情
getDetailsItem(location, jfType, value) { getDetailsItem(location, jfType, value) {
this.detailsItem = this.detailsInfo.originData[value - 1].details; this.detailsItem = this.detailsInfo.originData[value - 1].details;
this.jfType = this.detailsInfo.originData[value - 1].jfType this.jfType = this.detailsInfo.originData[value - 1].jfType;
if (this.detailsItem.afxt.detail[2].inspectionResult === 1) { if (this.detailsItem.afxt.detail[2].inspectionResult === 1) {
this.detailsItem.afxt.detail = this.detailsItem.afxt.detail.slice(0, 3); this.detailsItem.afxt.detail = this.detailsItem.afxt.detail.slice(0, 3);
} }
...@@ -512,8 +512,16 @@ export default { ...@@ -512,8 +512,16 @@ export default {
background: #ffffff; background: #ffffff;
border-radius: 0 0 9.6px 9.6px; border-radius: 0 0 9.6px 9.6px;
padding: 12.8px 19.2px; padding: 12.8px 19.2px;
height: calc(100vh - 225px); height: calc(100vh - 232px - 19.2px);
// overflow: auto; &.detail {
overflow: auto;
.card-wrapper {
width: calc((100% - 4 * 12.8px) / 5); /* 严格五等分宽度 */
.card {
margin-bottom: 12.8px;
}
}
}
} }
.card-row { .card-row {
display: flex; display: flex;
......
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
writeDeviceData(tmepList, userName) writeDeviceData(tmepList, userName)
.then((res) => { .then((res) => {
console.log("tmepList", tmepList); console.log("tmepList", tmepList);
this.$store.commit("SET_DEVICEDATA", arr); this.$store.commit("SET_DEVICEDATA", this.list);
console.log("arr", arr); console.log("arr", arr);
setTimeout(() => { setTimeout(() => {
uni.showToast({ uni.showToast({
...@@ -191,11 +191,11 @@ export default { ...@@ -191,11 +191,11 @@ export default {
// 更新同步时间 // 更新同步时间
this.updateSysTime(); this.updateSysTime();
this.getDetails(); // this.getDetails();
}, 2 * 1000,
uni.navigateTo({ uni.navigateTo({
url: "/pages/listingManagement/index?backValue=home", url: "/pages/listingManagement/index?backValue=home",
}); }));
}, 2 * 1000);
}) })
.catch((error) => { .catch((error) => {
this.loading = false; this.loading = false;
......
...@@ -195,6 +195,7 @@ export default { ...@@ -195,6 +195,7 @@ export default {
}; };
console.log("newPhoto", newPhoto); console.log("newPhoto", newPhoto);
$this.photos.unshift(newPhoto); $this.photos.unshift(newPhoto);
console.log("$this.photos", $this.photos);
$this.addPhotos( $this.addPhotos(
$this.photos, $this.photos,
`照片编号(${newPhoto.id})`, `照片编号(${newPhoto.id})`,
......
...@@ -199,6 +199,7 @@ export const writeDeviceData = (content, userName) => { ...@@ -199,6 +199,7 @@ export const writeDeviceData = (content, userName) => {
fileName, fileName,
fileContent fileContent
).then((res) => { ).then((res) => {
console.log("更新",res)
// store 更新 设备上架. 缓存数据置为空,让接口重新读取文件数据 // store 更新 设备上架. 缓存数据置为空,让接口重新读取文件数据
store.commit("SET_DEVICEDATA", []); store.commit("SET_DEVICEDATA", []);
resolve(); resolve();
......
...@@ -231,7 +231,7 @@ export async function checkFileExists(directoryPath, fileName) { ...@@ -231,7 +231,7 @@ export async function checkFileExists(directoryPath, fileName) {
); );
}); });
} }
createFileWithPlusIO
export const readFilesInDirectory = async (directoryPath) => { export const readFilesInDirectory = async (directoryPath) => {
const promiseArr = []; const promiseArr = [];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论