联调cvt系数页面与cvt绑定
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
<muentree
|
||||
@eleMenuData="getTreeText"
|
||||
@chushiData="chushiData"
|
||||
@ckeckData="ckeckData"
|
||||
:checkbox="checkbox"
|
||||
:number="number"
|
||||
:tablename="tablename"
|
||||
@@ -41,9 +40,8 @@
|
||||
当前位置:
|
||||
<span class="zt">{{ wezhiname }}</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<bindTab/>
|
||||
<bindTab :clickData="clickData" ref="bindTabRef" />
|
||||
</el-main>
|
||||
</el-container>
|
||||
</template>
|
||||
@@ -83,10 +81,10 @@ export default {
|
||||
view: true,
|
||||
dataTree: [],
|
||||
treenode: undefined,
|
||||
linelist: [],
|
||||
treedata: [],
|
||||
deptIndex: '',
|
||||
wezhiname: ''
|
||||
wezhiname: '',
|
||||
clickData: {}
|
||||
}
|
||||
},
|
||||
created() {},
|
||||
@@ -163,10 +161,11 @@ export default {
|
||||
chushiData(id, data) {
|
||||
this.id = id
|
||||
window.sessionStorage.setItem('fist', id)
|
||||
this.linelist.push(id)
|
||||
this.treedata = data
|
||||
this.wezhiname = data[0].name + '>' + data[0].children[0].name + '>' + data[0].children[0].children[0].name
|
||||
this.clickData = data[0].children[0].children[0]
|
||||
this.loading = false
|
||||
this.$refs.bindTabRef.queryBind( this.clickData.id)
|
||||
//alert(this.wezhiname)
|
||||
},
|
||||
//二次点击触发点击事件
|
||||
@@ -174,21 +173,15 @@ export default {
|
||||
if (treenode.data.level == 6) {
|
||||
this.menudata = menudata
|
||||
this.treenode = treenode
|
||||
this.clickData = treenode.data
|
||||
this.nodeCom = nodeCom
|
||||
this.id = id
|
||||
//this.wezhiname = name
|
||||
this.linelist = []
|
||||
this.linelist.push(id)
|
||||
this.$refs.bindTabRef.queryBind(this.clickData.id)
|
||||
} else {
|
||||
return
|
||||
}
|
||||
},
|
||||
|
||||
ckeckData(checkedarr) {
|
||||
this.linelist = []
|
||||
//this.linelist = checkedarr
|
||||
this.linelist = this.unique(checkedarr)
|
||||
},
|
||||
//去重
|
||||
unique(arr) {
|
||||
if (!Array.isArray(arr)) {
|
||||
|
||||
Reference in New Issue
Block a user