|
@@ -74,7 +74,7 @@
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <div>
|
|
|
+ <div v-if="dataModel && dataModel.length > 0">
|
|
|
{{ dataModel }}
|
|
|
</div>
|
|
|
</template>
|
|
@@ -363,7 +363,7 @@ export default {
|
|
|
FileUpload
|
|
|
},
|
|
|
/* eslint-disable */
|
|
|
- props: ['widget', 'models', 'propValue', 'remote', 'data', 'disabled', 'preview', 'isLabel', 'subformIndex', 'subformModel'],
|
|
|
+ props: ['widget', 'models', 'propValue', 'remote', 'data', 'disabled', 'preview', 'isLabel', 'subformIndex', 'subformModel', 'organList'],
|
|
|
data() {
|
|
|
return {
|
|
|
showStatus: true,
|
|
@@ -413,6 +413,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ // console.log(this.widget, this.models,this.propValue)
|
|
|
+ // 判断当前元素是否是分部表单()
|
|
|
+ if(this.widget.type == 'organ' && this.preview) {
|
|
|
+ console.log(this.dataModel, this.organList)
|
|
|
+ let tempStr = null
|
|
|
+ this.organList.forEach(item => {
|
|
|
+ if(item.id == this.dataModel) {
|
|
|
+ tempStr = item.name
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.dataModel = tempStr
|
|
|
+ }
|
|
|
if (this.widget.options.remote && this.remote[this.widget.options.remoteFunc]) {
|
|
|
this.remote[this.widget.options.remoteFunc]((data) => {
|
|
|
this.widget.options.remoteOptions = data.map(item => {
|