标准/译文获取申请 标准类型/标准编号联动
This commit is contained in:
+11
-15
@@ -133,16 +133,7 @@ export default {
|
||||
StandardApplyForEO: {},
|
||||
typeList: [],
|
||||
standTypeList: [],
|
||||
standLbList: [
|
||||
{
|
||||
label: 'GB',
|
||||
value: 'GB',
|
||||
},
|
||||
{
|
||||
label: 'GB/T',
|
||||
value: 'GB/T',
|
||||
}
|
||||
],
|
||||
standLbList: [],
|
||||
addFormRules: {
|
||||
applyForUnitName: [ { required: true, message: '申请单位不能为空', trigger: 'blur' } ],
|
||||
applyForUserName: [ { required: true, message: '申请人不能为空', trigger: 'blur' } ],
|
||||
@@ -163,9 +154,6 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.getDicTypeListCode()
|
||||
},
|
||||
methods: {
|
||||
getDicTypeListCode () {
|
||||
this.$http.get('/lawss/standardApplyFor/getStandTypeDropDownData', {}, {
|
||||
@@ -188,6 +176,7 @@ export default {
|
||||
this.StandardApplyForEO = { ...this.StandardApplyForEO }
|
||||
this.$nextTick(() => {
|
||||
this.$refs.addFormRef.clearValidate()
|
||||
this.getDicTypeListCode()
|
||||
})
|
||||
},
|
||||
showModal (item) {
|
||||
@@ -201,11 +190,18 @@ export default {
|
||||
if (value === '') {
|
||||
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) {
|
||||
this.standLbList = res.data
|
||||
this.$nextTick(() => {
|
||||
this.standLbList = res.data
|
||||
this.$set(this.StandardApplyForEO, 'standLb', null)
|
||||
})
|
||||
return
|
||||
}
|
||||
this.standLbList = []
|
||||
this.$set(this.StandardApplyForEO, 'standLb', null)
|
||||
})
|
||||
},
|
||||
submit () {
|
||||
|
||||
Reference in New Issue
Block a user