|
@@ -5,7 +5,7 @@
|
|
|
<div v-for="(item,index) in formulainfo.arguments" :key="index" class="mg-t-20">
|
|
|
<div>
|
|
|
<span>参数{{(index+1)}}({{formulainfo.template.args[index].m}}):</span>
|
|
|
- <span>
|
|
|
+ <span v-if="JSON.stringify(item)!=='null'">
|
|
|
<template v-if="(typeof item)=='object' && (item.type == 'Element' || item.type == 'ParamData')">
|
|
|
<el-tag>{{item.name}}</el-tag>
|
|
|
</template>
|
|
@@ -46,11 +46,11 @@ export default {
|
|
|
},
|
|
|
mounted(){
|
|
|
this.template = this.formulainfo.template.ft;
|
|
|
- //console.log(this.formulainfo.template)
|
|
|
this.formulainfo.template.args.forEach(element => {
|
|
|
//console.log(element)
|
|
|
this.template = this.template.replace(element.key,element.m)
|
|
|
});
|
|
|
+
|
|
|
},
|
|
|
methods:{
|
|
|
//切换选择的状态
|