healthDrank.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <script setup lang="ts">
  2. defineOptions({
  3. name: "workerDrak"
  4. });
  5. import { ref, reactive } from "vue";
  6. import { useRouter } from "vue-router";
  7. import radar from "@/components/echarts/radar.vue";
  8. import barEcharts from "@/components/echarts/bar.vue";
  9. import rankTable from "@/components/rankTable/index.vue";
  10. import personList from "@/components/personList/index.vue";
  11. import qvanping from "@/assets/rank/qvanping@2x.png";
  12. import seachData from "./componements/seach.vue";
  13. import {
  14. getPersonDimensionChartsList,
  15. getAssessmentList,
  16. getChartsList
  17. } from "@/api/draw";
  18. import type { TabsPaneContext } from "element-plus";
  19. const router = useRouter();
  20. const value = ref("");
  21. const activeName = ref("1");
  22. // 柱状图
  23. const barEchartsRef = ref();
  24. const params = reactive({
  25. params: {
  26. chartsQueryVo: {
  27. assessmentName: "",
  28. assessmentId: "",
  29. assessmentModelName: "",
  30. assessmentModelId: "",
  31. assessmentObjectId: "",
  32. assessmentObjectName: "",
  33. dimId: "",
  34. dimensionName: ""
  35. }
  36. }
  37. });
  38. const getPersonDimensionChartsListApi = async () => {
  39. const { code, data } = await getPersonDimensionChartsList(params.params);
  40. // barEchartsRef.value.setOption(data);
  41. // console.log("data", data);
  42. };
  43. // 维度表格
  44. const personListRef = ref();
  45. const barEchartsList = reactive({
  46. zongfen: {
  47. title: "总得分"
  48. },
  49. shuliang: {
  50. title: "数量维度"
  51. },
  52. xiaolve: {
  53. title: "效率维度"
  54. },
  55. zhiliang: {
  56. title: "质量维度"
  57. },
  58. nandu: {
  59. title: "难度维度"
  60. },
  61. qiandu: {
  62. title: "强度维度"
  63. },
  64. jiaoxue: {
  65. title: "教学维度"
  66. },
  67. keyan: {
  68. title: "科研维度"
  69. }
  70. });
  71. const options = [
  72. {
  73. value: "Option1",
  74. label: "Option1"
  75. },
  76. {
  77. value: "Option2",
  78. label: "Option2"
  79. },
  80. {
  81. value: "Option3",
  82. label: "Option3"
  83. },
  84. {
  85. value: "Option4",
  86. label: "Option4"
  87. },
  88. {
  89. value: "Option5",
  90. label: "Option5"
  91. }
  92. ];
  93. const handleClick = (tab: TabsPaneContext, event: Event) => {
  94. // console.log(tab, event);
  95. barEchartsRef.value.dataList(tab.props);
  96. };
  97. const fullBig = (item: any) => {
  98. console.log(item);
  99. router.push({ path: "/fullBig", query: { ...item } });
  100. };
  101. </script>
  102. <template>
  103. <div class="w-[100%]">
  104. <div class="w-[100%]">
  105. <seachData />
  106. <div class="flex mr-2">
  107. <radar />
  108. </div>
  109. <el-tabs
  110. v-model="activeName"
  111. class="demo-tabs"
  112. :lazy="true"
  113. @tab-click="handleClick"
  114. >
  115. <el-tab-pane label="总览" name="1">
  116. <div class="flex mr-8">
  117. <rankTable />
  118. </div>
  119. <!-- 总得分 -->
  120. <div class="mt-5 pr-8 w-full h-60">
  121. <barEcharts ref="barEchartsRef" :title="barEchartsList.zongfen" />
  122. </div>
  123. <!-- 维度得分 -->
  124. <div class="mt-5 pr-8 w-full h-60 flex justify-between item-center">
  125. <div class="w-1/2 h-full">
  126. <barEcharts :title="barEchartsList.shuliang" />
  127. </div>
  128. <div class="w-1/2 h-full">
  129. <barEcharts :title="barEchartsList.xiaolve" />
  130. </div>
  131. </div>
  132. <div class="mt-5 pr-8 w-full h-60 flex justify-between item-center">
  133. <div class="w-1/2 h-full">
  134. <barEcharts
  135. ref="barEchartsRef"
  136. :title="barEchartsList.zhiliang"
  137. />
  138. </div>
  139. <div class="w-1/2 h-full">
  140. <barEcharts ref="barEchartsRef" :title="barEchartsList.nandu" />
  141. </div>
  142. </div>
  143. <div class="mt-5 pr-8 w-full h-60 flex justify-between item-center">
  144. <div class="w-1/2 h-full">
  145. <barEcharts ref="barEchartsRef" :title="barEchartsList.qiandu" />
  146. </div>
  147. <div class="w-1/2 h-full">
  148. <barEcharts ref="barEchartsRef" :title="barEchartsList.jiaoxue" />
  149. </div>
  150. </div>
  151. <div class="mt-5 pr-8 w-full h-60 flex justify-between item-center">
  152. <div class="w-1/2 h-full">
  153. <barEcharts ref="barEchartsRef" :title="barEchartsList.keyan" />
  154. </div>
  155. <div class="w-1/2 h-full">
  156. <!-- <barEcharts :title="barEchartsList.kexue" /> -->
  157. </div>
  158. </div>
  159. </el-tab-pane>
  160. <el-tab-pane label="数量" name="2" :lazy="true">
  161. <div class="w-full">
  162. <div class="flex justify-between">
  163. <personList ref="personListRef" class="w-11/12" />
  164. <div
  165. class="w-[30px] h-[30px] mr-10 cursor-pointer"
  166. @click="fullBig(barEchartsList.shuliang)"
  167. >
  168. <img class="w-full h-full" :src="qvanping" alt="" />
  169. </div>
  170. </div>
  171. <div class="w-full h-60 mt-5 pr-8">
  172. <barEcharts
  173. ref="barEchartsRef"
  174. :title="barEchartsList.shuliang"
  175. />
  176. </div>
  177. </div>
  178. </el-tab-pane>
  179. <el-tab-pane label="效率" name="3" :lazy="true">
  180. <div class="w-full">
  181. <div class="flex justify-between">
  182. <personList ref="personListRef" class="w-11/12" />
  183. <div
  184. class="w-[30px] h-[30px] mr-10 cursor-pointer"
  185. @click="fullBig(barEchartsList.xiaolve)"
  186. >
  187. <img class="w-full h-full" :src="qvanping" alt="" />
  188. </div>
  189. </div>
  190. <div class="w-full h-60 mt-5 pr-8">
  191. <barEcharts ref="barEchartsRef" :title="barEchartsList.xiaolve" />
  192. </div>
  193. </div>
  194. </el-tab-pane>
  195. <el-tab-pane label="质量" name="4" :lazy="true">
  196. <div class="w-full">
  197. <div class="flex justify-between">
  198. <personList ref="personListRef" class="w-11/12" />
  199. <div
  200. class="w-[30px] h-[30px] mr-10 cursor-pointer"
  201. @click="fullBig(barEchartsList.zhiliang)"
  202. >
  203. <img class="w-full h-full" :src="qvanping" alt="" />
  204. </div>
  205. </div>
  206. <div class="w-full h-60 mt-5 pr-8">
  207. <barEcharts
  208. ref="barEchartsRef"
  209. :title="barEchartsList.zhiliang"
  210. />
  211. </div>
  212. </div>
  213. </el-tab-pane>
  214. <el-tab-pane label="难度" name="5" :lazy="true">
  215. <div class="w-full">
  216. <div class="flex justify-between">
  217. <personList ref="personListRef" class="w-11/12" />
  218. <div
  219. class="w-[30px] h-[30px] mr-10 cursor-pointer"
  220. @click="fullBig(barEchartsList.nandu)"
  221. >
  222. <img class="w-full h-full" :src="qvanping" alt="" />
  223. </div>
  224. </div>
  225. <div class="w-full h-60 mt-5 pr-8">
  226. <barEcharts ref="barEchartsRef" :title="barEchartsList.nandu" />
  227. </div>
  228. </div>
  229. </el-tab-pane>
  230. <el-tab-pane label="强度" name="6" :lazy="true">
  231. <div class="w-full">
  232. <div class="flex justify-between">
  233. <personList ref="personListRef" class="w-11/12" />
  234. <div
  235. class="w-[30px] h-[30px] mr-10 cursor-pointer"
  236. @click="fullBig(barEchartsList.qiandu)"
  237. >
  238. <img class="w-full h-full" :src="qvanping" alt="" />
  239. </div>
  240. </div>
  241. <div class="w-full h-60 mt-5 pr-8">
  242. <barEcharts ref="barEchartsRef" :title="barEchartsList.qiandu" />
  243. </div>
  244. </div>
  245. </el-tab-pane>
  246. <el-tab-pane label="教学" name="7" :lazy="true">
  247. <div class="w-full">
  248. <div class="flex justify-between">
  249. <personList ref="personListRef" class="w-11/12" />
  250. <div
  251. class="w-[30px] h-[30px] mr-10 cursor-pointer"
  252. @click="fullBig(barEchartsList.jiaoxue)"
  253. >
  254. <img class="w-full h-full" :src="qvanping" alt="" />
  255. </div>
  256. </div>
  257. <div class="w-full h-60 mt-5 pr-8">
  258. <barEcharts ref="barEchartsRef" :title="barEchartsList.jiaoxue" />
  259. </div>
  260. </div>
  261. </el-tab-pane>
  262. <el-tab-pane label="科研" name="8" :lazy="true">
  263. <div class="w-full">
  264. <div class="flex justify-between">
  265. <personList ref="personListRef" class="w-11/12" />
  266. <div
  267. class="w-[30px] h-[30px] mr-10 cursor-pointer"
  268. @click="fullBig(barEchartsList.keyan)"
  269. >
  270. <img class="w-full h-full" :src="qvanping" alt="" />
  271. </div>
  272. </div>
  273. <div class="w-full h-60 mt-5 pr-8">
  274. <barEcharts ref="barEchartsRef" :title="barEchartsList.keyan" />
  275. </div>
  276. </div>
  277. </el-tab-pane>
  278. </el-tabs>
  279. </div>
  280. </div>
  281. </template>