feat: There is no way the, bug #55728

This commit is contained in:
super_liu
2022-06-15 16:16:12 +08:00
parent 9d135cfb72
commit b8383fab8f
3 changed files with 42 additions and 26 deletions
@@ -1828,7 +1828,10 @@ export default {
this.questionForm.standardName = this.questionForm.pubQue this.questionForm.standardName = this.questionForm.pubQue
this.questionForm.standardEncdoing = this.questionForm.pubQue this.questionForm.standardEncdoing = this.questionForm.pubQue
} }
if(this.questionForm.standardId){ if(!this.questionForm.standardId){
this.$message.warning('请选择至少一条标准')
return
}
this.questionForm.fileList = this.fileList this.questionForm.fileList = this.fileList
this.$refs['queForm'].validate((valid) => { this.$refs['queForm'].validate((valid) => {
if(valid){ if(valid){
@@ -1836,8 +1839,10 @@ export default {
{ {
_this: this _this: this
}, res => { }, res => {
console.log(res);
this.dialogVisible = false this.dialogVisible = false
this.activeName = "myQue"
this.activeType = this.standType
this.searchBtn()
}, e => { }, e => {
}) })
@@ -1845,9 +1850,6 @@ export default {
return this.$message.warning('请输入问题') return this.$message.warning('请输入问题')
} }
}) })
}else{
this.$message.warning('请选择至少一条标准')
}
}, },
}, },
}; };
@@ -4,12 +4,7 @@
<div id="stand-item"> <div id="stand-item">
<div class="row"> <div class="row">
<div class="item"> <div class="item">
<span>{{stand.standardEncdoing}}</span> <span>{{stand.standardName}}</span>
</div>
</div>
<div class="row">
<div class="item">
<span :title="stand.standardEncdoing + stand.standardName">{{stand.standardName}}</span>
</div> </div>
</div> </div>
</div> </div>
@@ -1213,8 +1213,27 @@ export default {
{ {
_this: this _this: this
}, res => { }, res => {
console.log(res);
this.dialogVisible = false this.dialogVisible = false
switch (this.standType){
case 'INLAND':
this.standSearch2()
break
case 'FOREIGN':
this.activeName = 'FOREIGN'
this.questionSerach.classification = 'FOREIGN'
this.standSearch2()
break
case 'BUSINESS_STAND':
this.activeName = 'BUSINESS_STAND'
this.questionSerach.classification = 'BUSINESS_STAND'
this.standSearch2()
break
case 'OTHER':
this.activeName = 'OTHER'
this.questionSerach.classification = 'OTHER'
this.standSearch2()
break
}
}, e => { }, e => {
}) })