|
@@ -11,7 +11,8 @@
|
|
|
<el-tree v-show="stepViewFlag" :load="loadDeptNode" :props="defaultProps" :expand-on-click-node="false"
|
|
|
ref="tree" node-key="id" lazy accordion default-expand-all highlight-current @node-click="handleNodeClick">
|
|
|
<template slot-scope="{ node, data }">
|
|
|
- <span class="custom-tree-node" :class="{ 'is-dept': !data.isMatter, 'is-matter': data.isMatter }">
|
|
|
+ <span class="custom-tree-node" :class="{ 'is-dept': !data.isMatter, 'is-matter': data.isMatter }"
|
|
|
+ :title="data.deptName ? data.deptName : data.itemName">
|
|
|
<i class="el-icon" :class="data.isMatter ? 'el-icon-tickets' : 'el-icon-office-building'"></i>
|
|
|
<span>{{ data.deptName ? data.deptName : data.itemName }}</span>
|
|
|
</span>
|
|
@@ -21,7 +22,8 @@
|
|
|
ref="searchTree" node-key="id" :lazy="false" accordion default-expand-all highlight-current
|
|
|
@node-click="handleNodeClick">
|
|
|
<template slot-scope="{ node, data }">
|
|
|
- <span class="custom-tree-node" :class="{ 'is-dept': !data.isMatter, 'is-matter': data.isMatter }">
|
|
|
+ <span class="custom-tree-node" :class="{ 'is-dept': !data.isMatter, 'is-matter': data.isMatter }"
|
|
|
+ :title="data.deptName ? data.deptName : data.itemName">
|
|
|
<i class="el-icon" :class="data.isMatter ? 'el-icon-tickets' : 'el-icon-office-building'"></i>
|
|
|
<span>{{ data.deptName ? data.deptName : data.itemName }}</span>
|
|
|
</span>
|
|
@@ -31,16 +33,17 @@
|
|
|
</el-col>
|
|
|
<el-col :span="15" :xs="24" class="matter-content" style="margin-left: 10px;">
|
|
|
<template v-if="preQuestionPart">
|
|
|
- <h2 style="font-style: italic; color: #00afff; margin-bottom: -10px;">
|
|
|
+ <div style="font-style: italic; color: #00afff; margin-bottom: -10px;">
|
|
|
<i class="el-icon-collection"></i> 前置问题
|
|
|
- </h2>
|
|
|
+ </div>
|
|
|
<el-divider></el-divider>
|
|
|
<el-alert :title="currMatterQuestion.desc" type="success" class="matter-title" :closable="false">
|
|
|
</el-alert>
|
|
|
<el-row style="margin-top: 20px;">
|
|
|
<template v-for="option in currMatterQuestion.preQuestionOptionList">
|
|
|
<el-row style="display: flex; justify-content: center; margin: 10px;">
|
|
|
- <el-button type="primary" plain class="text-wrap-button" style="width: 40%;" @click="handleOptionClick(option, $event)">{{
|
|
|
+ <el-button type="primary" plain class="text-wrap-button" style="width: 50%;"
|
|
|
+ @click="handleOptionClick(option, $event)">{{
|
|
|
option.desc }}</el-button>
|
|
|
</el-row>
|
|
|
</template>
|
|
@@ -52,7 +55,8 @@
|
|
|
<el-button type="primary" size="mini" v-print="printObj">打印一次性告知单</el-button>
|
|
|
</el-row>
|
|
|
<el-row id="print_material" style="height: 100%; padding: 10px;">
|
|
|
- <h2 style="font-style: italic; color: #00afff; margin-bottom: -10px;">
|
|
|
+ <h2 style="font-style: italic; color: #00afff; margin-bottom: -10px;" class="qzprblem"
|
|
|
+ :title="currMatter.itemName">
|
|
|
<i class="el-icon-collection"></i> {{ currMatter.itemName }}
|
|
|
</h2>
|
|
|
<el-divider></el-divider>
|
|
@@ -347,7 +351,7 @@
|
|
|
}
|
|
|
|
|
|
.matter-title {
|
|
|
- margin-top: 50px;
|
|
|
+ margin-top: 0px;
|
|
|
background-color: #E7F0F9;
|
|
|
color: #217BD3;
|
|
|
font-weight: 600;
|
|
@@ -388,6 +392,7 @@
|
|
|
height: 100%;
|
|
|
min-height: 50px;
|
|
|
}
|
|
|
+
|
|
|
.text-wrap-button {
|
|
|
white-space: normal !important;
|
|
|
word-break: break-all;
|
|
@@ -416,4 +421,29 @@
|
|
|
.ql-align-center {
|
|
|
text-align: center;
|
|
|
}
|
|
|
-</style>
|
|
|
+
|
|
|
+
|
|
|
+ .el-divider--horizontal {
|
|
|
+ margin: 20px 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .qzprblem {
|
|
|
+ overflow: hidden;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ /* 设置最大显示行数 */
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .custom-tree-node {
|
|
|
+ width: calc(100% - 20px);
|
|
|
+ }
|
|
|
+
|
|
|
+ .custom-tree-node span {
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ }
|
|
|
+</style>
|