|
@@ -28,6 +28,11 @@
|
|
<a-input v-decorator="['title', {rules: [{required: true, message: '名称不能为空'}]}]" />
|
|
<a-input v-decorator="['title', {rules: [{required: true, message: '名称不能为空'}]}]" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</row-item>
|
|
</row-item>
|
|
|
|
+ <row-item>
|
|
|
|
+ <a-form-item label="自定义处理" :labelCol="BaseTool.Constant.labelCol" :wrapperCol="BaseTool.Constant.wrapperCol">
|
|
|
|
+ <a-switch v-decorator="['publicFlag', {initialValue: true, valuePropName: 'checked'}]" />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </row-item>
|
|
<row-item>
|
|
<row-item>
|
|
<a-form-item label="数据表" :labelCol="BaseTool.Constant.labelCol" :wrapperCol="BaseTool.Constant.wrapperCol">
|
|
<a-form-item label="数据表" :labelCol="BaseTool.Constant.labelCol" :wrapperCol="BaseTool.Constant.wrapperCol">
|
|
<a-input v-decorator="['titleCode', {rules: [{required: true, message: '名称编码不能为空'}]}]" />
|
|
<a-input v-decorator="['titleCode', {rules: [{required: true, message: '名称编码不能为空'}]}]" />
|
|
@@ -106,6 +111,7 @@ export default {
|
|
form: { setFieldsValue },
|
|
form: { setFieldsValue },
|
|
} = this
|
|
} = this
|
|
// 日期处理
|
|
// 日期处理
|
|
|
|
+ record.publicFlag = Boolean(record.publicFlag)
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
setFieldsValue(
|
|
setFieldsValue(
|
|
Object.assign(
|
|
Object.assign(
|
|
@@ -121,6 +127,7 @@ export default {
|
|
'titleColumnCode',
|
|
'titleColumnCode',
|
|
'handleName',
|
|
'handleName',
|
|
'handleCode',
|
|
'handleCode',
|
|
|
|
+ 'publicFlag',
|
|
])
|
|
])
|
|
)
|
|
)
|
|
)
|
|
)
|
|
@@ -137,6 +144,7 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
// 日期处理
|
|
// 日期处理
|
|
|
|
+ values.publicFlag = Number(values.publicFlag)
|
|
if (this.BaseTool.String.isBlank(values.id)) {
|
|
if (this.BaseTool.String.isBlank(values.id)) {
|
|
addCustomClassName(values)
|
|
addCustomClassName(values)
|
|
.then(() => {
|
|
.then(() => {
|