This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
<v-list-item-content>
|
||||
<v-list-item-title v-text="item.name"></v-list-item-title>
|
||||
|
||||
<v-list-item-subtitle
|
||||
v-text="item.date"
|
||||
></v-list-item-subtitle>
|
||||
@@ -68,7 +69,9 @@
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
created() {},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
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) {
|
||||
console.log("CLICK", item);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user