table.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. <template>
  2. <div>
  3. <select-panel
  4. :placeholder="placeholder"
  5. :yearData="yearData"
  6. @searchActive="searchActive"
  7. @clearData="clearData"
  8. @targetChange="targetChange"
  9. @clearTarget="clearTarget"
  10. @yearChange="yearChange"
  11. style="margin-bottom:16px"/>
  12. <el-table
  13. :data="tableData"
  14. style="width: 100%"
  15. height="calc(100vh - 182px)"
  16. size="small"
  17. :row-class-name="tableRowClassName">
  18. <el-table-column
  19. prop="depfullname"
  20. label="部门"
  21. width="120"
  22. fixed>
  23. <template slot-scope="scope">
  24. <p>{{scope.row.depfullname}}</p>
  25. </template>
  26. </el-table-column>
  27. <el-table-column
  28. prop="name"
  29. label="人员"
  30. width="80"
  31. fixed>
  32. <template slot-scope="scope">
  33. <p>{{scope.row.name?scope.row.name:'--'}}</p>
  34. </template>
  35. </el-table-column>
  36. <el-table-column
  37. prop="position"
  38. label="职位"
  39. width="100"
  40. fixed>
  41. <template slot-scope="scope">
  42. <p>{{scope.row.position?scope.row.position:'--'}}</p>
  43. </template>
  44. </el-table-column>
  45. <el-table-column
  46. prop="projectnum"
  47. label="项目数量"
  48. width="100"
  49. fixed>
  50. <template slot-scope="scope">
  51. <p>{{scope.row.projectnum?scope.row.projectnum:'--'}}</p>
  52. </template>
  53. </el-table-column>
  54. <el-table-column
  55. prop="projectname"
  56. label="项目名称"
  57. width="100"
  58. fixed>
  59. <template slot-scope="scope">
  60. <p>{{scope.row.projectname?scope.row.projectname:'--'}}</p>
  61. </template>
  62. </el-table-column>
  63. <el-table-column
  64. label="目标/实际"
  65. width="100">
  66. <template>
  67. <p class="center d-text">目标</p>
  68. <p class="border"></p>
  69. <p class="center d-text">实际</p>
  70. </template>
  71. </el-table-column>
  72. <el-table-column label="年度(万元)">
  73. <el-table-column
  74. prop="y1l"
  75. label="基本"
  76. width="120">
  77. <template slot-scope="scope">
  78. <p class="center d-text">{{scope.row.y1l}}</p>
  79. <p class="border"></p>
  80. <p class="center">{{scope.row.y1a}}</p>
  81. <p class="center" :class="scope.row.y1pl < 0?'green':'red'">({{scope.row.y1pl}}%)</p>
  82. </template>
  83. </el-table-column>
  84. <el-table-column
  85. prop="y1h"
  86. label="挑战"
  87. width="120">
  88. <template slot-scope="scope">
  89. <p class="center d-text">{{scope.row.y1h}}</p>
  90. <p class="border"></p>
  91. <p class="center">{{scope.row.y1a}}</p>
  92. <p class="center" :class="scope.row.y1ph < 0?'green':'red'">({{scope.row.y1ph}}%)</p>
  93. </template>
  94. </el-table-column>
  95. </el-table-column>
  96. <el-table-column label="第一季度(万元)">
  97. <el-table-column
  98. prop="s1l"
  99. label="基本"
  100. width="120">
  101. <template slot-scope="scope">
  102. <p class="center d-text">{{scope.row.s1l}}</p>
  103. <p class="border"></p>
  104. <p class="center">{{scope.row.s1a}}</p>
  105. <p class="center" :class="scope.row.s1pl < 0?'green':'red'">({{scope.row.s1pl}}%)</p>
  106. </template>
  107. </el-table-column>
  108. <el-table-column
  109. prop="s1h"
  110. label="挑战"
  111. width="120">
  112. <template slot-scope="scope">
  113. <p class="center d-text">{{scope.row.s1h}}</p>
  114. <p class="border"></p>
  115. <p class="center">{{scope.row.s1a}}</p>
  116. <p class="center" :class="scope.row.s1ph < 0?'green':'red'">({{scope.row.s1ph}}%)</p>
  117. </template>
  118. </el-table-column>
  119. </el-table-column>
  120. <el-table-column label="一月(万元)">
  121. <el-table-column
  122. prop="m1l"
  123. label="基本"
  124. width="120">
  125. <template slot-scope="scope">
  126. <p class="center d-text">{{scope.row.m1l}}</p>
  127. <p class="border"></p>
  128. <p class="center">{{scope.row.m1a}}</p>
  129. <p class="center" :class="scope.row.m1pl < 0?'green':'red'">({{scope.row.m1pl}}%)</p>
  130. </template>
  131. </el-table-column>
  132. <el-table-column
  133. prop="m1h"
  134. label="挑战"
  135. width="120">
  136. <template slot-scope="scope">
  137. <p class="center d-text">{{scope.row.m1h}}</p>
  138. <p class="border"></p>
  139. <p class="center">{{scope.row.m1a}}</p>
  140. <p class="center" :class="scope.row.m1ph < 0?'green':'red'">({{scope.row.m1ph}}%)</p>
  141. </template>
  142. </el-table-column>
  143. </el-table-column>
  144. <el-table-column label="二月(万元)">
  145. <el-table-column
  146. prop="m2l"
  147. label="基本"
  148. width="120">
  149. <template slot-scope="scope">
  150. <p class="center d-text">{{scope.row.m2l}}</p>
  151. <p class="border"></p>
  152. <p class="center">{{scope.row.m2a}}</p>
  153. <p class="center" :class="scope.row.m2pl < 0?'green':'red'">({{scope.row.m2pl}}%)</p>
  154. </template>
  155. </el-table-column>
  156. <el-table-column
  157. prop="m2h"
  158. label="挑战"
  159. width="120">
  160. <template slot-scope="scope">
  161. <p class="center d-text">{{scope.row.m2h}}</p>
  162. <p class="border"></p>
  163. <p class="center">{{scope.row.m2a}}</p>
  164. <p class="center" :class="scope.row.m2ph < 0?'green':'red'">({{scope.row.m2ph}}%)</p>
  165. </template>
  166. </el-table-column>
  167. </el-table-column>
  168. <el-table-column label="三月(万元)">
  169. <el-table-column
  170. prop="m3l"
  171. label="基本"
  172. width="120">
  173. <template slot-scope="scope">
  174. <p class="center d-text">{{scope.row.m3l}}</p>
  175. <p class="border"></p>
  176. <p class="center">{{scope.row.m3a}}</p>
  177. <p class="center" :class="scope.row.m3pl < 0?'green':'red'">({{scope.row.m3pl}}%)</p>
  178. </template>
  179. </el-table-column>
  180. <el-table-column
  181. prop="m3h"
  182. label="挑战"
  183. width="120">
  184. <template slot-scope="scope">
  185. <p class="center d-text">{{scope.row.m3h}}</p>
  186. <p class="border"></p>
  187. <p class="center">{{scope.row.m3a}}</p>
  188. <p class="center" :class="scope.row.m3ph < 0?'green':'red'">({{scope.row.m3ph}}%)</p>
  189. </template>
  190. </el-table-column>
  191. </el-table-column>
  192. <el-table-column label="第二季度(万元)">
  193. <el-table-column
  194. prop="s2l"
  195. label="基本"
  196. width="120">
  197. <template slot-scope="scope">
  198. <p class="center d-text">{{scope.row.s2l}}</p>
  199. <p class="border"></p>
  200. <p class="center">{{scope.row.s2a}}</p>
  201. <p class="center" :class="scope.row.s2pl < 0?'green':'red'">({{scope.row.s2pl}}%)</p>
  202. </template>
  203. </el-table-column>
  204. <el-table-column
  205. prop="s2h"
  206. label="挑战"
  207. width="120">
  208. <template slot-scope="scope">
  209. <p class="center d-text">{{scope.row.s2h}}</p>
  210. <p class="border"></p>
  211. <p class="center">{{scope.row.s2a}}</p>
  212. <p class="center" :class="scope.row.s2ph < 0?'green':'red'">({{scope.row.s2ph}}%)</p>
  213. </template>
  214. </el-table-column>
  215. </el-table-column>
  216. <el-table-column label="四月(万元)">
  217. <el-table-column
  218. prop="m4l"
  219. label="基本"
  220. width="120">
  221. <template slot-scope="scope">
  222. <p class="center d-text">{{scope.row.m4l}}</p>
  223. <p class="border"></p>
  224. <p class="center">{{scope.row.m4a}}</p>
  225. <p class="center" :class="scope.row.m4pl < 0?'green':'red'">({{scope.row.m4pl}}%)</p>
  226. </template>
  227. </el-table-column>
  228. <el-table-column
  229. prop="m4h"
  230. label="挑战"
  231. width="120">
  232. <template slot-scope="scope">
  233. <p class="center d-text">{{scope.row.m4h}}</p>
  234. <p class="border"></p>
  235. <p class="center">{{scope.row.m4a}}</p>
  236. <p class="center" :class="scope.row.m4ph < 0?'green':'red'">({{scope.row.m4ph}}%)</p>
  237. </template>
  238. </el-table-column>
  239. </el-table-column>
  240. <el-table-column label="五月(万元)">
  241. <el-table-column
  242. prop="m5l"
  243. label="基本"
  244. width="120">
  245. <template slot-scope="scope">
  246. <p class="center d-text">{{scope.row.m5l}}</p>
  247. <p class="border"></p>
  248. <p class="center">{{scope.row.m5a}}</p>
  249. <p class="center" :class="scope.row.m5pl < 0?'green':'red'">({{scope.row.m5pl}}%)</p>
  250. </template>
  251. </el-table-column>
  252. <el-table-column
  253. prop="m5h"
  254. label="挑战"
  255. width="120">
  256. <template slot-scope="scope">
  257. <p class="center d-text">{{scope.row.m5h}}</p>
  258. <p class="border"></p>
  259. <p class="center">{{scope.row.m5a}}</p>
  260. <p class="center" :class="scope.row.m5ph < 0?'green':'red'">({{scope.row.m5ph}}%)</p>
  261. </template>
  262. </el-table-column>
  263. </el-table-column>
  264. <el-table-column label="六月(万元)">
  265. <el-table-column
  266. prop="m6l"
  267. label="基本"
  268. width="120">
  269. <template slot-scope="scope">
  270. <p class="center d-text">{{scope.row.m6l}}</p>
  271. <p class="border"></p>
  272. <p class="center">{{scope.row.m6a}}</p>
  273. <p class="center" :class="scope.row.m6pl < 0?'green':'red'">({{scope.row.m6pl}}%)</p>
  274. </template>
  275. </el-table-column>
  276. <el-table-column
  277. prop="m6h"
  278. label="挑战"
  279. width="120">
  280. <template slot-scope="scope">
  281. <p class="center d-text">{{scope.row.m6h}}</p>
  282. <p class="border"></p>
  283. <p class="center">{{scope.row.m6a}}</p>
  284. <p class="center" :class="scope.row.m6ph < 0?'green':'red'">({{scope.row.m6ph}}%)</p>
  285. </template>
  286. </el-table-column>
  287. </el-table-column>
  288. <el-table-column label="第三季度(万元)">
  289. <el-table-column
  290. prop="s3l"
  291. label="基本"
  292. width="120">
  293. <template slot-scope="scope">
  294. <p class="center d-text">{{scope.row.s3l}}</p>
  295. <p class="border"></p>
  296. <p class="center">{{scope.row.s3a}}</p>
  297. <p class="center" :class="scope.row.s3pl < 0?'green':'red'">({{scope.row.s3pl}}%)</p>
  298. </template>
  299. </el-table-column>
  300. <el-table-column
  301. prop="s3h"
  302. label="挑战"
  303. width="120">
  304. <template slot-scope="scope">
  305. <p class="center d-text">{{scope.row.s3h}}</p>
  306. <p class="border"></p>
  307. <p class="center">{{scope.row.s3a}}</p>
  308. <p class="center" :class="scope.row.s3ph < 0?'green':'red'">({{scope.row.s3ph}}%)</p>
  309. </template>
  310. </el-table-column>
  311. </el-table-column>
  312. <el-table-column label="七月(万元)">
  313. <el-table-column
  314. prop="m7l"
  315. label="基本"
  316. width="120">
  317. <template slot-scope="scope">
  318. <p class="center d-text">{{scope.row.m7l}}</p>
  319. <p class="border"></p>
  320. <p class="center">{{scope.row.m7a}}</p>
  321. <p class="center" :class="scope.row.m7pl < 0?'green':'red'">({{scope.row.m7pl}}%)</p>
  322. </template>
  323. </el-table-column>
  324. <el-table-column
  325. prop="m7h"
  326. label="挑战"
  327. width="120">
  328. <template slot-scope="scope">
  329. <p class="center d-text">{{scope.row.m7h}}</p>
  330. <p class="border"></p>
  331. <p class="center">{{scope.row.m7a}}</p>
  332. <p class="center" :class="scope.row.m7ph < 0?'green':'red'">({{scope.row.m7ph}}%)</p>
  333. </template>
  334. </el-table-column>
  335. </el-table-column>
  336. <el-table-column label="八月(万元)">
  337. <el-table-column
  338. prop="m8l"
  339. label="基本"
  340. width="120">
  341. <template slot-scope="scope">
  342. <p class="center d-text">{{scope.row.m8l}}</p>
  343. <p class="border"></p>
  344. <p class="center">{{scope.row.m8a}}</p>
  345. <p class="center" :class="scope.row.m8pl < 0?'green':'red'">({{scope.row.m8pl}}%)</p>
  346. </template>
  347. </el-table-column>
  348. <el-table-column
  349. prop="m8h"
  350. label="挑战"
  351. width="120">
  352. <template slot-scope="scope">
  353. <p class="center d-text">{{scope.row.m8h}}</p>
  354. <p class="border"></p>
  355. <p class="center">{{scope.row.m8a}}</p>
  356. <p class="center" :class="scope.row.m8ph < 0?'green':'red'">({{scope.row.m8ph}}%)</p>
  357. </template>
  358. </el-table-column>
  359. </el-table-column>
  360. <el-table-column label="九月(万元)">
  361. <el-table-column
  362. prop="m9l"
  363. label="基本"
  364. width="120">
  365. <template slot-scope="scope">
  366. <p class="center d-text">{{scope.row.m9l}}</p>
  367. <p class="border"></p>
  368. <p class="center">{{scope.row.m9a}}</p>
  369. <p class="center" :class="scope.row.m9pl < 0?'green':'red'">({{scope.row.m9pl}}%)</p>
  370. </template>
  371. </el-table-column>
  372. <el-table-column
  373. prop="m9h"
  374. label="挑战"
  375. width="120">
  376. <template slot-scope="scope">
  377. <p class="center d-text">{{scope.row.m9h}}</p>
  378. <p class="border"></p>
  379. <p class="center">{{scope.row.m9a}}</p>
  380. <p class="center" :class="scope.row.m9ph < 0?'green':'red'">({{scope.row.m9ph}}%)</p>
  381. </template>
  382. </el-table-column>
  383. </el-table-column>
  384. <el-table-column label="第四季度(万元)">
  385. <el-table-column
  386. prop="s4l"
  387. label="基本"
  388. width="120">
  389. <template slot-scope="scope">
  390. <p class="center d-text">{{scope.row.s4l}}</p>
  391. <p class="border"></p>
  392. <p class="center">{{scope.row.s4a}}</p>
  393. <p class="center" :class="scope.row.s4pl < 0?'green':'red'">({{scope.row.s4pl}}%)</p>
  394. </template>
  395. </el-table-column>
  396. <el-table-column
  397. prop="s4h"
  398. label="挑战"
  399. width="120">
  400. <template slot-scope="scope">
  401. <p class="center d-text">{{scope.row.s4h}}</p>
  402. <p class="border"></p>
  403. <p class="center">{{scope.row.s4a}}</p>
  404. <p class="center" :class="scope.row.s4ph < 0?'green':'red'">({{scope.row.s4ph}}%)</p>
  405. </template>
  406. </el-table-column>
  407. </el-table-column>
  408. <el-table-column label="十月(万元)">
  409. <el-table-column
  410. prop="m10l"
  411. label="基本"
  412. width="120">
  413. <template slot-scope="scope">
  414. <p class="center d-text">{{scope.row.m10l}}</p>
  415. <p class="border"></p>
  416. <p class="center">{{scope.row.m10a}}</p>
  417. <p class="center" :class="scope.row.m10pl < 0?'green':'red'">({{scope.row.m10pl}}%)</p>
  418. </template>
  419. </el-table-column>
  420. <el-table-column
  421. prop="m10h"
  422. label="挑战"
  423. width="120">
  424. <template slot-scope="scope">
  425. <p class="center d-text">{{scope.row.m10h}}</p>
  426. <p class="border"></p>
  427. <p class="center">{{scope.row.m10a}}</p>
  428. <p class="center" :class="scope.row.m10ph < 0?'green':'red'">({{scope.row.m10ph}}%)</p>
  429. </template>
  430. </el-table-column>
  431. </el-table-column>
  432. <el-table-column label="十一月(万元)">
  433. <el-table-column
  434. prop="m11l"
  435. label="基本"
  436. width="120">
  437. <template slot-scope="scope">
  438. <p class="center d-text">{{scope.row.m11l}}</p>
  439. <p class="border"></p>
  440. <p class="center">{{scope.row.m11a}}</p>
  441. <p class="center" :class="scope.row.m11pl < 0?'green':'red'">({{scope.row.m11pl}}%)</p>
  442. </template>
  443. </el-table-column>
  444. <el-table-column
  445. prop="m11h"
  446. label="挑战"
  447. width="120">
  448. <template slot-scope="scope">
  449. <p class="center d-text">{{scope.row.m11h}}</p>
  450. <p class="border"></p>
  451. <p class="center">{{scope.row.m11a}}</p>
  452. <p class="center" :class="scope.row.m11ph < 0?'green':'red'">({{scope.row.m11ph}}%)</p>
  453. </template>
  454. </el-table-column>
  455. </el-table-column>
  456. <el-table-column label="十二月(万元)">
  457. <el-table-column
  458. prop="m12l"
  459. label="基本"
  460. width="120">
  461. <template slot-scope="scope">
  462. <p class="center d-text">{{scope.row.m12l}}</p>
  463. <p class="border"></p>
  464. <p class="center">{{scope.row.m12a}}</p>
  465. <p class="center" :class="scope.row.m12pl < 0?'green':'red'">({{scope.row.m12pl}}%)</p>
  466. </template>
  467. </el-table-column>
  468. <el-table-column
  469. prop="m12h"
  470. label="挑战"
  471. width="120">
  472. <template slot-scope="scope">
  473. <p class="center d-text">{{scope.row.m12h}}</p>
  474. <p class="border"></p>
  475. <p class="center">{{scope.row.m12a}}</p>
  476. <p class="center" :class="scope.row.m12ph < 0?'green':'red'">({{scope.row.m12ph}}%)</p>
  477. </template>
  478. </el-table-column>
  479. </el-table-column>
  480. <el-table-column
  481. prop="operation"
  482. label="操作"
  483. width="120"
  484. :fixed="Object.keys(tableData).length != 0 ? 'right' : ''">
  485. <template slot-scope="scope" v-if="scope.row.hrid">
  486. <slot :data="{data:scope.row,year:year}" name="edit"/>
  487. <slot :data="{data:scope.row,year:year}" name="detail"/>
  488. </template>
  489. </el-table-column>
  490. </el-table>
  491. <div class="container normal-panel" style="text-align:right">
  492. <el-pagination
  493. background
  494. small
  495. @size-change="handleSizeChange"
  496. @current-change="handleCurrentChange"
  497. :current-page="currentPage"
  498. :page-sizes="[20, 50, 100, 200]"
  499. layout="total,sizes, prev, pager, next, jumper"
  500. :total="total">
  501. </el-pagination>
  502. </div>
  503. </div>
  504. </template>
  505. <script>
  506. import selectPanel from '../components/selectPanel'
  507. export default {
  508. props:["data"],
  509. data () {
  510. return {
  511. yearData:[],
  512. tableData:[],
  513. currentPage:0,
  514. total:0,
  515. rowIndex:'',
  516. year:String((new Date()).getFullYear()),
  517. placeholder:'请输入部门/姓名/项目名称',
  518. params: {
  519. "id": 20220909154602,
  520. "content": {
  521. "pageNumber": 1,
  522. "pageSize": 20,
  523. "year": '',
  524. "type":1,
  525. "where":{
  526. "condition":''//支持部门名称查询
  527. }
  528. },
  529. }
  530. }
  531. },
  532. components:{selectPanel},
  533. watch: {
  534. year: {
  535. handler(val) {
  536. this.queryData()
  537. }
  538. }
  539. },
  540. methods:{
  541. async queryData () {
  542. this.params.content.year = this.year
  543. let res = await this.$api.requested(this.params)
  544. this.tableData = res.data
  545. /* console.log("输出数据信息——————————————————————————————————————————")
  546. console.log(this.tableData);*/
  547. this.total = res.total
  548. /*console.log(this.data,"hrid的数据输出")*/
  549. this.currentPage = res.pageNumber
  550. },
  551. handleSizeChange(val) {
  552. // console.log(`每页 ${val} 条`);
  553. this.params.content.pageSize = val
  554. this.queryData()
  555. },
  556. handleCurrentChange(val) {
  557. // console.log(`当前页: ${val}`);
  558. this.params.content.pageNumber = val
  559. this.queryData()
  560. },
  561. /* 清空指标 */
  562. clearTarget() {
  563. this.params.content.type = ''
  564. this.queryData()
  565. },
  566. targetChange(data) {
  567. this.params.content.type = data
  568. this.queryData()
  569. },
  570. /* 年度更改 */
  571. yearChange(data) {
  572. this.year = data
  573. },
  574. async yearList(siteid){
  575. const res = await this.$api.requested({
  576. "classname": "sysmanage.develop.optiontype.optiontype",
  577. "method": "optiontypeselect",
  578. "content": {
  579. "pageNumber": 1,
  580. "pageSize": 20,
  581. "typename": "targetyearofproject",
  582. "parameter": {
  583. "siteid": siteid
  584. }
  585. }
  586. })
  587. this.yearData = res.data
  588. console.log(this.yearData,'人员目标年度')
  589. },
  590. searchActive(data) {
  591. this.params.content.where.condition = data
  592. this.queryData()
  593. },
  594. clearData() {
  595. this.params.content.where.condition = ''
  596. this.queryData()
  597. },
  598. tableRowClassName({row, rowIndex}) {
  599. console.log(this.data,"行号")
  600. if (row.hrid == this.data) {
  601. return 'warning-row';
  602. }
  603. return '';
  604. }
  605. },
  606. mounted () {
  607. /*this.queryData()*/
  608. const siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid
  609. this.yearList(siteid)
  610. },
  611. created() {
  612. this.queryData()
  613. },
  614. }
  615. </script>
  616. <style>
  617. .el-table .warning-row {
  618. background: oldlace;
  619. }
  620. .el-table .success-row {
  621. background: #f0f9eb;
  622. }
  623. </style>
  624. <style scoped>
  625. .d-text{
  626. height: 46px;
  627. line-height: 46px;
  628. }
  629. .warning-row{
  630. background:orange
  631. }
  632. .border{
  633. border:1px solid #c1bfbf;
  634. transform: scale(2,.2);
  635. }
  636. .center{
  637. text-align: center;
  638. }
  639. .red{
  640. color:red
  641. }
  642. .green{
  643. color:green
  644. }
  645. </style>