|
@@ -27,12 +27,13 @@
|
|
|
<div class="img">
|
|
|
<img :src="file.filesUrl" />
|
|
|
<div class="actions">
|
|
|
+ <el-button type="text" @click="query(file)"> 查看 </el-button>
|
|
|
<el-button type="text" @click="handerPhotoEdit(file)">
|
|
|
- 编辑</el-button
|
|
|
- >
|
|
|
+ 编辑
|
|
|
+ </el-button>
|
|
|
<el-button type="text" @click="handerPhotoDelete(file)">
|
|
|
- 删除</el-button
|
|
|
- >
|
|
|
+ 删除
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<span class="title">{{ file.filesTitle }}</span>
|
|
@@ -99,6 +100,10 @@ const handerPhotoDelete = async (file: CaseFile) => {
|
|
|
refresh();
|
|
|
}
|
|
|
};
|
|
|
+
|
|
|
+const query = (file: CaseFile) =>
|
|
|
+ window.open(file.filesUrl + "?time=" + Date.now());
|
|
|
+
|
|
|
const initDefaultData = async () => {
|
|
|
const data = await getCaseFileTypesQuery("library");
|
|
|
const rootList = data.map((item) => {
|