Skip to content

Commit

Permalink
fix: 修复表格设计器高级查询字典配置bug,版本升级至0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Jan 12, 2021
1 parent e65dd3d commit 6df89f3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-pro-crud",
"version": "0.8.2",
"version": "0.8.3",
"main": "lib/ProCrud.umd.min.js",
"files": [
"lib",
Expand Down
15 changes: 0 additions & 15 deletions src/component/table-designer/src/SelectConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@
<el-radio-button label="custom">自定义</el-radio-button>
</el-radio-group>
</div>
<div class="bar">
<h2>查询条件使用</h2>
<el-radio-group v-model="localOption.selectBy"
size="mini"
style="margin: 3px 0 0 0;">
<el-radio-button label="value">value</el-radio-button>
<el-radio-button label="label">label</el-radio-button>
</el-radio-group>
</div>
<template v-if="localOption.remote=='dict'">
<el-select v-model="localOption.dictType"
placeholder="字典类型"
Expand All @@ -33,8 +24,6 @@
:key="item.value"
:label="item.label"
:value="item.value">
<span style="float: left">{{ item.label }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.value }}</span>
</el-option>
</el-select>
</template>
Expand Down Expand Up @@ -126,10 +115,6 @@ export default {
created() {
// 把外部option同步到组件内部
this.localOption = this.sourceOption;
// 表单设计中没有根据什么查询的选项
if (this.localOption.selectBy == null) {
this.$set(this.localOption, 'selectBy', 'label');
}
},
methods: {
// 添加下拉列表固定选项
Expand Down
2 changes: 1 addition & 1 deletion src/demo/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default {
crud(DML.SELECT, 'ad_codelist_type').then((res) => {
this.dictList = res.data.list.map(item => ({
label: item.typeName,
value: item.codeValue,
value: item.id,
}));
});
},
Expand Down

0 comments on commit 6df89f3

Please sign in to comment.