|
|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
<div class="itemWrap">
|
|
|
|
|
<template v-for="(item,index) in formInfo">
|
|
|
|
|
<template v-if='item.form_show==1'>
|
|
|
|
|
<template v-if="item.field!='uploads'">
|
|
|
|
|
<template v-if="item.edit_input!=='file'&&item.edit_input!=='files'">
|
|
|
|
|
<div class="itemField">
|
|
|
|
|
<span>{{item.name}}:</span>
|
|
|
|
|
<span>{{form[item.field]}}</span>
|
|
|
|
|
@ -13,14 +13,21 @@
|
|
|
|
|
<template v-else>
|
|
|
|
|
<div class="itemField">
|
|
|
|
|
<span>{{item.name}}:</span>
|
|
|
|
|
<span v-if="typeof form['uploads_uploads_id_relation']==='object'">
|
|
|
|
|
<a style='color:red' target="_blank" :href="form['uploads_uploads_id_relation']['url']">{{form['uploads_uploads_id_relation']['original_name']}}</a>
|
|
|
|
|
</span>
|
|
|
|
|
<span v-if="typeof form['uploads_uploads_id_relation']==='array'">
|
|
|
|
|
<template v-for="(upload,index) in form['uploads_uploads_id_relation']">
|
|
|
|
|
<a style='color:red;width:100%' target="_blank" :href="upload.url">{{upload.original_name}}</a>
|
|
|
|
|
</template>
|
|
|
|
|
</span>
|
|
|
|
|
<template v-if="item.edit_input==='file'">
|
|
|
|
|
<span v-if="form[item.field+'_uploads_id_relation']!=null">
|
|
|
|
|
<a style='color:red' target="_blank" :href="form[item.field+'_uploads_id_relation']['url']">{{form[item.field+'_uploads_id_relation']['original_name']}}</a>
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-if="item.edit_input==='files'">
|
|
|
|
|
<span>
|
|
|
|
|
<template v-if="form[item.field+'_upload_details']!=null">
|
|
|
|
|
<template v-for="(upload,index) in form[item.field+'_upload_details']">
|
|
|
|
|
<a style='color:red;width:100%;display:block' target="_blank" :href="upload.url">{{upload.original_name}}</a>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -56,7 +63,7 @@
|
|
|
|
|
watch: {
|
|
|
|
|
dialogVisible(newval) {
|
|
|
|
|
if (newval) {
|
|
|
|
|
this.getDetail()
|
|
|
|
|
// this.getDetail()
|
|
|
|
|
} else {
|
|
|
|
|
this.id = ''
|
|
|
|
|
this.form = {}
|
|
|
|
|
@ -66,8 +73,9 @@
|
|
|
|
|
},
|
|
|
|
|
created() {},
|
|
|
|
|
methods: {
|
|
|
|
|
show() {
|
|
|
|
|
this.dialogVisible = true
|
|
|
|
|
show() {
|
|
|
|
|
this.getDetail()
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
closeDia(){
|
|
|
|
|
this.dialogVisible = false
|
|
|
|
|
@ -85,6 +93,7 @@
|
|
|
|
|
table_name: this.tableName
|
|
|
|
|
});
|
|
|
|
|
this.form = res;
|
|
|
|
|
this.dialogVisible = true
|
|
|
|
|
// uploads_uploads_id_relation
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|