|
@@ -4,7 +4,7 @@
|
|
style="height:100%;"
|
|
style="height:100%;"
|
|
>
|
|
>
|
|
<el-row class="h-100p">
|
|
<el-row class="h-100p">
|
|
- <el-col :span="12" class=" h-100p">
|
|
|
|
|
|
+ <el-col :span="24" class=" h-100p">
|
|
<div class="h-100p flex flex-d-c ov-hidden">
|
|
<div class="h-100p flex flex-d-c ov-hidden">
|
|
<el-tabs v-model="activeName" @tab-click="handleClick" >
|
|
<el-tabs v-model="activeName" @tab-click="handleClick" >
|
|
<el-tab-pane label="竣工档案目录" name="first" >
|
|
<el-tab-pane label="竣工档案目录" name="first" >
|
|
@@ -42,13 +42,10 @@
|
|
|
|
|
|
>
|
|
>
|
|
<!-- <span style="text-overflow: ellipsis;width:101%;">{{ data.title }}</span> -->
|
|
<!-- <span style="text-overflow: ellipsis;width:101%;">{{ data.title }}</span> -->
|
|
- <span v-if="data.title&&data.title.length<=30">{{data.title | ellipsis}}</span>
|
|
|
|
-
|
|
|
|
- <el-tooltip v-if="data.title&&data.title.length>30" :content="data.title" raw-content placement="top-start" effect="light">
|
|
|
|
- <span v-if="data.title &&data.title.length <=30">{{ data.title }}</span>
|
|
|
|
- <span v-if="data.title && data.title.length > 30"> {{data.title | ellipsis}}</span>
|
|
|
|
- </el-tooltip>
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
+
|
|
|
|
+ {{ data.title }}
|
|
<span
|
|
<span
|
|
class="marleft10"
|
|
class="marleft10"
|
|
v-show="data.moreShow"
|
|
v-show="data.moreShow"
|
|
@@ -105,12 +102,7 @@
|
|
|
|
|
|
>
|
|
>
|
|
<!-- <span style="text-overflow: ellipsis;width:101%;">{{ data.title }}</span> -->
|
|
<!-- <span style="text-overflow: ellipsis;width:101%;">{{ data.title }}</span> -->
|
|
- <span v-if="data.title&&data.title.length<=30">{{data.title | ellipsis}}</span>
|
|
|
|
-
|
|
|
|
- <el-tooltip v-if="data.title&&data.title.length>30" :content="data.title" raw-content placement="top-start" effect="light">
|
|
|
|
- <span v-if="data.title &&data.title.length <=30">{{ data.title }}</span>
|
|
|
|
- <span v-if="data.title && data.title.length > 30"> {{data.title | ellipsis}}</span>
|
|
|
|
- </el-tooltip>
|
|
|
|
|
|
+ {{ data.title }}
|
|
|
|
|
|
<span
|
|
<span
|
|
class="marleft10"
|
|
class="marleft10"
|
|
@@ -152,112 +144,7 @@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" class="h-100p">
|
|
|
|
- <basic-container class=" h-100p ">
|
|
|
|
- <div class="peizhi h-100p ov-hidden" v-loading="rightTreeLoading">
|
|
|
|
- <el-tabs v-model="activetabName" @tab-click="handletabClick">
|
|
|
|
- <el-tab-pane label="立卷规则" name="second">
|
|
|
|
- <el-row style="margin-bottom:15px">
|
|
|
|
- <el-button type="primary" plain @click="setHigh">设置为最高并卷层级</el-button>
|
|
|
|
- <el-button type="primary" plain @click="setType">设置为分类卷并卷</el-button>
|
|
|
|
- <el-button type="primary" plain @click="setAlone">设置为独立组卷</el-button>
|
|
|
|
- </el-row>
|
|
|
|
- <div style="display: flex;justify-content: space-between;">
|
|
|
|
- <el-select v-model="publictreevalue" clearable placeholder="请选择公有质检化分树" @change="treeIdChange" style=" margin-bottom:15px; width:45%;">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in publictreeoptions"
|
|
|
|
- :key="item.id"
|
|
|
|
- :label="item.wbsName"
|
|
|
|
- :value="item.id">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- <el-select v-model="testtreevalue" clearable placeholder="请选择公有试验化分树" @change="treeIdChange" style=" width: 45%;">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in testtreeoptions"
|
|
|
|
- :key="item.id"
|
|
|
|
- :label="item.wbsName"
|
|
|
|
- :value="item.id">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </div>
|
|
|
|
- </el-tab-pane>
|
|
|
|
- <el-tab-pane label="工程文件入口配置" name="first"></el-tab-pane>
|
|
|
|
- </el-tabs>
|
|
|
|
-
|
|
|
|
- <div class="scrollClass " v-if="activetabName==='second'" style="height:100%">
|
|
|
|
- <el-scrollbar style="height:80%">
|
|
|
|
- <el-tree
|
|
|
|
- :props="Rightprops"
|
|
|
|
- :data="rightData"
|
|
|
|
- node-key="id"
|
|
|
|
- ref="settree"
|
|
|
|
- class="filter-tree"
|
|
|
|
- show-checkbox :check-strictly="true"
|
|
|
|
- @check="handleCheckChange"
|
|
|
|
- :default-expanded-keys="defaultExpandedKeys1"
|
|
|
|
- :current-node-key="curreenttid1"
|
|
|
|
- >
|
|
|
|
- <div class="custom-tree-node" slot-scope="{ node, data }" @mouseover="mouseOver(data)" style="flex: 1;width: 100%;justify-content: flex-start;"
|
|
|
|
- @mouseleave="mouseLeave(data)">
|
|
|
|
- <!-- <span>{{ node.label }}</span> -->
|
|
|
|
- <span v-if="node.label&&node.label.length<=25">{{node.label | ellipsis1}}</span>
|
|
|
|
-
|
|
|
|
- <el-tooltip v-if="node.label&&node.label.length>25" :content="node.label" raw-content placement="top-start" effect="light">
|
|
|
|
- <span v-if="node.label &&node.label.length <=25">{{node.label}}</span>
|
|
|
|
- <span v-if="node.label && node.label.length > 25"> {{node.label | ellipsis1}}</span>
|
|
|
|
- </el-tooltip>
|
|
|
|
- <span class="marleft10"
|
|
|
|
- v-show="data.moreShow">
|
|
|
|
- <div class="config_type" v-if="data.archiveAutoType == 1&&data.archiveAutoGroupSelect == 1">最</div>
|
|
|
|
- <div class="config_type" v-if="data.archiveAutoType == 2&&data.archiveAutoGroupSelect == 1">分</div>
|
|
|
|
- <div class="config_type" v-if="data.archiveAutoType == 3&&data.archiveAutoGroupSelect == 1">独</div>
|
|
|
|
- <el-button
|
|
|
|
- type="text"
|
|
|
|
- size="mini"
|
|
|
|
- @click.stop="() => viewConfig(data,node)">
|
|
|
|
- 查看配置
|
|
|
|
- </el-button>
|
|
|
|
- <el-link @click.stop="removeArchive(data)" type="danger" :underline="false" class="marleft10"><i class="el-icon-delete"></i></el-link>
|
|
|
|
- </span>
|
|
|
|
- </div>
|
|
|
|
- </el-tree>
|
|
|
|
- </el-scrollbar>
|
|
|
|
- </div>
|
|
|
|
- <div class="flexEnd" v-if="isentryTree&&activetabName==='first'">
|
|
|
|
- <i
|
|
|
|
- @click="rightPushTree"
|
|
|
|
- class="el-icon-plus"
|
|
|
|
- style="backgroundColor:#2A97DF;color:#fff;fontSize:20px;cursor: pointer;"
|
|
|
|
- ></i>
|
|
|
|
- </div>
|
|
|
|
- <div class="scrollClass " v-if="isentryTree&&activetabName==='first'" style="height:100%">
|
|
|
|
- <el-scrollbar style="height:80%">
|
|
|
|
- <el-tree
|
|
|
|
- :props="Rightprops"
|
|
|
|
- :data="rightData"
|
|
|
|
- node-key="id"
|
|
|
|
- ref="tree"
|
|
|
|
- class="filter-tree"
|
|
|
|
-
|
|
|
|
- >
|
|
|
|
- <div class="custom-tree-node" slot-scope="{ node, data }" @mouseover="mouseOver(data)"
|
|
|
|
- @mouseleave="mouseLeave(data)">
|
|
|
|
- <!-- <span>{{ node.label }}</span> -->
|
|
|
|
- <span v-if="node.label&&node.label.length<=25">{{node.label | ellipsis1}}</span>
|
|
|
|
-
|
|
|
|
- <el-tooltip v-if="node.label&&node.label.length>25" :content="node.label" raw-content placement="top-start" effect="light">
|
|
|
|
- <span v-if="node.label &&node.label.length <=25">{{node.label}}</span>
|
|
|
|
- <span v-if="node.label && node.label.length > 25"> {{node.label | ellipsis1}}</span>
|
|
|
|
- </el-tooltip>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
- </el-tree>
|
|
|
|
- </el-scrollbar>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </basic-container>
|
|
|
|
-
|
|
|
|
- </el-col>
|
|
|
|
|
|
+
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
@@ -766,7 +653,7 @@ export default {
|
|
storageType:'',//储存类型
|
|
storageType:'',//储存类型
|
|
expDataType:[],//文件类型
|
|
expDataType:[],//文件类型
|
|
archiveAutoType:1,//并卷规则
|
|
archiveAutoType:1,//并卷规则
|
|
- storageTime:'3',//保管期限
|
|
|
|
|
|
+ storageTime:'',//保管期限
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
nodeName: [{ required: true, message: '请输入节点名称', trigger: 'blur' }],
|
|
nodeName: [{ required: true, message: '请输入节点名称', trigger: 'blur' }],
|
|
@@ -1307,6 +1194,8 @@ export default {
|
|
this.defaultExpanded = [data.id]
|
|
this.defaultExpanded = [data.id]
|
|
}
|
|
}
|
|
this.form.archiveAutoType=1
|
|
this.form.archiveAutoType=1
|
|
|
|
+ this.form.storageTime='3'
|
|
|
|
+
|
|
this.treeTap = true
|
|
this.treeTap = true
|
|
},
|
|
},
|
|
async edittree (data,node) {//编辑树
|
|
async edittree (data,node) {//编辑树
|
|
@@ -1339,7 +1228,9 @@ export default {
|
|
console.log(1111111);
|
|
console.log(1111111);
|
|
this.remove(node.id).then(()=>{
|
|
this.remove(node.id).then(()=>{
|
|
_that.$refs.trees1.remove(node) //删除界面上的节点
|
|
_that.$refs.trees1.remove(node) //删除界面上的节点
|
|
|
|
+ if(this.filterText){
|
|
this.archiveTreetree4()//全加载左侧树
|
|
this.archiveTreetree4()//全加载左侧树
|
|
|
|
+ }
|
|
}).catch(()=>{
|
|
}).catch(()=>{
|
|
|
|
|
|
})
|
|
})
|
|
@@ -1378,6 +1269,8 @@ export default {
|
|
|
|
|
|
this.form.projectType = res.data.projectType //工程类型
|
|
this.form.projectType = res.data.projectType //工程类型
|
|
this.form.storageType = res.data.storageType //储存类型
|
|
this.form.storageType = res.data.storageType //储存类型
|
|
|
|
+ this.form.archiveAutoType = res.data.archiveAutoType //最高1 分类2 独立3
|
|
|
|
+ this.form.storageTime = res.data.storageTime
|
|
|
|
|
|
if(res.data.expDataType){
|
|
if(res.data.expDataType){
|
|
this.form.expDataType = res.data.expDataType.split(',') //文件类型
|
|
this.form.expDataType = res.data.expDataType.split(',') //文件类型
|
|
@@ -1490,6 +1383,8 @@ export default {
|
|
|
|
|
|
projectType:this.form.projectType, //工程类型
|
|
projectType:this.form.projectType, //工程类型
|
|
storageType:this.form.storageType, //储存类型
|
|
storageType:this.form.storageType, //储存类型
|
|
|
|
+ archiveAutoType:this.form.archiveAutoType,//并卷规则
|
|
|
|
+ storageTime:this.form.storageTime,//存储时间
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
this.baocun({
|
|
this.baocun({
|
|
@@ -1504,6 +1399,8 @@ export default {
|
|
|
|
|
|
projectType:this.form.projectType, //工程类型
|
|
projectType:this.form.projectType, //工程类型
|
|
storageType:this.form.storageType, //储存类型
|
|
storageType:this.form.storageType, //储存类型
|
|
|
|
+ archiveAutoType:this.form.archiveAutoType,//并卷规则
|
|
|
|
+ storageTime:this.form.storageTime,//存储时间
|
|
})
|
|
})
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -1516,6 +1413,8 @@ export default {
|
|
isStorageNode: this.form.isStorageNode, //是否为存储节点
|
|
isStorageNode: this.form.isStorageNode, //是否为存储节点
|
|
|
|
|
|
projectType:this.form.projectType, //工程类型
|
|
projectType:this.form.projectType, //工程类型
|
|
|
|
+ archiveAutoType:this.form.archiveAutoType,//并卷规则
|
|
|
|
+ storageTime:this.form.storageTime,//存储时间
|
|
})
|
|
})
|
|
}
|
|
}
|
|
} else if (this.form.nodeType == 1) {
|
|
} else if (this.form.nodeType == 1) {
|
|
@@ -1532,6 +1431,8 @@ export default {
|
|
|
|
|
|
projectType:this.form.projectType, //工程类型
|
|
projectType:this.form.projectType, //工程类型
|
|
storageType:this.form.storageType, //储存类型
|
|
storageType:this.form.storageType, //储存类型
|
|
|
|
+ archiveAutoType:this.form.archiveAutoType,//并卷规则
|
|
|
|
+ storageTime:this.form.storageTime,//存储时间
|
|
})
|
|
})
|
|
}else if(this.form.associationType == 2){
|
|
}else if(this.form.associationType == 2){
|
|
//试验资料
|
|
//试验资料
|
|
@@ -1546,6 +1447,8 @@ export default {
|
|
expDataType:this.form.expDataType.join(','),//文件类型
|
|
expDataType:this.form.expDataType.join(','),//文件类型
|
|
projectType:this.form.projectType, //工程类型
|
|
projectType:this.form.projectType, //工程类型
|
|
storageType:this.form.storageType, //储存类型
|
|
storageType:this.form.storageType, //储存类型
|
|
|
|
+ archiveAutoType:this.form.archiveAutoType,//并卷规则
|
|
|
|
+ storageTime:this.form.storageTime,//存储时间
|
|
})
|
|
})
|
|
}else {
|
|
}else {
|
|
this.baocun({
|
|
this.baocun({
|
|
@@ -1558,6 +1461,8 @@ export default {
|
|
|
|
|
|
projectType:this.form.projectType, //工程类型
|
|
projectType:this.form.projectType, //工程类型
|
|
storageType:this.form.storageType, //储存类型
|
|
storageType:this.form.storageType, //储存类型
|
|
|
|
+ archiveAutoType:this.form.archiveAutoType,//并卷规则
|
|
|
|
+ storageTime:this.form.storageTime,//存储时间
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1907,20 +1812,8 @@ export default {
|
|
this.heights = this.$refs.container.$el.offsetHeight
|
|
this.heights = this.$refs.container.$el.offsetHeight
|
|
},
|
|
},
|
|
filters:{
|
|
filters:{
|
|
- ellipsis(value) {
|
|
|
|
- if (!value) return "";
|
|
|
|
- if (value.length > 35) {
|
|
|
|
- return value.slice(0, 35) + "...";
|
|
|
|
- }
|
|
|
|
- return value;
|
|
|
|
- },
|
|
|
|
- ellipsis1(value) {
|
|
|
|
- if (!value) return "";
|
|
|
|
- if (value.length > 25) {
|
|
|
|
- return value.slice(0, 25) + "...";
|
|
|
|
- }
|
|
|
|
- return value;
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
},
|
|
},
|
|
}
|
|
}
|