BUG 141
This commit is contained in:
@@ -30,7 +30,6 @@ import AiPagePicker from "../AiPagePicker/AiPagePicker";
|
|||||||
import AiGroup from "../AiGroup/AiGroup";
|
import AiGroup from "../AiGroup/AiGroup";
|
||||||
import AiItem from "../AiItem/AiItem";
|
import AiItem from "../AiItem/AiItem";
|
||||||
import AiUploader from "../AiUploader/AiUploader";
|
import AiUploader from "../AiUploader/AiUploader";
|
||||||
import AiEmpty from "dvcp_v2_wechat_app/src/components/AiEmpty/AiEmpty";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AiEvaluation",
|
name: "AiEvaluation",
|
||||||
@@ -44,7 +43,7 @@ export default {
|
|||||||
bid: {default: ""},
|
bid: {default: ""},
|
||||||
type: {default: "submit"} //可选值: submit:提交评价,show:展示评价
|
type: {default: "submit"} //可选值: submit:提交评价,show:展示评价
|
||||||
},
|
},
|
||||||
components: {AiEmpty, AiUploader, AiItem, AiGroup, AiPagePicker},
|
components: {AiUploader, AiItem, AiGroup, AiPagePicker},
|
||||||
computed: {
|
computed: {
|
||||||
isShow: v => v.type == 'show',
|
isShow: v => v.type == 'show',
|
||||||
hasEvaluated: v => !!v.detail?.id
|
hasEvaluated: v => !!v.detail?.id
|
||||||
|
|||||||
@@ -9,7 +9,9 @@
|
|||||||
<AiItem label="所属网格" :value="info.girdName"/>
|
<AiItem label="所属网格" :value="info.girdName"/>
|
||||||
<AiItem label="上报时间" :value="info.createTime"/>
|
<AiItem label="上报时间" :value="info.createTime"/>
|
||||||
<AiItem label="照片" top-label>
|
<AiItem label="照片" top-label>
|
||||||
<image v-for="(item, index) in info.files" @click="preview(item.url)" :key="index" :src="item.url"/>
|
<div class="flex wrap">
|
||||||
|
<image class="fill imageItem" v-for="(item, index) in info.files" @click="preview(item.url)" :key="index" :src="item.url"/>
|
||||||
|
</div>
|
||||||
<span v-if="!info.files.length">暂无照片</span>
|
<span v-if="!info.files.length">暂无照片</span>
|
||||||
</AiItem>
|
</AiItem>
|
||||||
</AiGroup>
|
</AiGroup>
|
||||||
@@ -17,7 +19,9 @@
|
|||||||
<AiGroup title="处理详情" v-if="info.eventStatus > 1" description noBorder labelColor="#999">
|
<AiGroup title="处理详情" v-if="info.eventStatus > 1" description noBorder labelColor="#999">
|
||||||
<AiItem label="处理结果" top-label :value="result.doExplain"/>
|
<AiItem label="处理结果" top-label :value="result.doExplain"/>
|
||||||
<AiItem label="照片" top-label>
|
<AiItem label="照片" top-label>
|
||||||
<image v-for="(item, index) in result.files" @click="preview(item.url)" :key="index" :src="item.url"/>
|
<div class="flex wrap">
|
||||||
|
<image class="fill imageItem" v-for="(item, index) in result.files" @click="preview(item.url)" :key="index" :src="item.url"/>
|
||||||
|
</div>
|
||||||
<span v-if="!result.files.length">暂无照片</span>
|
<span v-if="!result.files.length">暂无照片</span>
|
||||||
</AiItem>
|
</AiItem>
|
||||||
</AiGroup>
|
</AiGroup>
|
||||||
@@ -163,5 +167,17 @@ export default {
|
|||||||
background: #FF4466;
|
background: #FF4466;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.imageItem {
|
||||||
|
min-width: 30%;
|
||||||
|
height: 30vw;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-right: 16px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
|
||||||
|
&:nth-of-type(3n) {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user