标准/译文获取申请 标准类型/标准编号联动

This commit is contained in:
baoyu
2024-03-28 16:16:22 +08:00
parent 82ec704aa0
commit e231e8eed3
@@ -133,16 +133,7 @@ export default {
StandardApplyForEO: {}, StandardApplyForEO: {},
typeList: [], typeList: [],
standTypeList: [], standTypeList: [],
standLbList: [ standLbList: [],
{
label: 'GB',
value: 'GB',
},
{
label: 'GB/T',
value: 'GB/T',
}
],
addFormRules: { addFormRules: {
applyForUnitName: [ { required: true, message: '申请单位不能为空', trigger: 'blur' } ], applyForUnitName: [ { required: true, message: '申请单位不能为空', trigger: 'blur' } ],
applyForUserName: [ { required: true, message: '申请人不能为空', trigger: 'blur' } ], applyForUserName: [ { required: true, message: '申请人不能为空', trigger: 'blur' } ],
@@ -163,9 +154,6 @@ export default {
} }
} }
}, },
mounted () {
this.getDicTypeListCode()
},
methods: { methods: {
getDicTypeListCode () { getDicTypeListCode () {
this.$http.get('/lawss/standardApplyFor/getStandTypeDropDownData', {}, { this.$http.get('/lawss/standardApplyFor/getStandTypeDropDownData', {}, {
@@ -188,6 +176,7 @@ export default {
this.StandardApplyForEO = { ...this.StandardApplyForEO } this.StandardApplyForEO = { ...this.StandardApplyForEO }
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.addFormRef.clearValidate() this.$refs.addFormRef.clearValidate()
this.getDicTypeListCode()
}) })
}, },
showModal (item) { showModal (item) {
@@ -201,11 +190,18 @@ export default {
if (value === '') { if (value === '') {
this.standLbList = [] this.standLbList = []
} }
this.$http.get('/lawss/standardApplyFor/getStandLbDropDownData', { dicId: value },res=>{ this.$http.get('/lawss/standardApplyFor/getStandLbDropDownData', { dicId: value }, {
_this: this
}, res => {
if (res.ok) { if (res.ok) {
this.standLbList = res.data this.$nextTick(() => {
this.standLbList = res.data
this.$set(this.StandardApplyForEO, 'standLb', null)
})
return
} }
this.standLbList = [] this.standLbList = []
this.$set(this.StandardApplyForEO, 'standLb', null)
}) })
}, },
submit () { submit () {