GroupCompare.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. <template>
  2. <div>
  3. <el-dialog
  4. title=""
  5. :visible.sync="centerDialogVisible"
  6. :close-on-click-modal="false"
  7. width="80%"
  8. top="5vh"
  9. style="border-radius: 40px"
  10. >
  11. <div slot="title">
  12. <p
  13. style="
  14. text-align: center;
  15. font-size: 20px;
  16. margin-bottom: 20px;
  17. font-weight: 700;
  18. "
  19. >
  20. {{ planInfo.planName }}群体报告统计
  21. </p>
  22. <div>
  23. <el-form :inline="true">
  24. <el-form-item label="首选项" class="plan_lang">
  25. <el-select v-model="groupType" @change="groupChangeFun">
  26. <el-option label="全院" value="1"> </el-option>
  27. <el-option label="年级" value="2"> </el-option>
  28. </el-select>
  29. </el-form-item>
  30. <el-form-item label="年级" class="plan_lang" v-show="groupType != '1'">
  31. <el-select v-model="groupGrade" @change="gradeChangeFun">
  32. <el-option
  33. v-for="item in gradeOption"
  34. :key="item.value"
  35. :value="item.value"
  36. :label="item.label"
  37. >
  38. </el-option>
  39. </el-select>
  40. </el-form-item>
  41. </el-form>
  42. </div>
  43. <div class="yiyu_class">
  44. <div class="yiyu_left">
  45. <ZhuChart :options="optionYiYu" name="抑郁" refCurrent="refYiYU" />
  46. </div>
  47. <div class="yiyu_right">
  48. <div
  49. style="
  50. font-size: 18px;
  51. font-weight: 700;
  52. margin-bottom: 20px;
  53. text-align: center;
  54. "
  55. >
  56. 抑郁占比TOP10
  57. </div>
  58. <div class="table_out">
  59. <table>
  60. <tr>
  61. <th class="first">序号</th>
  62. <th>班级名称</th>
  63. <th>占比</th>
  64. </tr>
  65. <tr v-for="(item, index) in yiyuList10" :key="item.name">
  66. <td class="first">{{ index + 1 }}</td>
  67. <td>{{ item.name }}</td>
  68. <td :style="{ color: item.color }">{{ item.score }}%</td>
  69. </tr>
  70. </table>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="yiyu_class">
  75. <div class="yiyu_left">
  76. <ZhuChart :options="optionJL" name="焦虑" refCurrent="refJL" />
  77. </div>
  78. <div class="yiyu_right">
  79. <div
  80. style="
  81. font-size: 18px;
  82. font-weight: 700;
  83. margin-bottom: 20px;
  84. text-align: center;
  85. "
  86. >
  87. 焦虑占比TOP10
  88. </div>
  89. <div class="table_out">
  90. <table>
  91. <tr>
  92. <th class="first">序号</th>
  93. <th>班级名称</th>
  94. <th>占比</th>
  95. </tr>
  96. <tr v-for="(item, index) in jlList10" :key="item.name">
  97. <td class="first">{{ index + 1 }}</td>
  98. <td>{{ item.name }}</td>
  99. <td :style="{ color: item.color }">{{ item.score }}%</td>
  100. </tr>
  101. </table>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="yiyu_class">
  106. <div class="yiyu_left">
  107. <ZhuChart :options="optionQTH" name="压力" refCurrent="refQTH" />
  108. </div>
  109. <div class="yiyu_right">
  110. <div
  111. style="
  112. font-size: 18px;
  113. font-weight: 700;
  114. margin-bottom: 20px;
  115. text-align: center;
  116. "
  117. >
  118. 压力占比TOP10
  119. </div>
  120. <div class="table_out">
  121. <table>
  122. <tr>
  123. <th class="first">序号</th>
  124. <th>班级名称</th>
  125. <th>占比</th>
  126. </tr>
  127. <tr v-for="(item, index) in qthList10" :key="item.name">
  128. <td class="first">{{ index + 1 }}</td>
  129. <td>{{ item.name }}</td>
  130. <td :style='{color:item.color}'>{{ item.score }}%</td>
  131. </tr>
  132. </table>
  133. </div>
  134. </div>
  135. </div>
  136. <div class="yiyu_class">
  137. <div class="yiyu_left">
  138. <ZhuChart :options="optionSJ" name="视觉整合能力" refCurrent="refSJ" />
  139. </div>
  140. <div class="yiyu_right">
  141. <div
  142. style="
  143. font-size: 18px;
  144. font-weight: 700;
  145. margin-bottom: 20px;
  146. text-align: center;
  147. "
  148. >
  149. 视觉整合能力占比TOP10
  150. </div>
  151. <div class="table_out">
  152. <table>
  153. <tr>
  154. <th class="first">序号</th>
  155. <th>班级名称</th>
  156. <th>占比</th>
  157. </tr>
  158. <tr v-for="(item, index) in sjList10" :key="item.name">
  159. <td class="first">{{ index + 1 }}</td>
  160. <td>{{ item.name }}</td>
  161. <td :style='{color:item.color}'>{{ item.score }}%</td>
  162. </tr>
  163. </table>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </el-dialog>
  169. </div>
  170. </template>
  171. <script>
  172. import * as echarts from "echarts";
  173. import zhuChart from "../components/ZhuChart";
  174. export default {
  175. components: {
  176. ZhuChart: zhuChart,
  177. },
  178. data() {
  179. return {
  180. centerDialogVisible: false,
  181. planInfo: {},
  182. //首选项--类型
  183. groupType: "1",
  184. //绑定年级选项
  185. groupGrade: "",
  186. gradeOption: [],
  187. option: {},
  188. echarts_depressed: "",
  189. //抑郁全部的数据
  190. optionYiYu: { name: [], score: [] },
  191. //焦虑全部的数据
  192. optionJL: { name: [], score: [] },
  193. //躯体化全部的数据
  194. optionQTH: { name: [], score: [] },
  195. //视觉整合能力
  196. optionSJ: { name: [], score: [] },
  197. //抑郁前10
  198. yiyuList10: [],
  199. //焦虑前10
  200. jlList10: [],
  201. //躯体化前10
  202. qthList10: [],
  203. //视觉整合能力前10
  204. sjList10: [],
  205. colorList: [
  206. "#7B0000",
  207. "#AE0000",
  208. "#E30000",
  209. "#FF3C15",
  210. "#FF5D15",
  211. "#FF7815",
  212. "#FF9600",
  213. "#FFBD1F",
  214. "#EBC42A",
  215. "#E0D062",
  216. ],
  217. };
  218. },
  219. methods: {
  220. open(val) {
  221. //将年级清空
  222. //将首选项改为第一个
  223. this.groupType = "1";
  224. this.groupGrade = "";
  225. this.planInfo = val;
  226. //获取到当前计划信息
  227. this.centerDialogVisible = true;
  228. //调用接口查询院或者年级的信息
  229. this.queryGrade(val.id);
  230. //各个维度显示的组件
  231. //开始渲染组件
  232. //先查询出来抑郁的全院或全年级所有的统计
  233. //调用接口
  234. //抑郁
  235. this.queryGradeOrYuanYiYu();
  236. //焦虑
  237. this.queryGradeOrYuanJL();
  238. //躯体化
  239. this.queryGradeOrYuanQTH();
  240. //视觉整合能力
  241. this.queryGradeOrYuanSJ();
  242. //查询抑郁前10
  243. this.queryGradeOrYuan10();
  244. //查询焦虑前10
  245. this.queryGradeOrYuanjl10();
  246. //查询躯体化前10
  247. this.queryGradeOrYuanqth10();
  248. //查询视觉整合能力前10
  249. this.queryGradeOrYuansj10();
  250. // this.initEcharts();
  251. },
  252. gradeChangeFun(val) {
  253. //抑郁
  254. this.queryGradeOrYuanYiYu();
  255. //焦虑
  256. this.queryGradeOrYuanJL();
  257. //躯体化
  258. this.queryGradeOrYuanQTH();
  259. //视觉整合能力
  260. this.queryGradeOrYuanSJ();
  261. //查询抑郁前10
  262. this.queryGradeOrYuan10();
  263. //查询焦虑前10
  264. this.queryGradeOrYuanjl10();
  265. //查询躯体化前10
  266. this.queryGradeOrYuanqth10();
  267. //查询视觉整合能力前10
  268. this.queryGradeOrYuansj10();
  269. //年纪发生变化时
  270. },
  271. //当用户的首选项发生变化
  272. groupChangeFun(val) {
  273. if (val == "2") {
  274. this.groupGrade = "";
  275. } else {
  276. //开始调用查询的方法
  277. //抑郁
  278. this.queryGradeOrYuanYiYu();
  279. //焦虑
  280. this.queryGradeOrYuanJL();
  281. //躯体化
  282. this.queryGradeOrYuanQTH();
  283. //视觉整合能力
  284. this.queryGradeOrYuanSJ();
  285. //查询抑郁前10
  286. this.queryGradeOrYuan10();
  287. //查询焦虑前10
  288. this.queryGradeOrYuanjl10();
  289. //查询躯体化前10
  290. this.queryGradeOrYuanqth10();
  291. //查询视觉整合能力前10
  292. this.queryGradeOrYuansj10();
  293. }
  294. //
  295. },
  296. //当用户类型发生变化
  297. //查询全年级和全院及全年级的所有统计抑郁的
  298. queryGradeOrYuanYiYu() {
  299. //res 返回数据结构
  300. //groupType
  301. //groupGrade
  302. //当前首选项选中院的话
  303. let url = "";
  304. if (this.groupType == "1") {
  305. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=抑郁&isLimit=false&planId=${this.planInfo.id}`;
  306. } else if (this.groupType == "2" && this.groupGrade != "") {
  307. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=抑郁&grade=${this.groupGrade}&isLimit=false&planId=${this.planInfo.id}`;
  308. }
  309. this.$http.get(url, {}, (res) => {
  310. if (res.code == 200) {
  311. //
  312. //获取第二个参数
  313. let nameList = [];
  314. let scoreList = [];
  315. let scoreListTmp = [];
  316. for (let i = 0; i < res.data.length; i++) {
  317. nameList.push(res.data[i].name);
  318. scoreList.push((parseFloat(res.data[i].num) * 100).toFixed(2));
  319. scoreListTmp.push(res.data[i].num);
  320. }
  321. this.optionYiYu = { name: nameList, score: scoreList };
  322. }
  323. });
  324. },
  325. //查询全年级和全院的所有统计焦虑的
  326. queryGradeOrYuanJL() {
  327. let url = "";
  328. if (this.groupType == "1") {
  329. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=焦虑&isLimit=false&planId=${this.planInfo.id}`;
  330. } else if (this.groupType == "2" && this.groupGrade != "") {
  331. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=焦虑&grade=${this.groupGrade}&isLimit=false&planId=${this.planInfo.id}`;
  332. }
  333. this.$http.get(url, {}, (res) => {
  334. if (res.code == 200) {
  335. //
  336. //获取第二个参数
  337. let nameList = [];
  338. let scoreList = [];
  339. let scoreListTmp = [];
  340. for (let i = 0; i < res.data.length; i++) {
  341. nameList.push(res.data[i].name);
  342. scoreList.push((parseFloat(res.data[i].num) * 100).toFixed(2));
  343. scoreListTmp.push(res.data[i].num);
  344. }
  345. this.optionJL = { name: nameList, score: scoreList };
  346. }
  347. });
  348. },
  349. //查询全年级和全院的所有统计---躯体化的
  350. queryGradeOrYuanQTH() {
  351. let url = "";
  352. if (this.groupType == "1") {
  353. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=躯体化&isLimit=false&planId=${this.planInfo.id}`;
  354. } else if (this.groupType == "2" && this.groupGrade != "") {
  355. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=躯体化&grade=${this.groupGrade}&isLimit=false&planId=${this.planInfo.id}`;
  356. }
  357. this.$http.get(url, {}, (res) => {
  358. if (res.code == 200) {
  359. //
  360. //获取第二个参数
  361. let nameList = [];
  362. let scoreList = [];
  363. let scoreListTmp = [];
  364. for (let i = 0; i < res.data.length; i++) {
  365. nameList.push(res.data[i].name);
  366. scoreList.push((parseFloat(res.data[i].num) * 100).toFixed(2));
  367. scoreListTmp.push(res.data[i].num);
  368. }
  369. this.optionQTH = { name: nameList, score: scoreList };
  370. }
  371. });
  372. },
  373. //查询全年级和全院的所有统计---视觉整合能力
  374. queryGradeOrYuanSJ() {
  375. let url = "";
  376. if (this.groupType == "1") {
  377. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=视觉整合能力&isLimit=false&planId=${this.planInfo.id}`;
  378. } else if (this.groupType == "2" && this.groupGrade != "") {
  379. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=视觉整合能力&grade=${this.groupGrade}&isLimit=false&planId=${this.planInfo.id}`;
  380. }
  381. this.$http.get(url, {}, (res) => {
  382. if (res.code == 200) {
  383. //
  384. //获取第二个参数
  385. let nameList = [];
  386. let scoreList = [];
  387. let scoreListTmp = [];
  388. for (let i = 0; i < res.data.length; i++) {
  389. nameList.push(res.data[i].name);
  390. scoreList.push((parseFloat(res.data[i].num) * 100).toFixed(2));
  391. scoreListTmp.push(res.data[i].num);
  392. }
  393. this.optionSJ = { name: nameList, score: scoreList };
  394. }
  395. });
  396. },
  397. //查询抑郁前10数据
  398. queryGradeOrYuan10() {
  399. let url = "";
  400. if (this.groupType == "1") {
  401. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=抑郁&isLimit=true&planId=${this.planInfo.id}`;
  402. } else if (this.groupType == "2" && this.groupGrade != "") {
  403. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=抑郁&grade=${this.groupGrade}&isLimit=true&planId=${this.planInfo.id}`;
  404. }
  405. //res 返回数据结构
  406. this.$http.get(url, {}, (res) => {
  407. if (res.code == 200) {
  408. //获取第二个参数
  409. // let nameList = [];
  410. // let scoreList = [];
  411. //先把分数记录下来
  412. //然后去掉数据为0的
  413. //然后去重
  414. //例如 list 20.00 10.00
  415. let list = [];
  416. for (let i = 0; i < res.data.length; i++) {
  417. let obj = {
  418. name: res.data[i].name,
  419. score: (parseFloat(res.data[i].num) * 100).toFixed(2),
  420. color: "#2C3E50",
  421. };
  422. list.push(obj);
  423. }
  424. let listTmp1 = list.filter((item) => {
  425. return item.score != "0.00";
  426. });
  427. let scoreListTmp = [];
  428. for (let i = 0; i < listTmp1.length; i++) {
  429. //
  430. if (scoreListTmp.indexOf(listTmp1[i].score) == -1) {
  431. scoreListTmp.push(listTmp1[i].score);
  432. }
  433. }
  434. for (let i = 0; i < list.length; i++) {
  435. //
  436. for (let j = 0; j < scoreListTmp.length; j++) {
  437. if (scoreListTmp[j] == list[i].score) {
  438. list[i].color = this.colorList[j];
  439. }
  440. }
  441. }
  442. this.yiyuList10 = list;
  443. //依次给个颜色
  444. //将0.00过滤出来
  445. //将去重的过滤出来
  446. }
  447. });
  448. },
  449. //查询焦虑前10数据
  450. queryGradeOrYuanjl10() {
  451. //res 返回数据结构
  452. let url = "";
  453. if (this.groupType == "1") {
  454. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=焦虑&isLimit=true&planId=${this.planInfo.id}`;
  455. } else if (this.groupType == "2" && this.groupGrade != "") {
  456. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=焦虑&grade=${this.groupGrade}&isLimit=true&planId=${this.planInfo.id}`;
  457. }
  458. this.$http.get(url, {}, (res) => {
  459. if (res.code == 200) {
  460. //获取第二个参数
  461. // let nameList = [];
  462. // let scoreList = [];
  463. let list = [];
  464. for (let i = 0; i < res.data.length; i++) {
  465. let obj = {
  466. name: res.data[i].name,
  467. score: (parseFloat(res.data[i].num) * 100).toFixed(2),
  468. color: "#2C3E50",
  469. };
  470. list.push(obj);
  471. }
  472. let listTmp1 = list.filter((item) => {
  473. return item.score != "0.00";
  474. });
  475. let scoreListTmp = [];
  476. for (let i = 0; i < listTmp1.length; i++) {
  477. //
  478. if (scoreListTmp.indexOf(listTmp1[i].score) == -1) {
  479. scoreListTmp.push(listTmp1[i].score);
  480. }
  481. }
  482. for (let i = 0; i < list.length; i++) {
  483. //
  484. for (let j = 0; j < scoreListTmp.length; j++) {
  485. if (scoreListTmp[j] == list[i].score) {
  486. list[i].color = this.colorList[j];
  487. }
  488. }
  489. }
  490. this.jlList10 = list;
  491. // this.jlList10 = [];
  492. // for (let i = 0; i < res.data.length; i++) {
  493. // let obj = {
  494. // name: res.data[i].name,
  495. // score: (parseFloat(res.data[i].num) * 100).toFixed(2),
  496. // };
  497. // this.jlList10.push(obj);
  498. // }
  499. // this.optionYiYu = { name: nameList, score: scoreList };
  500. }
  501. });
  502. },
  503. //查询躯体化前10数据
  504. queryGradeOrYuanqth10() {
  505. //res 返回数据结构
  506. let url = "";
  507. if (this.groupType == "1") {
  508. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=躯体化&isLimit=true&planId=${this.planInfo.id}`;
  509. } else if (this.groupType == "2" && this.groupGrade != "") {
  510. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=躯体化&grade=${this.groupGrade}&isLimit=true&planId=${this.planInfo.id}`;
  511. }
  512. this.$http.get(url, {}, (res) => {
  513. if (res.code == 200) {
  514. //获取第二个参数
  515. let list = [];
  516. for (let i = 0; i < res.data.length; i++) {
  517. let obj = {
  518. name: res.data[i].name,
  519. score: (parseFloat(res.data[i].num) * 100).toFixed(2),
  520. color: "#2C3E50",
  521. };
  522. list.push(obj);
  523. }
  524. let listTmp1 = list.filter((item) => {
  525. return item.score != "0.00";
  526. });
  527. let scoreListTmp = [];
  528. for (let i = 0; i < listTmp1.length; i++) {
  529. //
  530. if (scoreListTmp.indexOf(listTmp1[i].score) == -1) {
  531. scoreListTmp.push(listTmp1[i].score);
  532. }
  533. }
  534. console.log("scoreListTmp")
  535. console.log(scoreListTmp)
  536. for (let i = 0; i < list.length; i++) {
  537. //
  538. for (let j = 0; j < scoreListTmp.length; j++) {
  539. if (scoreListTmp[j] == list[i].score) {
  540. list[i].color = this.colorList[j];
  541. }
  542. }
  543. }
  544. this.qthList10 = list;
  545. }
  546. });
  547. },
  548. //视觉整合能力
  549. queryGradeOrYuansj10() {
  550. let url = "";
  551. if (this.groupType == "1") {
  552. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=视觉整合能力&isLimit=true&planId=${this.planInfo.id}`;
  553. } else if (this.groupType == "2" && this.groupGrade != "") {
  554. url = `/userRecordScore/countPlanOrgHighRiskNum?dimName=视觉整合能力&grade=${this.groupGrade}&isLimit=true&planId=${this.planInfo.id}`;
  555. }
  556. this.$http.get(url, {}, (res) => {
  557. if (res.code == 200) {
  558. let list = [];
  559. for (let i = 0; i < res.data.length; i++) {
  560. let obj = {
  561. name: res.data[i].name,
  562. score: (parseFloat(res.data[i].num) * 100).toFixed(2),
  563. color: "#2C3E50",
  564. };
  565. list.push(obj);
  566. }
  567. let listTmp1 = list.filter((item) => {
  568. return item.score != "0.00";
  569. });
  570. let scoreListTmp = [];
  571. for (let i = 0; i < listTmp1.length; i++) {
  572. //
  573. if (scoreListTmp.indexOf(listTmp1[i].score) == -1) {
  574. scoreListTmp.push(listTmp1[i].score);
  575. }
  576. }
  577. for (let i = 0; i < list.length; i++) {
  578. //
  579. for (let j = 0; j < scoreListTmp.length; j++) {
  580. if (scoreListTmp[j] == list[i].score) {
  581. list[i].color = this.colorList[j];
  582. }
  583. }
  584. }
  585. this.sjList10 = list;
  586. }
  587. });
  588. },
  589. //查询计划下组织列表
  590. queryGrade(planId) {
  591. //根据计划ID查询其下边的年级
  592. let url = `/planOrg/findPlanGrade?planId=${planId}`;
  593. this.$http.get(url, {}, (res) => {
  594. this.gradeOption = [];
  595. //回调函数
  596. if (res.code == 200) {
  597. //先排序
  598. let list = JSON.parse(JSON.stringify(res.data));
  599. list.sort();
  600. if (list.length > 0) {
  601. for (let i = 0; i < list.length; i++) {
  602. let obj = {
  603. label: list[i] == -1 ? "教师组" : `${list[i]}级`,
  604. value: list[i],
  605. };
  606. this.gradeOption.push(obj);
  607. }
  608. }
  609. }
  610. });
  611. },
  612. },
  613. };
  614. </script>
  615. <style lang="less" scoped>
  616. .yiyu_class {
  617. display: flex;
  618. flex-direction: row;
  619. .yiyu_left {
  620. display: flex;
  621. flex: 8;
  622. padding-right:40px
  623. }
  624. .yiyu_right {
  625. flex: 4;
  626. display: flex;
  627. flex-direction: column;
  628. // justify-content: center;
  629. .table_out {
  630. width: 100%;
  631. height: 700px;
  632. overflow-y: auto;
  633. }
  634. }
  635. }
  636. table {
  637. border-collapse: collapse;
  638. border-spacing: 0;
  639. // border: 1px solid #dddddd;
  640. width: 100%;
  641. tr {
  642. padding: 0;
  643. margin: 0;
  644. line-height: 40px;
  645. }
  646. th.first {
  647. text-align: center;
  648. background: #75bd42;
  649. }
  650. td.first {
  651. text-align: center;
  652. background: #e3f2d9;
  653. }
  654. th,
  655. td {
  656. padding: 3px 4px;
  657. border: none;
  658. border: 1px solid #dddddd;
  659. margin: 0;
  660. text-align: center;
  661. }
  662. td.warn {
  663. // background: red;
  664. color: red;
  665. }
  666. }
  667. </style>