update 文档拆分-编辑
This commit is contained in:
@@ -22,22 +22,22 @@
|
||||
</div>
|
||||
<a-form-model-item class="item-model" :prop="item.dbFieldName">
|
||||
<!--条文解读-->
|
||||
<template v-if="item.dbFieldName === 'interpretation_articles'">
|
||||
<div class="unscramble-item"
|
||||
v-for="(unscramble, unscrambleIndex) in interpretationArticlesList"
|
||||
:key="unscrambleIndex + 'interpretation_articles'">
|
||||
<div class="unscramble-item-content">
|
||||
<!--文本-->
|
||||
<a-input type="textarea" :maxLength="500" v-model="unscramble.itemContent"/>
|
||||
</div>
|
||||
<div class="unscramble-item-operate">
|
||||
<a-button @click="handleAddUnscramble(unscrambleIndex)">{{ $t('newlyAdded') }}</a-button>
|
||||
<a-button @click="handleDeleteUnscramble(unscrambleIndex, unscramble)">{{ $t('delete') }}</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<!--<template v-if="item.dbFieldName === 'interpretation_articles'">-->
|
||||
<!-- <div class="unscramble-item"-->
|
||||
<!-- v-for="(unscramble, unscrambleIndex) in interpretationArticlesList"-->
|
||||
<!-- :key="unscrambleIndex + 'interpretation_articles'">-->
|
||||
<!-- <div class="unscramble-item-content">-->
|
||||
<!-- <!–文本–>-->
|
||||
<!-- <a-input type="textarea" :maxLength="500" v-model="unscramble.itemContent"/>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="unscramble-item-operate">-->
|
||||
<!-- <a-button @click="handleAddUnscramble(unscrambleIndex)">{{ $t('newlyAdded') }}</a-button>-->
|
||||
<!-- <a-button @click="handleDeleteUnscramble(unscrambleIndex, unscramble)">{{ $t('delete') }}</a-button>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!--</template>-->
|
||||
<!-- 1, 日期单选 -->
|
||||
<a-date-picker v-else-if="item.fieldShowType === FieldType.DATE_SINGLE.value"
|
||||
<a-date-picker v-if="item.fieldShowType === FieldType.DATE_SINGLE.value"
|
||||
class="box-input"
|
||||
:placeholder="$t('pleaseSelect')+item.dbFieldTxt"
|
||||
:getCalendarContainer="(trigger) => trigger.parentNode"
|
||||
@@ -192,11 +192,11 @@ export default {
|
||||
rules: {},
|
||||
uploadName: '',
|
||||
type: 'add',
|
||||
hiddenFieldList: ['item_num', 'item_title', 'item_content'], // 隐藏的字段
|
||||
hiddenFieldList: ['item_num', 'item_title', 'item_content', 'interpretation_articles'], // 隐藏的字段
|
||||
disabledFieldList: [], // 禁用的字段
|
||||
specialPlaceholder: {}, // 特殊的placeholder
|
||||
optionsData: {}, // 通过接口获取的下拉数据
|
||||
interpretationArticlesList: [] // 条文解读数据
|
||||
// interpretationArticlesList: [] // 条文解读数据
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -255,9 +255,9 @@ export default {
|
||||
// 新注册实施日期
|
||||
indexArr[2] = res.result.findIndex(tt => tt.dbFieldName === 'new_register_implement_date')
|
||||
// 条文解读数据处理
|
||||
this.interpretationArticlesList = [
|
||||
{ id: '', itemContent: null }
|
||||
]
|
||||
// this.interpretationArticlesList = [
|
||||
// { id: '', itemContent: null }
|
||||
// ]
|
||||
// 是否长期有效默认选否
|
||||
this.formInline = Object.assign(this.formInline, { is_long_effect: YesOrNoEnum.NO.value })
|
||||
this.dataList = res.result
|
||||
@@ -394,7 +394,7 @@ export default {
|
||||
}
|
||||
})
|
||||
// 处理条文解读数据
|
||||
formData.interpretationArticlesList = this.interpretationArticlesList
|
||||
// formData.interpretationArticlesList = this.interpretationArticlesList
|
||||
editBatchEditClause(formData).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
|
||||
Reference in New Issue
Block a user