Commit 48c15c81 authored by 黄奎's avatar 黄奎

页面修改

parent 12d8246d
<template>
<q-card style="width: 360px;">
<q-input ref="selectTree" standout="bg-primary text-white" v-model="showMsg" :label="tipText"
@click.native="isShowSelect = !isShowSelect" />
@click.native="isShowSelect = !isShowSelect" />
<q-tree v-if="isShowSelect"
style="width:100%;height:250px;overflow-y: scroll;position:absolute;z-index:99999;background:#fff;border:1px solid rgba(0, 0, 0, 0.12);"
:nodes="treeData" :node-key="nodeKey" :label-key="labelKey" :children-key="childrenKey" tick-strategy="strict"
......@@ -128,6 +128,7 @@
this.showMsg = tempStr.substring(1, tempStr.length);
}
}
that.$emit('getChild', this.resultObj);
},
//获取所有节点
findTreeNode(tree) {
......
......@@ -9,7 +9,7 @@
<div class="col-3">
<select-tree v-if="TreeCategoryList&&TreeCategoryList.length>0" :treeData='TreeCategoryList'
:id.sync="returnString" nodeKey="CateId" :multiple="true" labelKey="CateName" childrenKey="ChildList"
tipText="课程分类"></select-tree>
tipText="课程分类" @getChild="getChild"></select-tree>
</div>
<div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.Status" :options="ShowOpts"
......@@ -168,6 +168,9 @@
this.getcourselist();
},
methods: {
getChild(obj) {
console.log("obj", obj);
},
getCategorytree() {
this.TreeCategoryList = [];
var qMsg = {}
......
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