questionnaire.vue 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  1. <template>
  2. <div class="page">
  3. <div class="top adfacjb">
  4. <div class="t_l">
  5. <p>问卷调研</p>
  6. <p class="tip">创建和管理PERILL评估问卷</p>
  7. </div>
  8. <div class="t_r">
  9. <!-- <el-button type="primary" icon="el-icon-plus">发送问卷</el-button> -->
  10. </div>
  11. </div>
  12. <div class="query adfacjb">
  13. <el-select v-model="queryParams.questionnaireId" placeholder="问卷" style="width: calc(100% - 324px);" @change="getList" clearable>
  14. <el-option v-for="item in questionnaireList" :key="item.id" :label="item.title" :value="item.id"/>
  15. </el-select>
  16. <el-select v-model="queryParams.status" placeholder="全部状态" style="width: 300px;" @change="getList" clearable>
  17. <el-option label="待发送" :value="-1"></el-option>
  18. <el-option label="进行中" :value="0"></el-option>
  19. <el-option label="已完成" :value="1"></el-option>
  20. </el-select>
  21. </div>
  22. <div class="list">
  23. <div class="l_item" v-for="(item, index) in dataList" :key="index">
  24. <div class="li_top adfacjb">
  25. <div class="lt_l">项目名称:{{ item.programName }}</div>
  26. <div class="lt_r adfac" v-if="item.status===-1">
  27. <div class="lr_pre adfac" @click="handleUpdate(item)">
  28. <img src="@/assets/images/agent/send_mini.png">
  29. <span>修改问卷</span>
  30. </div>
  31. <div class="lr_pre adfac" @click="handlePublish(item)">
  32. <img src="@/assets/images/agent/send_mini.png">
  33. <span>发送问卷</span>
  34. </div>
  35. <div class="lr_pre adfac" @click="handleDelete(item)">
  36. <img src="@/assets/images/agent/report_mini.png">
  37. <span>删除问卷</span>
  38. </div>
  39. <div class="lr_status dfb">待发送</div>
  40. </div>
  41. <div class="lt_r adfac" v-else>
  42. <div class="lr_pre adfac" v-hasPermi="['core:questionnaire:info']" @click="handleSchedule(item)">
  43. <img src="@/assets/images/agent/send_mini.png">
  44. <span>查看进度</span>
  45. </div>
  46. <div class="lr_pre adfac" v-hasPermi="['core:questionnaire:info']" @click="handleSchedule(item)">
  47. <img src="@/assets/images/agent/report_mini.png">
  48. <span>生成报告</span>
  49. </div>
  50. <div class="lr_pre adfac" @click="handleDelete(item)">
  51. <img src="@/assets/images/agent/report_mini.png">
  52. <span>删除问卷</span>
  53. </div>
  54. <div class="lr_status" :class="{'jxz':item.status===0,'ywc':item.status===1}">{{ item.status===0?'进行中':(item.status===1?'已完成':'未知') }}</div>
  55. </div>
  56. </div>
  57. <div class="li_team">公司名称:{{ item.enterpriseName }}</div>
  58. <div class="li_team">团队名称:{{ item.teamName }}</div>
  59. <div class="li_wj">问卷名称:{{ item.title }}</div>
  60. <div class="li_time_person adf">
  61. <div class="ltp">发送时间:{{ item.startTime }}</div>
  62. <div class="ltp">截止时间:{{ item.endTime }}</div>
  63. <div class="ltp">作答成员:<span>{{ item.finishNum||0 }}/{{item.userNum||0}}</span>完成</div>
  64. <div class="ltp">发送人:{{ item.creatorName }}</div>
  65. </div>
  66. <div class="li_jd">
  67. <div class="lj" :style="{'width':(item.finishNum/item.userNum*100)+'%'}"></div>
  68. </div>
  69. <div class="li_text adfacjb">
  70. <span>完成情况</span>
  71. <span>{{ item.userNum?((item.finishNum/item.userNum)*100).toFixed(0):0 }}%</span>
  72. </div>
  73. <div class="li_report_action">
  74. <el-button link type="text" size="mini" @click="toggleReportList(item)">报告列表</el-button>
  75. </div>
  76. <div v-if="item.reportExpanded" v-loading="item.reportLoading">
  77. <reportList
  78. :item="item"
  79. :reportList="item.reportList"
  80. :showMore="true"
  81. @toggleReport="toggleReportList"
  82. @refreshReportList="refreshReportList">
  83. </reportList>
  84. </div>
  85. </div>
  86. <el-row style="display: flex;justify-content: center;">
  87. <el-pagination
  88. @size-change="handleSizeChange"
  89. @current-change="handleCurrentChange"
  90. :current-page="queryParams.page"
  91. :page-sizes="[2, 5, 10]"
  92. :page-size="2"
  93. layout="total, sizes, prev, pager, next, jumper"
  94. :total="total"
  95. v-show="total > 0">
  96. </el-pagination>
  97. </el-row>
  98. </div>
  99. <el-dialog width="40%" :visible.sync="show" title="修改问卷" @close="cancel">
  100. <div class="content">
  101. <div class="c_set">
  102. <div class="cs_title" style="margin-top: 0;">选择项目成员</div>
  103. <div class="cs_users adf">
  104. <div class="cu_l adfacjb">
  105. <img src="@/assets/images/agent/users_mini.png">
  106. <div class="cul_add" @click="handleAddUser">+ 添加</div>
  107. </div>
  108. <div class="cu_r adfac">
  109. <div class="cr_item adfacjb" v-for="(item,index) in params.persons" :key="index">
  110. <span>{{ item.name }}</span>
  111. <img src="@/assets/images/agent/remove_mini.png" @click="handleRemoveUser(item,index)">
  112. </div>
  113. </div>
  114. </div>
  115. <div class="cs_title">问卷回答设置</div>
  116. <div class="cs_zd adfac">
  117. <span>只允许作答</span>
  118. <el-input-number v-model="params.answerSetting" :min="1" controls-position="right" style="margin: 0 9px;"></el-input-number>
  119. <span>次</span>
  120. </div>
  121. <div class="cs_title">问卷作答时间设置</div>
  122. <div class="cs_time">
  123. <div class="ct_pre adfac">
  124. <span>开始时间</span>
  125. <el-date-picker v-model="params.startTime" type="datetime" placeholder="选择开始时间" style="width:311px;" @change="e=>handleChangeDatetime(e,'startTime')"></el-date-picker>
  126. </div>
  127. <div class="ct_pre adfac">
  128. <span>截止时间</span>
  129. <el-date-picker v-model="params.endTime" type="datetime" placeholder="选择截止时间" style="width:311px;" @change="e=>handleChangeDatetime(e,'endTime')"></el-date-picker>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="demo-drawer__footer" style="display: flex;justify-content: end;">
  135. <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 认</el-button>
  136. <el-button @click="cancel" style="margin-right: 5%;">取 消</el-button>
  137. </div>
  138. </el-dialog>
  139. <el-dialog width="790px" :visible.sync="userShow" title="选择成员" @close="userShow=false">
  140. <div class="ed_coach adf">
  141. <div class="ec_l">
  142. <el-input placeholder="请输入成员名搜索" suffix-icon="el-icon-search" v-model="userName" style="width: 100%;"></el-input>
  143. <template v-if="!checkShow">
  144. <div class="ecl_gs">
  145. <div class="eg_title">按项目选</div>
  146. <div class="egt_item adfacjb" v-for="(item,index) in companyList" :key="index">
  147. <div class="ei_l adffc" style="cursor: pointer;">
  148. <div class="adfac">
  149. <span @click="handleChooseUser(item)">{{ item.programName }}</span>
  150. <span></span>
  151. </div>
  152. <div><span style="margin-left: 0;">{{ item.enterpriseName }}-{{ item.teamName }}</span></div>
  153. </div>
  154. <div class="ei_r" @click="handleChooseUser(item)">
  155. <span>成员</span>
  156. </div>
  157. </div>
  158. </div>
  159. </template>
  160. <template v-else>
  161. <div class="ecl_company">
  162. <i class="el-icon-arrow-left" @click="handleUserBack"></i>
  163. {{ companyName }}
  164. </div>
  165. <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange" style="margin-top: 33px;">全选</el-checkbox>
  166. <div class="ecl_cbs">
  167. <el-checkbox v-model="user.checked" v-for="(user,index) in userList" :key="index" @change="handleChangeUser" style="margin-top: 24px;display: block;">{{ user.name }}</el-checkbox>
  168. </div>
  169. </template>
  170. </div>
  171. <div class="ec_r">
  172. <div class="ecr_text">已选择({{ selectedUsers.length }}/<span>{{ userList.length }}</span>)</div>
  173. <div class="ecr_names">
  174. <div class="en_pre adfacjc" v-for="(item,index) in selectedUsers" :key="index">
  175. <span>{{ item.name }}</span>
  176. <img src="@/assets/images/agent/delete_mini.png" @click="handleDeleteUser(item,index)">
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <div class="demo-drawer__footer" style="display: flex;justify-content: end;margin-top: 20px;">
  182. <el-button type="primary" @click="submitForm2">确 认</el-button>
  183. <el-button @click="cancel2" style="margin-right: 5%;">取 消</el-button>
  184. </div>
  185. </el-dialog>
  186. </div>
  187. </template>
  188. <script setup name="">
  189. import { ref, getCurrentInstance, onMounted } from 'vue'
  190. import {useAgentStore} from "@/store_v3/modules/agent";
  191. import reportList from '@/components/reportList/index.vue'
  192. import {
  193. getTeamQuestionnaireList,
  194. getTeamReportWjList,
  195. deleteQuestionnaireOne,
  196. getQuestionnairePublishInfo,
  197. getProgramList,
  198. getCoachList,
  199. publishQuestionnaireConfirm,
  200. updateQuestionnairePublish
  201. } from "@/api/agent/index.js";
  202. const { proxy } = getCurrentInstance();
  203. const agentStore = useAgentStore()
  204. const questionnaireList = ref([])
  205. const queryParams = ref({
  206. page:1,
  207. limit:2,
  208. questionnaireId: '',
  209. status: '',
  210. })
  211. const total = ref(0)
  212. const dataList = ref([])
  213. const show = ref(false)
  214. const params = ref({
  215. questionnaireId:'',
  216. programId:'',
  217. teamId:'',
  218. userIds:[],
  219. persons:[],
  220. memberInfos:[],
  221. answerSetting:1,
  222. startTime:'',
  223. endTime:''
  224. })
  225. const userShow = ref(false)
  226. const checkShow = ref(false)
  227. const companyName = ref('')
  228. const userName = ref('')
  229. const companyList = ref([])
  230. const userList = ref([])
  231. const selectedUsers = ref([])
  232. const checkAll = ref(false)
  233. const isIndeterminate = ref(false)
  234. const buttonLoading = ref(false)
  235. const handleAddUser = () => {
  236. userShow.value = true
  237. getProgramList({page:1,limit:-1}).then(res=>{
  238. if(res.code !==0) return proxy.$message({type:'warning',message:res.msg});
  239. companyList.value = res.data.list.map(l=>{
  240. return {
  241. id:l.id,
  242. programName:l.programName,
  243. enterpriseName:l.enterpriseName,
  244. teamName:l.teamName,
  245. teamId:l.teamId
  246. }
  247. });
  248. })
  249. }
  250. const handleChangeDatetime = (e,key) => {
  251. params.value[key] = proxy.parseTime(new Date(e), '{yy}-{mm}-{dd} {hh}:{ii}:{ss}');
  252. }
  253. const handleRemoveUser = (item,index) => {
  254. params.value.persons.splice(index,1);
  255. params.value.userIds = params.value.persons.map(l=>l.id);
  256. }
  257. const handleChooseUser = (item) => {
  258. params.value.programId = item.id;
  259. params.value.teamId = item.teamId;
  260. getCoachList({teamId:item.teamId,page:1,limit:-1}).then(res=>{
  261. if(res.code!==0) return proxy.$message({type:'warning',message:res.msg});
  262. userList.value = res.data.list.map(l=>{
  263. return {id:l.id,name:l.realName,checked:false}
  264. })
  265. })
  266. checkShow.value = true
  267. companyName.value = item.programName
  268. }
  269. const handleUserBack = () => {
  270. checkShow.value = false
  271. companyName.value = ''
  272. }
  273. const handleCheckAllChange = (val) => {
  274. selectedUsers.value = val ? JSON.parse(JSON.stringify(userList.value)) : [];
  275. isIndeterminate.value = false;
  276. userList.value.forEach(item => item.checked = val)
  277. }
  278. const handleChangeUser = () => {
  279. let trues = userList.value.filter(item => item.checked).length;
  280. if(trues>0&&trues<userList.value.length) isIndeterminate.value = true;
  281. else isIndeterminate.value = false;
  282. if(trues===userList.value.length) checkAll.value = true;
  283. else checkAll.value = false;
  284. selectedUsers.value = userList.value.filter(item => item.checked);
  285. }
  286. const handleDeleteUser = (item,index) => {
  287. let i = userList.value.findIndex(c => c.id === item.id);
  288. if(i>-1) userList.value[i].checked = false;
  289. selectedUsers.value.splice(index,1);
  290. let trues = userList.value.filter(item => item.checked).length;
  291. if(trues>0&&trues<userList.value.length) isIndeterminate.value = true;
  292. else isIndeterminate.value = false;
  293. if(trues===userList.value.length) checkAll.value = true;
  294. else checkAll.value = false;
  295. }
  296. const submitForm2 = () => {
  297. if(selectedUsers.value.length===0) return proxy.$message.warning('请至少选择一位成员')
  298. params.value.persons = JSON.parse(JSON.stringify(selectedUsers.value));
  299. params.value.userIds = params.value.persons.map(l=>l.id);
  300. checkAll.value = false;
  301. isIndeterminate.value = false;
  302. selectedUsers.value = [];
  303. userList.value = [];
  304. checkShow.value = false;
  305. userShow.value = false;
  306. }
  307. const cancel2 = () => {
  308. userShow.value = false;
  309. }
  310. const cancel = () => {
  311. show.value = false;
  312. }
  313. const submitForm = () => {
  314. if(buttonLoading.value) return
  315. buttonLoading.value = true;
  316. if(params.value.userIds.length === 0){
  317. proxy.$message({type:'warning',message:'请选择项目成员'});
  318. buttonLoading.value = false;
  319. return;
  320. }
  321. if(!params.value.startTime || !params.value.endTime){
  322. proxy.$message({type:'warning',message:'请设置问卷作答时间'});
  323. buttonLoading.value = false;
  324. return;
  325. }
  326. params.value.memberInfos = params.value.persons.map(l=>{
  327. return {
  328. userId:l.id,
  329. realName:l.name
  330. }
  331. })
  332. let { persons ,userIds ,...paras } = params.value;
  333. let data = {...paras};
  334. updateQuestionnairePublish(data).then(res=>{
  335. if(res.code!==0) return proxy.$message.error(res.msg)
  336. proxy.$message.success('修改成功')
  337. getList()
  338. }).finally(()=>{buttonLoading.value = false;show.value = false;})
  339. }
  340. const handleUpdate = row => {
  341. getQuestionnairePublishInfo(row.id).then(res=>{
  342. if(res.code!==0) return proxy.$message({type:'warning',message:res.msg});
  343. params.value = {...res.data,persons:[],userIds:[]}
  344. params.value.persons = res.data.memberInfos.map(m=>({id:m.userId,name:m.realName}));
  345. params.value.userIds = res.data.memberInfos.map(m=>m.userId);
  346. show.value = true;
  347. })
  348. }
  349. const handlePublish = async row => {
  350. await proxy.$modal.confirm('是否确认发送该问卷?', '提示', {})
  351. let res = await publishQuestionnaireConfirm(row.id).finally(()=>{})
  352. if(res.code!==0) return proxy.$message.error(res.msg)
  353. proxy.$message.success('发送成功')
  354. getList()
  355. }
  356. const handleDelete = async row => {
  357. await proxy.$modal.confirm('是否确认删除该问卷?', '提示', {})
  358. let res = await deleteQuestionnaireOne(row.id)
  359. if(res.code!==0) return proxy.$message.error(res.msg)
  360. proxy.$message.success('删除成功')
  361. getList()
  362. }
  363. const handleSchedule = (item) => {
  364. proxy.$router.push({
  365. path: '/agentQuestionnaireSchedule',
  366. query:{
  367. id: item.id,
  368. questionnaireName: item.title,
  369. enterpriseName: item.enterpriseName,
  370. programName: item.programName,
  371. teamName: item.teamName,
  372. startTime: item.startTime,
  373. endTime: item.endTime,
  374. userNum: item.userNum,
  375. finishNum: item.finishNum
  376. }
  377. })
  378. }
  379. const getList = () => {
  380. let query = {...queryParams.value};
  381. getTeamQuestionnaireList(query).then(res=>{
  382. if(res.code!==0) return proxy.$message.error(res.msg)
  383. dataList.value = res.data.list.map(item => ({
  384. ...item,
  385. reportExpanded: false,
  386. reportLoading: false,
  387. reportList: []
  388. }));
  389. total.value = res.data.total;
  390. })
  391. }
  392. const toggleReportList = async row => {
  393. row.reportExpanded = !row.reportExpanded
  394. if (!row.reportExpanded || row.reportList.length > 0) return
  395. row.reportLoading = true
  396. try {
  397. const res = await getTeamReportWjList(row.id)
  398. if(res.code!==0) return proxy.$message.error(res.msg)
  399. row.reportList = res.data || []
  400. } finally {
  401. row.reportLoading = false
  402. }
  403. }
  404. const refreshReportList = relationId => {
  405. const row = dataList.value.find(item => item.id === relationId)
  406. if (!row) return
  407. getTeamReportWjList(row.id).then(res => {
  408. if(res.code!==0) return proxy.$message.error(res.msg)
  409. row.reportList = res.data || []
  410. })
  411. }
  412. const handleSizeChange = (e)=>{
  413. queryParams.value.limit = e;
  414. getList();
  415. }
  416. const handleCurrentChange = (e)=>{
  417. queryParams.value.page = e;
  418. getList();
  419. }
  420. onMounted(async ()=>{
  421. await agentStore.getQuestionnaireData()
  422. questionnaireList.value = agentStore.questionnaireList || []
  423. getList()
  424. })
  425. </script>
  426. <style scoped lang="scss">
  427. .page{
  428. padding: 28px 20px;
  429. background: #FAFAFA;
  430. .top{
  431. .t_l{
  432. p{
  433. font-family: PingFang-SC, PingFang-SC;
  434. font-weight: bold;
  435. font-size: 16px;
  436. color: #252525;
  437. line-height: 16px;
  438. &.tip{
  439. font-family: PingFangSC, PingFang SC;
  440. font-weight: 400;
  441. font-size: 14px;
  442. color: #6B7280;
  443. line-height: 14px;
  444. margin-top: 16px;
  445. }
  446. }
  447. }
  448. }
  449. .query{
  450. width: 100%;
  451. padding: 16px 20px;
  452. box-sizing: border-box;
  453. background: #FFFFFF;
  454. border-radius: 6px;
  455. border: 1px solid #F3F4F6;
  456. margin-top: 16px;
  457. }
  458. .list{
  459. width: 100%;
  460. height: calc(100vh - 196px);
  461. overflow-y: auto;
  462. margin-top: 4px;
  463. .l_item{
  464. width: 100%;
  465. padding: 20px 24px;
  466. box-sizing: border-box;
  467. margin-top: 16px;
  468. background: #FFFFFF;
  469. border-radius: 6px;
  470. border: 1px solid #F3F4F6;
  471. .li_top{
  472. .lt_l{
  473. font-family: PingFang-SC, PingFang-SC;
  474. font-weight: bold;
  475. font-size: 14px;
  476. color: #252525;
  477. line-height: 14px;
  478. overflow: hidden;
  479. text-overflow: ellipsis;
  480. white-space: nowrap;
  481. }
  482. .lt_r{
  483. .lr_pre{
  484. cursor: pointer;
  485. margin-right: 36px;
  486. img{
  487. width: 20px;
  488. height: 20px;
  489. }
  490. span{
  491. font-family: PingFangSC, PingFang SC;
  492. font-weight: 400;
  493. font-size: 14px;
  494. color: #6B7280;
  495. line-height: 20px;
  496. margin-left: 8px;
  497. }
  498. }
  499. .lr_status{
  500. width: 76px;
  501. height: 24px;
  502. border-radius: 12px;
  503. font-family: PingFangSC, PingFang SC;
  504. font-weight: 400;
  505. font-size: 14px;
  506. line-height: 24px;
  507. text-align: center;
  508. &.dfb{
  509. background: #e7e7e7;
  510. color: #414040;
  511. }
  512. &.jxz{
  513. background: #FCECB6;
  514. color: #864F10;
  515. }
  516. &.ywc{
  517. background: rgba(0,145,145,0.1);
  518. color: #009191;
  519. }
  520. }
  521. }
  522. }
  523. .li_team{
  524. font-family: PingFangSC, PingFang SC;
  525. font-weight: 400;
  526. font-size: 14px;
  527. color: #6B7280;
  528. line-height: 14px;
  529. margin-top: 16px;
  530. }
  531. .li_wj{
  532. font-family: PingFang-SC, PingFang-SC;
  533. font-weight: bold;
  534. font-size: 14px;
  535. color: #252525;
  536. line-height: 16px;
  537. margin-top: 24px;
  538. }
  539. .li_time_person{
  540. margin-top: 16px;
  541. .ltp{
  542. width: calc(100% / 4);
  543. font-family: PingFangSC, PingFang SC;
  544. font-weight: 400;
  545. font-size: 14px;
  546. color: #6B7280;
  547. line-height: 14px;
  548. span{
  549. font-weight: bold;
  550. font-size: 16px;
  551. color: #33A7A7;
  552. }
  553. }
  554. }
  555. .li_jd{
  556. width: 100%;
  557. height: 8px;
  558. background: #F3F4F6;
  559. border-radius: 4px;
  560. position: relative;
  561. margin-top: 20px;
  562. .lj{
  563. height: 100%;
  564. background: linear-gradient( 270deg, #9D5F94 0%, #33A7A7 100%);
  565. border-radius: 4px;
  566. position: absolute;
  567. left: 0;
  568. top: 0;
  569. }
  570. }
  571. .li_text{
  572. margin-top: 10px;
  573. span{
  574. font-family: PingFangSC, PingFang SC;
  575. font-weight: 400;
  576. font-size: 14px;
  577. color: #646464;
  578. line-height: 14px;
  579. }
  580. }
  581. }
  582. }
  583. }
  584. .content{
  585. .c_set{
  586. width: 100%;
  587. background: #FFFFFF;
  588. border-radius: 6px;
  589. margin-top: 8px;
  590. padding: 0 21px 28px 21px;
  591. box-sizing: border-box;
  592. .cs_title{
  593. font-family: PingFang-SC, PingFang-SC;
  594. font-weight: bold;
  595. font-size: 14px;
  596. color: #252525;
  597. line-height: 20px;
  598. margin-top: 30px;
  599. }
  600. .cs_users{
  601. width: 100%;
  602. height: 36px;
  603. border-radius: 6px;
  604. border: 1px solid #E5E7EB;
  605. margin-top: 20px;
  606. padding: 7px 12px;
  607. box-sizing: border-box;
  608. .cu_l{
  609. width: 104px;
  610. padding-right: 15px;
  611. box-sizing: border-box;
  612. &>img{
  613. width: 18px;
  614. height: 18px;
  615. margin-top: -5px;
  616. }
  617. .cul_add{
  618. width: 54px;
  619. height: 24px;
  620. border-radius: 4px;
  621. border: 1px solid #33A7A7;
  622. font-family: PingFangSC, PingFang SC;
  623. font-weight: 400;
  624. font-size: 12px;
  625. color: #33A7A7;
  626. line-height: 22px;
  627. text-align: center;
  628. margin-top: -2px;
  629. cursor: pointer;
  630. }
  631. }
  632. .cu_r{
  633. width: calc(100% - 104px);
  634. margin-left: -16px;
  635. .cr_item{
  636. padding: 4px 10px;
  637. background: #F9FAFB;
  638. border-radius: 6px;
  639. margin-left: 16px;
  640. span{
  641. font-family: PingFangSC, PingFang SC;
  642. font-weight: 400;
  643. font-size: 14px;
  644. color: #252525;
  645. line-height: 14px;
  646. }
  647. img{
  648. width: 16px;
  649. height: 16px;
  650. margin-left: 10px;
  651. cursor: pointer;
  652. }
  653. }
  654. }
  655. }
  656. .cs_zd{
  657. margin-top: 12px;
  658. span{
  659. font-family: PingFangSC, PingFang SC;
  660. font-weight: 400;
  661. font-size: 14px;
  662. color: #6B7280;
  663. line-height: 20px;
  664. }
  665. }
  666. .cs_time{
  667. margin-top: 6px;
  668. .ct_pre{
  669. margin-top: 30px;
  670. span{
  671. font-family: PingFangSC, PingFang SC;
  672. font-weight: 400;
  673. font-size: 14px;
  674. color: #6B7280;
  675. line-height: 20px;
  676. margin-right: 23px;
  677. }
  678. }
  679. }
  680. .cs_btn{
  681. margin-top: 70px;
  682. padding-left: 79px;
  683. }
  684. }
  685. }
  686. .ed_coach{
  687. margin-top: -20px;
  688. .ec_l{
  689. width: calc(50% - 1px);
  690. height: 100%;
  691. padding-right: 30px;
  692. box-sizing: border-box;
  693. border-right: 1px solid #ECEEF5;
  694. .ecl_gs{
  695. margin-top: 19px;
  696. .eg_title{
  697. font-family: PingFangSC, PingFang SC;
  698. font-weight: 400;
  699. font-size: 14px;
  700. color: #6B7280;
  701. line-height: 20px;
  702. }
  703. .egt_item{
  704. margin-top: 24px;
  705. .ei_l{
  706. span{
  707. font-family: PingFang-SC, PingFang-SC;
  708. font-weight: bold;
  709. font-size: 14px;
  710. color: #252525;
  711. line-height: 20px;
  712. &:last-child{
  713. font-weight: 400;
  714. color: #6B7280;
  715. margin-left: 20px;
  716. }
  717. }
  718. }
  719. .ei_r{
  720. span{
  721. font-family: PingFangSC, PingFang SC;
  722. font-weight: 400;
  723. font-size: 14px;
  724. color: #33A7A7;
  725. line-height: 20px;
  726. position: relative;
  727. padding-left: 8px;
  728. cursor: pointer;
  729. &::before{
  730. content: '';
  731. width: 1px;
  732. height: 16px;
  733. background: #DDE0E6;
  734. position: absolute;
  735. left: 0;
  736. top: 50%;
  737. margin-top: -8px;
  738. }
  739. }
  740. }
  741. }
  742. }
  743. .ecl_company{
  744. margin-top: 19px;
  745. position: relative;
  746. font-family: PingFang-SC, PingFang-SC;
  747. font-weight: bold;
  748. font-size: 14px;
  749. color: #252525;
  750. line-height: 20px;
  751. text-align: center;
  752. i{
  753. position: absolute;
  754. left: 0;
  755. font-size: 14px;
  756. color: #252525;
  757. cursor: pointer;
  758. }
  759. }
  760. .ecl_cbs{
  761. width: 100%;
  762. // height: calc(100% - 143px);
  763. max-height: 376px;
  764. overflow-y: auto;
  765. }
  766. }
  767. .ec_r{
  768. width: 50%;
  769. padding-left: 30px;
  770. box-sizing: border-box;
  771. .ecr_text{
  772. font-family: PingFang-SC, PingFang-SC;
  773. font-weight: bold;
  774. font-size: 16px;
  775. color: #252525;
  776. line-height: 22px;
  777. span{
  778. color: #B9B9B9;
  779. }
  780. }
  781. .ecr_names{
  782. margin-left: -16px;
  783. overflow: hidden;
  784. .en_pre{
  785. float: left;
  786. padding: 10px;
  787. background: #F9FAFB;
  788. border-radius: 6px;
  789. margin: 19px 0 0 16px;
  790. span{
  791. font-family: PingFangSC, PingFang SC;
  792. font-weight: 400;
  793. font-size: 14px;
  794. color: #252525;
  795. line-height: 14px;
  796. }
  797. img{
  798. width: 16px;
  799. height: 16px;
  800. margin-left: 10px;
  801. cursor: pointer;
  802. }
  803. }
  804. }
  805. }
  806. }
  807. </style>