Commit 1b718964 authored by 康振飞's avatar 康振飞

订单报价productree--OK

parent 3f96b035
<template>
<Layout class="quotation">
<!-- 左侧树 -->
<Sider hide-trigger :style="{background: '#fff'}" width="260">
<!-- <Sider hide-trigger :style="{background: '#fff'}" width="260">
<Tree-Type @func="getMsgFormSon" :style="{ height: treeHeight + 'px' }"></Tree-Type>
</Sider>
<!-- <Sider hide-trigger v-if="showMenu" class="menu_side" width="300">
</Sider> -->
<Sider hide-trigger v-if="showMenu" class="menu_side" width="300">
<ProductTree @on-hide="onHide" @on-select="productSearch" />
</Sider>
<div v-if="!showMenu" class="show_menu">
<a class="menu_play fr" @click="showMenuFn" title="展开">
<Icon type="ios-arrow-forward" size="24" />
</a>
</div> -->
</div>
<!-- 右侧内容 -->
<Content class="content" :class="!showMenu?'con_bord':''">
<Tabs v-model="selectName" @on-click="handleClick">
......@@ -397,9 +397,8 @@ export default {
this.showMenu = true;
},
productSearch(id, item, ids) {
console.log(item)
// this.productId = data.join(",");
// this.tableTata(this.selectName);
// console.log(item)
this.getMsgFormSon(ids)
// let where = { productId: { op: "In", value: ids } };
// this.$refs.grid.reload(where);
},
......@@ -407,7 +406,7 @@ export default {
this.tableTata(this.selectName);
},
getMsgFormSon(data) {
console.log(data)
// console.log(data)
this.productId = data.join(",");
this.tableTata(this.selectName);
},
......
......@@ -2,7 +2,8 @@
<Layout class="lay100">
<!-- <div> -->
<!-- 左侧树 -->
<div class="zh-tree" :style="{height:treeHeight+'px'}">
<Sider hide-trigger v-if="showMenu" class="menu_side" width="300">
<!-- <div class="zh-tree" :style="{height:treeHeight+'px'}"> -->
<h3 class="zh-title">产品结构</h3>
<div class="zh-box">
<Input search placeholder="请输入查询条件" v-model="treeInputSearch" />
......@@ -14,15 +15,16 @@
@on-select-change="selectTreeNode"
></Tree>
</div>
</div>
<!-- <Sider hide-trigger v-if="showMenu" class="menu_side" width="300">
</Sider>
<!-- </div> -->
<Sider hide-trigger v-if="showMenu" class="menu_side" width="300">
<ProductTree @on-hide="onHide" @on-select="productSearch" />
</Sider>
<div v-if="!showMenu" class="show_menu">
<a class="menu_play fr" @click="showMenuFn" title="展开">
<Icon type="ios-arrow-forward" size="24" />
</a>
</div> -->
</div>
<!-- 右侧内容 -->
<Content class="con" :class="!showMenu?'con_bord':''">
<div class="title_box">
......@@ -707,7 +709,7 @@ export default {
};
},
computed: {
searchList() {
searchList() {//产品树左侧
let nodeList = this.treeData;
var text = this.treeInputSearch;
var newNodeList = [];
......@@ -736,7 +738,9 @@ export default {
this.showMenu = true;
},
productSearch(id, item, ids) {
console.log(id)
console.log(item)
console.log(ids)
// this.productId = data.join(",");
// this.tableTata(this.selectName);
// let where = { productId: { op: "In", value: ids } };
......
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