Commit c1d8a800 by LJM

bug

parent 18b2b3c8
......@@ -350,3 +350,7 @@ body {
::-webkit-scrollbar-thumb:hover {
background-color: #a8a8a8
}
.el-cascader-menu__list {
max-height: 500px !important;
}
\ No newline at end of file
......@@ -203,6 +203,7 @@ body {
}
.pagex {
padding: 20px;
min-height: 500px;
}
.zdypop .el-form-item__label {
color: #333;
......@@ -337,4 +338,7 @@ body {
::-webkit-scrollbar-thumb:hover {
background-color: #a8a8a8;
}
.el-cascader-menu__list {
max-height: 500px !important;
}
/*# sourceMappingURL=common.min.css.map */
\ No newline at end of file
{"version":3,"sources":["common.less"],"names":[],"mappings":"AAAA;EACE,8BAAA;EACA,0BAAA;;AAGF,IAAK;EACH,UAAA;EACA,yCAAA;EACA,6CAAA;;AAGF;AAAM;EACJ,8CAA8C,6BAA9C;EACA,kBAAA;EACA,mCAAA;EACA,kCAAA;EACA,eAAA;EACA,cAAA;;AAGF;AAAM;AAAK;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAK;AAAM;AAAM;AAAU;AAAQ;AAAO;AAAU;AAAG;AAAY;AAAI;AAAI;AAAI;AAAQ;AAAS;AAAO;AAAS;AAAY;AAAQ;AAAQ;AAAQ;AAAM;AAAK;EACxN,SAAA;EACA,UAAA;;AAGF;AAAQ;AAAO;AAAQ;EACrB,eAAA;EACA,YAAA;EACA,wBAAA;;AAGF,KAAK;AAAe,KAAK;AAAa,KAAK;EACzC,eAAA;;AAGF;EACE,yBAAA;EACA,iBAAA;;AAGF;AAAI;AAAI;EACN,gBAAA;;AAGF;AAAI;AAAI;AAAI;AAAI;AAAI;EAClB,eAAA;EACA,gBAAA;;AAGF;AAAI;AAAG;EACL,kBAAA;;AAGF;EACE,qBAAA;;AAGF;EACE,YAAA;;AAGF;EACE,QAAA;EACA,WAAA;;AAGF,IAAI;EACF,SAAS,GAAT;EACA,WAAA;EACA,SAAA;EACA,kBAAA;EACA,cAAA;;AAGF;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A,kBAAA;EACA,iBAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;EACA,cAAA;EACA,eAAA;EACA,YAAA;;AAEA,qBAZF,WAYG;AAAD,cAZF,WAYG;AAAQ,qBAZX,WAYY;AAAD,cAZX,WAYY;EACR,cAAA;EACA,mBAAA;EACA,yBAAA;;AAGF,qBAlBF,WAkBG;AAAD,cAlBF,WAkBG;EACC,yBAAA;EACA,WAAA;EACA,mBAAA;;AAEA,qBAvBJ,WAkBG,mBAKE;AAAD,cAvBJ,WAkBG,mBAKE;AAAQ,qBAvBb,WAkBG,mBAKW;AAAD,cAvBb,WAkBG,mBAKW;EACR,WAAA;EACA,mBAAA;EACA,yBAAA;;AAMR;EACE,kBAAA;;AADF,OAGE;EACE,WAAA;EACA,gBAAA;;AALJ,OAQE;EACE,YAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,eAAA;EACA,cAAA;EACA,iBAAA;EACA,gBAAA;EACA,gBAAA;;AAIJ,iBACE;EACE,UAAA;;AAIJ;EACE,iBAAA;EACA,yBAAA;EACA,kBAAA;EACA,8BAAA;EACA,cAAA;;AALF,UAOE;EACE,eAAA;EACA,cAAA;EACA,kBAAA;;AAIJ;EACE,WAAA;EACA,YAAA;EACA,uBAAA;;AAGF;EACE,uBAAA;;AAGF;EACE,kBAAA;EACA,yBAAA;;AAGF,yBAAyB;EACvB,yBAAA","file":"common.min.css"}
\ No newline at end of file
{"version":3,"sources":["common.less"],"names":[],"mappings":"AAAA;EACI,8BAAA;EACA,0BAAA;;AAGJ,IAAK;EACD,UAAA;EACA,yCAAA;EACA,6CAAA;;AAGJ;AAAM;EACF,8CAA8C,6BAA9C;EACA,kBAAA;EACA,mCAAA;EACA,kCAAA;EACA,eAAA;EACA,cAAA;;AAGJ;AAAM;AAAK;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAK;AAAM;AAAM;AAAU;AAAQ;AAAO;AAAU;A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,iBAAA;EACA,yBAAA;EACA,kBAAA;EACA,8BAAA;EACA,cAAA;;AALJ,UAOI;EACI,eAAA;EACA,cAAA;EACA,kBAAA;;AAIR;EACI,WAAA;EACA,YAAA;EACA,uBAAA;;AAGJ;EACI,uBAAA;;AAGJ;EACI,kBAAA;EACA,yBAAA;;AAGJ,yBAAyB;EACrB,yBAAA;;AAGJ;EACI,4BAAA","file":"common.min.css"}
\ No newline at end of file
......@@ -86,8 +86,7 @@
<script>
import Vue from 'vue';
import Menu from "@/components/menu.vue";
import Tool from '../../tool'
import {Form, FormItem, Select, Option, Input, Button, Table, TableColumn, Message, Dialog, Pagination, Autocomplete, Cascader} from 'element-ui'
import {Autocomplete, Button, Cascader, Dialog, Form, FormItem, Input, Message, Option, Pagination, Select, Table, TableColumn} from 'element-ui'
Vue.prototype.$message = Message
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination)
......@@ -115,7 +114,7 @@ export default {
multipleSelection: [],
options: [],
selectedOptions: []
};
}
},
created() {
this.getData();
......@@ -125,22 +124,26 @@ export default {
getClass() {
this.$http('get', "/api/class/get_class_list", {}).then(res => {
if (res.code === 0) {
var arr_ = res.data.list || []
for (var i = 0; i < arr_.length; i++) {
var children_arr = []
var arr_2 = arr_[i].sub_class || []
for (var o = 0; o < arr_2.length; o++) {
children_arr.push({
value: arr_[i].class_id,
label: arr_[i].class_name
var data = res.data.list || [];
if (data.length > 0) {
for (let i = 0; i < data.length; i++) {
var children = []
let children_arr = data[i].sub_class || [];
if (children_arr.length > 0) {
for (let j = 0; j < children_arr.length; j++) {
children.push({
value: children_arr[j].class_id,
label: children_arr[j].class_name
})
}
}
this.options.push({
value: arr_[i].class_id,
label: arr_[i].class_name,
children: children_arr
value: parseInt(data[i].class_id),
label: data[i].class_name,
children: children
})
}
}
} else {
this.$message({
message: res.msg,
......
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 sign in to comment