program.vue 69 KB

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