anliList.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218
  1. <template>
  2. <!-- 省级案例管理 -->
  3. <div class="pb_content">
  4. <div class="pb_head">
  5. <div>
  6. <span>案例管理</span>
  7. </div>
  8. </div>
  9. <div class="touTop">
  10. <div class="touLeft">
  11. <!-- <div>
  12. <div>案例分类</div>
  13. <el-select v-model="anliType" clearable>
  14. <el-option value="0" label="所有分类"></el-option>
  15. </el-select>
  16. </div> -->
  17. <div>
  18. <div
  19. class="all_choose"
  20. v-for="(item, index) in CourseType[0]"
  21. :key="index"
  22. >
  23. <span>{{ item.name }}</span>
  24. <el-select
  25. v-model="courseTypeId[item.id]"
  26. placeholder="请选择"
  27. @change="search"
  28. >
  29. <el-option label="全部" value="1">全部</el-option>
  30. <el-option
  31. v-for="item1 in CourseTypeJson[item.id]"
  32. :key="item1.id"
  33. :label="item1.name"
  34. :value="item1.id"
  35. >
  36. </el-option>
  37. </el-select>
  38. </div>
  39. <!-- <div class="anliCss">
  40. <div>案例筛选</div>
  41. <el-select v-model="anliBox" clearable @change="search">
  42. <el-option value="" label="全部"></el-option>
  43. <el-option value="1" label="经典案例"></el-option>
  44. <el-option value="0" label="平台案例"></el-option>
  45. </el-select>
  46. </div> -->
  47. </div>
  48. <div @click="clear" class="clear">重置</div>
  49. <div class="aName">
  50. <el-input
  51. v-model="anliName"
  52. auto-complete="off"
  53. placeholder="请输入案例名称"
  54. @input="search"
  55. ></el-input>
  56. </div>
  57. </div>
  58. <!-- <div class="touRight">
  59. <div></div>
  60. <div>
  61. <el-button @click="dialogVisibleMember = true">分配案例</el-button>
  62. </div>
  63. </div> -->
  64. </div>
  65. <div class="anliBox" v-loading="isLoading" v-if="tableData.length > 0">
  66. <div v-for="(a, aIndex) in tableData" :key="aIndex" class="anLi">
  67. <div class="anliImg">
  68. <img
  69. :src="a.info.cover.length > 0 ? a.info.cover[0].url : noBanner"
  70. alt=""
  71. />
  72. </div>
  73. <div class="anliBot">
  74. <div class="detailBox">
  75. <div>{{ a.info.title != "" ? a.info.title : "暂无" }}</div>
  76. <div>{{ a.time }}</div>
  77. </div>
  78. <div class="anliButton">
  79. <div>
  80. <el-button @click="lookDetail(a.id)">查看</el-button>
  81. </div>
  82. <div>
  83. <el-button @click="openScore(a, 1)">评分</el-button>
  84. </div>
  85. <div>
  86. <el-button @click="openScore(a, 2)">推荐</el-button>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="student_page">
  92. <el-pagination
  93. background
  94. layout="prev, pager, next"
  95. :page-size="10"
  96. :total="total"
  97. v-if="page && tableData.length"
  98. style="padding-bottom: 20px"
  99. @current-change="handleCurrentChange"
  100. >
  101. </el-pagination>
  102. </div>
  103. </div>
  104. <div v-else class="noAnli" v-loading="isLoading">
  105. <img src="../../../assets/icon/isNoMessage.png" alt="" />
  106. </div>
  107. <el-dialog
  108. title="分配案例"
  109. :visible.sync="dialogVisibleMember"
  110. :append-to-body="true"
  111. width="25%"
  112. height="80%"
  113. :before-close="handleClose1"
  114. class="dialog_diy1 customWidth"
  115. >
  116. <div class="people">
  117. <div class="people_top">
  118. <div class="people_top_right">
  119. <div class="people_search">
  120. <div>选择评委</div>
  121. <el-select v-model="reviewer" placeholder="请选择评委">
  122. <el-option
  123. v-for="item in reviewerBox"
  124. :key="item.userid"
  125. :label="item.name"
  126. :value="item.userid"
  127. ></el-option>
  128. </el-select>
  129. </div>
  130. </div>
  131. </div>
  132. <el-checkbox
  133. :indeterminate="isIndeterminate"
  134. v-model="checkAll"
  135. @change="handleCheckAllChange"
  136. style="padding: 15px 0 0 15px"
  137. >全选</el-checkbox
  138. >
  139. <el-checkbox-group
  140. v-model="checkboxList"
  141. class="people_name"
  142. v-if="anliBox1.length"
  143. @change="handleCheckedAnliChange"
  144. >
  145. <el-checkbox v-for="item in anliBox1" :key="item.id" :label="item.id">
  146. <div class="t_j_box">
  147. <div>案例名称:</div>
  148. <el-tooltip
  149. placement="top"
  150. :content="item.info.title ? item.info.title : '暂无姓名'"
  151. >
  152. <span>{{
  153. item.info.title ? item.info.title : "暂无姓名"
  154. }}</span>
  155. </el-tooltip>
  156. </div>
  157. </el-checkbox>
  158. </el-checkbox-group>
  159. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  160. </div>
  161. <span slot="footer" class="dialog-footer">
  162. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  163. <el-button type="primary" @click="addCase">确定</el-button>
  164. </span>
  165. </el-dialog>
  166. <el-dialog
  167. title="评分"
  168. :visible.sync="dialogVisibleScore"
  169. :append-to-body="true"
  170. width="25%"
  171. height="80%"
  172. :before-close="handleClose"
  173. class="dialog_diy customWidth1"
  174. >
  175. <div class="scoreBox" v-for="(s, sIndex) in scoreDetail" :key="sIndex">
  176. <div class="scoreCss">
  177. <div class="scoreTitle">
  178. <div><img src="../../../assets/avatar.png" alt="" /></div>
  179. <div>{{ s.uname }}</div>
  180. </div>
  181. <div class="anliTitle">
  182. <div>案例名称</div>
  183. <div>{{ s.title }}</div>
  184. </div>
  185. <div class="anliBrief">
  186. <div>案例简介</div>
  187. <div style="width: 650px; max-height: 150px; overflow: auto">
  188. {{ s.detail }}
  189. </div>
  190. </div>
  191. <div class="anliScore">
  192. <div>请选择评分</div>
  193. <div>
  194. <div class="scoreDiv">
  195. <div>项目式学习</div>
  196. <div>
  197. <el-input
  198. placeholder="输入分数"
  199. v-model="s.scoreAll.first"
  200. @change="isNumber($event, 1)"
  201. ></el-input>
  202. </div>
  203. </div>
  204. <div class="scoreDiv">
  205. <div>项目成果</div>
  206. <div>
  207. <el-input
  208. placeholder="输入分数"
  209. v-model="s.scoreAll.second"
  210. @change="isNumber($event, 2)"
  211. ></el-input>
  212. </div>
  213. </div>
  214. <div class="scoreDiv">
  215. <div>项目评价</div>
  216. <div>
  217. <el-input
  218. placeholder="输入分数"
  219. v-model="s.scoreAll.third"
  220. @change="isNumber($event, 3)"
  221. ></el-input>
  222. </div>
  223. </div>
  224. <!-- <div class="scoreDiv">
  225. <div>评审维度4</div>
  226. <div>
  227. <el-input
  228. placeholder="输入分数"
  229. v-model="s.scoreAll.fourth"
  230. @change="isNumber($event, 4)"
  231. ></el-input>
  232. </div>
  233. </div>
  234. <div class="scoreDiv">
  235. <div>评审维度5</div>
  236. <div>
  237. <el-input
  238. placeholder="输入分数"
  239. v-model="s.scoreAll.fivth"
  240. @change="isNumber($event, 5)"
  241. ></el-input>
  242. </div>
  243. </div> -->
  244. </div>
  245. </div>
  246. <div class="anliContent">
  247. <textarea
  248. :rows="5"
  249. class="tAreaCss"
  250. placeholder="请输入评语。"
  251. v-model="s.scoreAll.content"
  252. ></textarea>
  253. </div>
  254. <div class="addScore" @click="addScore">进行评分</div>
  255. </div>
  256. </div>
  257. </el-dialog>
  258. <el-dialog
  259. title="推荐省级评奖"
  260. :visible.sync="dialogVisibleRecommend"
  261. :append-to-body="true"
  262. width="25%"
  263. height="80%"
  264. :before-close="handleClose"
  265. class="dialog_diy customWidth1"
  266. >
  267. <div v-for="(r, rIndex) in scoreDetail" :key="rIndex">
  268. <div class="reTitle">
  269. <div>案例名称</div>
  270. <div>{{ r.title }}</div>
  271. </div>
  272. <div class="reDetail">
  273. <div>案例简介</div>
  274. <div>{{ r.detail }}</div>
  275. </div>
  276. <div class="reScore">
  277. <div>当前得分</div>
  278. <div>
  279. <span>{{ r.sumScore }}</span
  280. >分
  281. </div>
  282. </div>
  283. <div class="reBottom">
  284. <div>提示:点击确定提交,即可推送到市级进行评奖</div>
  285. <div @click="dialogVisibleRecommend = false">取消</div>
  286. <div @click="addRecommend">确定提交</div>
  287. </div>
  288. </div>
  289. </el-dialog>
  290. </div>
  291. </template>
  292. <script>
  293. export default {
  294. data() {
  295. return {
  296. page: 1,
  297. total: 0,
  298. // anliType: "",
  299. CourseType: [],
  300. CourseTypeJson: {},
  301. courseTypeId: {},
  302. courseTypeSon: [],
  303. anliName: "",
  304. anliBox: "",
  305. tableData: [],
  306. reviewer: "",
  307. reviewerBox: [],
  308. anliBox1: [],
  309. checkboxList: [],
  310. checkboxIdList: [],
  311. isLoading: false,
  312. isIndeterminate: false,
  313. checkAll: false,
  314. dialogVisibleMember: false,
  315. dialogVisibleScore: false,
  316. dialogVisibleRecommend: false,
  317. noBanner: require("../../../assets/noBanner.jpg"),
  318. scoreDetail: [
  319. {
  320. id: "",
  321. uname: "",
  322. title: "",
  323. detail: "",
  324. scoreAll: {
  325. first: "",
  326. second: "",
  327. third: "",
  328. // fourth: "",
  329. // fivth: "",
  330. content: "",
  331. },
  332. sumScore: 0,
  333. },
  334. ],
  335. reCid: "",
  336. };
  337. },
  338. methods: {
  339. handleCurrentChange(val) {
  340. this.page = val;
  341. this.getAnliList(this.reCid);
  342. },
  343. search() {
  344. this.page = 1;
  345. this.getAnliList(this.reCid);
  346. },
  347. goTo(path) {
  348. this.$router.push(path);
  349. },
  350. isNumber(e, t) {
  351. if (e.includes(".")) {
  352. this.$message.error("暂时不支持小数点评分");
  353. if (t == 1) {
  354. this.scoreDetail[0].scoreAll.first = "";
  355. } else if (t == 2) {
  356. this.scoreDetail[0].scoreAll.second = "";
  357. } else {
  358. this.scoreDetail[0].scoreAll.third = "";
  359. }
  360. } else {
  361. let value = /^\d+$/.test(e);
  362. // let value = e.replace(/[^d]/g, ""); // 只能输入数字
  363. if (value == true) {
  364. if (e < 0) {
  365. this.$message.error("请输入大于0的数值");
  366. if (t == 1) {
  367. this.scoreDetail[0].scoreAll.first = "";
  368. } else if (t == 2) {
  369. this.scoreDetail[0].scoreAll.second = "";
  370. } else {
  371. this.scoreDetail[0].scoreAll.third = "";
  372. }
  373. // else if (t == 4) {
  374. // this.scoreDetail[0].scoreAll.fourth = "";
  375. // } else {
  376. // this.scoreDetail[0].scoreAll.fivth = "";
  377. // }
  378. return;
  379. } else if (e > 100) {
  380. this.$message.error("数值不能大于100");
  381. if (t == 1) {
  382. this.scoreDetail[0].scoreAll.first = "";
  383. } else if (t == 2) {
  384. this.scoreDetail[0].scoreAll.second = "";
  385. } else {
  386. this.scoreDetail[0].scoreAll.third = "";
  387. }
  388. // else if (t == 4) {
  389. // this.scoreDetail[0].scoreAll.fourth = "";
  390. // } else {
  391. // this.scoreDetail[0].scoreAll.fivth = "";
  392. // }
  393. return;
  394. }
  395. } else {
  396. if (t == 1) {
  397. this.scoreDetail[0].scoreAll.first = "";
  398. } else if (t == 2) {
  399. this.scoreDetail[0].scoreAll.second = "";
  400. } else {
  401. this.scoreDetail[0].scoreAll.third = "";
  402. }
  403. // else if (t == 4) {
  404. // this.scoreDetail[0].scoreAll.fourth = "";
  405. // } else {
  406. // this.scoreDetail[0].scoreAll.fivth = "";
  407. // }
  408. this.$message.error("请输入数字");
  409. return;
  410. }
  411. }
  412. // value = value.replace(/^0+(d)/, "$1"); // 第一位0开头,0后面为数字,则过滤掉,取后面的数字
  413. // value = value.replace(/(d{15})d*/, "$1"); // 最多保留15位整数
  414. // this.height = value;
  415. },
  416. handleCheckAllChange(val) {
  417. if (this.checkboxIdList.length == 0) {
  418. for (var i = 0; i < this.anliBox1.length; i++) {
  419. this.checkboxIdList.push(this.anliBox1[i].id);
  420. }
  421. }
  422. this.checkboxList = val ? this.checkboxIdList : [];
  423. this.isIndeterminate = false;
  424. },
  425. handleCheckedAnliChange(value) {
  426. let checkedCount = this.checkboxList.length;
  427. this.checkAll = checkedCount === this.anliBox1.length;
  428. this.isIndeterminate =
  429. checkedCount > 0 && checkedCount < this.anliBox1.length;
  430. },
  431. handleClose(done) {
  432. done();
  433. },
  434. handleClose1(done) {
  435. },
  436. clear() {
  437. for (var i = 0; i < this.CourseType[0].length; i++) {
  438. this.courseTypeId[this.CourseType[0][i].id] = "";
  439. }
  440. this.anliBox = "";
  441. this.getAnliList(this.reCid);
  442. },
  443. getAnliList(rc) {
  444. this.isLoading = true;
  445. var typeE = [];
  446. var typea, typeb, typec, typed;
  447. for (var i = 0; i < this.CourseType[0].length; i++) {
  448. if (this.courseTypeId[this.CourseType[0][i].id] == "1") {
  449. typeE.push(this.CourseType[0][i].id);
  450. } else if (this.courseTypeId[this.CourseType[0][i].id] != "") {
  451. if (this.CourseType[0][i].name == "案例组别") {
  452. typea = this.courseTypeId[this.CourseType[0][i].id];
  453. } else if (this.CourseType[0][i].name == "年级") {
  454. typeb = this.courseTypeId[this.CourseType[0][i].id];
  455. } else if (this.CourseType[0][i].name == "学科") {
  456. typec = this.courseTypeId[this.CourseType[0][i].id];
  457. }
  458. this.courseTypeSon.push(this.courseTypeId[this.CourseType[0][i].id]);
  459. }
  460. }
  461. let params = {
  462. typea: typea != undefined ? typea : "",
  463. typeb: typeb != undefined ? typeb : "",
  464. typec: typec != undefined ? typec : "",
  465. typed: typed != undefined ? typed : "",
  466. typeE: typeE.join(","),
  467. cn: this.anliBox == "" ? 0 : this.anliBox,
  468. cid: rc && rc != "" ? rc : "",
  469. title: this.anliName,
  470. page: this.page,
  471. };
  472. this.ajax
  473. .get(this.$store.state.api + "selectAnliList2", params)
  474. .then((res) => {
  475. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  476. this.tableData = res.data[0];
  477. for (var i = 0; i < this.tableData.length; i++) {
  478. this.tableData[i].info = JSON.parse(this.tableData[i].info);
  479. this.tableData[i].overview = JSON.parse(this.tableData[i].overview);
  480. this.tableData[i].process = JSON.parse(this.tableData[i].process);
  481. this.tableData[i].proact = JSON.parse(this.tableData[i].proact);
  482. this.tableData[i].proexc = JSON.parse(this.tableData[i].proexc);
  483. this.tableData[i].results = JSON.parse(this.tableData[i].results);
  484. }
  485. this.isLoading = false;
  486. })
  487. .catch((err) => {
  488. this.isLoading = false;
  489. console.error(err);
  490. });
  491. },
  492. selectType(rc) {
  493. this.ajax
  494. .get(this.$store.state.api + "selectMatType")
  495. .then((res) => {
  496. this.CourseType = res.data;
  497. for (var i = 0; i < res.data[0].length; i++) {
  498. for (var j = 0; j < res.data[1].length; j++) {
  499. if (res.data[0][i].id == res.data[1][j].pid) {
  500. if (!this.CourseTypeJson[res.data[0][i].id]) {
  501. this.CourseTypeJson[res.data[0][i].id] = [];
  502. }
  503. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  504. }
  505. }
  506. }
  507. this.getAnliList(rc);
  508. })
  509. .catch((err) => {
  510. console.error(err);
  511. });
  512. },
  513. getAdmin() {
  514. let params = {
  515. uid: this.$store.state.userInfo.userid,
  516. cn: "",
  517. page: this.page,
  518. };
  519. this.ajax
  520. .get(this.$store.state.api + "selectReviewer", params)
  521. .then((res) => {
  522. this.reviewerBox = res.data[0];
  523. })
  524. .catch((err) => {
  525. console.error(err);
  526. });
  527. },
  528. getReviewerOrAdmin() {
  529. if (this.$store.state.userInfo.type == 4) {
  530. this.getUser();
  531. } else {
  532. this.selectType();
  533. }
  534. },
  535. getUser() {
  536. let params = {
  537. uid: this.$store.state.userInfo.userid,
  538. };
  539. this.ajax
  540. .get(this.$store.state.api + "selectCaseUser", params)
  541. .then((res) => {
  542. if (res.data[0].length > 0) {
  543. var reCid = res.data[0][0].aBox;
  544. this.reCid = reCid;
  545. this.selectType(reCid);
  546. }
  547. })
  548. .catch((err) => {
  549. console.error(err);
  550. });
  551. },
  552. getAnliBox() {
  553. this.ajax
  554. .get(this.$store.state.api + "selecAnliBox2")
  555. .then((res) => {
  556. this.anliBox1 = res.data[0];
  557. for (var i = 0; i < this.anliBox1.length; i++) {
  558. this.anliBox1[i].info = JSON.parse(this.anliBox1[i].info);
  559. this.anliBox1[i].overview = JSON.parse(this.anliBox1[i].overview);
  560. this.anliBox1[i].process = JSON.parse(this.anliBox1[i].process);
  561. this.anliBox1[i].proact = JSON.parse(this.anliBox1[i].proact);
  562. this.anliBox1[i].proexc = JSON.parse(this.anliBox1[i].proexc);
  563. this.anliBox1[i].results = JSON.parse(this.anliBox1[i].results);
  564. }
  565. })
  566. .catch((err) => {
  567. console.error(err);
  568. });
  569. },
  570. addCase() {
  571. if (this.reviewer == "") {
  572. this.$message.error("请选择评审员");
  573. return;
  574. } else if (this.checkboxList.length == 0) {
  575. this.$message.error("请选择案例");
  576. return;
  577. }
  578. let params = [
  579. {
  580. uid: this.reviewer,
  581. box: this.checkboxList.join(","),
  582. },
  583. ];
  584. this.ajax
  585. .post(this.$store.state.api + "insertCase", params)
  586. .then((res) => {
  587. this.$message({
  588. message: "分配成功",
  589. type: "success",
  590. });
  591. this.reviewer = "";
  592. this.checkboxList = [];
  593. this.isIndeterminate = false;
  594. this.checkAll = false;
  595. this.dialogVisibleMember = false;
  596. })
  597. .catch((err) => {
  598. this.$message.error("网络不佳");
  599. console.error(err);
  600. });
  601. },
  602. openScore(a, t) {
  603. this.scoreDetail[0].id = a.id;
  604. this.scoreDetail[0].title = a.info.title;
  605. this.scoreDetail[0].detail = a.info.courseText;
  606. this.scoreDetail[0].uname = a.uname;
  607. this.getScore(a.id, t);
  608. },
  609. getScore(id, t) {
  610. let params = {
  611. rid: id,
  612. suser: this.$store.state.userInfo.userid,
  613. };
  614. this.ajax
  615. .get(this.$store.state.api + "selectScore", params)
  616. .then((res) => {
  617. if (res.data[0].length > 0) {
  618. this.scoreDetail[0].scoreAll = JSON.parse(res.data[0][0].score);
  619. var a = parseInt(this.scoreDetail[0].scoreAll.first);
  620. var b = parseInt(this.scoreDetail[0].scoreAll.second);
  621. var c = parseInt(this.scoreDetail[0].scoreAll.third);
  622. // var d = parseInt(this.scoreDetail[0].scoreAll.fourth);
  623. // var e = parseInt(this.scoreDetail[0].scoreAll.fivth);
  624. // this.scoreDetail[0].sumScore = Math.round((a + b + c + d + e) / 5);
  625. this.scoreDetail[0].sumScore = Math.round((a + b + c) / 3);
  626. } else {
  627. this.scoreDetail[0].scoreAll = {
  628. first: "",
  629. second: "",
  630. third: "",
  631. // fourth: "",
  632. // fivth: "",
  633. content: "",
  634. };
  635. this.scoreDetail[0].sumScore = 0;
  636. }
  637. if (t == 1) {
  638. this.dialogVisibleScore = true;
  639. } else {
  640. this.dialogVisibleRecommend = true;
  641. }
  642. })
  643. .catch((err) => {
  644. console.error(err);
  645. });
  646. },
  647. addScore() {
  648. if (this.scoreDetail[0].scoreAll.first == "") {
  649. this.$message.error("请将信息填写完整");
  650. return;
  651. } else if (this.scoreDetail[0].scoreAll.second == "") {
  652. this.$message.error("请将信息填写完整");
  653. return;
  654. } else if (this.scoreDetail[0].scoreAll.third == "") {
  655. this.$message.error("请将信息填写完整");
  656. return;
  657. }
  658. // else if (this.scoreDetail[0].scoreAll.fourth == "") {
  659. // this.$message.error("请将信息填写完整");
  660. // return;
  661. // } else if (this.scoreDetail[0].scoreAll.fivth == "") {
  662. // this.$message.error("请将信息填写完整");
  663. // return;
  664. // }
  665. let params = [
  666. {
  667. rid: this.scoreDetail[0].id,
  668. suser: this.$store.state.userInfo.userid,
  669. s: JSON.stringify(this.scoreDetail[0].scoreAll),
  670. },
  671. ];
  672. this.ajax
  673. .post(this.$store.state.api + "addScore", params)
  674. .then((res) => {
  675. this.$message({
  676. message: "评分成功",
  677. type: "success",
  678. });
  679. this.scoreDetail = [
  680. {
  681. id: "",
  682. uname: "",
  683. title: "",
  684. detail: "",
  685. scoreAll: {
  686. first: "",
  687. second: "",
  688. third: "",
  689. // fourth: "",
  690. // fivth: "",
  691. content: "",
  692. },
  693. sumScore: 0,
  694. },
  695. ];
  696. this.dialogVisibleScore = false;
  697. })
  698. .catch((err) => {
  699. console.error(err);
  700. });
  701. },
  702. addRecommend() {
  703. if (this.scoreDetail[0].sumScore == 0) {
  704. this.$message.error("还未评审,不可推荐");
  705. return;
  706. }
  707. let params = {
  708. id: this.scoreDetail[0].id,
  709. rec: 1,
  710. };
  711. this.ajax
  712. .get(this.$store.state.api + "updateRaceRec", params)
  713. .then((res) => {
  714. this.$message({
  715. message: "推荐成功",
  716. type: "success",
  717. });
  718. this.dialogVisibleRecommend = false;
  719. })
  720. .catch((err) => {
  721. console.error(err);
  722. });
  723. },
  724. lookDetail(aid) {
  725. window.open(
  726. window.location.origin +
  727. window.location.pathname +
  728. "/#/anliDetail?aid=" +
  729. aid
  730. );
  731. },
  732. },
  733. created() {
  734. // this.getAnliList();
  735. this.getAdmin();
  736. // this.selectType();
  737. this.getReviewerOrAdmin();
  738. this.getAnliBox();
  739. },
  740. };
  741. </script>
  742. <style scoped>
  743. .el-popover {
  744. min-width: 80px;
  745. text-align: center;
  746. }
  747. </style>
  748. <style scoped>
  749. .dialog_diy1 >>> .el-dialog__header,
  750. .dialog_diy >>> .el-dialog__header {
  751. background: #3d67bd !important;
  752. padding: 15px 20px;
  753. }
  754. .dialog_diy1 >>> .el-dialog__header {
  755. text-align: center;
  756. }
  757. .dialog_diy1 >>> .el-dialog__title,
  758. .dialog_diy >>> .el-dialog__title {
  759. color: #fff;
  760. }
  761. .dialog_diy1 >>> .el-dialog__headerbtn,
  762. .dialog_diy >>> .el-dialog__headerbtn {
  763. top: 19px;
  764. }
  765. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close,
  766. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  767. color: #fff;
  768. }
  769. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover,
  770. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  771. color: #fff;
  772. }
  773. .dialog_diy1 >>> .el-dialog__body,
  774. .dialog_diy1 >>> .el-dialog__footer,
  775. .dialog_diy >>> .el-dialog__body,
  776. .dialog_diy >>> .el-dialog__footer {
  777. background: #fafafa;
  778. }
  779. .disUoloadSty >>> .el-upload--picture-card {
  780. display: none;
  781. /* 上传按钮隐藏 */
  782. }
  783. .tou {
  784. border-bottom: 1px solid #c9c9c9;
  785. height: 50px;
  786. font-size: 30px;
  787. }
  788. .touTop {
  789. margin: 15px auto;
  790. display: flex;
  791. flex-direction: row;
  792. flex-wrap: nowrap;
  793. align-items: baseline;
  794. justify-content: space-between;
  795. width: 95%;
  796. }
  797. .touLeft {
  798. display: flex;
  799. flex-direction: row;
  800. flex-wrap: nowrap;
  801. align-items: baseline;
  802. }
  803. .touLeft > div:nth-child(1) {
  804. display: flex;
  805. flex-direction: row;
  806. flex-wrap: wrap;
  807. align-items: center;
  808. }
  809. .touLeft > div > div {
  810. margin: 0 10px 10px 0;
  811. display: flex;
  812. flex-direction: row;
  813. align-items: center;
  814. }
  815. .touRight > div:nth-child(2) > .el-button {
  816. background: #2268bd;
  817. color: #fff;
  818. }
  819. .student_page {
  820. width: 95%;
  821. margin: 20px auto 0;
  822. }
  823. .anliBox {
  824. display: flex;
  825. flex-direction: row;
  826. flex-wrap: wrap;
  827. align-items: flex-start;
  828. margin: 25px auto 0;
  829. width: 95%;
  830. min-height: 570px;
  831. }
  832. .anLi {
  833. width: 280px;
  834. margin: 0 20px 10px 0;
  835. box-shadow: 3px 1px 15px 3px #f0f0f2;
  836. }
  837. .anliImg {
  838. width: 100%;
  839. height: 170px;
  840. }
  841. .anliImg > img {
  842. width: 100%;
  843. height: 100%;
  844. object-fit: cover;
  845. }
  846. .anliBot {
  847. background: #fff;
  848. border: 1px solid #f5f5f5;
  849. padding: 5px 0 10px 0;
  850. box-sizing: border-box;
  851. }
  852. .detailBox {
  853. padding: 0 0 0 10px;
  854. box-sizing: border-box;
  855. }
  856. .detailBox > div:nth-child(1) {
  857. font-size: 20px;
  858. width: 250px;
  859. white-space: nowrap;
  860. overflow: hidden;
  861. text-overflow: ellipsis;
  862. word-break: break-word;
  863. }
  864. .detailBox > div:nth-child(2) {
  865. color: #999;
  866. margin-top: 5px;
  867. font-size: 14px;
  868. }
  869. .anliButton {
  870. display: flex;
  871. flex-direction: row;
  872. flex-wrap: nowrap;
  873. align-items: center;
  874. justify-content: flex-end;
  875. padding: 10px 0 0 0;
  876. }
  877. .anliButton > div {
  878. margin-right: 5px;
  879. }
  880. .anliButton > div > .el-button {
  881. background: #409efe;
  882. color: #fff;
  883. width: 80px;
  884. border-radius: 5px;
  885. }
  886. .customWidth >>> .el-dialog {
  887. min-width: 500px !important;
  888. }
  889. .customWidth >>> .el-dialog__headerbtn {
  890. display: none !important;
  891. }
  892. .customWidth1 >>> .el-dialog {
  893. min-width: 800px !important;
  894. }
  895. .people {
  896. border: 1px solid rgb(229 229 229);
  897. height: 495px;
  898. border-radius: 5px;
  899. width: 100%;
  900. overflow: auto;
  901. background: #fff;
  902. box-shadow: 0px 0px 10px 8px #ededed;
  903. }
  904. .people::-webkit-scrollbar {
  905. /*滚动条整体样式*/
  906. width: 6px;
  907. /*高宽分别对应横竖滚动条的尺寸*/
  908. height: 6px;
  909. }
  910. /*定义滚动条轨道 内阴影+圆角*/
  911. .people::-webkit-scrollbar-track {
  912. border-radius: 10px;
  913. background-color: #eee;
  914. }
  915. /*定义滑块 内阴影+圆角*/
  916. .people::-webkit-scrollbar-thumb {
  917. border-radius: 10px;
  918. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  919. background-color: rgba(0, 0, 0, 0.1);
  920. }
  921. .people_top {
  922. display: flex;
  923. width: 100%;
  924. flex-direction: column;
  925. padding: 10px 25px 10px;
  926. box-sizing: border-box;
  927. border-bottom: 1px solid #f4f4f7;
  928. }
  929. .people_top_right {
  930. height: 40px;
  931. margin-bottom: 10px;
  932. }
  933. .people_search {
  934. display: flex;
  935. flex-direction: row;
  936. flex-wrap: nowrap;
  937. align-items: center;
  938. }
  939. .people_search > div:nth-child(1) {
  940. font-size: 20px;
  941. margin-right: 10px;
  942. }
  943. .t_j_box {
  944. display: flex;
  945. }
  946. .t_j_box span:nth-child(1) {
  947. width: 15%;
  948. overflow: hidden;
  949. margin-right: 10px;
  950. text-overflow: ellipsis;
  951. white-space: nowrap;
  952. }
  953. .t_j_box span:nth-child(2) {
  954. width: 300px;
  955. overflow: hidden;
  956. text-overflow: ellipsis;
  957. margin-right: 10px;
  958. }
  959. .t_j_box span:nth-child(3) {
  960. width: calc(55% - 20px);
  961. overflow: hidden;
  962. text-overflow: ellipsis;
  963. }
  964. .people_name {
  965. display: flex;
  966. flex-direction: column;
  967. flex-wrap: wrap;
  968. align-items: flex-start;
  969. padding: 15px 0 0 15px;
  970. }
  971. .people_name >>> .el-checkbox {
  972. margin-bottom: 10px;
  973. }
  974. .all_choose > span {
  975. margin-right: 10px;
  976. }
  977. .clear {
  978. width: 70px;
  979. height: 35px;
  980. background: #2268bc;
  981. color: #fff;
  982. text-align: center;
  983. border-radius: 5px;
  984. line-height: 35px;
  985. cursor: pointer;
  986. }
  987. .anliCss {
  988. display: flex;
  989. flex-direction: row;
  990. flex-wrap: nowrap;
  991. align-items: center;
  992. }
  993. .anliCss > div:nth-child(1) {
  994. margin-right: 10px;
  995. }
  996. .scoreBox {
  997. background: #fff;
  998. }
  999. .scoreCss {
  1000. padding: 10px;
  1001. }
  1002. .scoreTitle {
  1003. display: flex;
  1004. flex-direction: row;
  1005. flex-wrap: nowrap;
  1006. align-items: center;
  1007. }
  1008. .scoreTitle > div:nth-child(1) {
  1009. width: 50px;
  1010. }
  1011. .scoreTitle > div:nth-child(1) > img {
  1012. width: 100%;
  1013. height: 100%;
  1014. }
  1015. .scoreTitle > div:nth-child(2) {
  1016. margin-left: 15px;
  1017. }
  1018. .anliTitle,
  1019. .anliBrief,
  1020. .anliScore {
  1021. display: flex;
  1022. flex-direction: row;
  1023. flex-wrap: nowrap;
  1024. align-items: flex-start;
  1025. padding: 10px 0 10px 0;
  1026. font-size: 18px;
  1027. }
  1028. .anliTitle > div:nth-child(1),
  1029. .anliBrief > div:nth-child(1) {
  1030. min-width: 75px;
  1031. width: 75px;
  1032. }
  1033. .anliTitle > div:nth-child(2),
  1034. .anliBrief > div:nth-child(2) {
  1035. font-size: 17px;
  1036. margin-left: 35px;
  1037. color: #b0b0b0;
  1038. }
  1039. .anliScore > div:nth-child(2) {
  1040. margin: -13px 0 0 20px;
  1041. }
  1042. .scoreDiv {
  1043. display: flex;
  1044. flex-direction: row;
  1045. flex-wrap: nowrap;
  1046. align-items: center;
  1047. padding: 10px 0;
  1048. }
  1049. .scoreDiv > div:nth-child(1) {
  1050. min-width: 90px;
  1051. width: 90px;
  1052. }
  1053. .scoreDiv > div:nth-child(2) {
  1054. margin-left: 10px;
  1055. }
  1056. .scoreDiv > div:nth-child(2) >>> .el-input__inner {
  1057. border-radius: 15px;
  1058. background: #fafafa;
  1059. height: 30px;
  1060. font-size: 16px;
  1061. }
  1062. .anliContent {
  1063. width: 80%;
  1064. margin: 0 auto;
  1065. border-top: 2px solid #ededed;
  1066. padding: 10px 0 0 0;
  1067. }
  1068. .tAreaCss {
  1069. resize: none;
  1070. width: 100%;
  1071. text-indent: 10px;
  1072. border: 1px solid #e6e6e8;
  1073. background: #fafafa;
  1074. }
  1075. .tAreaCss:focus-visible {
  1076. outline: none !important;
  1077. }
  1078. .addScore {
  1079. width: 75%;
  1080. margin: 10px auto;
  1081. background: #409efe;
  1082. color: #fff;
  1083. height: 35px;
  1084. text-align: center;
  1085. line-height: 35px;
  1086. border-radius: 5px;
  1087. cursor: pointer;
  1088. }
  1089. .reTitle {
  1090. font-size: 18px;
  1091. }
  1092. .reTitle > div:nth-child(2) {
  1093. width: 99%;
  1094. border: 1px solid #dbdbdb;
  1095. font-size: 16px;
  1096. height: 35px;
  1097. line-height: 35px;
  1098. text-indent: 10px;
  1099. border-radius: 5px;
  1100. margin: 10px 0;
  1101. white-space: nowrap;
  1102. overflow: hidden;
  1103. text-overflow: ellipsis;
  1104. word-break: break-word;
  1105. }
  1106. .reDetail,
  1107. .reScore {
  1108. display: flex;
  1109. flex-direction: row;
  1110. flex-wrap: nowrap;
  1111. align-items: flex-start;
  1112. padding: 10px 0 10px 0;
  1113. font-size: 18px;
  1114. }
  1115. .reDetail > div:nth-child(2) {
  1116. font-size: 17px;
  1117. margin-left: 10px;
  1118. color: #b0b0b0;
  1119. width: 650px;
  1120. max-height: 150px;
  1121. overflow: auto;
  1122. }
  1123. .reScore > div:nth-child(2) {
  1124. font-size: 35px;
  1125. margin-left: 20px;
  1126. }
  1127. .reScore > div:nth-child(2) > span {
  1128. color: #6188d5;
  1129. }
  1130. .reBottom {
  1131. display: flex;
  1132. flex-direction: row;
  1133. flex-wrap: nowrap;
  1134. align-items: center;
  1135. justify-content: flex-end;
  1136. }
  1137. .reBottom > div:nth-child(2) {
  1138. border: 1px solid #d7d7d9;
  1139. width: 70px;
  1140. height: 35px;
  1141. text-align: center;
  1142. line-height: 35px;
  1143. border-radius: 5px;
  1144. margin: 0 10px 0 20px;
  1145. cursor: pointer;
  1146. }
  1147. .reBottom > div:nth-child(3) {
  1148. background: #409efe;
  1149. color: #fff;
  1150. height: 35px;
  1151. line-height: 35px;
  1152. width: 85px;
  1153. text-align: center;
  1154. border-radius: 5px;
  1155. cursor: pointer;
  1156. }
  1157. .aName {
  1158. margin-left: 10px;
  1159. }
  1160. .aName >>> .el-input__inner {
  1161. width: 300px;
  1162. }
  1163. .noAnli {
  1164. width: 400px;
  1165. height: auto;
  1166. margin: 100px auto;
  1167. }
  1168. .noAnli > img {
  1169. width: 100%;
  1170. height: 100%;
  1171. }
  1172. </style>