evaluationDeptRatingPage.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797
  1. <template>
  2. <div class="evaluationRating">
  3. <div class="evaluationRatingBtn">
  4. <div class="collectSeach" :style="$utils.collectSeachSty()">
  5. <div class="exceed">
  6. <span class="exceedSpan">部门名称:</span>
  7. <el-input v-model="resDeptName" placeholder="请输入部门名称"></el-input>
  8. </div>
  9. <div class="exceed">
  10. <span class="exceedSpan" style="width: 80px">考评年度:</span>
  11. <el-date-picker v-model="resAnnual" type="year" value-format="YYYY" placeholder="选择年份" />
  12. </div>
  13. <seachs @handleSeach="getSeachData" @handleRest="resetSeach"></seachs>
  14. </div>
  15. <div class="PeriodBtn" :style="$utils.PeriodBtnSty()">
  16. <btns
  17. :showImport="$utils.havePurview('evaluationDeptRating:oneLevel:import')"
  18. :showExport="$utils.havePurview('evaluationDeptRating:oneLevel:export')"
  19. :showSave="$utils.havePurview('evaluationDeptRating:oneLevel:save')"
  20. :showAdd="$utils.havePurview('evaluationDeptRating:oneLevel:add')"
  21. :showDelete="$utils.havePurview('evaluationDeptRating:oneLevel:delete')"
  22. :disSave="changeDateSelect.length === 0 || changeDateSelect.length>1"
  23. :disDelete="changeDateSelect.length === 0"
  24. :disImport="false"
  25. :disExport="false"
  26. @handleAdd="handleAdd"
  27. @handleEdit="handleEdit"
  28. @handleDelete="handleDelete"
  29. @handleImport="handleImport"
  30. @handleExport="handleExport"
  31. ></btns>
  32. </div>
  33. <div class="evaluationRatingTableData">
  34. <!-- @row-click="rowClickToggle" -->
  35. <!-- .length>0?evaluationRatingData.slice((page.currentPage-1)*page.pagesize, page.currentPage*page.pagesize):evaluationRatingData -->
  36. <el-table :data="evaluationRatingData" style="width: 100%" ref="tableRating" :class="evaldeptRatingTableSty()"
  37. @select="rowClick" @select-all="rowClick">
  38. <el-table-column type="selection" label="操作" align="center"></el-table-column>
  39. <el-table-column type="index" label="序号" align="center"></el-table-column>
  40. <el-table-column label="考评部门" width="200">
  41. <template #default="scope">
  42. <el-tooltip
  43. class="box-item"
  44. effect="customized"
  45. :content="scope.row.deptName"
  46. placement="right"
  47. >
  48. <span class="tooltipCC">{{scope.row.deptName}}</span>
  49. </el-tooltip>
  50. </template>
  51. </el-table-column>
  52. <el-table-column label="考评年度" prop="annual" />
  53. <el-table-column :label="it.label" :prop="it.value" v-for="it in monthArr" :key="it.value">
  54. <template #default="scope">
  55. <el-tooltip
  56. class="box-item"
  57. effect="customized"
  58. :content="scope.row[it.value+'Content']"
  59. placement="right"
  60. >
  61. <span class="tooltipCCDes">{{scope.row[it.value]}}</span>
  62. </el-tooltip>
  63. </template>
  64. </el-table-column>
  65. <el-table-column label="A级总数" prop="acount" />
  66. <el-table-column label="C级总数" prop="ccount" />
  67. </el-table>
  68. <!-- <el-pagination
  69. @size-change="handleSizeChange"
  70. @current-change="handleCurrentChange"
  71. :current-page="page.currentPage"
  72. :page-size="page.pagesize"
  73. layout="total, prev, pager, next, jumper"
  74. :total="page.total">
  75. </el-pagination> -->
  76. </div>
  77. <el-dialog :title="title" custom-class="startToDia" v-model="dialogVisible" width="600px" :close-on-click-modal="false">
  78. <div class="periodFrom">
  79. <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" :validate-on-rule-change="false">
  80. <el-form-item label="考评部门" prop="department">
  81. <el-select v-model="ruleForm.department" placeholder="请选择考评部门" filterable :disabled="isSave">
  82. <el-option
  83. v-for="item in departData"
  84. :key="item.id"
  85. :label="item.name"
  86. :value="item.id">
  87. </el-option>
  88. </el-select>
  89. </el-form-item>
  90. <el-form-item label="年份" prop="year">
  91. <el-date-picker
  92. v-model="ruleForm.year"
  93. :disabled="isSave"
  94. type="year"
  95. value-format="YYYY"
  96. placeholder="请选择年份"
  97. />
  98. </el-form-item>
  99. <el-row>
  100. <el-col :span="12">
  101. <el-form-item :label="it.label" :prop="it.value" v-for="it in monthArrLeft" :key="it.value">
  102. <el-select v-model="ruleForm[it.value]" placeholder="请选择评级"
  103. clearable @change="(val)=>changeAData(val, it)" @clear="(val)=>clearAData(val, it)">
  104. <el-option
  105. v-for="item in ratingArr"
  106. :key="item.value"
  107. :label="item.label"
  108. :value="item.value">
  109. </el-option>
  110. </el-select>
  111. </el-form-item>
  112. </el-col>
  113. <el-col :span="12">
  114. <el-form-item :label="it.label" :prop="it.value" v-for="it in monthArrRight" :key="it.value">
  115. <el-select v-model="ruleForm[it.value]" placeholder="请选择评级"
  116. clearable @change="(val)=>changeAData(val, it)" @clear="(val)=>clearAData(val, it)">
  117. <el-option
  118. v-for="item in ratingArr"
  119. :key="item.value"
  120. :label="item.label"
  121. :value="item.value">
  122. </el-option>
  123. </el-select>
  124. </el-form-item>
  125. </el-col>
  126. </el-row>
  127. <el-form-item :label="it.label+'通告'" :prop="it.value+'Content'" v-for="it in acauseDataArr" :key="it.value">
  128. <el-input v-model="ruleForm[it.value+'Content']" placeholder="请输入通告"></el-input>
  129. </el-form-item>
  130. </el-form>
  131. </div>
  132. <template #footer>
  133. <span class="dialog-footer">
  134. <el-button @click="dialogVisible = false">取 消</el-button>
  135. <el-button type="primary" @click="saveevaluaStart('ruleForm')">确 定</el-button>
  136. </span>
  137. </template>
  138. </el-dialog>
  139. </div>
  140. <start-from-list ref="startFromDetail" ></start-from-list>
  141. <import-dailog ref="importPage" @successImport="successImport"></import-dailog>
  142. </div>
  143. </template>
  144. <script>
  145. import importDailog from '../importPage/importDailog.vue'
  146. import startFromList from './evaluationDeptStartFrom.vue'
  147. import btns from '../elbuttonS.vue'
  148. import seachs from '../seachGroup.vue'
  149. import ExcelJS from 'exceljs'
  150. import fileSave from 'file-saver'
  151. import {apiGetevaluationdeptratinglist, apiGetevaluationdeptratingsave,
  152. apiGetorganizationstructureFromTree, apiPostevaluationdeptratingDelete} from '../../api/api'
  153. export default {
  154. components: {
  155. startFromList,
  156. importDailog,
  157. btns,
  158. seachs
  159. },
  160. data() {
  161. return {
  162. dialogVisible: false,
  163. isSave: false,
  164. title: '',
  165. evalradio: {},
  166. changeDateSelect: [],
  167. evaluationRatingData:[],
  168. departData: [],
  169. page:{
  170. pagesize: 12,
  171. currentPage: 1,
  172. total: 0
  173. },
  174. ruleForm: {
  175. department: '',
  176. year: '',
  177. jan: '',
  178. feb: '',
  179. mar: '',
  180. apr: '',
  181. may: '',
  182. jun: '',
  183. jul: '',
  184. aug: '',
  185. sep: '',
  186. oct: '',
  187. nov: '',
  188. dece: '',
  189. janContent: '',
  190. febContent: '',
  191. marContent: '',
  192. aprContent: '',
  193. mayContent: '',
  194. junContent: '',
  195. julContent: '',
  196. augContent: '',
  197. sepContent: '',
  198. octContent: '',
  199. novContent: '',
  200. deceContent: ''
  201. },
  202. winPix: window.devicePixelRatio,
  203. innerWidth: window.innerWidth,
  204. rules: {
  205. department: [
  206. { required: true, message: '请选择考评部门', trigger: 'change' }
  207. ],
  208. year: [
  209. { required: true, message: '请选择年份', trigger: 'change' }
  210. ],
  211. janContent: [
  212. { required: true, message: '请输入通告', trigger: 'blur' }
  213. ],
  214. febContent: [
  215. { required: true, message: '请输入通告', trigger: 'blur' }
  216. ],
  217. marContent: [
  218. { required: true, message: '请输入通告', trigger: 'blur' }
  219. ],
  220. aprContent: [
  221. { required: true, message: '请输入通告', trigger: 'blur' }
  222. ],
  223. mayContent: [
  224. { required: true, message: '请输入通告', trigger: 'blur' }
  225. ],
  226. junContent: [
  227. { required: true, message: '请输入通告', trigger: 'blur' }
  228. ],
  229. julContent: [
  230. { required: true, message: '请输入通告', trigger: 'blur' }
  231. ],
  232. augContent: [
  233. { required: true, message: '请输入通告', trigger: 'blur' }
  234. ],
  235. sepContent: [
  236. { required: true, message: '请输入通告', trigger: 'blur' }
  237. ],
  238. octContent: [
  239. { required: true, message: '请输入通告', trigger: 'blur' }
  240. ],
  241. novContent: [
  242. { required: true, message: '请输入通告', trigger: 'blur' }
  243. ],
  244. deceContent: [
  245. { required: true, message: '请输入通告', trigger: 'blur' }
  246. ]
  247. },
  248. resDeptName: '',
  249. resAnnual: '',
  250. monthArr: [],
  251. monthArrLeft: [],
  252. monthArrRight: [],
  253. ratingArr: [],
  254. acauseDataArr: []
  255. }
  256. },
  257. created() {
  258. this.monthArrLeft = [
  259. {
  260. label: '一月',
  261. value: 'jan',
  262. },
  263. {
  264. label: '二月',
  265. value: 'feb',
  266. },
  267. {
  268. label: '三月',
  269. value: 'mar',
  270. },
  271. {
  272. label: '四月',
  273. value: 'apr',
  274. },
  275. {
  276. label: '五月',
  277. value: 'may',
  278. },
  279. {
  280. label: '六月',
  281. value: 'jun',
  282. }
  283. ]
  284. this.monthArrRight = [
  285. {
  286. label: '七月',
  287. value: 'jul',
  288. },
  289. {
  290. label: '八月',
  291. value: 'aug',
  292. },
  293. {
  294. label: '九月',
  295. value: 'sep',
  296. },
  297. {
  298. label: '十月',
  299. value: 'oct',
  300. },
  301. {
  302. label: '十一月',
  303. value: 'nov',
  304. },
  305. {
  306. label: '十二月',
  307. value: 'dece',
  308. },
  309. ]
  310. this.monthArr = this.monthArrLeft.concat(this.monthArrRight)
  311. this.ratingArr = [
  312. {
  313. label: 'A级',
  314. value: 'A'
  315. },
  316. {
  317. label: 'B级',
  318. value: 'B'
  319. },
  320. {
  321. label: 'C级',
  322. value: 'C'
  323. }
  324. ]
  325. this.resAnnual = new Date().getFullYear().toString()
  326. this.getevaluRatingList()
  327. this.getDepartmentFromTreeData()
  328. },
  329. methods:{
  330. // 查询列表页面
  331. getevaluRatingList() {
  332. let that = this
  333. let userMes = JSON.parse(window.sessionStorage.getItem('user'))
  334. let params = {
  335. pageNum: that.page.currentPage,
  336. pageSize: that.page.pagesize,
  337. deptId: userMes.deptId,
  338. deptName: that.resDeptName,
  339. annual: that.resAnnual
  340. }
  341. apiGetevaluationdeptratinglist(params).then(datas =>{
  342. if (datas && datas.data) {
  343. that.evaluationRatingData = datas.data
  344. }
  345. })
  346. },
  347. // 查询部门
  348. getDepartmentFromTreeData() {
  349. let that = this
  350. let params = {
  351. id: '23031001',
  352. num: 1,
  353. type: 140
  354. }
  355. apiGetorganizationstructureFromTree(params).then(datas =>{
  356. if (datas && datas.data) {
  357. that.departData = datas.data[0].children
  358. }
  359. })
  360. },
  361. evaluationRatingFn() {
  362. if (this.evaluationRatingData.length>0) {
  363. evaluationRatingData.slice((page.currentPage-1)*page.pagesize, page.currentPage*page.pagesize)
  364. }
  365. },
  366. // rowClickToggle(row) {
  367. // this.$refs.tableRating.toggleRowSelection(row)
  368. // },
  369. changeAData(val, data) {
  370. if (val !== '') {
  371. this.monthArr.forEach(it =>{
  372. if (data.label === it.label) {
  373. let model = false
  374. this.acauseDataArr.forEach((iv, index) =>{
  375. if (data.label === iv.label) {
  376. model = true
  377. }
  378. })
  379. if (!model) {
  380. this.acauseDataArr.push(it)
  381. }
  382. }
  383. })
  384. }
  385. },
  386. clearAData(val, data) {
  387. this.acauseDataArr.forEach((it, index) =>{
  388. if (data.label === it.label) {
  389. this.acauseDataArr.splice(index, 1)
  390. }
  391. })
  392. },
  393. saveevaluaStart(formName) {
  394. let that = this
  395. that.$refs[formName].validate((valid) => {
  396. if (valid) {
  397. that.saveAndEditIndicatorData()
  398. }
  399. });
  400. },
  401. //新增/修改考评启动数据
  402. saveAndEditIndicatorData() {
  403. let that = this
  404. let orgName = ''
  405. this.departData.forEach(item =>{
  406. if (item.id === that.ruleForm.department) {
  407. orgName = item.name
  408. }
  409. })
  410. let userMes = JSON.parse(window.sessionStorage.getItem('user'))
  411. let params = {
  412. deptId: that.ruleForm.department,
  413. deptName: orgName,
  414. annual: that.ruleForm.year,
  415. jan: that.ruleForm.jan,
  416. feb: that.ruleForm.feb,
  417. mar: that.ruleForm.mar,
  418. apr: that.ruleForm.apr,
  419. may: that.ruleForm.may,
  420. jun: that.ruleForm.jun,
  421. jul: that.ruleForm.jul,
  422. aug: that.ruleForm.aug,
  423. sep: that.ruleForm.sep,
  424. oct: that.ruleForm.oct,
  425. nov: that.ruleForm.nov,
  426. dece: that.ruleForm.dece,
  427. janContent: that.ruleForm.janContent,
  428. febContent: that.ruleForm.febContent,
  429. marContent: that.ruleForm.marContent,
  430. aprContent: that.ruleForm.aprContent,
  431. mayContent: that.ruleForm.mayContent,
  432. junContent: that.ruleForm.junContent,
  433. julContent: that.ruleForm.julContent,
  434. augContent: that.ruleForm.augContent,
  435. sepContent: that.ruleForm.sepContent,
  436. octContent: that.ruleForm.octContent,
  437. novContent: that.ruleForm.novContent,
  438. deceContent: that.ruleForm.deceContent,
  439. createBy: userMes.id,
  440. createName: userMes.name
  441. }
  442. if (that.isSave) {
  443. params.id = that.evalradio.id
  444. }
  445. apiGetevaluationdeptratingsave(params).then(datas =>{
  446. if (!datas.success) {
  447. that.$message({
  448. message: datas.message,
  449. type: 'error'
  450. });
  451. } else {
  452. if (!that.isSave) {
  453. that.$message({
  454. message: '部门绩效考核评级新增成功',
  455. type: 'success'
  456. });
  457. } else {
  458. that.$message({
  459. message: '部门绩效考核评级修改成功',
  460. type: 'success'
  461. });
  462. }
  463. that.dialogVisible = false
  464. that.changeDateSelect = []
  465. that.getevaluRatingList()
  466. }
  467. })
  468. },
  469. getSeachData() {
  470. this.page.currentPage = 1
  471. this.getevaluRatingList()
  472. },
  473. resetSeach() {
  474. this.page.currentPage = 1
  475. this.resDeptName = ''
  476. this.resAnnual = new Date().getFullYear().toString()
  477. this.getevaluRatingList()
  478. },
  479. handleSizeChange(val){
  480. this.page.pagesize = val
  481. this.getevaluRatingList()
  482. },
  483. handleCurrentChange(val){
  484. this.page.currentPage =val
  485. this.getevaluRatingList()
  486. },
  487. rowClick(selection, row) {
  488. this.changeDateSelect = selection
  489. },
  490. handleAdd() {
  491. this.dialogVisible = true
  492. this.isSave = false
  493. this.title = '新建部门绩效考核评级'
  494. this.acauseDataArr = []
  495. this.$nextTick(() =>{
  496. // this.$refs['ruleForm'].resetFields()
  497. this.ruleForm = {
  498. department: '',
  499. year: '',
  500. jan: '',
  501. feb: '',
  502. mar: '',
  503. apr: '',
  504. may: '',
  505. jun: '',
  506. jul: '',
  507. aug: '',
  508. sep: '',
  509. oct: '',
  510. nov: '',
  511. dece: '',
  512. janContent: '',
  513. febContent: '',
  514. marContent: '',
  515. aprContent: '',
  516. mayContent: '',
  517. junContent: '',
  518. julContent: '',
  519. augContent: '',
  520. sepContent: '',
  521. octContent: '',
  522. novContent: '',
  523. deceContent: ''
  524. }
  525. })
  526. },
  527. handleEdit() {
  528. this.dialogVisible = true
  529. this.isSave = true
  530. this.title = '修改部门绩效考核评级'
  531. this.evalradio = this.changeDateSelect[0]
  532. this.acauseDataArr = []
  533. this.ruleForm = {
  534. department: this.evalradio.deptId,
  535. year: this.evalradio.annual,
  536. jan: this.evalradio.jan,
  537. feb: this.evalradio.feb,
  538. mar: this.evalradio.mar,
  539. apr: this.evalradio.apr,
  540. may: this.evalradio.may,
  541. jun: this.evalradio.jun,
  542. jul: this.evalradio.jul,
  543. aug: this.evalradio.aug,
  544. sep: this.evalradio.sep,
  545. oct: this.evalradio.oct,
  546. nov: this.evalradio.nov,
  547. dece: this.evalradio.dece,
  548. janContent: this.evalradio.janContent,
  549. febContent: this.evalradio.febContent,
  550. marContent: this.evalradio.marContent,
  551. aprContent: this.evalradio.aprContent,
  552. mayContent: this.evalradio.mayContent,
  553. junContent: this.evalradio.junContent,
  554. julContent: this.evalradio.julContent,
  555. augContent: this.evalradio.augContent,
  556. sepContent: this.evalradio.sepContent,
  557. octContent: this.evalradio.octContent,
  558. novContent: this.evalradio.novContent,
  559. deceContent: this.evalradio.deceContent
  560. }
  561. let arr = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dece']
  562. arr.forEach(it =>{
  563. if (this.evalradio[it] !== '') {
  564. this.monthArr.forEach(itv =>{
  565. if (itv.value === it) {
  566. this.acauseDataArr.push(itv)
  567. }
  568. })
  569. }
  570. })
  571. },
  572. //删除
  573. handleDelete() {
  574. this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
  575. confirmButtonText: '确定',
  576. cancelButtonText: '取消',
  577. type: 'warning'
  578. }).then(() => {
  579. let that = this
  580. let paramsArr = []
  581. that.changeDateSelect.forEach(it =>{
  582. paramsArr.push(it.id)
  583. })
  584. apiPostevaluationdeptratingDelete(paramsArr.join(',')).then(datas =>{
  585. that.$message({
  586. type: 'success',
  587. message: '删除成功!'
  588. });
  589. that.getevaluRatingList()
  590. that.changeDateSelect = []
  591. })
  592. })
  593. },
  594. handleImport() {
  595. this.$refs.importPage.upload.title = "部门考评评级"
  596. this.$refs.importPage.upload.open = true
  597. this.$refs.importPage.upload.url = '/evaluation-dept-rating/import'
  598. },
  599. successImport(val) {
  600. this.getevaluRatingList()
  601. },
  602. handleExport() {
  603. let data = this.evaluationRatingData //接口返回数据
  604. const workbook = new ExcelJS.Workbook()
  605. const worksheet = workbook.addWorksheet('Sheet1')
  606. //根据数据自己调整
  607. let colums = []
  608. colums = [
  609. { header: '部门编号', key: 'deptId', width: 26 },
  610. { header: '考评部门', key: 'deptName', width: 26 },
  611. { header: '考评年度', key: 'annual', width: 26 },
  612. { header: '一月', key: 'jan', width: 15 },
  613. { header: '一月通告', key: 'janContent', width: 26 },
  614. { header: '二月', key: 'feb', width: 15 },
  615. { header: '二月通告', key: 'febContent', width: 26 },
  616. { header: '三月', key: 'mar', width: 15 },
  617. { header: '三月通告', key: 'marContent', width: 26 },
  618. { header: '四月', key: 'apr', width: 15 },
  619. { header: '四月通告', key: 'aprContent', width: 26 },
  620. { header: '五月', key: 'may', width: 15 },
  621. { header: '五月通告', key: 'mayContent', width: 26 },
  622. { header: '六月', key: 'jun', width: 15 },
  623. { header: '六月通告', key: 'junContent', width: 26 },
  624. { header: '七月', key: 'jul', width: 15 },
  625. { header: '七月通告', key: 'julContent', width: 26 },
  626. { header: '八月', key: 'aug', width: 15 },
  627. { header: '八月通告', key: 'augContent', width: 26 },
  628. { header: '九月', key: 'sep', width: 15 },
  629. { header: '九月通告', key: 'sepContent', width: 26 },
  630. { header: '十月', key: 'oct', width: 15 },
  631. { header: '十月通告', key: 'octContent', width: 26 },
  632. { header: '十一月', key: 'nov', width: 15 },
  633. { header: '十一月通告', key: 'novContent', width: 26 },
  634. { header: '十二月', key: 'dece', width: 15 },
  635. { header: '十二月通告', key: 'deceContent', width: 26 },
  636. { header: 'A级总数', key: 'acount', width: 15 },
  637. { header: 'C级总数', key: 'ccount', width: 15 },
  638. ]
  639. worksheet.columns = colums
  640. worksheet.getRow(1).font = {
  641. size: 12,
  642. bold: true
  643. }
  644. worksheet.addRows(data)
  645. workbook.xlsx.writeBuffer().then(buffer => {
  646. //这里为type
  647. const blob = new Blob([buffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8' })
  648. fileSave(blob, `部门考评评级数据导出.xlsx`)
  649. })
  650. },
  651. evaldeptRatingTableSty() {
  652. if (this.winPix === 1.25 || this.innerWidth < 1800) {
  653. return 'evaldeptRating125Table'
  654. } else {
  655. return 'evaldeptRating100Table'
  656. }
  657. }
  658. }
  659. }
  660. </script>
  661. <style lang="less">
  662. .evaluationRating{
  663. .evaluationRatingBtn{
  664. .collectSeach{
  665. display: flex;
  666. padding: 24px 20px;
  667. border-bottom: 1px solid#D6DBEA;
  668. .exceed{
  669. display: flex;
  670. .exceedSpan{
  671. width: 100px;
  672. height: 12px;
  673. font-size: 14px;
  674. font-family: Microsoft YaHei;
  675. font-weight: 400;
  676. color: #8991B0;
  677. line-height: 12px;
  678. margin-top: 14px;
  679. }
  680. .el-input{
  681. margin-right:10px;
  682. height: 40px;
  683. .el-input__inner{
  684. height:40px;
  685. }
  686. .el-input__suffix{
  687. .el-select__caret{
  688. line-height:30px;
  689. }
  690. }
  691. }
  692. }
  693. .el-select{
  694. margin-right:10px;
  695. .el-input__inner{
  696. height:30px;
  697. }
  698. .el-input__suffix{
  699. .el-select__caret{
  700. line-height:30px;
  701. }
  702. }
  703. }
  704. }
  705. span{
  706. font-size:14px;
  707. }
  708. .PeriodBtn{
  709. display: flex;
  710. justify-content: flex-end;
  711. padding: 20px 0;
  712. }
  713. .el-button{
  714. height: 30px;
  715. // width:100px;
  716. padding: 0 20px ;
  717. // padding-top: 8px;
  718. span{
  719. margin:0;
  720. }
  721. }
  722. .evaluationRatingTableData{
  723. .evaldeptRating125Table{
  724. .el-table__body-wrapper{
  725. height: 63vh !important;
  726. }
  727. }
  728. .evaldeptRating100Table{
  729. .el-table__body-wrapper{
  730. height: 65vh !important;
  731. }
  732. }
  733. .el-table{
  734. .el-input__inner{
  735. height: 30px !important;
  736. }
  737. .el-radio__label{
  738. display: none;
  739. }
  740. .tooltipCC{
  741. width: 300px !important;
  742. display: inline-block;
  743. overflow: hidden;
  744. text-overflow: ellipsis;
  745. white-space: nowrap;
  746. }
  747. .tooltipCCDes{
  748. width: 50px;
  749. display: inline-block;
  750. overflow: hidden;
  751. text-overflow: ellipsis;
  752. white-space: nowrap;
  753. }
  754. .indicitem{
  755. color: #409EFF;
  756. font-size: 12px;
  757. margin-right: 20px;
  758. cursor:pointer;
  759. &:hover{
  760. text-decoration: underline;
  761. }
  762. }
  763. }
  764. .el-pagination{
  765. margin-top: 20px;
  766. text-align: end;
  767. position: relative;
  768. }
  769. }
  770. .el-overlay{
  771. .startToDia{
  772. .el-dialog__body{
  773. padding: 30px 60px 30px 20px !important;
  774. .periodFrom{
  775. .el-select, .el-input{
  776. width: 100%;
  777. }
  778. .el-input{
  779. height: 30px;
  780. }
  781. }
  782. .flowSty{
  783. width: 100%;
  784. height: 70vh;
  785. }
  786. }
  787. }
  788. }
  789. }
  790. }
  791. </style>