【修改】修改样式
This commit is contained in:
@@ -52,6 +52,17 @@
|
|||||||
/* 自定义滚动条的样式 */
|
/* 自定义滚动条的样式 */
|
||||||
.scroll-wrap {
|
.scroll-wrap {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
||||||
|
//.el-tree-node > .el-tree-node__children{
|
||||||
|
// overflow: auto;
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
.lef-tree {
|
||||||
|
overflow: auto;
|
||||||
|
.el-scrollbar__wrap{
|
||||||
|
width: fit-content;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.scroll-view::-webkit-scrollbar {
|
.scroll-view::-webkit-scrollbar {
|
||||||
|
|||||||
@@ -104,7 +104,8 @@
|
|||||||
<el-col :span="4" class="treeList">
|
<el-col :span="4" class="treeList">
|
||||||
<el-input placeholder="输入关键字进行过滤" v-model="filterText">
|
<el-input placeholder="输入关键字进行过滤" v-model="filterText">
|
||||||
</el-input>
|
</el-input>
|
||||||
<el-scrollbar wrap-class="scroll-wrap" view-class="scroll-view">
|
<el-scrollbar wrap-class="scroll-wrap" view-class="scroll-view"
|
||||||
|
class="lef-tree">
|
||||||
<el-tree
|
<el-tree
|
||||||
class="filter-tree"
|
class="filter-tree"
|
||||||
:data="treeData"
|
:data="treeData"
|
||||||
@@ -114,7 +115,16 @@
|
|||||||
:filter-node-method="filterNode"
|
:filter-node-method="filterNode"
|
||||||
ref="tree"
|
ref="tree"
|
||||||
@check="getHalfCheckedNode"
|
@check="getHalfCheckedNode"
|
||||||
|
|
||||||
>
|
>
|
||||||
|
<template slot-scope="{node}">
|
||||||
|
<!-- <span v-if="node.label.length <= 10">{{ node.label }}</span>-->
|
||||||
|
<!-- <el-tooltip :content="node.label" placement="top">-->
|
||||||
|
<div :title="node.label" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 50px">
|
||||||
|
{{ node.label }}
|
||||||
|
</div>
|
||||||
|
<!-- </el-tooltip>-->
|
||||||
|
</template>
|
||||||
</el-tree>
|
</el-tree>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|||||||
@@ -57,12 +57,12 @@
|
|||||||
@check="getHalfCheckedNode"
|
@check="getHalfCheckedNode"
|
||||||
>
|
>
|
||||||
<template slot-scope="{node}">
|
<template slot-scope="{node}">
|
||||||
<span v-if="node.label.length <= 10">{{ node.label }}</span>
|
<!-- <span v-if="node.label.length <= 10">{{ // node.label }}</span>-->
|
||||||
<el-tooltip v-else :content="node.label" placement="top">
|
<!-- <el-tooltip v-else :content="node.label" placement="top">-->
|
||||||
<div style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
|
<div :title="node.label" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
|
||||||
{{ node.label }}
|
{{ node.label }}
|
||||||
</div>
|
</div>
|
||||||
</el-tooltip>
|
<!-- </el-tooltip>-->
|
||||||
</template>
|
</template>
|
||||||
</el-tree>
|
</el-tree>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
@@ -163,7 +163,10 @@
|
|||||||
<div class="tree">
|
<div class="tree">
|
||||||
<el-tree class="filter-tree" :data="treeData" default-expand-all :filter-node-method="filterNode" ref="tree">
|
<el-tree class="filter-tree" :data="treeData" default-expand-all :filter-node-method="filterNode" ref="tree">
|
||||||
<span class="custom-tree-node" slot-scope="{ node,data}">
|
<span class="custom-tree-node" slot-scope="{ node,data}">
|
||||||
<span class="textover">{{ node.label }}</span>
|
<!-- <span v-if="node.label.length <= 10">{{ node.label }}</span>-->
|
||||||
|
<!-- <el-tooltip v-else :content="node.label" placement="top">-->
|
||||||
|
<span :title="node.label" class="textover" >{{ node.label }}</span>
|
||||||
|
<!-- </el-tooltip>-->
|
||||||
<span class="btnover">
|
<span class="btnover">
|
||||||
<!-- <el-button type="text" @click.stop="add">新建</el-button> -->
|
<!-- <el-button type="text" @click.stop="add">新建</el-button> -->
|
||||||
<el-button type="text" v-if="data.parentId != '0'"
|
<el-button type="text" v-if="data.parentId != '0'"
|
||||||
@@ -245,6 +248,9 @@
|
|||||||
<el-form-item label="标签:" required>
|
<el-form-item label="标签:" required>
|
||||||
<el-cascader width="100%" v-model="reportF.labelList" :options="cascaderOptions" filterable
|
<el-cascader width="100%" v-model="reportF.labelList" :options="cascaderOptions" filterable
|
||||||
:props="{ checkStrictly: true }" clearable>
|
:props="{ checkStrictly: true }" clearable>
|
||||||
|
<template slot-scope="{ node, data }">
|
||||||
|
<span :title="data.label">{{ data.label }}</span>
|
||||||
|
</template>
|
||||||
</el-cascader>
|
</el-cascader>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="权限设置:" required>
|
<el-form-item label="权限设置:" required>
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
<el-form-item label="上级标签" required>
|
<el-form-item label="上级标签" required>
|
||||||
<el-cascader v-model="form.nodeLabel" placeholder="请选择上级标签" :options="cascaderOptions" filterable
|
<el-cascader v-model="form.nodeLabel" placeholder="请选择上级标签" :options="cascaderOptions" filterable
|
||||||
:props="{ checkStrictly: true }" clearable >
|
:props="{ checkStrictly: true }" clearable >
|
||||||
|
<template slot-scope="{ node, data }">
|
||||||
|
<span :title="data.label">{{ data.label }}</span>
|
||||||
|
</template>
|
||||||
</el-cascader>
|
</el-cascader>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
@@ -209,7 +212,6 @@ export default {
|
|||||||
line-height: 40px !important;
|
line-height: 40px !important;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-popper .el-cascader-menu .el-cascader-node__label {
|
::v-deep .el-popper .el-cascader-menu .el-cascader-node__label {
|
||||||
width: 160px !important;
|
width: 160px !important;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@@ -191,13 +191,7 @@ export default {
|
|||||||
// 选择转办
|
// 选择转办
|
||||||
handleDblClick(treeNode) {
|
handleDblClick(treeNode) {
|
||||||
this.JuggleSub(this.taskId).then(res=> {
|
this.JuggleSub(this.taskId).then(res=> {
|
||||||
|
if(res){
|
||||||
})
|
|
||||||
return
|
|
||||||
// taskId: this.$store.getters.getHandleInfo.taskId, // 任务id
|
|
||||||
// assignee: treeNode[0].userId, // 转办人
|
|
||||||
// userId: this.$store.getters.userInfo.userId, // dangqian人
|
|
||||||
// pId: this.$store.getters.getHandleInfo.prcId // 流程实例
|
|
||||||
if( treeNode[0].USID == this.$store.getters.userInfo.usid){
|
if( treeNode[0].USID == this.$store.getters.userInfo.usid){
|
||||||
this.$message.warning("您不能转办给自己")
|
this.$message.warning("您不能转办给自己")
|
||||||
}else{
|
}else{
|
||||||
@@ -212,6 +206,13 @@ export default {
|
|||||||
this.visibleTree = false
|
this.visibleTree = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// taskId: this.$store.getters.getHandleInfo.taskId, // 任务id
|
||||||
|
// assignee: treeNode[0].userId, // 转办人
|
||||||
|
// userId: this.$store.getters.userInfo.userId, // dangqian人
|
||||||
|
// pId: this.$store.getters.getHandleInfo.prcId // 流程实例
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ export default {
|
|||||||
prcName:''
|
prcName:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
async created() {
|
||||||
// 第一次进入此页面 需要清楚校验
|
// 第一次进入此页面 需要清楚校验
|
||||||
if (this.$route.query.isBegin) {
|
if (this.$route.query.isBegin) {
|
||||||
// if (this.$route.query.ids.split(',').length > 0) {
|
// if (this.$route.query.ids.split(',').length > 0) {
|
||||||
@@ -240,16 +240,26 @@ export default {
|
|||||||
this.formControlname = true
|
this.formControlname = true
|
||||||
this.processForm.prcName = this.$route.query.prcName
|
this.processForm.prcName = this.$route.query.prcName
|
||||||
console.log("122")
|
console.log("122")
|
||||||
this.getProcessDetail().then(res => {
|
await this.getProcessDetail()
|
||||||
//基础信息
|
let applyReason = JSON.parse(this.processOld.dataJson)
|
||||||
console.log(res.prcName)
|
this.tableData = JSON.parse(this.processOld.dataJson)
|
||||||
this.tableData = JSON.parse(res.processOld.dataJson)
|
this.applicationForm.power = this.tableData[0].power
|
||||||
this.applicationForm.power = res.tableData[0].power
|
debugger
|
||||||
this.applicationForm.applyReason = this.tableData[0].applyReason
|
this.applicationForm.applyReason = applyReason[0].applyReason
|
||||||
|
|
||||||
//指派信息
|
//指派信息
|
||||||
({oneApprove:this.assignForm.oneApprove,oneApproveName:this.assignForm.oneApproveName,twoApprove:this.assignForm.twoApprove,twoApproveName:this.assignForm.twoApproveName,remark:this.assignForm.remark}= JSON.parse(this.processOld.submitJson))
|
({oneApprove:this.assignForm.oneApprove,oneApproveName:this.assignForm.oneApproveName,twoApprove:this.assignForm.twoApprove,twoApproveName:this.assignForm.twoApproveName,remark:this.assignForm.remark}= JSON.parse(this.processOld.submitJson))
|
||||||
})
|
// this.getProcessDetail().then(res => {
|
||||||
|
// //基础信息
|
||||||
|
// let applyReason = JSON.parse(res.processOld.dataJson)
|
||||||
|
// res.tableData = JSON.parse(res.processOld.dataJson)
|
||||||
|
// res.applicationForm.power = res.tableData[0].power
|
||||||
|
// debugger
|
||||||
|
// res.applicationForm.applyReason = applyReason[0]?.applyReason
|
||||||
|
//
|
||||||
|
// //指派信息
|
||||||
|
// ({oneApprove:res.assignForm.oneApprove,oneApproveName:res.assignForm.oneApproveName,twoApprove:res.assignForm.twoApprove,twoApproveName:res.assignForm.twoApproveName,remark:res.assignForm.remark}= JSON.parse(res.processOld.submitJson))
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
if (this.$route.query.type == 'yiban') {
|
if (this.$route.query.type == 'yiban') {
|
||||||
this.taskId = this.$store.getters.handleProcess.taskId
|
this.taskId = this.$store.getters.handleProcess.taskId
|
||||||
|
|||||||
Reference in New Issue
Block a user