Commit 13dca84e by 匡雅琴

bug修复

1 parent 9de26e80
...@@ -160,6 +160,10 @@ export default { ...@@ -160,6 +160,10 @@ export default {
placeholder: '全部', placeholder: '全部',
optionList: [ optionList: [
{ {
optionId: '',
optionLabel: '全部'
},
{
optionId: 1, optionId: 1,
optionLabel: 'pdf' optionLabel: 'pdf'
}, },
...@@ -183,6 +187,10 @@ export default { ...@@ -183,6 +187,10 @@ export default {
placeholder: '全部', placeholder: '全部',
optionList: [ optionList: [
{ {
optionId: '',
optionLabel: '全部'
},
{
optionId: 0, optionId: 0,
optionLabel: '启用' optionLabel: '启用'
}, },
...@@ -365,6 +373,7 @@ export default { ...@@ -365,6 +373,7 @@ export default {
window.sessionStorage.setItem('firstLogin', 'true') window.sessionStorage.setItem('firstLogin', 'true')
} }
}, },
// 重置 // 重置
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
...@@ -384,7 +393,12 @@ export default { ...@@ -384,7 +393,12 @@ export default {
this.$apis.material.findAllDictData(params).then(res => { this.$apis.material.findAllDictData(params).then(res => {
if (res) { if (res) {
this.businessTypes = res this.businessTypes = res
this.materialFormData[0].optionList = res let idx = this.materialFormData.findIndex(item => item.name == 'businessType')
res.unshift({
dictValue: '',
dictLabel: '全部'
})
this.materialFormData[idx].optionList = res
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!