hookehuyr

细节调整

Showing 1 changed file with 22 additions and 12 deletions
...@@ -172,7 +172,16 @@ ...@@ -172,7 +172,16 @@
172 <div v-if="state.attr_radio === '更多属性'"> 172 <div v-if="state.attr_radio === '更多属性'">
173 <div class="more-attr"> 173 <div class="more-attr">
174 <div v-for="(attr, index) in state.more_attr" :key="index" class="more-attr-item"> 174 <div v-for="(attr, index) in state.more_attr" :key="index" class="more-attr-item">
175 - <p class="title">{{ attr.label }}</p> 175 + <div style="display: flex; align-items: center;">
176 + <p class="title">{{ attr.label }}</p>&nbsp;
177 + <el-tooltip
178 + class="box-item"
179 + :content="attr.desc"
180 + placement="top"
181 + >
182 + <el-icon><InfoFilled color="#b5b8be" /></el-icon>
183 + </el-tooltip>
184 + </div>
176 <div v-for="(item, idx) in attr.data" :key="idx" class="content"> 185 <div v-for="(item, idx) in attr.data" :key="idx" class="content">
177 <div v-if="item.btnText" class="left"> 186 <div v-if="item.btnText" class="left">
178 <span v-if="item.label === item.btnText">{{ item.label }}</span> 187 <span v-if="item.label === item.btnText">{{ item.label }}</span>
...@@ -191,9 +200,6 @@ ...@@ -191,9 +200,6 @@
191 </div> 200 </div>
192 </div> 201 </div>
193 </div> 202 </div>
194 - <!-- <div class="more-attr-item">
195 - <p class="title">节点操作</p>
196 - </div> -->
197 </div> 203 </div>
198 </div> 204 </div>
199 </div> 205 </div>
...@@ -260,10 +266,11 @@ ...@@ -260,10 +266,11 @@
260 </template> 266 </template>
261 <!-- 工具栏 --> 267 <!-- 工具栏 -->
262 <template v-slot:toolbar> 268 <template v-slot:toolbar>
263 - <el-tooltip content="打印流程图数据结构"> 269 + <el-tooltip content="保存流程图数据">
264 - <div class="vue-flow-editor-toolbar-item" @click="logData"> 270 + <div class="vue-flow-editor-toolbar-item" @click="saveData">
265 - <i class="el-icon-search" style=" margin-top: 4px;" /> 271 + <!-- <el-icon><Coin /></el-icon> -->
266 - <span style="font-size: 12px; transform: scale(0.8); margin-top: 2px;">log数据</span> 272 + <i class="el-icon-coin" style=" margin-top: 4px;" />
273 + <span style="font-size: 12px; transform: scale(0.8); margin-top: 2px;">保存</span>
267 </div> 274 </div>
268 </el-tooltip> 275 </el-tooltip>
269 </template> 276 </template>
...@@ -429,6 +436,7 @@ export default { ...@@ -429,6 +436,7 @@ export default {
429 { 436 {
430 id: 'no-1', 437 id: 'no-1',
431 label: '审批意见', 438 label: '审批意见',
439 + desc: '开启审批意见后,节点负责人处理流程时须按要求填写审批意见',
432 data: [ 440 data: [
433 { 441 {
434 id: 'text-1', 442 id: 'text-1',
...@@ -449,6 +457,7 @@ export default { ...@@ -449,6 +457,7 @@ export default {
449 { 457 {
450 id: 'no-2', 458 id: 'no-2',
451 label: '节点操作', 459 label: '节点操作',
460 + desc: '定义流程负责人在处理流程时可以进行的操作',
452 data: [ 461 data: [
453 { 462 {
454 id: 'node-1', 463 id: 'node-1',
...@@ -952,11 +961,11 @@ export default { ...@@ -952,11 +961,11 @@ export default {
952 } 961 }
953 962
954 /** 963 /**
955 - * 打印流程图数据结构 964 + * 保存流程图数据
956 * 965 *
957 * @return {void} No return value. 966 * @return {void} No return value.
958 */ 967 */
959 - function logData(): void { 968 + function saveData(): void {
960 let { nodes, edges } = editor.editorState.graph.save() 969 let { nodes, edges } = editor.editorState.graph.save()
961 // console.log("nodes", nodes); 970 // console.log("nodes", nodes);
962 // console.log("edges", edges); 971 // console.log("edges", edges);
...@@ -1041,7 +1050,7 @@ export default { ...@@ -1041,7 +1050,7 @@ export default {
1041 onCloseUserView, 1050 onCloseUserView,
1042 onConfirmUserView, 1051 onConfirmUserView,
1043 1052
1044 - logData, 1053 + saveData,
1045 toolbarButtonHandler, 1054 toolbarButtonHandler,
1046 1055
1047 onRef: (e: any) => (editor = e), 1056 onRef: (e: any) => (editor = e),
...@@ -1101,7 +1110,7 @@ body { ...@@ -1101,7 +1110,7 @@ body {
1101 .title { 1110 .title {
1102 font-size: 14px; 1111 font-size: 14px;
1103 color: #000; 1112 color: #000;
1104 - margin-bottom: 8px; 1113 + font-weight: bold;
1105 } 1114 }
1106 .content { 1115 .content {
1107 font-size: 14px; 1116 font-size: 14px;
...@@ -1113,6 +1122,7 @@ body { ...@@ -1113,6 +1122,7 @@ body {
1113 display: flex; 1122 display: flex;
1114 justify-content: space-between; 1123 justify-content: space-between;
1115 align-items: center; 1124 align-items: center;
1125 + margin-bottom: 5px;
1116 .left { 1126 .left {
1117 } 1127 }
1118 .right { 1128 .right {
......