|
@@ -245,12 +245,17 @@
|
|
|
>
|
|
|
</iframe> -->
|
|
|
<!-- <template v-else> -->
|
|
|
- <template v-if="formType == 'dragFormGroup'">
|
|
|
- <FormList ref="formGroupRef" :formList="formList"></FormList>
|
|
|
+ <template>
|
|
|
+ <FormList
|
|
|
+ v-show="formType == 'dragFormGroup'"
|
|
|
+ ref="formGroupRef"
|
|
|
+ :formList="formList"
|
|
|
+ ></FormList>
|
|
|
+ <!-- <el-button @click="showValue">test</el-button> -->
|
|
|
</template>
|
|
|
- <template v-else-if="formType == 'dragForm'">
|
|
|
+ <template>
|
|
|
<k-form-build
|
|
|
- v-if="jsonData"
|
|
|
+ v-if="jsonData && formType == 'dragForm'"
|
|
|
class="formBuild"
|
|
|
ref="addFromRef"
|
|
|
:dynamicData="dynamicData"
|
|
@@ -474,6 +479,11 @@ export default {
|
|
|
// },
|
|
|
},
|
|
|
methods: {
|
|
|
+ // test
|
|
|
+ showValue() {
|
|
|
+ console.log(this.$refs.formGroupRef);
|
|
|
+ this.$refs.formGroupRef.setDefaultValue();
|
|
|
+ },
|
|
|
// 计算操作列的显示与隐藏
|
|
|
calcuteExcuteCol() {
|
|
|
if (!this.excuteBtnArr || !this.excuteBtnArr.length) {
|
|
@@ -808,6 +818,7 @@ export default {
|
|
|
this.formList = res.data;
|
|
|
this.tableName = res.data.dfTableName;
|
|
|
}
|
|
|
+ console.log(this.formList);
|
|
|
this.open = true;
|
|
|
// this.$nextTick(() => {
|
|
|
// // this.sleep(1000);
|
|
@@ -948,7 +959,7 @@ export default {
|
|
|
console.log(item);
|
|
|
let showValue = item.showValue[0];
|
|
|
if (showValue) {
|
|
|
- item.showTemplate.resultMap = mainForm.showValue;
|
|
|
+ item.showTemplate.resultMap = item.showValue;
|
|
|
}
|
|
|
this.formList.push({
|
|
|
template: item.showTemplate,
|