This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
<v-list-item-content>
|
<v-list-item-content>
|
||||||
<v-list-item-title v-text="item.name"></v-list-item-title>
|
<v-list-item-title v-text="item.name"></v-list-item-title>
|
||||||
|
|
||||||
<v-list-item-subtitle
|
<v-list-item-subtitle
|
||||||
v-text="item.date"
|
v-text="item.date"
|
||||||
></v-list-item-subtitle>
|
></v-list-item-subtitle>
|
||||||
@@ -68,7 +69,9 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
created() {},
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
height: 300,
|
height: 300,
|
||||||
@@ -120,6 +123,27 @@ export default {
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
|
getList() {
|
||||||
|
let vm = this;
|
||||||
|
window.$gz.api
|
||||||
|
.get("Attachment/list?ayatype=" + vm.ayaType + "&ayaid=" + vm.ayaId)
|
||||||
|
.then(res => {
|
||||||
|
if (res.error) {
|
||||||
|
console.log(res.error);
|
||||||
|
} else {
|
||||||
|
vm.attachedFiles = res.data;
|
||||||
|
vm.updateDisplayList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// .catch(function handleGetDataFromAPIError(error) {
|
||||||
|
// //Update the form status
|
||||||
|
// window.$gz.form.setFormState({
|
||||||
|
// vm: vm,
|
||||||
|
// loading: false
|
||||||
|
// });
|
||||||
|
// window.$gz.errorHandler.handleFormError(error, vm);
|
||||||
|
// });
|
||||||
|
},
|
||||||
download(item) {
|
download(item) {
|
||||||
console.log("CLICK", item);
|
console.log("CLICK", item);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user