|
|
@ -149,7 +149,7 @@ const showAll = () =>{ |
|
|
|
<div v-if="data[item.field]&&Array.isArray(data[item.field])" > |
|
|
|
<DictTag :type="item.dictType" :value="cur" v-for="(cur,key) in data[item.field]" :key="key" style="margin-right: 6px;margin-bottom: 6px;"/> |
|
|
|
</div> |
|
|
|
<DictTag :type="item.dictType" :value="data[item.field] + ''" v-if="data[item.field]&&!Array.isArray(data[item.field])"/> |
|
|
|
<DictTag :type="item.dictType" :value="data[item.field] + ''" v-if="(data[item.field]||data[item.field]==0)&&!Array.isArray(data[item.field])"/> |
|
|
|
</slot> |
|
|
|
<slot v-else :name="item.field" :row="data">{{ data[item.field] }}</slot> |
|
|
|
</template> |
|
|
|