|
@@ -70,11 +70,15 @@
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
- <a-select mode="multiple" :options="formComponentConfig.components" v-model="formValue.queryField">
|
|
|
- <!-- <a-select-option v-for="item in detail.options" :value="item.value" :key="item.value">
|
|
|
- {{ item.label }}
|
|
|
- </a-select-option> -->
|
|
|
- </a-select>
|
|
|
+ <a-checkbox-group v-model="formValue.queryField" @change="onChange">
|
|
|
+ <a-row>
|
|
|
+ <a-col :span="8" v-for="item in formComponentConfig.components" :key="item.value">
|
|
|
+ <a-checkbox :value="item.value">
|
|
|
+ {{ item.label }}
|
|
|
+ </a-checkbox>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-checkbox-group>
|
|
|
</a-form-item>
|
|
|
</a-form>
|
|
|
</a-card>
|
|
@@ -120,14 +124,16 @@ export default {
|
|
|
this.modalTitle = '编辑'
|
|
|
const { form: { setFieldsValue } } = this
|
|
|
// 日期处理
|
|
|
+ this.formValue = record
|
|
|
this.$nextTick(() => {
|
|
|
setFieldsValue(Object.assign(pick(record, [
|
|
|
'id',
|
|
|
'type',
|
|
|
- 'jsonString',
|
|
|
- 'flowId',
|
|
|
+ 'name',
|
|
|
+ 'category',
|
|
|
'remark'
|
|
|
])))
|
|
|
+ this.$refs.formComponent.base(record.jsonString)
|
|
|
})
|
|
|
},
|
|
|
next () {
|