|
@@ -13,12 +13,12 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="地域分类:">
|
|
|
<el-select v-model="form.addressClassifyId" placeholder="请选择地域分类" clearable>
|
|
|
- <el-option v-for="item in addressOptions" :key="item.id" :value="item.id" :label="item.name" />
|
|
|
+ <el-option v-for="item in addressOptions" :key="item.value" :value="item.value" :label="item.label" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="内容分类:">
|
|
|
<el-select v-model="form.contentClassifyId" placeholder="请选择内容分类" clearable>
|
|
|
- <el-option v-for="item in contentOptions" :key="item.id" :value="item.id" :label="item.name" />
|
|
|
+ <el-option v-for="item in contentOptions" :key="item.value" :value="item.value" :label="item.label" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="当前状态:">
|
|
@@ -192,11 +192,11 @@ export default {
|
|
|
},
|
|
|
|
|
|
addressFormatter(row) {
|
|
|
- return row.addressClassifyId ? this.addressOptions.find(i => i.id === row.addressClassifyId).name : '/'
|
|
|
+ return this.selectDictLabel(this.addressOptions, row.addressClassifyId)
|
|
|
},
|
|
|
|
|
|
contentFormatter(row) {
|
|
|
- return row.contentClassifyId ? this.contentOptions.find(i => i.id === row.contentClassifyId).name : '/'
|
|
|
+ return this.selectDictLabel(this.contentOptions, row.contentClassifyId)
|
|
|
}
|
|
|
},
|
|
|
}
|