program.vue 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472
  1. <template>
  2. <div class="page">
  3. <div class="title">{{ title }}</div>
  4. <div class="tabs">
  5. <div class="t_pre" :class="{'active':tidx===1}" @click="handleChangeTab(1)">活动项目</div>
  6. <div class="t_pre" :class="{'active':tidx===2}" @click="handleChangeTab(2)">已完成</div>
  7. <!-- <div class="t_pre" :class="{'active':tidx===3}" @click="handleChangeTab(3)">已归档</div>-->
  8. <div class="t_add" @click="handleAdd" v-hasPermi="['core:project:add']">+ 创建新项目</div>
  9. </div>
  10. <template v-if="tidx===1">
  11. <div class="content">
  12. <template v-if="teamList.length">
  13. <div class="team_user_list">
  14. <div class="tul_left">
  15. <div class="tull_top">
  16. <div class="tullt_l">项目管理</div>
  17. <div class="tullt_r" @click="handleAddTeam" v-hasPermi="['core:project:addTeam']">+添加团队</div>
  18. </div>
  19. <div class="tull_query queryInput">
  20. <el-input v-model="programName" placeholder="请输入公司名称" @keyup.enter.native="getProgramList"></el-input>
  21. <img src="@/assets/images/agent/query_mini.png">
  22. </div>
  23. <div class="tull_list">
  24. <div class="tull_item" :class="{'active':item.select}" v-for="(item,index) in companyList" :key="index" @click="handleExpand(item,index)">
  25. <div class="tname">
  26. <div>
  27. <img src="@/assets/images/agent/down_sj.png">
  28. <span>{{ item.enterpriseName }}</span>
  29. </div>
  30. <el-popover placement="right" width="177" trigger="click">
  31. <div class="tl_czs">
  32. <div class="tlc_pre" @click="handleProgramDetail(item)" v-hasPermi="['core:program:info']">项目详情</div>
  33. <div class="tlc_pre" @click="handleProgramDelete(item)" v-hasPermi="['core:program:delete']">删除项目</div>
  34. </div>
  35. <i slot="reference" class="el-icon-more" style="font-size: 14px;color: #999; transform: rotate(90deg);" @click.stop="handleSetTeam(team,idx)"></i>
  36. </el-popover>
  37. </div>
  38. <template v-if="item.expand&&item.teams&&item.teams.length">
  39. <div class="tuser_list" :class="{'active':team.select}" v-for="(team,idx) in item.teams" :key="idx" @click.stop="handleSelect(team,idx)">
  40. <span>{{ team.teamName }}</span>
  41. <span>({{ team.teamNum||0 }}人)</span>
  42. <el-popover placement="right" width="177" trigger="click">
  43. <div class="tl_czs">
  44. <div class="tlc_pre" @click="handleTeamDetail(team,item)" v-hasPermi="['core:team:info']">团队详情</div>
  45. <div class="tlc_pre" @click="handleTeamDelete(team)" v-hasPermi="['core:team:delete']">删除团队</div>
  46. </div>
  47. <i slot="reference" class="el-icon-more" style="font-size: 14px;color: #999; transform: rotate(90deg);" @click.stop="handleSetTeam(team,idx)"></i>
  48. </el-popover>
  49. </div>
  50. </template>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="tul_right">
  55. <div class="tulr_top">
  56. <div class="tulrt_l queryInput">
  57. <el-input v-model="queryParams.realName" placeholder="请输入姓名查询" @keyup.enter.native="getUserList"></el-input>
  58. <img src="@/assets/images/agent/query_mini.png">
  59. </div>
  60. <div class="tulrt_r">
  61. <div class="tr_btn" @click="handleDownloadExcel" v-hasPermi="['core:project:downloadExcel']" v-if="programid&&teamid">模板下载</div>
  62. <el-upload v-if="programid&&teamid"
  63. :action="uploadUrl"
  64. :data="{enterpriseId: programid, teamId: teamid}"
  65. :headers="uploadHeaders"
  66. :before-upload="handleBeforeUpload"
  67. :on-success="handleSuccess"
  68. >
  69. <div class="tr_btn" v-hasPermi="['sys:user:export']">批量导入</div>
  70. </el-upload>
  71. <div class="tr_btn" @click="handleAddUser" v-hasPermi="['sys:user:add']">添加成员</div>
  72. </div>
  73. </div>
  74. <el-table :data="userList" border cell-class-name="vertical-top-cell" v-loading="loading" empty-text="暂无人员" max-height="578px" style="margin-top: 16px;">
  75. <el-table-column label="序号" width="50">
  76. <template #default="scope">
  77. {{ scope.$index + 1 }}
  78. </template>
  79. </el-table-column>
  80. <el-table-column label="姓名" prop="realName"></el-table-column>
  81. <el-table-column label="性别" prop="gender">
  82. <template #default="{ row }">{{ genderCfg[row.gender]||'未知' }}</template>
  83. </el-table-column>
  84. <el-table-column label="类型" prop="category">
  85. <template #default="{ row }">{{ UserCategory.find(u=>u.value===row.category)?.label ||'未知' }}</template>
  86. </el-table-column>
  87. <el-table-column label="所属部门" prop="dept"></el-table-column>
  88. <el-table-column label="手机号码" prop="mobile"></el-table-column>
  89. <el-table-column label="职位" prop="post"></el-table-column>
  90. <el-table-column label="级别" prop="level"></el-table-column>
  91. <el-table-column label="分工" prop="divisionOfLabour"></el-table-column>
  92. <!-- <el-table-column label="上级" prop="realName"></el-table-column> -->
  93. <el-table-column label="创建时间" prop="createDate" width="200"></el-table-column>
  94. <el-table-column label="操作" width="150">
  95. <template #default="scope">
  96. <el-button link type="text" size="mini" @click="handleEdit(scope.row)" v-hasPermi="['sys:user:update']">编辑</el-button>
  97. <el-button link type="text" size="mini" @click="handleDelete(scope.row)" v-hasPermi="['sys:user:delete']">删除</el-button>
  98. </template>
  99. </el-table-column>
  100. </el-table>
  101. <el-row style="display: flex;justify-content: center;">
  102. <el-pagination
  103. @size-change="handleSizeChange"
  104. @current-change="handleCurrentChange"
  105. :current-page="queryParams.page"
  106. :page-sizes="[5, 10, 20, 50]"
  107. :page-size="10"
  108. layout="total, sizes, prev, pager, next, jumper"
  109. :total="total"
  110. v-show="total > 0">
  111. </el-pagination>
  112. </el-row>
  113. </div>
  114. </div>
  115. </template>
  116. <template v-else>
  117. <div class="empty">
  118. <img src="@/assets/images/agent/team.png">
  119. <p>您还没有任何项目及团队成员信息</p>
  120. <div class="e_add" @click="handleAdd" v-hasPermi="['core:project:add']">+ 创建新项目</div>
  121. </div>
  122. </template>
  123. </div>
  124. </template>
  125. <template v-else-if="tidx===2"></template>
  126. <template v-else-if="tidx===3"></template>
  127. <el-drawer :title="userTitle" :visible.sync="userShow" append-to-body size="60%" @close="userShow=false">
  128. <el-form ref="userRef" :model="userForm" :rules="userRules" label-width="100px" style="width: 90%;margin: 0 auto;">
  129. <el-row>
  130. <el-col :span="12">
  131. <el-form-item label="姓名" prop="realName">
  132. <el-input v-model="userForm.realName" placeholder="请输入姓名" />
  133. </el-form-item>
  134. </el-col>
  135. <el-col :span="12">
  136. <el-form-item label="性别" prop="gender">
  137. <el-select v-model="userForm.gender" placeholder="请选择性别" style="width: 100%;">
  138. <el-option label="男" :value="0"></el-option>
  139. <el-option label="女" :value="1"></el-option>
  140. <el-option label="保密" :value="2"></el-option>
  141. </el-select>
  142. </el-form-item>
  143. </el-col>
  144. </el-row>
  145. <el-row>
  146. <el-col :span="12">
  147. <el-form-item label="类型" prop="category">
  148. <el-select v-model="userForm.category" placeholder="请选择类型" style="width: 100%;">
  149. <el-option v-for="item in UserCategory" :label="item.label" :value="item.value"></el-option>
  150. </el-select>
  151. </el-form-item>
  152. </el-col>
  153. <el-col :span="12">
  154. <el-form-item label="手机号码" prop="mobile">
  155. <el-input type="number" v-model="userForm.mobile" placeholder="请输入手机号码" />
  156. </el-form-item>
  157. </el-col>
  158. </el-row>
  159. <el-row>
  160. <el-col :span="12">
  161. <el-form-item label="所属部门" prop="dept">
  162. <el-input v-model="userForm.dept" placeholder="请输入所属部门" />
  163. </el-form-item>
  164. </el-col>
  165. <el-col :span="12">
  166. <el-form-item label="教育程度" prop="education">
  167. <el-input v-model="userForm.education" placeholder="请输入教育程度" />
  168. </el-form-item>
  169. </el-col>
  170. </el-row>
  171. <el-row>
  172. <el-col :span="12">
  173. <el-form-item label="分工" prop="divisionOfLabour">
  174. <el-input v-model="userForm.divisionOfLabour" placeholder="请输入分工" />
  175. </el-form-item>
  176. </el-col>
  177. <el-col :span="12">
  178. <el-form-item label="职位" prop="post">
  179. <el-input v-model="userForm.post" placeholder="请输入职位" />
  180. </el-form-item>
  181. </el-col>
  182. </el-row>
  183. <el-row>
  184. <el-col :span="12">
  185. <el-form-item label="级别" prop="level">
  186. <el-input v-model="userForm.level" placeholder="请输入级别" />
  187. </el-form-item>
  188. </el-col>
  189. </el-row>
  190. <el-row>
  191. <el-col :span="24">
  192. <el-form-item label="人物简介" prop="introduction">
  193. <el-input type="textarea" :rows="2" v-model="userForm.introduction" placeholder="请输入人物简介" />
  194. </el-form-item>
  195. </el-col>
  196. </el-row>
  197. <el-row>
  198. <el-col :span="24">
  199. <el-form-item label="人物故事" prop="userStory">
  200. <el-input type="textarea" :rows="2" v-model="userForm.userStory" placeholder="请输入人物故事" />
  201. </el-form-item>
  202. </el-col>
  203. </el-row>
  204. </el-form>
  205. <div class="demo-drawer__footer" style="display: flex;justify-content: end;">
  206. <el-button :loading="buttonLoading2" type="primary" @click="submitForm2" v-hasPermi="['sys:user:save']">保 存</el-button>
  207. <el-button @click="cancel2" style="margin-right: 5%;">取 消</el-button>
  208. </div>
  209. </el-drawer>
  210. <el-drawer title="团队详情" :visible.sync="teamShow" append-to-body size="60%" @close="teamShow=false">
  211. <el-form ref="teamRef" :model="teamForm" :rules="teamRules" label-width="120px" style="width: 90%;margin: 0 auto;">
  212. <el-row>
  213. <el-col :span="24">
  214. <el-form-item label="所属公司名称" prop="companyName">
  215. <el-input v-model="teamForm.companyName" placeholder="请输入所属公司名称" disabled/>
  216. </el-form-item>
  217. </el-col>
  218. </el-row>
  219. <el-row>
  220. <el-col :span="24">
  221. <el-form-item label="团队类型" prop="teamName">
  222. <el-input v-model="teamForm.teamName" placeholder="请输入团队类型" />
  223. </el-form-item>
  224. </el-col>
  225. </el-row>
  226. <el-row>
  227. <el-col :span="24">
  228. <el-form-item label="团队故事" prop="teamStory">
  229. <el-input type="textarea" v-model="teamForm.teamStory" placeholder="请输入团队故事" />
  230. </el-form-item>
  231. </el-col>
  232. </el-row>
  233. <el-row>
  234. <el-col :span="24">
  235. <el-form-item label="项目阶段及状态" prop="projectSituation">
  236. <el-input type="textarea" v-model="teamForm.projectSituation" placeholder="请输入项目阶段及状态" />
  237. </el-form-item>
  238. </el-col>
  239. </el-row>
  240. </el-form>
  241. <div class="demo-drawer__footer" style="display: flex;justify-content: end;">
  242. <el-button :loading="buttonLoading3" type="primary" @click="submitForm3" v-hasPermi="['core:team:save']">保 存</el-button>
  243. <el-button @click="cancel3" style="margin-right: 5%;">取 消</el-button>
  244. </div>
  245. </el-drawer>
  246. <el-drawer title="项目详情" :visible.sync="programShow" append-to-body size="60%" @close="programShow=false">
  247. <el-form ref="programRef" :model="programForm" :rules="programRules" label-width="140px" style="width: 90%;margin: 0 auto;">
  248. <el-form-item label="公司名称" prop="enterpriseName">
  249. <el-input v-model="programForm.enterpriseName" placeholder="请输入公司名称" />
  250. </el-form-item>
  251. <el-form-item label="统一社会信用代码" prop="creditCode">
  252. <el-input v-model="programForm.creditCode" placeholder="请输入统一社会信用代码" />
  253. </el-form-item>
  254. <el-form-item label="所在地区" prop="area">
  255. <el-select v-model="programForm.province" :placeholder="disabled ? '' : '省'" clearable style="width: 32%"
  256. @change="(val) => { regionChange(val, 'province'); }">
  257. <el-option v-for="item in provinceOptions" :key="item.id" :label="item.name" :value="item.id">
  258. </el-option>
  259. </el-select>
  260. <el-select v-model="programForm.city" :placeholder="disabled ? '' : '市'" clearable style="width: 32%;margin: 0 2%"
  261. @change="(val) => { regionChange(val, 'city'); }">
  262. <el-option v-for="item in cityOptions" :key="item.id" :label="item.name" :value="item.id">
  263. </el-option>
  264. </el-select>
  265. <el-select v-model="programForm.area" :placeholder="disabled ? '' : '区'" clearable style="width: 32%;"
  266. @change="(val) => { regionChange(val, 'area'); }">
  267. <el-option v-for="item in areaOptions" :key="item.id" :label="item.name" :value="item.id">
  268. </el-option>
  269. </el-select>
  270. </el-form-item>
  271. <el-form-item label="所在行业" prop="industryCode">
  272. <el-select v-model="programForm.industryCode" placeholder="请选择所在行业" style="width: 100%;">
  273. <el-option v-for="item in companyIndustry" :label="item.label" :value="item.value"></el-option>
  274. </el-select>
  275. </el-form-item>
  276. <el-form-item label="人员规模" prop="staffSizeCode">
  277. <el-select v-model="programForm.staffSizeCode" placeholder="请选择人员规模" style="width: 100%;">
  278. <el-option v-for="item in staffSize" :label="item.label" :value="item.value"></el-option>
  279. </el-select>
  280. </el-form-item>
  281. <el-form-item label="项目教练" prop="">
  282. <el-popover
  283. placement="top-start"
  284. title="选择教练"
  285. width="790"
  286. trigger="click"
  287. v-model="coachShow"
  288. @show="hangleSelectCoach">
  289. <div class="ed_coach adf">
  290. <div class="ec_l">
  291. <el-input placeholder="请输入教练名搜索" suffix-icon="el-icon-search" v-model="coachName" style="width: 100%;" @keyup.enter.native="handleQueryCoach"></el-input>
  292. <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange" style="margin-top: 65px;">全选</el-checkbox>
  293. <div class="ecl_cbs">
  294. <el-checkbox v-model="coach.checked" v-for="(coach,index) in coachList" :key="coach.id" @change="handleChangeCoach" style="margin-top: 24px;display: block;">{{ coach.realName }}</el-checkbox>
  295. </div>
  296. </div>
  297. <div class="ec_r">
  298. <div class="ecr_text">已选择({{ coachSelecteds.length }}/<span>{{ coachList.length }}</span>)</div>
  299. <div class="ecr_names">
  300. <div class="en_pre adfacjc" v-for="(item,index) in coachSelecteds" :key="index">
  301. <span>{{ item.realName }}</span>
  302. <img src="@/assets/images/agent/delete_mini.png" @click="handleDeleteCoach(item,index)">
  303. </div>
  304. </div>
  305. </div>
  306. </div>
  307. <div class="demo-drawer__footer" style="display: flex;justify-content: end;margin-top: 20px;">
  308. <el-button :loading="buttonLoading5" type="primary" @click="submitForm5">确 认</el-button>
  309. <el-button @click="cancel5" style="margin-right: 5%;">取 消</el-button>
  310. </div>
  311. <div slot="reference">
  312. <div class="f_s adfacjb" v-if="programForm.coachList.length===0">
  313. <div class="fs_text" :class="{'active':coachs!=='请选择'}">{{ coachs }}</div>
  314. <i class="el-icon-arrow-down" style="color: #C0C4CC;"></i>
  315. </div>
  316. <div class="f_s adfac" v-else>
  317. <p>{{ cocahNames }}</p>
  318. </div>
  319. </div>
  320. </el-popover>
  321. </el-form-item>
  322. <el-form-item label="公司背景" prop="background">
  323. <el-input type="textarea" :rows="2" v-model="programForm.background" placeholder="请输入公司背景" />
  324. </el-form-item>
  325. </el-form>
  326. <div class="demo-drawer__footer" style="display: flex;justify-content: end;">
  327. <el-button :loading="buttonLoading4" type="primary" @click="submitForm4" v-hasPermi="['core:project:save']">保 存</el-button>
  328. <el-button @click="cancel4" style="margin-right: 5%;">取 消</el-button>
  329. </div>
  330. </el-drawer>
  331. <el-drawer title="添加团队" :visible.sync="programTeamShow" append-to-body size="80%" @close="programTeamShow=false">
  332. <el-form :model="programTeamForm" :rules="programTeamRules" ref="programTeamRef" label-width="130px" style="margin: 0 25px;">
  333. <el-row style="width: 100%;">
  334. <el-col :span="12">
  335. <el-form-item label="所属公司名称" prop="companyName">
  336. <el-input v-model="programTeamForm.companyName" clearable placeholder="请输入所属公司名称" disabled></el-input>
  337. </el-form-item>
  338. </el-col>
  339. <el-col :span="12">
  340. <el-form-item label="团队类型" prop="teamName">
  341. <el-input v-model="programTeamForm.teamName" clearable placeholder="请输入团队类型"></el-input>
  342. </el-form-item>
  343. </el-col>
  344. </el-row>
  345. <el-row style="width: 100%;">
  346. <el-col :span="24">
  347. <el-form-item label="团队故事" prop="teamStory">
  348. <el-input type="textarea" v-model="programTeamForm.teamStory" clearable placeholder="请输入团队故事"></el-input>
  349. </el-form-item>
  350. </el-col>
  351. </el-row>
  352. <el-row style="width: 100%;">
  353. <el-col :span="24">
  354. <el-form-item label="项目阶段及状态" prop="projectSituation">
  355. <el-input type="textarea" v-model="programTeamForm.projectSituation" clearable placeholder="请输入项目阶段及状态"></el-input>
  356. </el-form-item>
  357. </el-col>
  358. </el-row>
  359. </el-form>
  360. <div class="demo-drawer__footer" style="display: flex;justify-content: end;">
  361. <el-button :loading="buttonLoading6" type="primary" @click="submitForm6" v-hasPermi="['core:team:save']">保 存</el-button>
  362. <el-button @click="cancel6" style="margin-right: 5%;">取 消</el-button>
  363. </div>
  364. </el-drawer>
  365. </div>
  366. </template>
  367. <script setup name="">
  368. import Cookies from "js-cookie";
  369. import { ref, reactive, getCurrentInstance,onMounted } from 'vue'
  370. import { useRegion } from "@/mixins/region-module";
  371. const { proxy } = getCurrentInstance();
  372. const { companyIndustry, staffSize, UserCategory} = proxy.useDict("companyIndustry", "staffSize", "UserCategory");
  373. const {
  374. provinceOptions,
  375. cityOptions,
  376. areaOptions,
  377. provincAreaDetailInfoList,
  378. cityAreaDetailInfoList,
  379. countyAreaDetailInfoList,
  380. regionChange
  381. } = useRegion();
  382. provincAreaDetailInfoList();
  383. import {
  384. getCoachProgramList,
  385. getCoachProgramInfo,
  386. addProgramTeam,
  387. updateCoachProgram,
  388. deleteCoachProgram,
  389. getCoachList,
  390. addCoach,
  391. updateCoach,
  392. getCoachInfo,
  393. deleteCoach,
  394. updateProgramTeam,
  395. getProgramTeamInfo,
  396. deleteProgramTeam
  397. } from '@/api/agent/index.js'
  398. const uploadUrl = `${window.SITE_CONFIG["apiURL"]}/sys/user/import`
  399. const uploadUrl2 = `${window.SITE_CONFIG["apiURL"]}/sys/oss/uploadFile`
  400. const uploadHeaders = {token:Cookies.get("token")};
  401. const tidx = ref(1);
  402. const teamList = ref([1]);
  403. const programName = ref('')
  404. const companyList = ref([]);
  405. const programid = ref('')
  406. const teamid = ref('')
  407. const loading = ref(false);
  408. const queryParams = ref({
  409. page:1,
  410. limit:10,
  411. teamId:'',
  412. realName:'',
  413. })
  414. const userList = ref([]);
  415. const total = ref(0);
  416. const genderCfg = {
  417. '0': '男',
  418. '1': '女',
  419. '2': '保密',
  420. }
  421. const userTitle = ref('添加成员信息');
  422. const userShow = ref(false);
  423. const userRef = ref(null);
  424. const userForm = ref({
  425. id:'',
  426. enterpriseId:'',
  427. teamId:'',
  428. realName:'',
  429. username:'',
  430. gender:'',
  431. birthdate:'',
  432. mobile:'',
  433. dept:'',
  434. education:'',
  435. divisionOfLabour:'',
  436. post:'',
  437. level:'',
  438. userType:2,
  439. category:'',
  440. introduction:'',
  441. userStory:''
  442. });
  443. const userRules = ref({
  444. realName: [
  445. { required: true, message: '请输入姓名', trigger: 'blur' }
  446. ],
  447. gender: [
  448. { required: true, message: '请选择性别', trigger: 'change' }
  449. ],
  450. birthdate: [
  451. { required: true, message: '请选择出生日期', trigger: 'change' }
  452. ],
  453. mobile: [
  454. { required: true, message: '请输入手机号码', trigger: 'blur' },
  455. { pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: '请输入正确的手机号码', trigger: 'blur' }
  456. ],
  457. dept: [
  458. { required: true, message: '请输入所属部门', trigger: 'blur' }
  459. ],
  460. education: [
  461. { required: true, message: '请输入教育程度', trigger: 'blur' }
  462. ],
  463. divisionOfLabour: [
  464. { required: true, message: '请输入分工', trigger: 'blur' }
  465. ],
  466. post: [
  467. { required: true, message: '请输入职位', trigger: 'blur' }
  468. ],
  469. level:[
  470. { required: true, message: '请输入级别', trigger: 'blur' }
  471. ],
  472. category:[
  473. { required: true, message: '请选择成员类型', trigger: 'change' }
  474. ],
  475. introduction:[
  476. { required: true, message: '请输入成员简介', trigger: 'blur' }
  477. ],
  478. userStory:[
  479. { required: true, message: '请输入成员故事', trigger: 'blur' }
  480. ]
  481. });
  482. const buttonLoading2 = ref(false);
  483. const teamRef = ref(null);
  484. const teamShow = ref(false);
  485. const teamForm = ref({
  486. id:'',
  487. enterpriseId:'',
  488. companyName:'',
  489. teamName:'',
  490. teamStory:'',
  491. workTasks:'',
  492. projectSituation:'',
  493. background:''
  494. });
  495. const teamRules = ref({
  496. teamName: [
  497. { required: true, message: '请输入所属公司名称', trigger: 'blur' }
  498. ],
  499. teamStory: [
  500. { required: true, message: '请输入团队故事', trigger: 'blur' }
  501. ],
  502. workTasks: [
  503. { required: true, message: '请输入工作任务', trigger: 'blur' }
  504. ],
  505. projectSituation: [
  506. { required: true, message: '请输入项目阶段及状态', trigger: 'blur' }
  507. ],
  508. background:[
  509. { required: true, message: '请输入团队背景', trigger: 'blur' }
  510. ]
  511. });
  512. const buttonLoading3 = ref(false);
  513. const programForm = ref({
  514. id:'',
  515. enterpriseName: '',
  516. creditCode: '',
  517. industryCode: '',
  518. staffSizeCode: '',
  519. province:'',
  520. city:'',
  521. area:'',
  522. areaCode:'',
  523. coachList:[]
  524. });
  525. const programRules = ref({
  526. enterpriseName: [
  527. { required: true, message: '请输入公司名称', trigger: 'blur' }
  528. ],
  529. creditCode: [
  530. { required: true, message: '请输入统一社会信用代码', trigger: 'blur' }
  531. ],
  532. industryCode: [
  533. { required: true, message: '请选择所在行业', trigger: 'change' }
  534. ],
  535. staffSizeCode: [
  536. { required: true, message: '请选择人员规模', trigger: 'change' }
  537. ],
  538. area: [
  539. { required: true, message: '请选择所在地区', trigger: 'change' }
  540. ]
  541. });
  542. const programRef = ref(null);
  543. const programShow = ref(false);
  544. const coachs = ref('请选择')
  545. const coachName = ref('')
  546. const coachShow = ref(false)
  547. const coachSelecteds = ref([])
  548. const coachList = ref([])
  549. const isIndeterminate = ref(false)
  550. const checkAll = ref(false)
  551. const cocahNames = ref('')
  552. const buttonLoading4 = ref(false);
  553. const buttonLoading5 = ref(false);
  554. const title = proxy.$route.meta.title;
  555. const programTeamForm = ref({
  556. id:'',
  557. enterpriseId:'',
  558. companyName:'',
  559. teamName:'',
  560. workTasks:'',
  561. teamStory:'',
  562. projectSituation:'',
  563. file:'',
  564. users:[]
  565. });
  566. const programTeamRules = ref({
  567. companyName: [
  568. { required: true, message: '请输入所属公司名称', trigger: 'blur' }
  569. ],
  570. teamName: [
  571. { required: true, message: '请输入团队类型', trigger: 'blur' }
  572. ],
  573. teamStory: [
  574. { required: true, message: '请输入团队故事', trigger: 'blur' }
  575. ],
  576. projectSituation: [
  577. { required: true, message: '请输入项目阶段及状态', trigger: 'blur' }
  578. ]
  579. });
  580. const programTeamRef = ref(null);
  581. const programTeamShow = ref(false);
  582. const buttonLoading6 = ref(false);
  583. const addType = ref(1)
  584. const handleChangeTab = (idx) => {
  585. tidx.value = idx;
  586. }
  587. const handleAdd = () => {
  588. proxy.$router.push('/agentProgramAddTeam');
  589. };
  590. const handleExpand = (item, index) => {
  591. programid.value = item.id;
  592. programTeamForm.value.companyName = item.enterpriseName;
  593. item.expand = !item.expand;
  594. companyList.value.forEach(c => { c.select = false; });
  595. item.select = true;
  596. };
  597. const handleSelect = (team, index) => {
  598. teamid.value = team.teamId;
  599. queryParams.value.teamId = team.teamId;
  600. companyList.value.forEach(item => {
  601. if(item.teams){
  602. item.teams.forEach(t => t.select = false);
  603. }
  604. });
  605. team.select = true;
  606. getUserList();
  607. };
  608. const handleSetTeam = (team, index) => {
  609. };
  610. const handleAddTeam = () => {
  611. if(!programid.value) return proxy.$message.error('请先选择项目')
  612. programTeamShow.value = true;
  613. };
  614. const getUserList = async () => {
  615. let query = {...queryParams.value};
  616. loading.value = true;
  617. const res = await getCoachList(query);
  618. userList.value = res.data.list;
  619. total.value = res.data.total;
  620. loading.value = false;
  621. }
  622. const handleSizeChange = (e)=>{
  623. queryParams.value.limit = e;
  624. getUserList();
  625. }
  626. const handleCurrentChange = (e)=>{
  627. queryParams.value.page = e;
  628. getUserList();
  629. }
  630. const handleTeamDetail = (team,item) => {
  631. getProgramTeamInfo(team.teamId).then(res=>{
  632. if(res.code!==0) return proxy.$message.error(res.msg);
  633. teamForm.value = {...teamForm.value,...res.data};
  634. teamForm.value.companyName = item.enterpriseName;
  635. teamShow.value = true;
  636. })
  637. }
  638. const handleTeamDelete = async team => {
  639. await proxy.$modal.confirm('确认删除团队【' + team.teamName + '】吗?').finally(() => buttonLoading3.value = false);
  640. deleteProgramTeam(team.teamId).then(res=>{
  641. if(res.code === 0) proxy?.$modal.msgSuccess("删除成功");
  642. else return proxy?.$modal.msgError(res.msg);
  643. getProgramList();
  644. });
  645. }
  646. const getProgramList = async () => {
  647. loading.value = true;
  648. const res = await getCoachProgramList({enterpriseName:programName.value});
  649. if(res.code!==0) return proxy.$message.error(res.msg);
  650. companyList.value = res.data.map((d,i)=>{
  651. return {
  652. ...d,
  653. expand: false,
  654. select: false,
  655. teams: res.data[i].teams.map(t => {
  656. return {
  657. ...t,
  658. select: false
  659. }
  660. })
  661. }
  662. });
  663. loading.value = false;
  664. userList.value = [];
  665. total.value = 0;
  666. queryParams.value.teamId = '';
  667. queryParams.value.page = 1;
  668. queryParams.value.realName = '';
  669. }
  670. const handleEdit = (row) => {
  671. reset();
  672. getCoachInfo(row.id).then(response => {
  673. userForm.value = {...userForm.value,...response.data};
  674. userTitle.value = "编辑成员详情";
  675. userShow.value = true;
  676. });
  677. }
  678. async function handleDelete(row) {
  679. await proxy?.$modal.confirm('确认删除成员【' + row.realName + '】吗?').finally(() => loading.value = false);
  680. let res = await deleteCoach([row.id]);
  681. if (res.code === 0) proxy?.$modal.msgSuccess("删除成功");
  682. else return proxy?.$modal.msgError(res.msg);
  683. await getUserList();
  684. }
  685. const reset = () => {
  686. userForm.value = {
  687. id:'',
  688. enterpriseId:'',
  689. teamId:'',
  690. realName:'',
  691. username:'',
  692. gender:'',
  693. birthdate:'',
  694. mobile:'',
  695. dept:'',
  696. education:'',
  697. divisionOfLabour:'',
  698. post:'',
  699. level:'',
  700. userType:2,
  701. category:'',
  702. introduction:'',
  703. userStory:''
  704. };
  705. proxy.resetForm("userRef");
  706. }
  707. const handleChangeDate = (e) => {
  708. userForm.value.birthdate = proxy.parseTime(new Date(e), '{yy}-{mm}-{dd}');
  709. }
  710. const submitForm2 = () => {
  711. proxy.$refs.userRef.validate((valid) => {
  712. if (valid) {
  713. buttonLoading2.value = true;
  714. userForm.value.username = userForm.value.mobile;
  715. userForm.value.enterpriseId = programid.value;
  716. userForm.value.teamId = teamid.value;
  717. if(userForm.value.id){
  718. updateCoach(userForm.value).then((res)=>{
  719. if(res.code!==0) return proxy.$message.error(res.msg);
  720. buttonLoading2.value = false;
  721. userShow.value = false;
  722. getUserList();
  723. })
  724. }else{
  725. addCoach(userForm.value).then((res)=>{
  726. if(res.code!==0) return proxy.$message.error(res.msg);
  727. buttonLoading2.value = false;
  728. userShow.value = false;
  729. getUserList();
  730. })
  731. }
  732. } else {
  733. return false;
  734. }
  735. });
  736. }
  737. const cancel2 = () => {
  738. userShow.value = false;
  739. reset();
  740. }
  741. const handleDownloadExcel = () => {
  742. window.location.href = `${window.SITE_CONFIG["apiURL"]}/sys/user/download?token=${Cookies.get("token")}`;
  743. }
  744. const uploadFileSuccess = e =>{
  745. programTeamForm.value.file = e.data;
  746. proxy?.$modal.msgSuccess('上传成功');
  747. }
  748. const beforeAvatarUpload = (e) => {
  749. let type = e.name.split('.')[e.name.split('.').length-1];
  750. let isExcel = e.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
  751. if(type.toLowerCase() !== 'xlsx' && type.toLowerCase() !== 'xls' && !isExcel){
  752. proxy?.$modal.msgError('请上传xlsx或xls格式的Excel文件!');
  753. return false;
  754. }
  755. }
  756. const handleAddUser = () => {
  757. if(!teamid.value) return proxy.$message.error('请先选择团队');
  758. reset();
  759. userTitle.value = "新增成员详情";
  760. userShow.value = true;
  761. }
  762. const submitForm3 = () => {
  763. proxy.$refs.teamRef.validate((valid) => {
  764. if (valid) {
  765. buttonLoading3.value = true;
  766. teamForm.value.enterpriseId = programid.value;
  767. updateProgramTeam(teamForm.value).then((res)=>{
  768. if(res.code!==0) return proxy.$message.error(res.msg);
  769. buttonLoading3.value = false;
  770. teamShow.value = false;
  771. getProgramList();
  772. })
  773. } else {
  774. return false;
  775. }
  776. });
  777. }
  778. const cancel3 = () => {
  779. teamShow.value = false;
  780. }
  781. const handleProgramDetail = program => {
  782. programid.value = program.id;
  783. getCoachProgramInfo(program.id).then(res => {
  784. programForm.value = {...programForm.value,...res.data};
  785. if(programForm.value.coachList===null) programForm.value.coachList = [];
  786. let areas = programForm.value.areaCode.split('-');
  787. if(areas.length === 3){
  788. programForm.value.province = areas[0];
  789. cityAreaDetailInfoList(areas[0]);
  790. programForm.value.city = areas[1];
  791. countyAreaDetailInfoList(areas[1]);
  792. programForm.value.area = areas[2];
  793. }
  794. cocahNames.value = programForm.value.coachList.map(item => item.coachName).join(';');
  795. programShow.value = true;
  796. })
  797. }
  798. const handleProgramDelete = async program => {
  799. await proxy.$modal.confirm('确认删除项目【' + program.enterpriseName + '】吗?');
  800. deleteCoachProgram(program.id).then(res=>{
  801. if(res.code === 0) proxy?.$modal.msgSuccess("删除成功");
  802. else return proxy?.$modal.msgError(res.msg);
  803. getProgramList();
  804. });
  805. }
  806. const hangleSelectCoach = () => {
  807. getCoachList({page:1,limit:-1,realName:coachName.value}).then(res => {
  808. if(res.code!==0) return proxy.$message.error(res.msg);
  809. coachList.value = res.data.list.filter(d=>d.userType=='1');
  810. coachList.value.forEach(item => {
  811. item.checked = false;
  812. })
  813. coachShow.value = true;
  814. })
  815. }
  816. const submitForm5 = () => {
  817. if(coachSelecteds.value.length===0) return proxy.$message.warning('请至少选择一位教练')
  818. programForm.value.coachList = JSON.parse(JSON.stringify(coachSelecteds.value)).map(c=>{return {coachId:c.id,coachName:c.realName}});
  819. cocahNames.value = programForm.value.coachList.map(c=>c.coachName).join(';');
  820. checkAll.value = false;
  821. isIndeterminate.value = false;
  822. coachSelecteds.value = [];
  823. coachList.value = [];
  824. coachShow.value = false;
  825. }
  826. const cancel5 = () => {
  827. coachShow.value = false;
  828. }
  829. const submitForm4 = () => {
  830. proxy.$refs.programRef.validate((valid) => {
  831. if (valid) {
  832. buttonLoading5.value = true;
  833. programForm.value.id = programid.value;
  834. programForm.value.areaCode = `${programForm.value.province}-${programForm.value.city}-${programForm.value.area}`;
  835. updateCoachProgram(programForm.value).then((res)=>{
  836. if(res.code!==0) return proxy.$message.error(res.msg);
  837. else proxy?.$modal.msgSuccess("保存成功");
  838. buttonLoading5.value = false;
  839. programShow.value = false;
  840. getProgramList();
  841. })
  842. } else {
  843. return false;
  844. }
  845. });
  846. }
  847. const cancel4 = () => {
  848. programShow.value = false;
  849. }
  850. const handleCheckAllChange = (val) => {
  851. coachSelecteds.value = val ? JSON.parse(JSON.stringify(coachList.value)) : [];
  852. isIndeterminate.value = false;
  853. coachList.value.forEach(item => item.checked = val)
  854. }
  855. const handleChangeCoach = () => {
  856. let trues = coachList.value.filter(item => item.checked).length;
  857. if(trues>0&&trues<coachList.value.length) isIndeterminate.value = true;
  858. else isIndeterminate.value = false;
  859. if(trues===coachList.value.length) checkAll.value = true;
  860. else checkAll.value = false;
  861. coachSelecteds.value = coachList.value.filter(item => item.checked);
  862. }
  863. const handleDeleteCoach = (item,index) => {
  864. let i = coachList.value.findIndex(c => c.id === item.id);
  865. if(i>-1) coachList.value[i].checked = false;
  866. coachSelecteds.value.splice(index,1);
  867. let trues = coachList.value.filter(item => item.checked).length;
  868. if(trues>0&&trues<coachList.value.length) isIndeterminate.value = true;
  869. else isIndeterminate.value = false;
  870. if(trues===coachList.value.length) checkAll.value = true;
  871. else checkAll.value = false;
  872. }
  873. const handleBeforeUpload = (e,node,data)=>{
  874. let type = e.name.split('.')[e.name.split('.').length-1];
  875. let isExcel = e.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
  876. if(type.toLowerCase() !== 'xlsx' && type.toLowerCase() !== 'xls' && !isExcel){
  877. proxy?.$modal.msgError('请上传xlsx或xls格式的Excel文件!');
  878. return false;
  879. }
  880. setTimeout(()=>{
  881. getUserList();
  882. },1000)
  883. }
  884. const handleSuccess = (e,node,data)=>{
  885. if(e.code===0){
  886. proxy?.$modal.msgSuccess('导入成功!'+e.msg);
  887. }else {
  888. proxy?.$modal.msgError('导入失败!'+e.msg);
  889. }
  890. }
  891. const submitForm6 = () => {
  892. proxy.$refs.programTeamRef.validate((valid) => {
  893. if (valid) {
  894. buttonLoading6.value = true;
  895. programTeamForm.value.enterpriseId = programid.value;
  896. addProgramTeam(programTeamForm.value).then((res)=>{
  897. if(res.code!==0) return proxy.$message.error(res.msg);
  898. else proxy?.$modal.msgSuccess("保存成功");
  899. buttonLoading6.value = false;
  900. programTeamShow.value = false;
  901. getProgramList();
  902. })
  903. } else {
  904. return false;
  905. }
  906. });
  907. }
  908. const cancel6 = () => {
  909. programTeamShow.value = false;
  910. }
  911. // const handleAddItem = () => {
  912. // programTeamForm.value.users.push({
  913. // id:'',
  914. // realName:'',
  915. // gender:'',
  916. // birthdate:'',
  917. // mobile:'',
  918. // dept:'',
  919. // post:'',
  920. // divisionOfLabour:'',
  921. // education:'',
  922. // level:'',
  923. // })
  924. // }
  925. // const handleDeleteItem = (item,index) => {
  926. // programTeamForm.value.users.splice(index,1)
  927. // }
  928. onMounted(() => {
  929. getProgramList();
  930. });
  931. </script>
  932. <style scoped lang="scss">
  933. ::v-deep .queryInput .el-input__inner{
  934. border: none !important;
  935. height: 30px !important;
  936. line-height: 30px !important;
  937. padding: 0 !important;
  938. width: 200px !important;
  939. }
  940. .page{
  941. padding: 28px 16px 12px;
  942. background: #FAFAFA;
  943. .title{
  944. font-family: PingFang-SC, PingFang-SC;
  945. font-weight: bold;
  946. font-size: 16px;
  947. color: #111111;
  948. line-height: 16px;
  949. }
  950. .tabs{
  951. position: relative;
  952. display: flex;
  953. align-items: center;
  954. border-bottom: 1px solid #E5E7EB;
  955. padding-bottom: 18px;
  956. margin-top: 32px;
  957. .t_pre{
  958. width: 116px;
  959. font-family: PingFangSC, PingFang SC;
  960. font-weight: 400;
  961. font-size: 14px;
  962. color: #111111;
  963. line-height: 16px;
  964. text-align: center;
  965. position: relative;
  966. cursor: pointer;
  967. &.active{
  968. font-weight: bold;
  969. color: #761E6A;
  970. &::after{
  971. content: '';
  972. position: absolute;
  973. bottom: -18px;
  974. left: 0;
  975. width: 100%;
  976. height: 2px;
  977. background: #761E6A;
  978. }
  979. }
  980. }
  981. .t_add{
  982. width: 114px;
  983. height: 32px;
  984. background: #761E6A;
  985. border-radius: 6px;
  986. font-family: PingFangSC, PingFang SC;
  987. font-weight: 400;
  988. font-size: 14px;
  989. color: #FFFFFF;
  990. line-height: 32px;
  991. text-align: center;
  992. position: absolute;
  993. top: -10px;
  994. right: 0;
  995. cursor: pointer;
  996. }
  997. }
  998. .content{
  999. width: 100%;
  1000. height: calc(100vh - 140px);
  1001. background: #FFFFFF;
  1002. border: 1px solid #F3F4F6;
  1003. margin-top: 15px;
  1004. .team_user_list{
  1005. height: 100%;
  1006. padding: 20px;
  1007. background: #FFFFFF;
  1008. display: flex;
  1009. .tul_left{
  1010. width: 280px;
  1011. padding-right: 20px;
  1012. box-sizing: border-box;
  1013. border-right: 1px solid #E5E7EB;
  1014. .tull_top{
  1015. display: flex;
  1016. align-items: center;
  1017. justify-content: space-between;
  1018. .tullt_l{
  1019. font-family: PingFangSC, PingFang SC;
  1020. font-weight: 600;
  1021. font-size: 16px;
  1022. color: #0D162A;
  1023. line-height: 16px;
  1024. }
  1025. .tullt_r{
  1026. width: 73px;
  1027. height: 28px;
  1028. border-radius: 6px;
  1029. border: 1px solid #761E6A;
  1030. font-family: PingFangSC, PingFang SC;
  1031. font-weight: 400;
  1032. font-size: 12px;
  1033. color: #761E6A;
  1034. line-height: 24px;
  1035. text-align: center;
  1036. cursor: pointer;
  1037. }
  1038. }
  1039. .tull_query{
  1040. margin-top: 12px;
  1041. width: 100%;
  1042. height: 34px;
  1043. border-radius: 6px;
  1044. border: 1px solid #E2E7F5;
  1045. padding: 0 16px;
  1046. box-sizing: border-box;
  1047. display: flex;
  1048. align-items: center;
  1049. justify-content: space-between;
  1050. img{
  1051. width: 16px;
  1052. height: 16px;
  1053. cursor: pointer;
  1054. }
  1055. }
  1056. .tull_list{
  1057. height: calc(100% - 100px);
  1058. overflow-y: auto;
  1059. margin-top: 24px;
  1060. .tull_item{
  1061. margin-top: 24px;
  1062. cursor: pointer;
  1063. &.active{
  1064. .tname span{
  1065. font-weight: bold;
  1066. color: #761E6A;
  1067. i{
  1068. color: #761E6A !important;
  1069. }
  1070. }
  1071. }
  1072. &:first-child{
  1073. margin-top: 0;
  1074. }
  1075. .tname{
  1076. width: 100%;
  1077. display: flex;
  1078. align-items: center;
  1079. justify-content: space-between;
  1080. position: relative;
  1081. img{
  1082. width: 16px;
  1083. height: 16px;
  1084. cursor: pointer;
  1085. }
  1086. span{
  1087. font-family: PingFangSC, PingFang SC;
  1088. font-weight: 400;
  1089. font-size: 14px;
  1090. color: #111111;
  1091. line-height: 16px;
  1092. margin-left: 10px;
  1093. }
  1094. &:hover,&.active{
  1095. border-radius: 6px;
  1096. span{
  1097. font-weight: bold;
  1098. color: #761E6A;
  1099. }
  1100. i{
  1101. color: #761E6A !important;
  1102. }
  1103. }
  1104. }
  1105. .tuser_list{
  1106. margin-top: 9px;
  1107. width: 100%;
  1108. height: 36px;
  1109. padding-left: 34px;
  1110. display: flex;
  1111. align-items: center;
  1112. cursor: pointer;
  1113. position: relative;
  1114. span{
  1115. font-family: PingFangSC, PingFang SC;
  1116. font-weight: 400;
  1117. font-size: 14px;
  1118. color: #4B5563;
  1119. line-height: 16px;
  1120. &:first-child{
  1121. margin-right: 5px;
  1122. }
  1123. }
  1124. &:hover,&.active{
  1125. background: #F0F2F8;
  1126. border-radius: 6px;
  1127. span{
  1128. font-weight: bold;
  1129. color: #761E6A;
  1130. }
  1131. i{
  1132. color: #761E6A !important;
  1133. }
  1134. }
  1135. i{
  1136. position: absolute;
  1137. right: 10px;
  1138. top: 12px;
  1139. }
  1140. }
  1141. }
  1142. }
  1143. }
  1144. .tul_right{
  1145. width: calc(100% - 281px);
  1146. padding-left: 23px;
  1147. box-sizing: border-box;
  1148. .tulr_top{
  1149. display: flex;
  1150. align-items: center;
  1151. justify-content: space-between;
  1152. .tulrt_l{
  1153. width: 278px;
  1154. height: 34px;
  1155. border-radius: 6px;
  1156. border: 1px solid #E2E7F5;
  1157. padding: 0 16px;
  1158. box-sizing: border-box;
  1159. display: flex;
  1160. align-items: center;
  1161. justify-content: space-between;
  1162. img{
  1163. width: 16px;
  1164. height: 16px;
  1165. cursor: pointer;
  1166. }
  1167. }
  1168. .tulrt_r{
  1169. display: flex;
  1170. .tr_btn{
  1171. width: 92px;
  1172. height: 36px;
  1173. border-radius: 6px;
  1174. border: 1px solid #C1C7D2;
  1175. margin-left: 20px;
  1176. cursor: pointer;
  1177. font-family: PingFangSC, PingFang SC;
  1178. font-weight: 400;
  1179. font-size: 14px;
  1180. color: #111111;
  1181. line-height: 36px;
  1182. text-align: center;
  1183. &:last-child{
  1184. background: #761E6A;
  1185. color: #FFFFFF;
  1186. }
  1187. }
  1188. }
  1189. }
  1190. }
  1191. }
  1192. .empty{
  1193. width: 100%;
  1194. height: 100%;
  1195. display: flex;
  1196. flex-direction: column;
  1197. align-items: center;
  1198. justify-content: center;
  1199. img{
  1200. width: 90px;
  1201. height: 76px;
  1202. }
  1203. p{
  1204. font-family: PingFangSC, PingFang SC;
  1205. font-weight: 400;
  1206. font-size: 14px;
  1207. color: #1D2129;
  1208. line-height: 20px;
  1209. margin-top: 20px;
  1210. }
  1211. .e_add{
  1212. width: 114px;
  1213. height: 32px;
  1214. background: #761E6A;
  1215. border-radius: 6px;
  1216. font-family: PingFangSC, PingFang SC;
  1217. font-weight: 400;
  1218. font-size: 14px;
  1219. color: #FFFFFF;
  1220. line-height: 32px;
  1221. text-align: center;
  1222. margin-top: 36px;
  1223. cursor: pointer;
  1224. }
  1225. }
  1226. }
  1227. }
  1228. .tl_czs{
  1229. .tlc_pre{
  1230. font-family: PingFangSC, PingFang SC;
  1231. font-weight: 400;
  1232. font-size: 14px;
  1233. color: #1D2129;
  1234. line-height: 20px;
  1235. padding: 12px 0;
  1236. border-bottom: 1px solid #ECEEF5;
  1237. cursor: pointer;
  1238. &:first-child{
  1239. padding-top: 0;
  1240. }
  1241. &:last-child{
  1242. border: none;
  1243. padding-bottom: 0;
  1244. }
  1245. &:hover{
  1246. color: #761E6A;
  1247. }
  1248. }
  1249. }
  1250. .f_s{
  1251. width: 100%;
  1252. height: 42px;
  1253. border-radius: 6px;
  1254. border: 1px solid #dcdfe6;
  1255. padding: 11px 11px 11px 16px;
  1256. box-sizing: border-box;
  1257. cursor: pointer;
  1258. .fs_text{
  1259. font-family: PingFangSC, PingFang SC;
  1260. font-weight: 400;
  1261. font-size: 14px;
  1262. color: #C0C4CC;
  1263. line-height: 20px;
  1264. &.active{
  1265. color: #606266;
  1266. }
  1267. }
  1268. }
  1269. .f_title{
  1270. font-family: PingFangSC, PingFang SC;
  1271. font-weight: 600;
  1272. font-size: 16px;
  1273. color: #0D162A;
  1274. line-height: 16px;
  1275. margin-bottom: 20px;
  1276. }
  1277. .f_pldr{
  1278. margin-top: 20px;
  1279. .fp_box{
  1280. display: flex;
  1281. width: 526px;
  1282. height: 125px;
  1283. border-radius: 4px;
  1284. border: 1px solid #EDEEF0;
  1285. position: relative;
  1286. .fpb_pre{
  1287. width: calc(50% - 1px);
  1288. height: 100%;
  1289. display: flex;
  1290. align-items: center;
  1291. justify-content: center;
  1292. .fpbp_btn{
  1293. width: 140px;
  1294. height: 36px;
  1295. border-radius: 6px;
  1296. border: 1px solid #E5E7EB;
  1297. font-family: PingFangSC, PingFang SC;
  1298. font-weight: 400;
  1299. font-size: 12px;
  1300. color: #761E6A;
  1301. line-height: 32px;
  1302. text-align: center;
  1303. cursor: pointer;
  1304. }
  1305. &.sc{
  1306. border-left: 1px solid #EDEEF0;
  1307. .fpbp_btn{
  1308. background: #761E6A;
  1309. border: 1px solid #761E6A;
  1310. color: #FFFFFF;
  1311. }
  1312. }
  1313. }
  1314. img{
  1315. width: 50px;
  1316. height: 20px;
  1317. position: absolute;
  1318. left: 50%;
  1319. margin-left: -25px;
  1320. top: 50%;
  1321. margin-top: -10px;
  1322. }
  1323. }
  1324. p{
  1325. margin-top: 11px;
  1326. font-family: PingFangSC, PingFang SC;
  1327. font-weight: 400;
  1328. font-size: 12px;
  1329. color: #C1C7D2;
  1330. line-height: 20px;
  1331. text-align: justify;
  1332. }
  1333. }
  1334. .f_sdlr{
  1335. padding-top: 10px;
  1336. .fs_add{
  1337. width: 80px;
  1338. height: 32px;
  1339. background: #761E6A;
  1340. border-radius: 6px;
  1341. font-family: PingFangSC, PingFang SC;
  1342. font-weight: 400;
  1343. font-size: 14px;
  1344. color: #FFFFFF;
  1345. line-height: 32px;
  1346. text-align: center;
  1347. margin-top: 20px;
  1348. cursor: pointer;
  1349. &.del{
  1350. background: rgb(212, 96, 96);
  1351. margin: 0;
  1352. margin-top: 5px;
  1353. }
  1354. }
  1355. }
  1356. .ed_coach{
  1357. .ec_l{
  1358. width: calc(50% - 1px);
  1359. height: 100%;
  1360. padding-right: 30px;
  1361. box-sizing: border-box;
  1362. border-right: 1px solid #ECEEF5;
  1363. .ecl_cbs{
  1364. width: 100%;
  1365. // height: calc(100% - 143px);
  1366. max-height: 376px;
  1367. overflow-y: auto;
  1368. }
  1369. }
  1370. .ec_r{
  1371. width: 50%;
  1372. padding-left: 30px;
  1373. box-sizing: border-box;
  1374. .ecr_text{
  1375. font-family: PingFang-SC, PingFang-SC;
  1376. font-weight: bold;
  1377. font-size: 16px;
  1378. color: #252525;
  1379. line-height: 22px;
  1380. span{
  1381. color: #B9B9B9;
  1382. }
  1383. }
  1384. .ecr_names{
  1385. margin-left: -16px;
  1386. overflow: hidden;
  1387. .en_pre{
  1388. float: left;
  1389. padding: 10px;
  1390. background: #F9FAFB;
  1391. border-radius: 6px;
  1392. margin: 19px 0 0 16px;
  1393. span{
  1394. font-family: PingFangSC, PingFang SC;
  1395. font-weight: 400;
  1396. font-size: 14px;
  1397. color: #252525;
  1398. line-height: 14px;
  1399. }
  1400. img{
  1401. width: 16px;
  1402. height: 16px;
  1403. margin-left: 10px;
  1404. cursor: pointer;
  1405. }
  1406. }
  1407. }
  1408. }
  1409. }
  1410. :v-deep .el-dialog__wrapper{
  1411. background: rgba(0,0,0,.3) !important;
  1412. }
  1413. ::v-deep .el-dialog__title{
  1414. font-weight: bold !important;
  1415. }
  1416. ::v-deep .el-dialog{
  1417. margin-top: 15vh !important;
  1418. }
  1419. ::v-deep .el-drawer__header span{
  1420. font-weight: bold;
  1421. font-size: 16px;
  1422. color: #1D2129;
  1423. line-height: 22px;
  1424. }
  1425. </style>
  1426. <style>
  1427. .el-upload-list{
  1428. display: none;
  1429. }
  1430. </style>