Commit 6b830e02 by 姜雷

修改导入上限

parent c92ec923
......@@ -4,8 +4,8 @@
v-model="value"
:list="list"
:mapProps="{
key: 'areaId',
label:'areaName'
key: 'areaName',
label:'areaId'
}"
>
<template
......@@ -34,17 +34,17 @@ export default {
methods: {
getData() {
this.list = [
{ areaId: 22, areaName: '' },
{ areaId: 23, areaName: '新疆昌吉职业技术学院' },
{ areaId: 24, areaName: '沈阳药科大学溪湖校区' },
{ areaId: 25, areaName: '山东大学兴隆山校区' },
{ areaId: 26, areaName: '山东师范大学长清湖校区' },
{ areaId: 27, areaName: '山东交通学院长清校区' },
{ areaId: 29, areaName: '上海滢致校区' },
{ areaId: 35, areaName: '沈阳职业技术学院' },
{ areaId: 36, areaName: '嘉兴南洋职业技术学院浙江校区' },
{ areaId: 56, areaName: '长安区教育局' },
{ areaId: 15, areaName: '多彩温江校区' },
{ areaId: "22", areaName: '' },
{ areaId: "23", areaName: '新疆昌吉职业技术学院' },
{ areaId: "24", areaName: '沈阳药科大学溪湖校区' },
{ areaId: "25", areaName: '山东大学兴隆山校区' },
{ areaId: "26", areaName: '山东师范大学长清湖校区' },
{ areaId: "27", areaName: '山东交通学院长清校区' },
{ areaId: null, areaName: '上海滢致校区' },
{ areaId: "35", areaName: '沈阳职业技术学院' },
{ areaId: "36", areaName: '嘉兴南洋职业技术学院浙江校区' },
{ areaId: "56", areaName: '长安区教育局' },
{ areaId: "15", areaName: '多彩温江校区' },
];
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",
"version": "0.1.77",
"version": "0.1.78",
"description": "任意门组件库",
"main": "lib/rymUi.common.js",
"scripts": {
......
......@@ -156,7 +156,6 @@
<el-input
type="textarea"
v-model="importData"
:maxlength="200"
:autosize="{ minRows: 5, maxRows: 10}"
resize="none"
placeholder="请粘贴数据"
......@@ -220,7 +219,9 @@ export default {
.filter(i => !this.trueValue.includes(i[this.mapProps.key]))
.filter(i =>
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
);
return list;
......@@ -230,7 +231,9 @@ export default {
.filter(i => this.trueValue.includes(i[this.mapProps.key]))
.filter(i =>
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
);
},
......
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