Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
9198b6e1
提交
9198b6e1
编写于
9月 10, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
excel的线上地址 归并树
上级
b605c3f2
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
40 行增加
和
28 行删除
+40
-28
env-config.js
src/utils/env-config.js
+1
-1
add-manager.vue
src/views/education/add-manager.vue
+39
-27
未找到文件。
src/utils/env-config.js
浏览文件 @
9198b6e1
...
@@ -109,6 +109,6 @@ export const envConfig = {
...
@@ -109,6 +109,6 @@ export const envConfig = {
workApiUrl
:
'https://work.yunqueyi.com/web'
,
workApiUrl
:
'https://work.yunqueyi.com/web'
,
workApiSrc
:
'https://work.yunqueyi.com'
,
workApiSrc
:
'https://work.yunqueyi.com'
,
reportUrl
:
'https://sc-report.yunqueyi.com/'
,
reportUrl
:
'https://sc-report.yunqueyi.com/'
,
excelUrl
:
'https://
test-
file.yunqueyi.com/File/template/portal/'
,
excelUrl
:
'https://file.yunqueyi.com/File/template/portal/'
,
}
}
}
}
src/views/education/add-manager.vue
浏览文件 @
9198b6e1
...
@@ -2024,19 +2024,25 @@ export default {
...
@@ -2024,19 +2024,25 @@ export default {
console.log(this.$refs.tree.getCheckedKeys());
console.log(this.$refs.tree.getCheckedKeys());
},
},
onChecked() {
onChecked() {
let cData = [],
// let cData = [],
oldData = (this.treeData.length && this.treeData.slice()) || [],
// oldData = (this.treeData.length && this.treeData.slice()) || [],
checkedKeys = this.$refs.tree.getCheckedKeys(),
// checkedKeys = this.$refs.tree.getCheckedKeys(),
halfCheckedKeys = this.$refs.tree.getHalfCheckedKeys(),
// halfCheckedKeys = this.$refs.tree.getHalfCheckedKeys(),
savedCheckedKeys = this.handlerCheckedData(oldData, checkedKeys).map(
// savedCheckedKeys = this.handlerCheckedData(oldData, checkedKeys).map(
key => {
// key => {
return { type: 1, key: key };
// return { type: 1, key: key };
}
// }
),
// ),
savedHalfCheckedKeys = halfCheckedKeys.map(key => {
// savedHalfCheckedKeys = halfCheckedKeys.map(key => {
return { type: 2, key: key };
// return { type: 2, key: key };
}),
// }),
allSelectedKeys = savedCheckedKeys.concat(savedHalfCheckedKeys);
// allSelectedKeys = savedCheckedKeys.concat(savedHalfCheckedKeys);
//重构归并树
let checkedTree = operationData.getSimpleCheckedNodes(this.$refs.tree.store);
let halfCheckedTree = this.$refs.tree.getHalfCheckedKeys()
let allSelectedKeys = operationData.setSelectedKeys(checkedTree,halfCheckedTree);
//重构内容
this.allSelectedKeys = allSelectedKeys;
this.allSelectedKeys = allSelectedKeys;
this.initCheckList(allSelectedKeys);
this.initCheckList(allSelectedKeys);
...
@@ -2046,20 +2052,26 @@ export default {
...
@@ -2046,20 +2052,26 @@ export default {
this.updatedTree = true;
this.updatedTree = true;
},
},
getTreeCheck() {
getTreeCheck() {
let cData = [],
// let cData = [],
oldData = (this.treeData.length && this.treeData.slice()) || [],
// oldData = (this.treeData.length && this.treeData.slice()) || [],
checkedKeys = this.$refs.tree.getCheckedKeys(),
// checkedKeys = this.$refs.tree.getCheckedKeys(),
halfCheckedKeys = this.$refs.tree.getHalfCheckedKeys(),
// halfCheckedKeys = this.$refs.tree.getHalfCheckedKeys(),
savedCheckedKeys = this.handlerCheckedData(oldData, checkedKeys).map(
// savedCheckedKeys = this.handlerCheckedData(oldData, checkedKeys).map(
key => {
// key => {
return { type: 1, key: key };
// return { type: 1, key: key };
}
// }
),
// ),
savedHalfCheckedKeys = halfCheckedKeys.map(key => {
// savedHalfCheckedKeys = halfCheckedKeys.map(key => {
return { type: 2, key: key };
// return { type: 2, key: key };
}),
// }),
allSelectedKeys = savedCheckedKeys.concat(savedHalfCheckedKeys);
// allSelectedKeys = savedCheckedKeys.concat(savedHalfCheckedKeys);
// console.log('allSelectedKeys值:',allSelectedKeys)
// // console.log('allSelectedKeys值:',allSelectedKeys)
//重构归并树
let checkedTree = operationData.getSimpleCheckedNodes(this.$refs.tree.store);
let halfCheckedTree = this.$refs.tree.getHalfCheckedKeys()
let allSelectedKeys = operationData.setSelectedKeys(checkedTree,halfCheckedTree);
//重构内容
return allSelectedKeys;
return allSelectedKeys;
},
},
// 递归删除列表中所有子节点
// 递归删除列表中所有子节点
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录