update 导入拆分结果,国内海外标准细节调整

This commit is contained in:
赵霄
2023-09-25 15:06:17 +08:00
parent 515ee6d68d
commit 6776041df9
11 changed files with 231 additions and 42 deletions
@@ -275,7 +275,13 @@ export default {
*/
initTreeData () {
this.treeLoading = true
getDomesticStandardTree({ nodeName: this.treeInput }).then(res => {
const params = {
nodeName: this.treeInput
}
if (!params.nodeName) {
delete params.nodeName
}
getDomesticStandardTree(params).then(res => {
this.treeData = []
this.selectedTreeKeys = []
this.selectedTreeNodeCodes = []
@@ -53,7 +53,7 @@ export default {
getDocumentInfoFunc: getDomesticStandardDocumentInfo,
// 特殊的placeholder
specialPlaceholder: {
standard_number: `${this.$t('standardRegulationLibrary.inputExample')}7258`
standard_number_temp: `${this.$t('standardRegulationLibrary.inputExample')}7258`
},
defaultValue: {
year_number: new Date().getFullYear() + ''
@@ -65,8 +65,8 @@ export default {
// 不可编辑的字段
disabledField () {
if (this.isEdit) {
// 标准编号,被代替标准号,被引用标准号
return ['standard_number_temp', 'replaced_by_standard_number', 'referenced_standard']
// 标准编号,被代替标准号,被引用标准号,标准类别,年代号
return ['standard_number_temp', 'replaced_by_standard_number', 'referenced_standard', 'standard_class', 'year_number']
}
return ['replaced_by_standard_number', 'referenced_standard']
}
@@ -275,7 +275,13 @@ export default {
*/
initTreeData () {
this.treeLoading = true
getOverseasStandardSystem({ nodeName: this.treeInput }).then(res => {
const params = {
nodeName: this.treeInput
}
if (!params.nodeName) {
delete params.nodeName
}
getOverseasStandardSystem(params).then(res => {
this.treeData = []
this.selectedTreeKeys = []
this.selectedTreeNodeCodes = []
@@ -593,7 +599,7 @@ export default {
// 销毁这个提示
modalLoading.destroy()
})
},
}
}
}
</script>
@@ -53,7 +53,7 @@ export default {
getDocumentInfoFunc: getOverseasStandardDocumentInfo,
// 特殊的placeholder
specialPlaceholder: {
standard_number: `${this.$t('standardRegulationLibrary.inputExample')}7258`
standard_number_temp: `${this.$t('standardRegulationLibrary.inputExample')}7258`
},
defaultValue: {
year_number: new Date().getFullYear() + ''