|
@@ -8,11 +8,12 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="类别">
|
|
|
<el-cascader
|
|
|
- v-model="dataForm.materialTypeId"
|
|
|
+ v-model="selectedCateIds"
|
|
|
:options="optionsCate"
|
|
|
- :props="{ expandTrigger: 'hover' }"
|
|
|
- :show-all-levels="false"
|
|
|
+ :props="{ expandTrigger: 'hover'}"
|
|
|
+ :show-all-levels="true"
|
|
|
popper-class="my-cascader"
|
|
|
+ clearable
|
|
|
>
|
|
|
</el-cascader>
|
|
|
</el-form-item>
|
|
@@ -52,13 +53,15 @@
|
|
|
prop="categoryName"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
+ width="120"
|
|
|
+ :show-tooltip-when-overflow="true"
|
|
|
label="类别">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="materialName"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
- min-width="180"
|
|
|
+ width="120"
|
|
|
:show-overflow-tooltip="true"
|
|
|
label="名称">
|
|
|
</el-table-column>
|
|
@@ -177,7 +180,8 @@ export default {
|
|
|
detailVisible: false,
|
|
|
addOrUpdateVisible: false,
|
|
|
noticeChangeAttachVisible: false,
|
|
|
- optionsCate: [] // 类别
|
|
|
+ optionsCate: [], // 类别
|
|
|
+ selectedCateIds: []
|
|
|
}
|
|
|
},
|
|
|
activated () {
|
|
@@ -211,7 +215,7 @@ export default {
|
|
|
'current': this.pageIndex,
|
|
|
'size': this.pageSize,
|
|
|
'materialName': this.dataForm.materialName,
|
|
|
- 'materialTypeId': this.dataForm.materialTypeId ? this.dataForm.materialTypeId[0] : ''
|
|
|
+ 'materialTypeId': this.selectedCateIds ? this.selectedCateIds[this.selectedCateIds.length - 1] : ''
|
|
|
})
|
|
|
}).then(({data}) => {
|
|
|
if (data && data.code === '200') {
|