Commit a2163b05 authored by 高飞's avatar 高飞

修改信息ZP评审新增功能,左侧tree拖拽问题,头部展示一级标签

parent 2809615b
......@@ -9,10 +9,19 @@ export const HTTP_STATUS = { message: "服务请求失败", code: 9004 };
/**
* 邮件系统
*/
export const MAIL_ADDRESS = "http://6.1.22.93:8000";
export const MAIL_MANAGER_ADDRESS = "http://6.1.22.93:8010";
//移机前内网地址
// export const MAIL_ADDRESS = "http://6.1.22.93:8000";
// export const MAIL_MANAGER_ADDRESS = "http://6.1.22.93:8010";
// export const MAIL_DOMAIN = "zyyt.com"
//内网地址
export const MAIL_ADDRESS = "http://192.168.23.93:8000";
export const MAIL_MANAGER_ADDRESS = "http://192.168.23.93:8010";
export const MAIL_DOMAIN = "zyyt.com"
//开发环境地址
// export const MAIL_ADDRESS = "http://192.168.168.100:8000";
// export const MAIL_MANAGER_ADDRESS = "http://192.168.168.100:8010";
// export const MAIL_DOMAIN = "zyyt.com"
......
<template>
<div id="wjfx_fzjc">
<div style="width: 100%;float: left;">
<!-- <ul class="uls">
<ul class="uls">
<li @click="clickButtomTop()">文档列表> </li>
<li v-for="(item) in trees" @click="clickButtom(item)">{{ item.label + '>' }}</li>
</ul> -->
<!-- <ul class="uls uls1">
</ul>
<ul class="uls uls1">
<li v-for="(item) in treesChildren" @click="clickButtom(item)" :class="[expandedArr[0]==item.id?'active':'']">{{ item.label }}</li>
</ul> -->
</ul>
<!-- <div v-for="(item, index) in modules" style="width: 200px;float: left;">
<el-menu background-color="red" text-color="#fff" active-text-color="#010008">
<NavMenu :navMenus="item"></NavMenu>
......@@ -166,8 +166,10 @@ export default {
this.$refs.tree.setCurrentKey(4);
});
this.currentRole = "navs";
this.clientDetails = { type: 4 };
this.expandedArr = [4]
this.clientDetails = { type: [4] };
this.expandedArr = [4];
this.checkList = [];
this.$refs.tree.setCheckedKeys([]);
},
clickButtom(item) {
this.$nextTick(() => {
......@@ -175,7 +177,9 @@ export default {
});
// this.$refs.tree.setCurrentKey([item.id]);
this.currentRole = "navs";
this.clientDetails = { type: item.id };
this.clientDetails = { type: [item.id] };
this.checkList = [item];
this.$refs.tree.setCheckedKeys(this.checkList.map((item) => { return item.id }));
this.expandedArr = [item.id];
// let arr = this.getPathById(this.tree, item.id);
// if (arr != undefined) {
......
......@@ -345,7 +345,7 @@
v-model="option_value_rwmb_pl"
@change="fun_change"
placeholder="请选择对应模板"
style="maring-top=10px;"
style="margin-top:10px"
>
<el-option
v-for="item in option_rwmb_pl"
......
......@@ -54,7 +54,7 @@
</div>
</div>
<div class="right-div">
<component :is="currentRole" :clientDetails="clientDetails_s" :treeData="tree_data" ref="mychild" />
<component :is="currentRole" :clientDetails="clientDetails_s" :treeData="tree_data" :psxzTreeData="psxz_tree_data" ref="mychild" />
</div>
<el-dialog title="新增文件夹" :visible.sync="dialogVisible">
<span class="dialogContent"><span><span style="color:red">*</span>名称:</span>
......@@ -89,6 +89,7 @@ export default {
clientDetails_s: { type: [this.fl_type], module_name: this.module_name, type_folder: this.type_folder, fl_type: this.fl_type},
currentRole: "navs",
tree_data: [], //左侧树结构的数据
psxz_tree_data:[],//特殊结构--评审库
dialogVisible: false, //新增子节点弹出框
dialogVisible_edit: false,
name_edit: '',
......@@ -121,11 +122,18 @@ export default {
}
},
nodeDragEnd(sNode, eNode, position, evt){
console.log(eNode)
if(eNode == null || sNode.id == eNode.id){
return;
}
let str = ''
if(position=='inner'){//内部
str = "此操作永久将"+ sNode.data.label+ "及其下所有文件夹转移到" + eNode.data.label + "中, 是否继续?";
}else{
str = "此操作永久将"+ sNode.data.label+ "及其下所有文件夹转移到和" + eNode.data.label + "同级中, 是否继续?";
}
this.$confirm(
"此操作永久将"+ sNode.data.label+ "及其下所有文件夹到" + eNode.data.label + "中, 是否继续?",
str,
"提示",
{
confirmButtonText: "确定",
......@@ -135,8 +143,8 @@ export default {
).then(res=>{
return post("api/rest/3z/document/moveDocumentTreeItem", {
id: sNode.data.id, //当前节点
destCode: eNode.data.parentCode, //目标节点
level: eNode.data.level//目标节点id
destCode: position=='inner'?eNode.data.code:eNode.data.level==1?null:eNode.data.parentCode, //目标节点
level: position=='inner'?eNode.data.level+1:eNode.data.level//目标节点
});
}).then(res=>{
this.$message.success("转移成功");
......@@ -293,6 +301,8 @@ export default {
level: 0,
children: res
}];
this.psxz_tree_data = res.filter(item =>item.label=='评审库');
this.currentRole = "navs";
// let arr = [this.fl_type];
// if (res.length > 0) {
......
This diff is collapsed.
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