workflow.scss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  1. .wf-container {
  2. width: 100%;
  3. height: 100%;
  4. --th: 50px;
  5. --bh: 50px;
  6. --margin: 10px;
  7. display: flex;
  8. flex-direction: column;
  9. flex: 1 auto;
  10. flex-wrap: wrap;
  11. .step-tab {
  12. width: 100%;
  13. height: var(--th);
  14. margin-bottom: var(--margin);
  15. background: #fff;
  16. display: flex;
  17. font-size: 14px;
  18. --w: 120px;
  19. position: relative;
  20. .step-tab-item {
  21. display: flex;
  22. align-items: center;
  23. justify-content: center;
  24. font-weight: 600;
  25. color: #999;
  26. width: var(--w);
  27. transition: .5s background-color;
  28. &:not(:first-child) {
  29. --ml: calc((100% - var(--w)*3)/2);
  30. margin-left: var(--ml);
  31. &:before {
  32. content: "";
  33. position: absolute;
  34. width: calc(var(--ml) - 10px);
  35. height: 3px;
  36. background-color: #e8eaec;
  37. //left: calc(5px + var(--w));
  38. }
  39. }
  40. &:nth-of-type(2) {
  41. &:before {
  42. left: calc(5px + var(--w));
  43. }
  44. }
  45. &:nth-child(3) {
  46. &:before {
  47. left: calc(5px + var(--w)*2 + var(--ml));
  48. }
  49. }
  50. i {
  51. font-size: 16px;
  52. padding-right: 8px;
  53. }
  54. &.finished, &.active {
  55. i {
  56. font-weight: 600;
  57. color: #2d8cf0;
  58. }
  59. &:before {
  60. background-color: #2d8cf0;
  61. }
  62. }
  63. &.finished {
  64. }
  65. &.active {
  66. color: #3c3c3c;
  67. }
  68. }
  69. }
  70. .step-content {
  71. width: 100%;
  72. height: calc(100% - var(--th) - var(--bh) - var(--margin)*2);
  73. background: #fff;
  74. .step-content-item {
  75. display: none;
  76. width: 100%;
  77. height: 100%;
  78. &.step-content-item_0 {
  79. justify-content: center;
  80. overflow-y: auto;
  81. form {
  82. padding: 20px;
  83. width: 500px;
  84. > div {
  85. margin-bottom: 15px;
  86. }
  87. }
  88. }
  89. .design-left, .design-mid, .design-right {
  90. overflow-y: auto;
  91. }
  92. &.step-content-item_1 {
  93. .form-component {
  94. width: 100%;
  95. display: flex;
  96. flex-wrap: wrap;
  97. .title {
  98. width: 100%;
  99. height: 35px;
  100. display: flex;
  101. align-items: center;
  102. background: #2d8cf0;
  103. color: #eee;
  104. margin-bottom: 10px;
  105. padding-left: 20px;
  106. border-bottom: 1px solid #dcdee2;
  107. font-weight: 600;
  108. }
  109. .form-component-item {
  110. color: #3c3c3c;
  111. margin: 5px 8px;
  112. background: transparent;
  113. border-radius: .25rem;
  114. border: 1px dashed #dcdee2;
  115. padding: 5px 10px 4px;
  116. transition: color 0.2s linear, background-color 0.2s linear, border 0.2s linear, box-shadow 0.2s linear, -webkit-box-shadow 0.2s linear;
  117. &:hover {
  118. border-color: #2d8cf0;
  119. color: #2d8cf0;
  120. background: #fafafa;
  121. }
  122. }
  123. }
  124. .form-design {
  125. width: 100%;
  126. display: flex;
  127. flex-direction: column;
  128. padding: 15px;
  129. .dy-form-container {
  130. .dy-form-drag-box {
  131. padding: 5px;
  132. margin: 3px 0;
  133. position: relative;
  134. .delete {
  135. display: none;
  136. position: absolute;
  137. bottom: 0;
  138. left: 0;
  139. color: #fff;
  140. background-color: #ff6a00;
  141. width: auto;
  142. padding: 5px 8px;
  143. cursor: pointer;
  144. }
  145. &.hover {
  146. border: 1px dashed #ff6a00;
  147. > .delete {
  148. display: block;
  149. }
  150. }
  151. .item {
  152. border: 1px dotted #ddd;
  153. color: #ccc;
  154. margin-top: 0;
  155. padding: 10px 8px 8px;
  156. display: flex;
  157. align-items: center;
  158. span {
  159. width: 100%;
  160. text-align: center;
  161. line-height: 1;
  162. font-size: 16px;
  163. }
  164. /*
  165. &:last-child {
  166. border-left: none;
  167. }*/
  168. .dy-form-input-box {
  169. width: 100%;
  170. padding: 10px;
  171. position: relative;
  172. color: #333;
  173. &.active {
  174. border: 2px solid #2d8cf0;
  175. .delete {
  176. display: block;
  177. }
  178. }
  179. .delete {
  180. left: auto;
  181. right: 0;
  182. color: #fff;
  183. background-color: #2d8cf0;
  184. }
  185. }
  186. }
  187. }
  188. }
  189. button.add {
  190. width: 100%;
  191. margin: 10px auto;
  192. border: none;
  193. background: transparent;
  194. margin: 5px 8px;
  195. i {
  196. padding-right: 10px;
  197. }
  198. &:hover {
  199. color: #2d8cf0;
  200. i {
  201. color: #2d8cf0;
  202. }
  203. }
  204. }
  205. .form-design-btn-group-add {
  206. width: auto;
  207. padding: 7px;
  208. border: 1px solid #ccc;
  209. margin: 0 auto;
  210. border-radius: .4rem;
  211. position: relative;
  212. display: none;
  213. .arrow {
  214. display: block;
  215. width: 0;
  216. height: 0;
  217. position: absolute;
  218. border: 7px solid transparent;
  219. top: -7px;
  220. border-width: 0 7px 7px;
  221. border-bottom-color: #ccc;
  222. left: 50%;
  223. margin-left: 7px;
  224. &:after {
  225. position: absolute;
  226. content: "";
  227. display: block;
  228. width: 0;
  229. height: 0;
  230. border: 7px solid transparent;
  231. top: 1px;
  232. left: 50%;
  233. margin-left: -7px;
  234. border-top-width: 0;
  235. border-bottom-width: 7px;
  236. border-bottom-color: #fff;
  237. }
  238. }
  239. button {
  240. color: #3c3c3c;
  241. margin: 5px;
  242. border-radius: .25rem;
  243. background: transparent;
  244. border: 1px solid #dcdee2;
  245. padding: 3px 10px;
  246. &:hover {
  247. border-color: #2d8cf0;
  248. color: #2d8cf0;
  249. background: #fafafa;
  250. }
  251. }
  252. &.show {
  253. display: block;
  254. }
  255. }
  256. }
  257. .dy-form-input-params {
  258. width: 100%;
  259. display: flex;
  260. flex-direction: column;
  261. padding: 15px;
  262. > div {
  263. margin-bottom: 15px;
  264. &.params {
  265. .label {
  266. display: flex;
  267. justify-content: space-between;
  268. align-items: flex-end;
  269. padding-right: 15px;
  270. span {
  271. padding: 6px;
  272. border: 1px dashed #dcdee2;
  273. border-radius: 3px;
  274. cursor: pointer;
  275. }
  276. }
  277. .input-group {
  278. margin-top: 10px;
  279. }
  280. }
  281. .input-group-text {
  282. border: none;
  283. font-weight: 800;
  284. }
  285. }
  286. }
  287. }
  288. &.step-content-item_2 {
  289. .title {
  290. width: 100%;
  291. display: flex;
  292. align-items: center;
  293. background: #2d8cf0;
  294. color: #eee;
  295. margin-bottom: 10px;
  296. padding: 7px 20px;
  297. border-bottom: 1px solid #dcdee2;
  298. font-weight: 600;
  299. }
  300. .node-source {
  301. width: 100%;
  302. display: flex;
  303. flex-wrap: wrap;
  304. justify-content: center;
  305. .item {
  306. width: 80%;
  307. margin: 8px 0;
  308. padding: 15px !important;
  309. }
  310. }
  311. .design-mid {
  312. overflow: hidden;
  313. }
  314. .flow-design {
  315. min-width: 100%;
  316. min-height: 100%;
  317. /*background: #f5f5f5;*/
  318. position: relative;
  319. padding: 20px;
  320. transform: scale(1);
  321. background-repeat: repeat;
  322. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADpJREFUOE9jZGBgkGIgDjwjRhnjqIH4gmk0DLGHztBINsRkAJAaonIUyMvEglEDcSeb0TDEGQIDk2wAXwsLGTSQqIAAAAAASUVORK5CYII=');
  323. .flow-design-node {
  324. position: absolute;
  325. display: flex;
  326. justify-content: center;
  327. align-items: center;
  328. padding: 10px 15px !important;
  329. span {
  330. display: flex;
  331. justify-content: center;
  332. align-items: center;
  333. min-width: 80px;
  334. max-width: 120px;
  335. min-height: 40px;
  336. white-space: normal;
  337. }
  338. &.active {
  339. font-weight: 600;
  340. border: 3px solid #ff6a00 !important;
  341. }
  342. }
  343. .point {
  344. svg {
  345. circle {
  346. // fill: #FFDA59;
  347. }
  348. }
  349. }
  350. .jtk-connector {
  351. cursor: pointer;
  352. path {
  353. stroke: #FFE177;
  354. stroke-width: 3
  355. }
  356. &.active {
  357. path {
  358. stroke: #FFDA59;
  359. stroke-width: 4
  360. }
  361. }
  362. }
  363. .jtk-overlay {
  364. color: #009ef7;
  365. border: 1px solid #2d8cf0;
  366. padding: 4px 8px;
  367. border-radius: 3px;
  368. border-radius: 4px;
  369. cursor: pointer;
  370. background-color: rgba(0, 158, 247,.1);
  371. &.active {
  372. font-size: 16px;
  373. font-weight: 600;
  374. border-width: 2px;
  375. background-color: rgba(0, 158, 247,.2);
  376. }
  377. &.hide {
  378. display: none;
  379. }
  380. }
  381. }
  382. .flow-design-detail {
  383. width: 100%;
  384. height: 100%;
  385. display: flex;
  386. flex-direction: column;
  387. .flow-design-detail-box {
  388. width: 100%;
  389. padding: 15px;
  390. display: flex;
  391. flex-direction: column;
  392. > div {
  393. margin-bottom: 15px;
  394. &.params {
  395. .label {
  396. display: flex;
  397. justify-content: space-between;
  398. align-items: flex-end;
  399. padding-right: 15px;
  400. span {
  401. padding: 6px;
  402. border: 1px dashed #dcdee2;
  403. border-radius: 3px;
  404. cursor: pointer;
  405. }
  406. }
  407. .input-group {
  408. margin-top: 10px;
  409. }
  410. }
  411. }
  412. .stepBody {
  413. .dy-select {
  414. position: relative;
  415. .dy-select-result {
  416. display: none;
  417. width: 100%;
  418. position: absolute;
  419. border-radius: 5px;
  420. background: #f5f8fa;
  421. margin-top: 2px;
  422. padding: 5px 0;
  423. max-height:200px;
  424. overflow-y:auto;
  425. span {
  426. width: 100%;
  427. display: inline-block;
  428. text-align: left;
  429. padding: 5px 20px;
  430. cursor:pointer;
  431. &:not(:first-child) {
  432. border-top: 1px solid #ddd;
  433. }
  434. }
  435. strong {
  436. width: 100%;
  437. display: inline-block;
  438. text-align: center;
  439. padding: 5px 20px;
  440. }
  441. }
  442. }
  443. }
  444. }
  445. .item {
  446. width: 80%;
  447. margin: 8px 0;
  448. padding: 15px !important;
  449. }
  450. }
  451. }
  452. .design-container {
  453. width: 100%;
  454. height: 100%;
  455. display: flex;
  456. > div {
  457. height: 100%;
  458. border: 1px solid #ddd;
  459. }
  460. .design-left {
  461. width: 20%;
  462. }
  463. .design-mid {
  464. width: 60%;
  465. }
  466. .design-right {
  467. width: 20%;
  468. }
  469. .design-move-col {
  470. width: 5px;
  471. border-left: none;
  472. border-right: none;
  473. display: flex;
  474. flex-direction: column;
  475. justify-content: center;
  476. background: #eee;
  477. cursor: col-resize;
  478. .bar {
  479. width: 100%;
  480. height: 6px;
  481. border: 1px solid #aaa;
  482. border-left: none;
  483. border-right: none;
  484. margin: 2px 0;
  485. }
  486. }
  487. }
  488. &.show {
  489. display: flex;
  490. }
  491. }
  492. }
  493. .step-tool {
  494. width: 100%;
  495. height: var(--bh);
  496. margin-top: var(--margin);
  497. display: flex;
  498. justify-content: center;
  499. align-items: center;
  500. button {
  501. display: none;
  502. width: 85px;
  503. margin: 0 10px;
  504. &.show {
  505. display: block;
  506. }
  507. }
  508. }
  509. }