WorkPage - 副本.qml 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124
  1. import QtQuick
  2. import QtQuick.Controls 2.5
  3. import QtQuick.Layouts 1.3
  4. Rectangle {
  5. width: parent.width-400
  6. height: parent.height
  7. color: 'transparent'
  8. property StackView stack: null
  9. /*
  10. CButton {
  11. id: switchButton
  12. x:1650
  13. y:140
  14. visible:true
  15. textHeight: 50
  16. fontHeight: 0.4
  17. width: 120
  18. height: 50
  19. color: pressed ? textClickedColor : mainAppColor
  20. text: "切换远程"
  21. onClicked: appModel.switchDriver()
  22. }
  23. */
  24. TabBar {
  25. id: bar
  26. width: parent.width
  27. y:150
  28. x:100
  29. currentIndex:0
  30. TabButton {
  31. text: qsTr("A区")
  32. height:60
  33. }
  34. TabButton {
  35. text: qsTr("B区")
  36. height:60
  37. }
  38. TabButton {
  39. text: qsTr("C区")
  40. height:60
  41. }
  42. TabButton {
  43. text: qsTr("D区")
  44. height:60
  45. }
  46. TabButton {
  47. text: qsTr("E区")
  48. height:60
  49. }
  50. TabButton {
  51. text: qsTr("F区")
  52. height:60
  53. }
  54. TabButton {
  55. text: qsTr("G区")
  56. height:60
  57. }
  58. TabButton {
  59. text: qsTr("H区")
  60. height:60
  61. }
  62. TabButton {
  63. text: qsTr("接渣区")
  64. height:60
  65. }
  66. }
  67. Row {
  68. height: parent.height
  69. // anchors.horizontalCenter: parent.horizontalCenter
  70. // anchors.top:parent.top
  71. // anchors.topMargin: 20
  72. y:250
  73. x:100
  74. spacing: 20
  75. CButton {
  76. // id: resultButton
  77. // anchors.top: loginPassword.bottom
  78. // anchors.topMargin: 50
  79. // anchors.horizontalCenter: parent.horizontalCenter
  80. textHeight: 50
  81. fontHeight: 0.4
  82. width: 150
  83. height: 50
  84. color: pressed ? textClickedColor : mainAppColor
  85. text: bar.currentIndex===8?"放罐等待区":bar.currentIndex===9?"倒渣1":"新"+String.fromCharCode(0x41+bar.currentIndex) +"01"
  86. onClicked: moveBegin(bar.currentIndex,1)
  87. }
  88. CButton {
  89. // id: resultButton
  90. // anchors.top: loginPassword.bottom
  91. // anchors.topMargin: 50
  92. // anchors.horizontalCenter: parent.horizontalCenter
  93. textHeight: 50
  94. fontHeight: 0.4
  95. width: 150
  96. height: 50
  97. visible: true //bar.currentIndex !== 8
  98. color: pressed ? textClickedColor : mainAppColor
  99. text: bar.currentIndex===9?"倒渣2":"新"+String.fromCharCode(0x41+bar.currentIndex) +"02"
  100. onClicked: moveBegin(bar.currentIndex,2)
  101. }
  102. CButton {
  103. // id: resultButton
  104. // anchors.top: loginPassword.bottom
  105. // anchors.topMargin: 50
  106. // anchors.horizontalCenter: parent.horizontalCenter
  107. textHeight: 50
  108. fontHeight: 0.4
  109. width: 150
  110. height: 50
  111. visible: true// bar.currentIndex !== 8
  112. color: pressed ? textClickedColor : mainAppColor
  113. text: bar.currentIndex===9?"倒渣3":String.fromCharCode(0x41+bar.currentIndex) +"01"
  114. onClicked: moveBegin(bar.currentIndex,3)
  115. }
  116. CButton {
  117. // id: resultButton
  118. // anchors.top: loginPassword.bottom
  119. // anchors.topMargin: 50
  120. // anchors.horizontalCenter: parent.horizontalCenter
  121. textHeight: 50
  122. fontHeight: 0.4
  123. width: 150
  124. height: 50
  125. visible: true //bar.currentIndex !== 8
  126. color: pressed ? textClickedColor : mainAppColor
  127. text: bar.currentIndex===9?"倒渣4":String.fromCharCode(0x41+bar.currentIndex) +"02"
  128. onClicked: moveBegin(bar.currentIndex,4)
  129. }
  130. CButton {
  131. // id: resultButton
  132. // anchors.top: loginPassword.bottom
  133. // anchors.topMargin: 50
  134. // anchors.horizontalCenter: parent.horizontalCenter
  135. textHeight: 50
  136. fontHeight: 0.4
  137. width: 150
  138. height: 50
  139. visible: bar.currentIndex !== 8
  140. color: pressed ? textClickedColor : mainAppColor
  141. text: bar.currentIndex===9?"倒渣5":String.fromCharCode(0x41+bar.currentIndex) +"03"
  142. onClicked: moveBegin(bar.currentIndex,5)
  143. }
  144. CButton {
  145. // id: resultButton
  146. // anchors.top: loginPassword.bottom
  147. // anchors.topMargin: 50
  148. // anchors.horizontalCenter: parent.horizontalCenter
  149. textHeight: 50
  150. fontHeight: 0.4
  151. width: 150
  152. height: 50
  153. visible: bar.currentIndex !== 8
  154. color: pressed ? textClickedColor : mainAppColor
  155. text: bar.currentIndex===9?"倒渣6":String.fromCharCode(0x41+bar.currentIndex) +"04"
  156. onClicked: moveBegin(bar.currentIndex,6)
  157. }
  158. CButton {
  159. // id: resultButton
  160. // anchors.top: loginPassword.bottom
  161. // anchors.topMargin: 50
  162. // anchors.horizontalCenter: parent.horizontalCenter
  163. textHeight: 50
  164. fontHeight: 0.4
  165. width: 150
  166. height: 50
  167. visible: bar.currentIndex !== 8
  168. color: pressed ? textClickedColor : mainAppColor
  169. text: bar.currentIndex===9?"倒渣7":String.fromCharCode(0x41+bar.currentIndex) +"05"
  170. onClicked: moveBegin(bar.currentIndex,7)
  171. }
  172. CButton {
  173. // id: resultButton
  174. // anchors.top: loginPassword.bottom
  175. // anchors.topMargin: 50
  176. // anchors.horizontalCenter: parent.horizontalCenter
  177. textHeight: 50
  178. fontHeight: 0.4
  179. width: 150
  180. height: 50
  181. visible: bar.currentIndex !== 8
  182. color: pressed ? textClickedColor : mainAppColor
  183. text: bar.currentIndex===9?"倒渣8":String.fromCharCode(0x41+bar.currentIndex) +"06"
  184. onClicked: moveBegin(bar.currentIndex,8)
  185. }
  186. CButton {
  187. // id: resultButton
  188. // anchors.top: loginPassword.bottom
  189. // anchors.topMargin: 50
  190. // anchors.horizontalCenter: parent.horizontalCenter
  191. textHeight: 50
  192. fontHeight: 0.4
  193. width: 150
  194. height: 50
  195. visible: bar.currentIndex !== 8
  196. color: pressed ? textClickedColor : mainAppColor
  197. text: bar.currentIndex===9?"倒渣9":String.fromCharCode(0x41+bar.currentIndex) +"07"
  198. onClicked: moveBegin(bar.currentIndex,9)
  199. }
  200. CButton {
  201. // id: resultButton
  202. // anchors.top: loginPassword.bottom
  203. // anchors.topMargin: 50
  204. // anchors.horizontalCenter: parent.horizontalCenter
  205. textHeight: 50
  206. fontHeight: 0.4
  207. width: 150
  208. height: 50
  209. visible: bar.currentIndex !== 8
  210. color: pressed ? textClickedColor : mainAppColor
  211. text: bar.currentIndex===9?"倒渣10":String.fromCharCode(0x41+bar.currentIndex) +"08"
  212. onClicked: moveBegin(bar.currentIndex,10)
  213. }
  214. }
  215. Row {
  216. height: parent.height
  217. // anchors.horizontalCenter: parent.horizontalCenter
  218. // anchors.top:parent.top
  219. // anchors.topMargin: 20
  220. y:350
  221. x:100
  222. spacing: 20
  223. CButton {
  224. // id: resultButton
  225. // anchors.top: loginPassword.bottom
  226. // anchors.topMargin: 50
  227. // anchors.horizontalCenter: parent.horizontalCenter
  228. textHeight: 50
  229. fontHeight: 0.4
  230. width: 150
  231. height: 50
  232. visible: true //bar.currentIndex !== 9
  233. color: pressed ? textClickedColor : mainAppColor
  234. text: bar.currentIndex===9?"倒渣11":String.fromCharCode(0x41+bar.currentIndex) +"09"
  235. onClicked: moveBegin(bar.currentIndex,11)
  236. }
  237. CButton {
  238. // id: resultButton
  239. // anchors.top: loginPassword.bottom
  240. // anchors.topMargin: 50
  241. // anchors.horizontalCenter: parent.horizontalCenter
  242. textHeight: 50
  243. fontHeight: 0.4
  244. width: 150
  245. height: 50
  246. visible: true ///bar.currentIndex !== 9
  247. color: pressed ? textClickedColor : mainAppColor
  248. text: bar.currentIndex===9?"倒渣12":String.fromCharCode(0x41+bar.currentIndex) +"10"
  249. onClicked: moveBegin(bar.currentIndex,12)
  250. }
  251. CButton {
  252. // id: resultButton
  253. // anchors.top: loginPassword.bottom
  254. // anchors.topMargin: 50
  255. // anchors.horizontalCenter: parent.horizontalCenter
  256. textHeight: 50
  257. fontHeight: 0.4
  258. width: 150
  259. height: 50
  260. visible: true //bar.currentIndex !== 9
  261. color: pressed ? textClickedColor : mainAppColor
  262. text: bar.currentIndex===9?"倒渣13":String.fromCharCode(0x41+bar.currentIndex) +"11"
  263. onClicked: moveBegin(bar.currentIndex,13)
  264. }
  265. CButton {
  266. // id: resultButton
  267. // anchors.top: loginPassword.bottom
  268. // anchors.topMargin: 50
  269. // anchors.horizontalCenter: parent.horizontalCenter
  270. textHeight: 50
  271. fontHeight: 0.4
  272. width: 150
  273. height: 50
  274. visible: true //bar.currentIndex !== 9
  275. color: pressed ? textClickedColor : mainAppColor
  276. text: bar.currentIndex===9?"倒渣14":String.fromCharCode(0x41+bar.currentIndex) +"12"
  277. onClicked: moveBegin(bar.currentIndex,14)
  278. }
  279. CButton {
  280. // id: resultButton
  281. // anchors.top: loginPassword.bottom
  282. // anchors.topMargin: 50
  283. // anchors.horizontalCenter: parent.horizontalCenter
  284. textHeight: 50
  285. fontHeight: 0.4
  286. width: 150
  287. height: 50
  288. visible: bar.currentIndex < 8
  289. color: pressed ? textClickedColor : mainAppColor
  290. text: String.fromCharCode(0x41+bar.currentIndex) +"13"
  291. onClicked: moveBegin(bar.currentIndex,15)
  292. }
  293. CButton {
  294. // id: resultButton
  295. // anchors.top: loginPassword.bottom
  296. // anchors.topMargin: 50
  297. // anchors.horizontalCenter: parent.horizontalCenter
  298. textHeight: 50
  299. fontHeight: 0.4
  300. width: 150
  301. height: 50
  302. visible: bar.currentIndex < 8
  303. color: pressed ? textClickedColor : mainAppColor
  304. text: String.fromCharCode(0x41+bar.currentIndex) +"14"
  305. onClicked: moveBegin(bar.currentIndex,16)
  306. }
  307. CButton {
  308. // id: resultButton
  309. // anchors.top: loginPassword.bottom
  310. // anchors.topMargin: 50
  311. // anchors.horizontalCenter: parent.horizontalCenter
  312. textHeight: 50
  313. fontHeight: 0.4
  314. width: 150
  315. height: 50
  316. visible: bar.currentIndex < 8
  317. color: pressed ? textClickedColor : mainAppColor
  318. text: String.fromCharCode(0x41+bar.currentIndex) +"15"
  319. onClicked: moveBegin(bar.currentIndex,17)
  320. }
  321. CButton {
  322. // id: resultButton
  323. // anchors.top: loginPassword.bottom
  324. // anchors.topMargin: 50
  325. // anchors.horizontalCenter: parent.horizontalCenter
  326. textHeight: 50
  327. fontHeight: 0.4
  328. width: 150
  329. height: 50
  330. visible: bar.currentIndex < 8
  331. color: pressed ? textClickedColor : mainAppColor
  332. text: String.fromCharCode(0x41+bar.currentIndex) +"16"
  333. onClicked: moveBegin(bar.currentIndex,18)
  334. }
  335. CButton {
  336. // id: resultButton
  337. // anchors.top: loginPassword.bottom
  338. // anchors.topMargin: 50
  339. // anchors.horizontalCenter: parent.horizontalCenter
  340. textHeight: 50
  341. fontHeight: 0.4
  342. width: 150
  343. height: 50
  344. visible: bar.currentIndex < 8
  345. color: pressed ? textClickedColor : mainAppColor
  346. text: String.fromCharCode(0x41+bar.currentIndex) +"17"
  347. onClicked: moveBegin(bar.currentIndex,19)
  348. }
  349. CButton {
  350. // id: resultButton
  351. // anchors.top: loginPassword.bottom
  352. // anchors.topMargin: 50
  353. // anchors.horizontalCenter: parent.horizontalCenter
  354. textHeight: 50
  355. fontHeight: 0.4
  356. width: 150
  357. height: 50
  358. visible: bar.currentIndex < 8
  359. color: pressed ? textClickedColor : mainAppColor
  360. text: String.fromCharCode(0x41+bar.currentIndex) +"18"
  361. onClicked: moveBegin(bar.currentIndex,20)
  362. }
  363. }
  364. Row {
  365. height: parent.height
  366. // anchors.horizontalCenter: parent.horizontalCenter
  367. // anchors.top:parent.top
  368. // anchors.topMargin: 20
  369. y:450
  370. x:100
  371. spacing: 20
  372. CButton {
  373. // id: resultButton
  374. // anchors.top: loginPassword.bottom
  375. // anchors.topMargin: 50
  376. // anchors.horizontalCenter: parent.horizontalCenter
  377. textHeight: 50
  378. fontHeight: 0.4
  379. width: 150
  380. height: 50
  381. visible: bar.currentIndex < 8
  382. color: pressed ? textClickedColor : mainAppColor
  383. text: String.fromCharCode(0x41+bar.currentIndex) +"19"
  384. onClicked: moveBegin(bar.currentIndex,21)
  385. }
  386. CButton {
  387. // id: resultButton
  388. // anchors.top: loginPassword.bottom
  389. // anchors.topMargin: 50
  390. // anchors.horizontalCenter: parent.horizontalCenter
  391. textHeight: 50
  392. fontHeight: 0.4
  393. width: 150
  394. height: 50
  395. visible: bar.currentIndex < 8
  396. color: pressed ? textClickedColor : mainAppColor
  397. text: String.fromCharCode(0x41+bar.currentIndex) +"20"
  398. onClicked: moveBegin(bar.currentIndex,22)
  399. }
  400. CButton {
  401. // id: resultButton
  402. // anchors.top: loginPassword.bottom
  403. // anchors.topMargin: 50
  404. // anchors.horizontalCenter: parent.horizontalCenter
  405. textHeight: 50
  406. fontHeight: 0.4
  407. width: 150
  408. height: 50
  409. visible: bar.currentIndex < 8
  410. color: pressed ? textClickedColor : mainAppColor
  411. text: String.fromCharCode(0x41+bar.currentIndex) +"21"
  412. onClicked: moveBegin(bar.currentIndex,23)
  413. }
  414. CButton {
  415. // id: resultButton
  416. // anchors.top: loginPassword.bottom
  417. // anchors.topMargin: 50
  418. // anchors.horizontalCenter: parent.horizontalCenter
  419. textHeight: 50
  420. fontHeight: 0.4
  421. width: 150
  422. height: 50
  423. visible: bar.currentIndex < 8
  424. color: pressed ? textClickedColor : mainAppColor
  425. text: String.fromCharCode(0x41+bar.currentIndex) +"22"
  426. onClicked: moveBegin(bar.currentIndex,24)
  427. }
  428. CButton {
  429. // id: resultButton
  430. // anchors.top: loginPassword.bottom
  431. // anchors.topMargin: 50
  432. // anchors.horizontalCenter: parent.horizontalCenter
  433. textHeight: 50
  434. fontHeight: 0.4
  435. width: 150
  436. height: 50
  437. visible: bar.currentIndex < 8
  438. color: pressed ? textClickedColor : mainAppColor
  439. text: String.fromCharCode(0x41+bar.currentIndex) +"23"
  440. onClicked: moveBegin(bar.currentIndex,25)
  441. }
  442. CButton {
  443. // id: resultButton
  444. // anchors.top: loginPassword.bottom
  445. // anchors.topMargin: 50
  446. // anchors.horizontalCenter: parent.horizontalCenter
  447. textHeight: 50
  448. fontHeight: 0.4
  449. width: 150
  450. height: 50
  451. visible: bar.currentIndex < 8
  452. color: pressed ? textClickedColor : mainAppColor
  453. text: String.fromCharCode(0x41+bar.currentIndex) + "24"
  454. onClicked: moveBegin(bar.currentIndex,26)
  455. }
  456. CButton {
  457. // id: resultButton
  458. // anchors.top: loginPassword.bottom
  459. // anchors.topMargin: 50
  460. // anchors.horizontalCenter: parent.horizontalCenter
  461. textHeight: 50
  462. fontHeight: 0.4
  463. width: 150
  464. height: 50
  465. visible: bar.currentIndex < 8
  466. color: pressed ? textClickedColor : mainAppColor
  467. text: String.fromCharCode(0x41+bar.currentIndex) +"25"
  468. onClicked: moveBegin(bar.currentIndex,27)
  469. }
  470. CButton {
  471. // id: resultButton
  472. // anchors.top: loginPassword.bottom
  473. // anchors.topMargin: 50
  474. // anchors.horizontalCenter: parent.horizontalCenter
  475. textHeight: 50
  476. fontHeight: 0.4
  477. width: 150
  478. height: 50
  479. visible: bar.currentIndex < 8
  480. color: pressed ? textClickedColor : mainAppColor
  481. text: String.fromCharCode(0x41+bar.currentIndex) +"26"
  482. onClicked: moveBegin(bar.currentIndex,28)
  483. }
  484. CButton {
  485. // id: resultButton
  486. // anchors.top: loginPassword.bottom
  487. // anchors.topMargin: 50
  488. // anchors.horizontalCenter: parent.horizontalCenter
  489. textHeight: 50
  490. fontHeight: 0.4
  491. width: 150
  492. height: 50
  493. visible: bar.currentIndex < 8
  494. color: pressed ? textClickedColor : mainAppColor
  495. text: String.fromCharCode(0x41+bar.currentIndex) +"27"
  496. onClicked: moveBegin(bar.currentIndex,29)
  497. }
  498. CButton {
  499. // id: resultButton
  500. // anchors.top: loginPassword.bottom
  501. // anchors.topMargin: 50
  502. // anchors.horizontalCenter: parent.horizontalCenter
  503. textHeight: 50
  504. fontHeight: 0.4
  505. width: 150
  506. height: 50
  507. visible: bar.currentIndex < 8
  508. color: pressed ? textClickedColor : mainAppColor
  509. text: String.fromCharCode(0x41+bar.currentIndex) +"28"
  510. onClicked: moveBegin(bar.currentIndex,30)
  511. }
  512. }
  513. Row {
  514. height: parent.height
  515. // anchors.horizontalCenter: parent.horizontalCenter
  516. // anchors.top:parent.top
  517. // anchors.topMargin: 20
  518. y:550
  519. x:100
  520. spacing: 20
  521. CButton {
  522. // id: resultButton
  523. // anchors.top: loginPassword.bottom
  524. // anchors.topMargin: 50
  525. // anchors.horizontalCenter: parent.horizontalCenter
  526. textHeight: 50
  527. fontHeight: 0.4
  528. width: 150
  529. height: 50
  530. visible: bar.currentIndex < 8
  531. color: pressed ? textClickedColor : mainAppColor
  532. text: String.fromCharCode(0x41+bar.currentIndex) +"29"
  533. onClicked: moveBegin(bar.currentIndex,31)
  534. }
  535. CButton {
  536. // id: resultButton
  537. // anchors.top: loginPassword.bottom
  538. // anchors.topMargin: 50
  539. // anchors.horizontalCenter: parent.horizontalCenter
  540. textHeight: 50
  541. fontHeight: 0.4
  542. width: 150
  543. height: 50
  544. visible: bar.currentIndex < 8
  545. color: pressed ? textClickedColor : mainAppColor
  546. text: String.fromCharCode(0x41+bar.currentIndex) +"30"
  547. onClicked: moveBegin(bar.currentIndex,32)
  548. }
  549. CButton {
  550. // id: resultButton
  551. // anchors.top: loginPassword.bottom
  552. // anchors.topMargin: 50
  553. // anchors.horizontalCenter: parent.horizontalCenter
  554. textHeight: 50
  555. fontHeight: 0.4
  556. width: 150
  557. height: 50
  558. visible: bar.currentIndex < 8
  559. color: pressed ? textClickedColor : mainAppColor
  560. text: String.fromCharCode(0x41+bar.currentIndex) +"31"
  561. onClicked: moveBegin(bar.currentIndex,33)
  562. }
  563. CButton {
  564. // id: resultButton
  565. // anchors.top: loginPassword.bottom
  566. // anchors.topMargin: 50
  567. // anchors.horizontalCenter: parent.horizontalCenter
  568. textHeight: 50
  569. fontHeight: 0.4
  570. width: 150
  571. height: 50
  572. visible: bar.currentIndex < 8
  573. color: pressed ? textClickedColor : mainAppColor
  574. text: String.fromCharCode(0x41+bar.currentIndex) +"32"
  575. onClicked: moveBegin(bar.currentIndex,34)
  576. }
  577. CButton {
  578. // id: resultButton
  579. // anchors.top: loginPassword.bottom
  580. // anchors.topMargin: 50
  581. // anchors.horizontalCenter: parent.horizontalCenter
  582. textHeight: 50
  583. fontHeight: 0.4
  584. width: 150
  585. height: 50
  586. visible: bar.currentIndex < 8
  587. color: pressed ? textClickedColor : mainAppColor
  588. text: String.fromCharCode(0x41+bar.currentIndex) +"33"
  589. onClicked: moveBegin(bar.currentIndex,35)
  590. }
  591. CButton {
  592. // id: resultButton
  593. // anchors.top: loginPassword.bottom
  594. // anchors.topMargin: 50
  595. // anchors.horizontalCenter: parent.horizontalCenter
  596. textHeight: 50
  597. fontHeight: 0.4
  598. width: 150
  599. height: 50
  600. visible: bar.currentIndex < 8
  601. color: pressed ? textClickedColor : mainAppColor
  602. text: String.fromCharCode(0x41+bar.currentIndex) +"34"
  603. onClicked: moveBegin(bar.currentIndex,36)
  604. }
  605. CButton {
  606. // id: resultButton
  607. // anchors.top: loginPassword.bottom
  608. // anchors.topMargin: 50
  609. // anchors.horizontalCenter: parent.horizontalCenter
  610. textHeight: 50
  611. fontHeight: 0.4
  612. width: 150
  613. height: 50
  614. visible: bar.currentIndex < 8
  615. color: pressed ? textClickedColor : mainAppColor
  616. text: String.fromCharCode(0x41+bar.currentIndex) +"35"
  617. onClicked: moveBegin(bar.currentIndex,37)
  618. }
  619. CButton {
  620. // id: resultButton
  621. // anchors.top: loginPassword.bottom
  622. // anchors.topMargin: 50
  623. // anchors.horizontalCenter: parent.horizontalCenter
  624. textHeight: 50
  625. fontHeight: 0.4
  626. width: 150
  627. height: 50
  628. visible: bar.currentIndex < 8
  629. color: pressed ? textClickedColor : mainAppColor
  630. text: String.fromCharCode(0x41+bar.currentIndex) +"36"
  631. onClicked: moveBegin(bar.currentIndex,38)
  632. }
  633. CButton {
  634. // id: resultButton
  635. // anchors.top: loginPassword.bottom
  636. // anchors.topMargin: 50
  637. // anchors.horizontalCenter: parent.horizontalCenter
  638. textHeight: 50
  639. fontHeight: 0.4
  640. width: 150
  641. height: 50
  642. visible: bar.currentIndex < 8
  643. color: pressed ? textClickedColor : mainAppColor
  644. text: String.fromCharCode(0x41+bar.currentIndex) +"37"
  645. onClicked: moveBegin(bar.currentIndex,39)
  646. }
  647. CButton {
  648. // id: resultButton
  649. // anchors.top: loginPassword.bottom
  650. // anchors.topMargin: 50
  651. // anchors.horizontalCenter: parent.horizontalCenter
  652. textHeight: 50
  653. fontHeight: 0.4
  654. width: 150
  655. height: 50
  656. visible: bar.currentIndex < 8
  657. color: pressed ? textClickedColor : mainAppColor
  658. text: String.fromCharCode(0x41+bar.currentIndex) +"38"
  659. onClicked: moveBegin(bar.currentIndex,40)
  660. }
  661. }
  662. Row {
  663. height: parent.height
  664. // anchors.horizontalCenter: parent.horizontalCenter
  665. // anchors.top:parent.top
  666. // anchors.topMargin: 20
  667. y:650
  668. x:100
  669. spacing: 20
  670. CButton {
  671. // id: resultButton
  672. // anchors.top: loginPassword.bottom
  673. // anchors.topMargin: 50
  674. // anchors.horizontalCenter: parent.horizontalCenter
  675. textHeight: 50
  676. fontHeight: 0.4
  677. width: 150
  678. height: 50
  679. visible: bar.currentIndex < 8
  680. color: pressed ? textClickedColor : mainAppColor
  681. text: String.fromCharCode(0x41+bar.currentIndex) +"39"
  682. onClicked: moveBegin(bar.currentIndex,41)
  683. }
  684. CButton {
  685. // id: resultButton
  686. // anchors.top: loginPassword.bottom
  687. // anchors.topMargin: 50
  688. // anchors.horizontalCenter: parent.horizontalCenter
  689. textHeight: 50
  690. fontHeight: 0.4
  691. width: 150
  692. height: 50
  693. visible: bar.currentIndex < 8
  694. color: pressed ? textClickedColor : mainAppColor
  695. text: String.fromCharCode(0x41+bar.currentIndex) +"40"
  696. onClicked: moveBegin(bar.currentIndex,42)
  697. }
  698. CButton {
  699. // id: resultButton
  700. // anchors.top: loginPassword.bottom
  701. // anchors.topMargin: 50
  702. // anchors.horizontalCenter: parent.horizontalCenter
  703. textHeight: 50
  704. fontHeight: 0.4
  705. width: 150
  706. height: 50
  707. visible: bar.currentIndex < 8
  708. color: pressed ? textClickedColor : mainAppColor
  709. text: String.fromCharCode(0x41+bar.currentIndex) +"41"
  710. onClicked: moveBegin(bar.currentIndex,43)
  711. }
  712. CButton {
  713. // id: resultButton
  714. // anchors.top: loginPassword.bottom
  715. // anchors.topMargin: 50
  716. // anchors.horizontalCenter: parent.horizontalCenter
  717. textHeight: 50
  718. fontHeight: 0.4
  719. width: 150
  720. height: 50
  721. visible: bar.currentIndex < 8
  722. color: pressed ? textClickedColor : mainAppColor
  723. text: String.fromCharCode(0x41+bar.currentIndex) +"42"
  724. onClicked: moveBegin(bar.currentIndex,44)
  725. }
  726. CButton {
  727. // id: resultButton
  728. // anchors.top: loginPassword.bottom
  729. // anchors.topMargin: 50
  730. // anchors.horizontalCenter: parent.horizontalCenter
  731. textHeight: 50
  732. fontHeight: 0.4
  733. width: 150
  734. height: 50
  735. visible: bar.currentIndex < 8
  736. color: pressed ? textClickedColor : mainAppColor
  737. text: String.fromCharCode(0x41+bar.currentIndex) +"43"
  738. onClicked: moveBegin(bar.currentIndex,45)
  739. }
  740. CButton {
  741. // id: resultButton
  742. // anchors.top: loginPassword.bottom
  743. // anchors.topMargin: 50
  744. // anchors.horizontalCenter: parent.horizontalCenter
  745. textHeight: 50
  746. fontHeight: 0.4
  747. width: 150
  748. height: 50
  749. visible: bar.currentIndex < 8
  750. color: pressed ? textClickedColor : mainAppColor
  751. text: String.fromCharCode(0x41+bar.currentIndex) +"44"
  752. onClicked: moveBegin(bar.currentIndex,46)
  753. }
  754. CButton {
  755. // id: resultButton
  756. // anchors.top: loginPassword.bottom
  757. // anchors.topMargin: 50
  758. // anchors.horizontalCenter: parent.horizontalCenter
  759. textHeight: 50
  760. fontHeight: 0.4
  761. width: 150
  762. height: 50
  763. visible: bar.currentIndex < 8
  764. color: pressed ? textClickedColor : mainAppColor
  765. text: String.fromCharCode(0x41+bar.currentIndex) +"45"
  766. onClicked: moveBegin(bar.currentIndex,47)
  767. }
  768. CButton {
  769. // id: resultButton
  770. // anchors.top: loginPassword.bottom
  771. // anchors.topMargin: 50
  772. // anchors.horizontalCenter: parent.horizontalCenter
  773. textHeight: 50
  774. fontHeight: 0.4
  775. width: 150
  776. height: 50
  777. visible: bar.currentIndex < 8
  778. color: pressed ? textClickedColor : mainAppColor
  779. text: String.fromCharCode(0x41+bar.currentIndex) +"46"
  780. onClicked: moveBegin(bar.currentIndex,48)
  781. }
  782. CButton {
  783. // id: resultButton
  784. // anchors.top: loginPassword.bottom
  785. // anchors.topMargin: 50
  786. // anchors.horizontalCenter: parent.horizontalCenter
  787. textHeight: 50
  788. fontHeight: 0.4
  789. width: 150
  790. height: 50
  791. visible: bar.currentIndex < 8
  792. color: pressed ? textClickedColor : mainAppColor
  793. text: String.fromCharCode(0x41+bar.currentIndex) +"47"
  794. onClicked: moveBegin(bar.currentIndex,49)
  795. }
  796. CButton {
  797. // id: resultButton
  798. // anchors.top: loginPassword.bottom
  799. // anchors.topMargin: 50
  800. // anchors.horizontalCenter: parent.horizontalCenter
  801. textHeight: 50
  802. fontHeight: 0.4
  803. width: 150
  804. height: 50
  805. visible: bar.currentIndex < 8
  806. color: pressed ? textClickedColor : mainAppColor
  807. text: String.fromCharCode(0x41+bar.currentIndex) +"48"
  808. onClicked: moveBegin(bar.currentIndex,50)
  809. }
  810. }
  811. /*
  812. Text {
  813. id: text
  814. width: parent.width
  815. y:750
  816. x:100
  817. currentIndex:0
  818. text: qsTr("倒渣区")
  819. height:60
  820. }*/
  821. Row {
  822. height: parent.height
  823. y:750
  824. x:100
  825. spacing: 20
  826. CButton {
  827. textHeight: 50
  828. fontHeight: 0.4
  829. width: 150
  830. height: 50
  831. visible: true //bar.currentIndex !== 9
  832. color: pressed ? textClickedColor : textColorDao
  833. text: "倒渣区"
  834. onClicked: moveBegin(9,11)
  835. }
  836. }
  837. Row {
  838. height: parent.height
  839. y:950
  840. x:100
  841. spacing: 20
  842. CButton {
  843. textHeight: 50
  844. fontHeight: 0.4
  845. width: 150
  846. height: 50
  847. visible: true //bar.currentIndex !== 9
  848. color: pressed ? textClickedColor : textColorDao
  849. text: "倒渣11"
  850. onClicked: moveBegin(9,11)
  851. }
  852. CButton {
  853. textHeight: 50
  854. fontHeight: 0.4
  855. width: 150
  856. height: 50
  857. visible: true ///bar.currentIndex !== 9
  858. color: pressed ? textClickedColor : textColorDao
  859. text: "倒渣12"
  860. onClicked: moveBegin(9,12)
  861. }
  862. CButton {
  863. textHeight: 50
  864. fontHeight: 0.4
  865. width: 150
  866. height: 50
  867. visible: true //bar.currentIndex !== 9
  868. color: pressed ? textClickedColor : textColorDao
  869. text: "倒渣13"
  870. onClicked: moveBegin(9,13)
  871. }
  872. CButton {
  873. textHeight: 50
  874. fontHeight: 0.4
  875. width: 150
  876. height: 50
  877. visible: true //bar.currentIndex !== 9
  878. color: pressed ? textClickedColor : textColorDao
  879. text: "倒渣14"
  880. onClicked: moveBegin(9,14)
  881. }
  882. }
  883. Row {
  884. height: parent.height
  885. y:850
  886. x:100
  887. spacing: 20
  888. CButton {
  889. textHeight: 50
  890. fontHeight: 0.4
  891. width: 150
  892. height: 50
  893. color: pressed ? textClickedColor : textColorDao
  894. text: "倒渣1"
  895. onClicked: moveBegin(9,1)
  896. }
  897. CButton {
  898. textHeight: 50
  899. fontHeight: 0.4
  900. width: 150
  901. height: 50
  902. visible: true //bar.currentIndex !== 8
  903. color: pressed ? textClickedColor : textColorDao
  904. text: "倒渣2"
  905. onClicked: moveBegin(9,2)
  906. }
  907. CButton {
  908. textHeight: 50
  909. fontHeight: 0.4
  910. width: 150
  911. height: 50
  912. visible: true// bar.currentIndex !== 8
  913. color: pressed ? textClickedColor : textColorDao
  914. text: "倒渣3"
  915. onClicked: moveBegin(9,3)
  916. }
  917. CButton {
  918. textHeight: 50
  919. fontHeight: 0.4
  920. width: 150
  921. height: 50
  922. visible: true //bar.currentIndex !== 8
  923. color: pressed ? textClickedColor : textColorDao
  924. text: "倒渣4"
  925. onClicked: moveBegin(9,4)
  926. }
  927. CButton {
  928. textHeight: 50
  929. fontHeight: 0.4
  930. width: 150
  931. height: 50
  932. visible: bar.currentIndex !== 8
  933. color: pressed ? textClickedColor : textColorDao
  934. text: "倒渣5"
  935. onClicked: moveBegin(9,5)
  936. }
  937. CButton {
  938. textHeight: 50
  939. fontHeight: 0.4
  940. width: 150
  941. height: 50
  942. visible: bar.currentIndex !== 8
  943. color: pressed ? textClickedColor : textColorDao
  944. text: "倒渣6"
  945. onClicked: moveBegin(9,6)
  946. }
  947. CButton {
  948. textHeight: 50
  949. fontHeight: 0.4
  950. width: 150
  951. height: 50
  952. visible: bar.currentIndex !== 8
  953. color: pressed ? textClickedColor : textColorDao
  954. text: "倒渣7"
  955. onClicked: moveBegin(9,7)
  956. }
  957. CButton {
  958. textHeight: 50
  959. fontHeight: 0.4
  960. width: 150
  961. height: 50
  962. visible: bar.currentIndex !== 8
  963. color: pressed ? textClickedColor : textColorDao
  964. text: "倒渣8"
  965. onClicked: moveBegin(9,8)
  966. }
  967. CButton {
  968. textHeight: 50
  969. fontHeight: 0.4
  970. width: 150
  971. height: 50
  972. visible: bar.currentIndex !== 8
  973. color: pressed ? textClickedColor : textColorDao
  974. text: "倒渣9"
  975. onClicked: moveBegin(9,9)
  976. }
  977. CButton {
  978. textHeight: 50
  979. fontHeight: 0.4
  980. width: 150
  981. height: 50
  982. visible: bar.currentIndex !== 8
  983. color: pressed ? textClickedColor : textColorDao
  984. text: "倒渣10"
  985. onClicked: moveBegin(9,10)
  986. }
  987. }
  988. Row {
  989. height: parent.height
  990. y:950
  991. x:100
  992. spacing: 20
  993. CButton {
  994. textHeight: 50
  995. fontHeight: 0.4
  996. width: 150
  997. height: 50
  998. visible: true //bar.currentIndex !== 9
  999. color: pressed ? textClickedColor : textColorDao
  1000. text: "倒渣11"
  1001. onClicked: moveBegin(9,11)
  1002. }
  1003. CButton {
  1004. textHeight: 50
  1005. fontHeight: 0.4
  1006. width: 150
  1007. height: 50
  1008. visible: true ///bar.currentIndex !== 9
  1009. color: pressed ? textClickedColor : textColorDao
  1010. text: "倒渣12"
  1011. onClicked: moveBegin(9,12)
  1012. }
  1013. CButton {
  1014. textHeight: 50
  1015. fontHeight: 0.4
  1016. width: 150
  1017. height: 50
  1018. visible: true //bar.currentIndex !== 9
  1019. color: pressed ? textClickedColor : textColorDao
  1020. text: "倒渣13"
  1021. onClicked: moveBegin(9,13)
  1022. }
  1023. CButton {
  1024. textHeight: 50
  1025. fontHeight: 0.4
  1026. width: 150
  1027. height: 50
  1028. visible: true //bar.currentIndex !== 9
  1029. color: pressed ? textClickedColor : textColorDao
  1030. text: "倒渣14"
  1031. onClicked: moveBegin(9,14)
  1032. }
  1033. }
  1034. CButton {
  1035. id: carButton
  1036. x:10
  1037. y:400
  1038. textHeight: 50
  1039. fontHeight: 0.4
  1040. width: 50
  1041. height: 200
  1042. color: pressed ? textClickedColor : mainAppColor
  1043. Text{
  1044. text: "\n 车\n 辆\n 管\n 理"
  1045. wrapMode: Text.WordWrap
  1046. font.pointSize: 20
  1047. color:"white"
  1048. verticalAlignment: Text.AlignVCenter
  1049. }
  1050. onClicked:carManage();
  1051. }
  1052. }