company.vue 55 KB

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