|
@@ -6,16 +6,27 @@
|
|
<div>
|
|
<div>
|
|
<span>参数{{(index+1)}}({{formulainfo.template.args[index].m}}):</span>
|
|
<span>参数{{(index+1)}}({{formulainfo.template.args[index].m}}):</span>
|
|
<span v-if="JSON.stringify(item)!=='null'">
|
|
<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>
|
|
|
|
- <template v-else>
|
|
|
|
- <el-input v-model="formulainfo.arguments[index]" placeholder="请输入内容" style="width:200px"></el-input>
|
|
|
|
- </template>
|
|
|
|
|
|
+
|
|
|
|
+ <el-radio-group v-model="formulainfo.arguments[index]" v-if="formulainfo.template.args[index].m=='是否同行/列计算(选填):'">
|
|
|
|
+ <el-radio :label="3">同行</el-radio>
|
|
|
|
+ <el-radio :label="6">同列</el-radio>
|
|
|
|
+
|
|
|
|
+ </el-radio-group>
|
|
|
|
+
|
|
|
|
+ <template v-else>
|
|
|
|
+ <template v-if="(typeof item)=='object' && (item.type == 'Element' || item.type == 'ParamData')">
|
|
|
|
+ <el-tag>{{item.name}}</el-tag>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <el-input v-model="formulainfo.arguments[index]" placeholder="请输入内容" style="width:200px" ></el-input>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </template>
|
|
|
|
+ </template>
|
|
</span>
|
|
</span>
|
|
- <el-link type="primary" @click="changeType('text',index)" class="mg-l-10">输入文本</el-link>
|
|
|
|
- <el-link type="primary" @click="changeType('ele',index)" class="mg-l-10">选择元素</el-link>
|
|
|
|
- <el-link type="primary" @click="setCurEle(index)" class="mg-l-10">当前元素</el-link>
|
|
|
|
|
|
+ <el-link type="primary" @click="changeType('text',index)" class="mg-l-10" v-if="formulainfo.template.args[index].m!=='是否同行/列计算(选填):'">输入文本</el-link>
|
|
|
|
+ <el-link type="primary" @click="changeType('ele',index)" class="mg-l-10" v-if="formulainfo.template.args[index].m!=='是否同行/列计算(选填):'">选择元素</el-link>
|
|
|
|
+ <el-link type="primary" @click="setCurEle(index)" class="mg-l-10" v-if="formulainfo.template.args[index].m!=='是否同行/列计算(选填):'">当前元素</el-link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|