Commit 6b830e02 by 姜雷

修改导入上限

parent c92ec923
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
v-model="value" v-model="value"
:list="list" :list="list"
:mapProps="{ :mapProps="{
key: 'areaId', key: 'areaName',
label:'areaName' label:'areaId'
}" }"
> >
<template <template
...@@ -34,17 +34,17 @@ export default { ...@@ -34,17 +34,17 @@ export default {
methods: { methods: {
getData() { getData() {
this.list = [ this.list = [
{ areaId: 22, areaName: '' }, { areaId: "22", areaName: '' },
{ areaId: 23, areaName: '新疆昌吉职业技术学院' }, { areaId: "23", areaName: '新疆昌吉职业技术学院' },
{ areaId: 24, areaName: '沈阳药科大学溪湖校区' }, { areaId: "24", areaName: '沈阳药科大学溪湖校区' },
{ areaId: 25, areaName: '山东大学兴隆山校区' }, { areaId: "25", areaName: '山东大学兴隆山校区' },
{ areaId: 26, areaName: '山东师范大学长清湖校区' }, { areaId: "26", areaName: '山东师范大学长清湖校区' },
{ areaId: 27, areaName: '山东交通学院长清校区' }, { areaId: "27", areaName: '山东交通学院长清校区' },
{ areaId: 29, areaName: '上海滢致校区' }, { areaId: null, areaName: '上海滢致校区' },
{ areaId: 35, areaName: '沈阳职业技术学院' }, { areaId: "35", areaName: '沈阳职业技术学院' },
{ areaId: 36, areaName: '嘉兴南洋职业技术学院浙江校区' }, { areaId: "36", areaName: '嘉兴南洋职业技术学院浙江校区' },
{ areaId: 56, areaName: '长安区教育局' }, { areaId: "56", areaName: '长安区教育局' },
{ areaId: 15, areaName: '多彩温江校区' }, { areaId: "15", areaName: '多彩温江校区' },
]; ];
this.value = []; this.value = [];
}, },
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"name": "rym-element-ui", "name": "rym-element-ui",
"version": "0.1.77", "version": "0.1.78",
"description": "任意门组件库", "description": "任意门组件库",
"main": "lib/rymUi.common.js", "main": "lib/rymUi.common.js",
"scripts": { "scripts": {
......
...@@ -156,7 +156,6 @@ ...@@ -156,7 +156,6 @@
<el-input <el-input
type="textarea" type="textarea"
v-model="importData" v-model="importData"
:maxlength="200"
:autosize="{ minRows: 5, maxRows: 10}" :autosize="{ minRows: 5, maxRows: 10}"
resize="none" resize="none"
placeholder="请粘贴数据" placeholder="请粘贴数据"
...@@ -220,7 +219,9 @@ export default { ...@@ -220,7 +219,9 @@ export default {
.filter(i => !this.trueValue.includes(i[this.mapProps.key])) .filter(i => !this.trueValue.includes(i[this.mapProps.key]))
.filter(i => .filter(i =>
this.filters.allValue this.filters.allValue
? i[this.mapProps.label].includes(this.filters.allValue) ? i[this.mapProps.label]
? i[this.mapProps.label].includes(this.filters.allValue)
: false
: true : true
); );
return list; return list;
...@@ -230,7 +231,9 @@ export default { ...@@ -230,7 +231,9 @@ export default {
.filter(i => this.trueValue.includes(i[this.mapProps.key])) .filter(i => this.trueValue.includes(i[this.mapProps.key]))
.filter(i => .filter(i =>
this.filters.selectedValue this.filters.selectedValue
? i[this.mapProps.label].includes(this.filters.selectedValue) ? i[this.mapProps.label]
? i[this.mapProps.label].includes(this.filters.selectedValue)
: false
: true : true
); );
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment