[update] 标准年代号改成非必填的话编辑的时候placeholder置空
This commit is contained in:
@@ -83,7 +83,7 @@
|
|||||||
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
||||||
v-model="formInline[item.dbFieldName]"
|
v-model="formInline[item.dbFieldName]"
|
||||||
:maxLength="item.dbLength"
|
:maxLength="item.dbLength"
|
||||||
:placeholder="specialPlaceholder[item.dbFieldName] || $t('pleaseEnter')+item.dbFieldTxt" />
|
:placeholder="isEdit && disabledFieldList.includes(item.dbFieldName) && !formInline[item.dbFieldName] ? '' : (specialPlaceholder[item.dbFieldName] || $t('pleaseEnter')+item.dbFieldTxt)" />
|
||||||
<!-- 10, 下拉单选(数据字典) -->
|
<!-- 10, 下拉单选(数据字典) -->
|
||||||
<j-dict-select-tag v-else-if="item.fieldShowType === FieldType.OPTION_SINGLE.value"
|
<j-dict-select-tag v-else-if="item.fieldShowType === FieldType.OPTION_SINGLE.value"
|
||||||
class="box-input"
|
class="box-input"
|
||||||
@@ -342,7 +342,8 @@ export default {
|
|||||||
filePerm: { // 上传文件根据权限控制只能查看,没有权限的除了系统管理员外不可见不可下载
|
filePerm: { // 上传文件根据权限控制只能查看,没有权限的除了系统管理员外不可见不可下载
|
||||||
associated_file: 'enterpriseStandard:associatedFile:look' // 关联文件
|
associated_file: 'enterpriseStandard:associatedFile:look' // 关联文件
|
||||||
},
|
},
|
||||||
notNeedEnTitleTreeField: ['standard_system'] // 树形不需要enTitle判断的字段,暂时只有结构树不需要
|
notNeedEnTitleTreeField: ['standard_system'], // 树形不需要enTitle判断的字段,暂时只有结构树不需要
|
||||||
|
isEdit: false // 是否是编辑
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -408,12 +409,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
add () {
|
add () {
|
||||||
|
this.isEdit = false
|
||||||
this.formInline = Object.assign({}, this.defaultValue)
|
this.formInline = Object.assign({}, this.defaultValue)
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
this.getForm()
|
this.getForm()
|
||||||
},
|
},
|
||||||
edit (item, callback) {
|
edit (item, callback) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
this.isEdit = true
|
||||||
this.getForm(() => {
|
this.getForm(() => {
|
||||||
if (!this.getDocumentInfoFunc || typeof this.getDocumentInfoFunc !== 'function') {
|
if (!this.getDocumentInfoFunc || typeof this.getDocumentInfoFunc !== 'function') {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
Reference in New Issue
Block a user