Scale.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989
  1. <script setup lang="ts">
  2. // import { format } from 'date-fns/format';
  3. // import { format as myFormat } from 'date-fns/format';
  4. // import { format } from 'date-fns';
  5. import { format } from "date-fns";
  6. import CpmdHeader from '@/components/CpmdHeader.vue';
  7. import { onMounted, onUnmounted, ref } from 'vue'
  8. import { Check } from '@element-plus/icons-vue'
  9. import { number } from 'echarts';
  10. import { ElMessage } from 'element-plus';
  11. import { useRouter, useRoute } from 'vue-router';
  12. import { getCurrentTimeApi, getScaleApi, queryScaleDetailApi, saveScaleApi } from '@/api/plan';
  13. import { userInfoStore } from '@/stores'
  14. import CpdmTip from "@/components/CpdmTip.vue";
  15. //调用子组件的ref
  16. // 加一个锁表示不能重复点击
  17. const isLock = ref<boolean>(false)
  18. import { isHaveManage } from '@/utils/test'
  19. import { userPlanApi, userPlanDetailApi } from '@/api/home';
  20. import { id } from 'element-plus/es/locales.mjs';
  21. const userInfo = userInfoStore()
  22. const router = useRouter()
  23. const route = useRoute()
  24. //持久化设置 菜单状态
  25. // import { menuStatusStore } from '@/stores'
  26. // const menuStatus = menuStatusStore();
  27. // menuStatus.saveActiveIndex('3')
  28. const cpdmTip = ref<any>()
  29. //当前量表是否已经提交
  30. const isCompleted = ref<boolean>(false)
  31. const planObj = ref<any>({})
  32. const flag = ref<string>('')
  33. const flagName = ref<string>('')
  34. const planId = ref<string>('')
  35. const planName = ref<string>('')
  36. const startTime = ref<string>('')
  37. const num = ref<string>('')
  38. const isComplate = ref<string>('')
  39. //测试全部数字
  40. const planAllNum = ref<number>(0);
  41. //测试已完成的
  42. const planIsComplateNum = ref<number>(0);
  43. //测试未完成的
  44. const planNoComplateNum = ref<number>(0);
  45. //获取到的题目数组
  46. const scaleList = ref<any>([
  47. // {
  48. // id: '',
  49. // questionNo: '1',
  50. // serialNo: '',
  51. // content: '我发现我自己被一些琐碎的事情弄得很不开心',
  52. // checkItems: '非常符合;大部分符合;小部分符合;完全不符合',
  53. // questionType: '0',
  54. // questionParam: '',
  55. // weight: '',
  56. // score: '',
  57. // scoreDirection: '',
  58. // flag: '',
  59. // isCheck: '',
  60. // answerList: [{ name: '' }]
  61. // }
  62. ])
  63. //当前题的对象
  64. //刚进页面时第几题
  65. const topicIndex = ref<number>(1)
  66. //存储--方法的
  67. //有三个储存数组分别储存
  68. //抑郁自评量表
  69. //抑郁自评量表flag是"20210617020516"
  70. const listDepressed = ref<any>([])
  71. //知觉压力问卷
  72. //知觉压力量表flag是"20210913093250"
  73. const listStress = ref<any>([])
  74. //焦虑自评量表
  75. //焦虑自评量表flag是"20210617000853"
  76. const listAnxiety = ref<any>([])
  77. //下一题的方法
  78. const nextTopic = () => {
  79. //应该需要个防抖函数
  80. //记录一个索引
  81. //当前选项的flag //是多少题
  82. //判断当前索引下的数组中是否有isCheck为空
  83. //先判断这个是不是
  84. if (scaleList.value[topicIndex.value - 1].isCheck == '') {
  85. ElMessage({
  86. message: '请选择当前题目',
  87. type: "warning",
  88. })
  89. return
  90. }
  91. //已经选择的话---需要拿到当前对象---判断flag是另外三个的flag吗
  92. //如果是--则判断是否在数组里边--如果不在则存储
  93. //将抑郁自评量表的数据存储进数组
  94. if (scaleList.value[topicIndex.value - 1].flag == '20210617020516' && !listDepressed.value.includes(scaleList.value[topicIndex.value - 1].id)) {
  95. listDepressed.value.push(scaleList.value[topicIndex.value - 1].id)
  96. //判断抑郁压力数组的长度是20 调用保存接口
  97. //循环到数组 当前中所有flag 等于抑郁自评量表的数组--然后传输给保存方法
  98. //判断此数组长度是多少
  99. if (listDepressed.value.length == 20) {
  100. let list = []
  101. for (let i = 0; i < scaleList.value.length; i++) {
  102. if (scaleList.value[i].flag == '20210617020516') {
  103. list.push(scaleList.value[i])
  104. }
  105. }
  106. let listTm = JSON.parse(JSON.stringify(list))
  107. subScaleData(listTm, "20210617020516")
  108. }
  109. }
  110. //将知觉压力问卷的数据存储进数组
  111. if (scaleList.value[topicIndex.value - 1].flag == '20210913093250' && !listStress.value.includes(scaleList.value[topicIndex.value - 1].id)) {
  112. listStress.value.push(scaleList.value[topicIndex.value - 1].id)
  113. //调用知觉压力数据保存接口
  114. //如果长度达到指定数目
  115. if (listStress.value.length == 30) {
  116. let list = []
  117. for (let i = 0; i < scaleList.value.length; i++) {
  118. if (scaleList.value[i].flag == '20210913093250') {
  119. list.push(scaleList.value[i])
  120. }
  121. }
  122. let listTm = JSON.parse(JSON.stringify(list))
  123. subScaleData(listTm, "20210913093250")
  124. }
  125. }
  126. //将焦虑自评量的数据存储进数组
  127. if (scaleList.value[topicIndex.value - 1].flag == '20210617000853' && !listAnxiety.value.includes(scaleList.value[topicIndex.value - 1].id)) {
  128. listAnxiety.value.push(scaleList.value[topicIndex.value - 1].id)
  129. //调用焦虑
  130. if (listAnxiety.value.length == 20) {
  131. let list = []
  132. for (let i = 0; i < scaleList.value.length; i++) {
  133. if (scaleList.value[i].flag == '20210617000853') {
  134. list.push(scaleList.value[i])
  135. }
  136. }
  137. let listTm = JSON.parse(JSON.stringify(list))
  138. subScaleData(listTm, "20210617000853")
  139. }
  140. }
  141. //判断当前是不是最后一题
  142. //如果是最后一题就不++了
  143. if (topicIndex.value == scaleList.value.length) {
  144. // 最后一题就进行提交了
  145. //判断不是这三个的话
  146. if (scaleList.value[topicIndex.value - 1].flag != '20210617020516' && scaleList.value[topicIndex.value - 1].flag != '20210913093250' && scaleList.value[topicIndex.value - 1].flag != '20210617000853') {
  147. let listTm = JSON.parse(JSON.stringify(scaleList.value))
  148. subScaleData(listTm, flag.value)
  149. }
  150. // subScaleData(listTm, "20210617000853")
  151. return
  152. }
  153. topicIndex.value++
  154. }
  155. //将选择的传输给方法---自带flag
  156. const subScaleData = async (data: any, flag: string) => {
  157. if (isLock.value) {
  158. return
  159. }
  160. isLock.value = true
  161. // if (scaleList.value[topicIndex.value - 1].isCheck == '') {
  162. // ElMessage({
  163. // message: '请选择当前题目',
  164. // type: "warning",
  165. // })
  166. // return
  167. // }
  168. //开始调用提交数据的方法
  169. // testRecord: JSON.stringify(productData()),
  170. //开始处理数据
  171. // productData()
  172. let time = '' + startTime.value
  173. let params = {
  174. beginTime: time,
  175. orgName: userInfo.userInfo.orgName,
  176. orgNo: userInfo.userInfo.orgNo,
  177. planId: planId.value,
  178. planName: planName.value,
  179. taskFlag: flag,
  180. taskName: flagName.value,
  181. testRecord: JSON.stringify(productData(data)),
  182. type: '0',
  183. userName: userInfo.userInfo.userName,
  184. userNo: userInfo.userInfo.userNo,
  185. }
  186. const res = await saveScaleApi(params)
  187. //1.先判断是否需要做附加题---根据查询出来列表 --不显示但是必做的---且状态含有未完成,
  188. //2.接下来查看需要看总共几个需要做的附加题---将未完成的题目---合并到一块---到时候
  189. //3.判断做完的有且有多少个题目-----未做完的量表有多少个题目
  190. getStartTime()
  191. isLock.value = false
  192. //判断当前 flag 是可选的三个吗
  193. //如果是的话---
  194. if (flag == '20210617020516' || flag == '20210913093250' || flag == '20210617000853') {
  195. //判断是否是做完了
  196. if (topicIndex.value == scaleList.value.length) {
  197. //这时是全部的都做完了
  198. //做完后目前先跳转到测试计划页面
  199. ElMessage({
  200. message: '提交完成',
  201. type: "success",
  202. })
  203. router.push({ name: 'plan' })
  204. }
  205. }
  206. if (flag == '20210617140713') {
  207. queryNeedScale()
  208. //如果是排除是其他两个则直接返回
  209. } else if (flag != '20210617020516' && flag != '20210913093250' && flag != '20210617000853') {
  210. //此时做完需要跳转到计划页面
  211. ElMessage({
  212. message: '提交完成',
  213. type: "success",
  214. })
  215. router.push({ name: 'plan' })
  216. }
  217. // isCompleted.value = true
  218. //跳转到缓冲中间件
  219. // setTimeout(() => {
  220. // isLock.value = false;
  221. // router.push({
  222. // name: 'scaleMid', params: {
  223. // planId: planId.value,
  224. // planName: planName.value,
  225. // flag: flag.value,
  226. // flagName: flagName.value,
  227. // // num: num.value
  228. // }
  229. // })
  230. // }, 1500)
  231. }
  232. //查看scl90是否已经完成了
  233. const sclIsCom = async () => {
  234. if (userInfo.token) {
  235. let userNo = ''
  236. //登录的话
  237. //判断当前是否有后台管理
  238. userNo = userInfo.userInfo.userNo
  239. //调用根据用户查询计划的API
  240. let res: any = await userPlanApi(userNo)
  241. for (let i = 0; i < res.data.length; i++) {
  242. if (res.data[i].id = planId.value) {
  243. planObj.value = res.data[i]
  244. }
  245. }
  246. //将list赋值进去
  247. planObj.value.list = [];
  248. let params = {
  249. planId: planObj.value.id,
  250. userNo: userInfo.userInfo.userNo
  251. }
  252. //调用详细的API
  253. let temp: any = await userPlanDetailApi(params)
  254. planObj.value.list = temp.data
  255. //判断是否需要
  256. //判断量表中有几个是必须测试的且不显示的
  257. for (let i = 0; i < planObj.value.list.length; i++) {
  258. //先判断类型--在判断必做且不显示的---将这个写存储在数组
  259. if (planObj.value.list[i].flag == '20210617140713') {
  260. if (planObj.value.list[i].isCompleted == '1') {
  261. isComplate.value = '2';
  262. }
  263. if (planObj.value.list[i].isCompleted == '0') {
  264. isComplate.value = '0';
  265. }
  266. }
  267. }
  268. }
  269. }
  270. //根据计划ID查询问题
  271. const queryNeedScale = async () => {
  272. //
  273. //查询需要测试的计划
  274. //如果在就是登录了
  275. if (userInfo.token) {
  276. let userNo = ''
  277. //登录的话
  278. //判断当前是否有后台管理
  279. userNo = userInfo.userInfo.userNo
  280. //调用根据用户查询计划的API
  281. let res: any = await userPlanApi(userNo)
  282. //
  283. for (let i = 0; i < res.data.length; i++) {
  284. if (res.data[i].id = planId.value) {
  285. planObj.value = res.data[i]
  286. }
  287. }
  288. //将list赋值进去
  289. planObj.value.list = [];
  290. let params = {
  291. planId: planObj.value.id,
  292. userNo: userInfo.userInfo.userNo
  293. }
  294. //调用详细的API
  295. let temp: any = await userPlanDetailApi(params)
  296. planObj.value.list = temp.data
  297. //判断是否需要
  298. //判断量表中有几个是必须测试的且不显示的
  299. let list = []
  300. for (let i = 0; i < planObj.value.list.length; i++) {
  301. //先判断类型--在判断必做且不显示的---将这个写存储在数组
  302. if (planObj.value.list[i].contentType == '0' && planObj.value.list[i].isAvailable == '1' && planObj.value.list[i].isDisplayed == '0') {
  303. //修改
  304. //
  305. list.push(planObj.value.list[i])
  306. }
  307. }
  308. //将对象的list字段设置新的需要测试的
  309. planObj.value.list = list;
  310. //以此查询出来需要需要做的但是未完成的
  311. //必做的全部计算出来全部需要做的题
  312. let listNeedAll = []
  313. let listIsComplate = []
  314. let listNoComplate = []
  315. for (let i = 0; i < planObj.value.list.length; i++) {
  316. //查询出全部的问题
  317. //根据flag查询出来的题
  318. //let res: any = await queryScaleDetailApi(planObj.value.list[i].flag)
  319. if (planObj.value.list[i].isCompleted == '1') {
  320. let res: any = await getScaleApi(planObj.value.list[i].flag)
  321. listIsComplate.push(...res.data)
  322. listNeedAll.push(...res.data)
  323. }
  324. //计算未完成数目
  325. if (planObj.value.list[i].isCompleted == '0') {
  326. let res: any = await getScaleApi(planObj.value.list[i].flag)
  327. listNoComplate.push(...res.data)
  328. listNeedAll.push(...res.data)
  329. }
  330. //查询出来后将值赋值给另一数组
  331. //总共需要做的题的数目
  332. }
  333. //测试全部数字
  334. planAllNum.value = listNeedAll.length;
  335. //测试已完成
  336. planIsComplateNum.value = listIsComplate.length;
  337. //测试未完成
  338. planNoComplateNum.value = listNoComplate.length;
  339. //判断 如果总长度是0的话--需要跳转到测试计划页
  340. if (planAllNum.value == 0) {
  341. //跳转计划页面
  342. router.push({ name: 'plan' })
  343. } else {
  344. //如果长度不是0的话--需要修改文本
  345. //设置标志为2
  346. isComplate.value = '2'
  347. }
  348. //这时应该清空一下index
  349. topicIndex.value = 1
  350. scaleList.value = listNoComplate
  351. for (let i = 0; i < scaleList.value.length; i++) {
  352. scaleList.value[i].isCheck = ''
  353. }
  354. }
  355. }
  356. //根据flag查询量表详情
  357. // scaleName.value = res.data.name;
  358. // detail.value = res.data.description;
  359. // theory.value = res.data.theory;
  360. // //参考文献
  361. // reference.value = res.data.reference.split('//');
  362. const productData = (data: any) => {
  363. //循环列表
  364. //查看isCheck字段
  365. //根据字段拿出答案
  366. //将答案放入数组
  367. let testRecord = []
  368. for (let i = 0; i < data.length; i++) {
  369. for (let k = 0; k < data[i].answerList.length; k++) {
  370. if (data[i].isCheck === data[i].answerList[k].name) {
  371. //r
  372. testRecord.push(data[i].answerList[k])
  373. }
  374. }
  375. }
  376. return testRecord
  377. }
  378. //上一题的方法
  379. const lastTopic = () => {
  380. if (topicIndex.value == 1) {
  381. ElMessage({
  382. message: '已经是第一题了',
  383. type: "warning",
  384. })
  385. return
  386. }
  387. topicIndex.value--
  388. }
  389. //定义时间间隔数组
  390. const timeNum = ref<number>(0)
  391. //定义数组一个空数组
  392. const listTime = ref<any>([])
  393. //再记录一个计数器
  394. const countTime = ref<number>(0)
  395. //获取当前时间
  396. //点击选中选项的事件
  397. const radioFun = () => {
  398. overTimeFun()
  399. countTime.value += 1
  400. //获取新时间
  401. let currentTime = new Date().getTime();
  402. //获取时间差
  403. let difference = currentTime - timeNum.value;
  404. timeNum.value = currentTime;
  405. listTime.value.push(difference)
  406. if (countTime.value == 5) {
  407. //当计数器等于5时
  408. //设置计数器为0;
  409. //先判断时间差
  410. //如果时间差小于5秒就弹出框,
  411. //如果大于5秒了,就将计数器重置为0--且数组重置为空
  412. if (listTime.value.length == 5) {
  413. let timeTotal = 0
  414. for (let i = 0; i < listTime.value.length; i++) {
  415. timeTotal += listTime.value[i]
  416. }
  417. if (timeTotal < 1000 * 5) {
  418. //需要弹出框
  419. cpdmTip.value.open({ type: 1, message: '请认真答题' })
  420. countTime.value = 0;
  421. listTime.value = []
  422. } else {
  423. //将计时器清空
  424. countTime.value = 0;
  425. listTime.value = []
  426. }
  427. }
  428. }
  429. nextTopic()
  430. }
  431. const overTime = ref()
  432. //定义一个超时的方法
  433. const overTimeFun = () => {
  434. clearTimeout(overTime.value)
  435. overTime.value = setTimeout(() => {
  436. //弹出框进行提示
  437. cpdmTip.value.open({ type: 2, message: '离开太久了,请尽快做题!' })
  438. }, 1000 * 300)
  439. // 1000 * 300
  440. }
  441. //刚进入页面就将高度设置为页面需要的
  442. onMounted(async () => {
  443. overTimeFun()
  444. //刚到页面就创建个定时器
  445. //得到进度设置
  446. //看看是不是scl90 如果是的话
  447. //如果flag是scal90的话----需要看看scal90是否是完成了
  448. //如果完成了---判断是否还有附加题--如果有将flag设置为
  449. //需要做的应该及就是判断scl90的量表是否是做完了
  450. timeNum.value = new Date().getTime()
  451. flag.value = route.params.flag as string;
  452. planId.value = route.params.planId as string
  453. planName.value = route.params.planName as string
  454. flagName.value = route.params.flagName as string
  455. isComplate.value = route.params.isComplate as string
  456. //进到界面开始轮询
  457. // 判断是否SCL90
  458. if (flag.value == '20210617140713') {
  459. //在这里判断scl90是否是已完成
  460. await sclIsCom()
  461. //如果是的话--判断scl90的状态
  462. if (isComplate.value == '0') {
  463. getScaleFun(flag.value)
  464. } else if (isComplate.value == '2') {
  465. queryNeedScale();
  466. }
  467. } else {
  468. getScaleFun(flag.value)
  469. }
  470. getStartTime()
  471. //判断是否是完成了
  472. //如果标志是
  473. })
  474. //获取当前时间
  475. const getStartTime = async () => {
  476. let res: any = await getCurrentTimeApi();
  477. // let date = new Date()
  478. startTime.value = res.data;
  479. // startTime.value = format(date, "yyyy-MM-dd HH:mm:ss");
  480. }
  481. //根据flag 获取当前的题目
  482. const getScaleFun = async (val: string) => {
  483. scaleList.value = []
  484. let res: any = await getScaleApi(val)
  485. scaleList.value = res.data
  486. for (let i = 0; i < scaleList.value.length; i++) {
  487. scaleList.value[i].isCheck = ''
  488. }
  489. }
  490. //界面销毁函数
  491. //轮旋切换页面的方法
  492. //退出页面销毁 方法
  493. onUnmounted(() => {
  494. clearTimeout(overTime.value)
  495. })
  496. </script>
  497. <template>
  498. <div class="home_header_out">
  499. <div class=" home_header_inner">
  500. <CpmdHeader />
  501. <div class="report_top">
  502. <div class="report_jt">
  503. <span v-if="!(flag == '20210617140713' && isComplate == '2')">{{ flagName }}</span>
  504. <span v-if="flag == '20210617140713' && isComplate == '2'"> 心理健康测评基础量表(附加题)</span>
  505. <span v-show="!isCompleted" class="des">请根据您的表现回答下列问题,每道题请选择最符合您的情况的选项。</span>
  506. </div>
  507. <img v-show="!isCompleted" class="xlts_img" src="../assets/scale/scale.png" />
  508. </div>
  509. </div>
  510. <div class="kply">
  511. <div class="kply_inner" :style="{ border: isCompleted ? '8px solid #ffffff' : '8px solid #B2F2D2' }">
  512. <div style="padding :10px 100px">
  513. <el-progress v-if="!(flag == '20210617140713' && isComplate == '2')" :text-inside="true"
  514. :stroke-width="20" :percentage="(topicIndex / scaleList.length) * 100" color="#48D68E">
  515. <span style="color:#000000">{{ topicIndex }}/{{ scaleList.length }}</span>
  516. </el-progress>
  517. <el-progress v-if="flag == '20210617140713' && isComplate == '2'" :text-inside="true"
  518. :stroke-width="20" :percentage="((topicIndex + planIsComplateNum) / planAllNum) * 100"
  519. color="#48D68E">
  520. <span style="color:#000000">{{ topicIndex + planIsComplateNum }}/{{ planAllNum }}</span>
  521. </el-progress>
  522. <div v-if="scaleList.length > 0">
  523. <div class="scale_title" v-if="!(flag == '20210617140713' && isComplate == '2')">{{ topicIndex
  524. }}:{{ scaleList[topicIndex - 1].content }}</div>
  525. <div class="scale_title" v-if="flag == '20210617140713' && isComplate == '2'">{{ topicIndex +
  526. planIsComplateNum }}:{{ scaleList[topicIndex - 1].content }}</div>
  527. <el-radio-group v-model="scaleList[topicIndex - 1].isCheck" class="scale_radio_group">
  528. <el-radio-button
  529. v-for="item in scaleList[topicIndex - 1].checkItems.split(';').sort(() => { return Math.random() - 0.5 }) "
  530. @change="radioFun" :label="item" :value="item" />
  531. </el-radio-group>
  532. <div class="scale_button">
  533. <el-row>
  534. <el-col :span="12" class="scale_button_inner">
  535. <div v-show="topicIndex > 1" class="scale_button_self" @click="lastTopic">上一题
  536. </div>
  537. </el-col>
  538. <el-col :span="12" class="scale_button_inner">
  539. <div v-show="topicIndex < scaleList.length" class="scale_button_self"
  540. @click="nextTopic">下一题</div>
  541. <!-- <div v-show="topicIndex == scaleList.length" class="scale_button_self"
  542. @click="subScaleData">提交</div> -->
  543. </el-col>
  544. </el-row>
  545. </div>
  546. </div>
  547. </div>
  548. </div>
  549. </div>
  550. <CpdmTip ref="cpdmTip" />
  551. </div>
  552. </template>
  553. <style scoped>
  554. :deep(.dig_kg> .el-dialog__header) {
  555. padding-right: 0px !important;
  556. }
  557. </style>
  558. <style lang="scss" scoped>
  559. :deep(.el-progress-bar__outer) {
  560. background-color: #f3f3f3;
  561. border-radius: 100px;
  562. height: 6px;
  563. overflow: hidden;
  564. position: relative;
  565. vertical-align: middle;
  566. }
  567. :deep(.el-radio-group) {
  568. align-items: center;
  569. display: flex;
  570. flex-wrap: wrap;
  571. font-size: 0;
  572. flex-direction: column;
  573. }
  574. :deep(.el-radio-button) {
  575. display: inline-block;
  576. outline: none;
  577. position: relative;
  578. width: 80% !important;
  579. }
  580. :deep(.el-radio-button__inner) {
  581. width: 100%;
  582. border-radius: 40px !important;
  583. margin-top: 10px;
  584. border: 4px solid #B2F2D2;
  585. border-left: 4px solid #B2F2D2 !important;
  586. padding: 10px 10px;
  587. font-size: 14px;
  588. font-weight: 700;
  589. text-align: left;
  590. }
  591. :deep(.el-radio-button__inner:hover) {
  592. width: 100%;
  593. border-radius: 40px !important;
  594. margin-top: 10px;
  595. border: 4px solid #B2F2D2;
  596. border-left: 4px solid #B2F2D2 !important;
  597. padding: 10px 10px;
  598. font-size: 14px;
  599. font-weight: 700;
  600. text-align: left;
  601. color: #000000;
  602. background-color: #48D68E;
  603. color: #ffffff;
  604. }
  605. // :deep().el-radio-button__original-radio:checked+.el-radio-button__inner {
  606. // background-color: #48D68E !important;
  607. // border-color: #B2F2D2 !important;
  608. // box-shadow: 0 0 0 0 var(--el-radio-button-checked-border-color, var(--el-color-primary)) !important;
  609. // color: var(--el-radio-button-checked-text-color, var(--el-color-white));
  610. // }
  611. :deep().el-radio-button.is-active .el-radio-button__original-radio:not(:disabled)+.el-radio-button__inner {
  612. background-color: #48D68E !important;
  613. border-color: #B2F2D2 !important;
  614. box-shadow: 0 0 0 0 var(--el-radio-button-checked-border-color, var(--el-color-primary)) !important;
  615. color: var(--el-radio-button-checked-text-color, var(--el-color-white));
  616. }
  617. .home_header_out {
  618. // position: relative;
  619. padding-bottom: 60px;
  620. width: 100%;
  621. min-width: 1200px;
  622. background-image: url('../assets/home/bg_ty.png');
  623. background-repeat: no-repeat;
  624. background-size: contain;
  625. background-color: #B3F1DA; //估计是需要动态
  626. //获取屏幕宽度home_header_out 这个div的宽度--然后宽度*1000再除1920即为当前div的宽度
  627. .home_header_inner {
  628. min-height: 1;
  629. left: 0;
  630. right: 0;
  631. margin: auto;
  632. // height: 100px;
  633. width: 1200px;
  634. .report_top {
  635. width: 860px;
  636. margin-left: 170px;
  637. margin-top: 20px;
  638. display: flex;
  639. flex-direction: row;
  640. justify-content: space-between;
  641. align-items: center;
  642. margin-bottom: 0px;
  643. .xlts_img {
  644. margin-right: 60px;
  645. width: 40px;
  646. height: 30px;
  647. // width: 100px;
  648. }
  649. .report_jt {
  650. display: flex;
  651. flex-direction: column;
  652. font-size: 20px;
  653. font-weight: 700;
  654. letter-spacing: 3px;
  655. .des {
  656. color: #888888;
  657. // opacity: 0.4;
  658. font-size: 15px;
  659. letter-spacing: 0px;
  660. margin-top: 10px;
  661. }
  662. }
  663. }
  664. }
  665. .kply {
  666. width: 100%;
  667. margin-top: 10px;
  668. margin-bottom: 9px;
  669. // width: 860px;
  670. // background-color: #FAFAFA;
  671. .kply_inner {
  672. // border: 8px solid #B2F2D2;
  673. min-height: 500px;
  674. left: 0;
  675. right: 0;
  676. margin: auto;
  677. width: 860px;
  678. // padding: 20px 20px;
  679. background-color: #ffffff;
  680. border-radius: 40px;
  681. .scale_title {
  682. margin-top: 20px;
  683. font-size: 18px;
  684. letter-spacing: 2px;
  685. line-height: 20px;
  686. .scale_radio_group {
  687. display: flex;
  688. flex-direction: column;
  689. }
  690. }
  691. .scale_button {
  692. margin-top: 60px;
  693. margin-bottom: 20px;
  694. .scale_button_inner {
  695. text-align: center;
  696. display: flex;
  697. justify-content: center;
  698. .scale_button_self {
  699. border-radius: 12px;
  700. border: 3px solid #48D68E;
  701. color: #ffffff;
  702. background-color: #000000;
  703. margin-right: 20px;
  704. padding: 10px 40px;
  705. cursor: pointer;
  706. display: flex;
  707. align-items: center;
  708. font-size: 14px;
  709. }
  710. }
  711. }
  712. .finish_calss {
  713. display: flex;
  714. flex-direction: column;
  715. .finish_img {
  716. margin-top: 60px;
  717. display: flex;
  718. flex-direction: column;
  719. align-items: center;
  720. .finish_font {
  721. margin-top: 40px;
  722. font-size: 30px;
  723. margin-bottom: 100px;
  724. }
  725. }
  726. }
  727. }
  728. }
  729. }
  730. .home_mid {
  731. // background-color: blanchedalmond;
  732. width: 1200px;
  733. left: 0;
  734. right: 0;
  735. margin: auto;
  736. margin-top: 40px;
  737. // position: relative;
  738. .kepu_title {
  739. text-align: center;
  740. font-size: 50px;
  741. color: #111111;
  742. line-height: 95px;
  743. // width: 100%;
  744. // left: 0;
  745. // right: 0;
  746. // margin: auto
  747. }
  748. .kepu_title_sub {
  749. margin-top: 30px;
  750. text-align: center;
  751. font-size: 28px;
  752. color: #48D68E;
  753. line-height: 26px;
  754. }
  755. .man1_group {
  756. margin-top: 60px;
  757. height: 100%;
  758. display: flex;
  759. .man1 {
  760. position: relative;
  761. width: 327px;
  762. // height: 100%;
  763. // height: 100%
  764. .man1_img {
  765. position: absolute;
  766. bottom: 0;
  767. /* bottom: 0px; */
  768. /* height: auto; */
  769. width: 100%;
  770. left: 100px
  771. }
  772. }
  773. .des {
  774. border: #48D68E solid 5px;
  775. border-radius: 40px;
  776. padding: 20px;
  777. letter-spacing: 6px;
  778. flex: 1;
  779. .des_inner {
  780. border: 1px dashed #48D68E;
  781. border-radius: 40px;
  782. padding-bottom: 40px;
  783. padding-top: 30px;
  784. padding-left: 100px;
  785. padding-right: 20px;
  786. letter-spacing: 6px;
  787. font-weight: normal;
  788. font-size: 24px;
  789. color: #333333;
  790. line-height: 40px;
  791. }
  792. }
  793. }
  794. .man2_group {
  795. margin-top: 60px;
  796. height: 100%;
  797. display: flex;
  798. .man2 {
  799. position: relative;
  800. width: 327px;
  801. // height: 100%;
  802. // height: 100%
  803. .man2_img {
  804. position: absolute;
  805. bottom: 0;
  806. /* bottom: 0px; */
  807. /* height: auto; */
  808. width: 100%;
  809. left: -100px
  810. }
  811. }
  812. .des2 {
  813. border: #48D68E solid 5px;
  814. border-radius: 40px;
  815. padding: 20px;
  816. letter-spacing: 6px;
  817. flex: 1;
  818. .des2_inner {
  819. border: 1px dashed #48D68E;
  820. border-radius: 40px;
  821. padding-bottom: 40px;
  822. padding-top: 30px;
  823. padding-left: 20px;
  824. padding-right: 100px;
  825. letter-spacing: 6px;
  826. font-weight: normal;
  827. font-size: 24px;
  828. color: #333333;
  829. line-height: 40px;
  830. }
  831. }
  832. }
  833. .get_more {
  834. text-align: center;
  835. img {
  836. width: 300px;
  837. margin-top: 60px;
  838. margin-bottom: 60px;
  839. }
  840. }
  841. }
  842. // .home_footer_out {
  843. // width: 100%;
  844. // background-color: #000000;
  845. // }</style>