|
@ -64,7 +64,7 @@ |
|
|
<span>必填字段</span> |
|
|
<span>必填字段</span> |
|
|
<el-checkbox v-model="form.isRequired" name="isRequired" :disabled="isDisabled" /> |
|
|
<el-checkbox v-model="form.isRequired" name="isRequired" :disabled="isDisabled" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item class="checkbox-item"> |
|
|
|
|
|
|
|
|
<el-form-item v-if="isCategory" class="checkbox-item"> |
|
|
<span>自动生成</span> |
|
|
<span>自动生成</span> |
|
|
<el-checkbox v-model="form.isAutomatic" name="isAutomatic" :disabled="isDisabled" @change="changeAuto" /> |
|
|
<el-checkbox v-model="form.isAutomatic" name="isAutomatic" :disabled="isDisabled" @change="changeAuto" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -96,6 +96,10 @@ export default { |
|
|
name: 'SettingForm', |
|
|
name: 'SettingForm', |
|
|
components: {}, |
|
|
components: {}, |
|
|
props: { |
|
|
props: { |
|
|
|
|
|
isCategory: { |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
required: true |
|
|
|
|
|
}, |
|
|
isDisabled: { |
|
|
isDisabled: { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
required: true |
|
|
required: true |
|
@ -229,7 +233,6 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
console.log(this.form) |
|
|
|
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.form = this.thisFields |
|
|
this.form = this.thisFields |
|
@ -381,7 +384,6 @@ export default { |
|
|
this.form.isAutomatic = false |
|
|
this.form.isAutomatic = false |
|
|
this.$message.error('著录形式必须为文本框才可操作!') |
|
|
this.$message.error('著录形式必须为文本框才可操作!') |
|
|
} else if (value) { |
|
|
} else if (value) { |
|
|
console.log(this.form) |
|
|
|
|
|
getNoFormatField({ categoryId: this.form.categoryId }).then((res) => { |
|
|
getNoFormatField({ categoryId: this.form.categoryId }).then((res) => { |
|
|
const repeatIndex = res.findIndex((item) => { |
|
|
const repeatIndex = res.findIndex((item) => { |
|
|
return item.dictionaryId === this.form.id |
|
|
return item.dictionaryId === this.form.id |
|
|