This commit is contained in:
parent
003d6b2298
commit
f5a0002177
|
|
@ -1,7 +1,15 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<div v-if="showType == 'divider'">
|
||||||
|
<a-divider orientation="left">{{ header }}</a-divider>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<textarea v-if="isTextarea" readonly class="readonlytext readonlytext-textarea" :value="valueShow" style="height: 60px;"></textarea>
|
<textarea v-if="isTextarea" readonly class="readonlytext readonlytext-textarea" :value="valueShow" style="height: 60px;"></textarea>
|
||||||
<input v-else readonly autocomplete="off" class="readonlytext" type="text" :value="valueShow" />
|
<input v-else readonly autocomplete="off" class="readonlytext" type="text" :value="valueShow" />
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -19,6 +27,8 @@ export default {
|
||||||
value: {
|
value: {
|
||||||
type: [String,Number,Object]
|
type: [String,Number,Object]
|
||||||
},
|
},
|
||||||
|
showType:String,
|
||||||
|
header:String,
|
||||||
params: Object,
|
params: Object,
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
|
|
|
||||||
|
|
@ -476,7 +476,7 @@ export default {
|
||||||
let groupName = item.category.name;
|
let groupName = item.category.name;
|
||||||
if(groupName && !groupNames.filter(a=>a == groupName).length){
|
if(groupName && !groupNames.filter(a=>a == groupName).length){
|
||||||
|
|
||||||
this.options.formOptions2.items.push({ title: groupName, span: 24, itemRender: { type:"MkFormInputShow" },titleColon:false });
|
this.options.formOptions2.items.push({ span: 24, itemRender: { name:"MkFormInputShow" ,props:{ showType:"divider",header:groupName } },showTitle:false });
|
||||||
groupNames.push(groupName);
|
groupNames.push(groupName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue