maintenanceStaticAll.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. <template>
  2. <el-dialog
  3. v-loading="loading"
  4. :title="title"
  5. :visible.sync="dialogVisible"
  6. :close-on-click-modal="false"
  7. :close-on-press-escape="false"
  8. :show-close="false"
  9. append-to-body
  10. fullscreen
  11. class="dialog paper-detail-dialog"
  12. top="0"
  13. >
  14. <div slot="title" class="dialog-title">
  15. <span class="dialogtitle">{{ title }}</span>
  16. <div>
  17. <ibps-toolbar :actions="toolbars" @action-event="handleActionEvent" />
  18. </div>
  19. </div>
  20. <div class="container">
  21. <div class="left" :style="{width:initWidth}">
  22. <div class="search">
  23. <div class="item">
  24. <div class="label">维护月份:</div>
  25. <div class="content">
  26. <el-date-picker
  27. v-model="month"
  28. :clearable="false"
  29. type="month"
  30. placeholder="选择查询的月份"
  31. value-format="yyyy-MM"
  32. :picker-options="pickerOptions"
  33. size="mini"
  34. @change="handleMonthChange"
  35. />
  36. </div>
  37. </div>
  38. <div class="item">
  39. <div class="label">部门:</div>
  40. <ibps-user-selector
  41. v-model="position"
  42. type="position"
  43. readonly-text="text"
  44. :disabled="false"
  45. :multiple="false"
  46. :filter="filter"
  47. filtrate
  48. />
  49. </div>
  50. <div class="item">
  51. <div class="label">设备类型:</div>
  52. <el-select v-model="deviceType" placeholder="请选择" size="mini" :clearable="true">
  53. <el-option
  54. v-for="item in ['检验系统','通用设备']"
  55. :key="item"
  56. :label="item"
  57. :value="item"
  58. />
  59. </el-select>
  60. </div>
  61. <div class="item">
  62. <div class="label">设备编号:</div>
  63. <div class="content">
  64. <el-input v-model="deviceNo" size="mini" />
  65. </div>
  66. </div>
  67. <div class="item">
  68. <div class="label">设备名称:</div>
  69. <div class="content">
  70. <el-input v-model="deviceName" size="mini" />
  71. </div>
  72. </div>
  73. </div>
  74. <div class="hearder">
  75. <div class="agend">
  76. <div class="descript">
  77. <div class="item">
  78. <div class="green-circle" />
  79. <span>全部完成</span>
  80. </div>
  81. <div class="item">
  82. <div class="orange-circle" />
  83. <span>部分完成</span>
  84. </div>
  85. <div class="item">
  86. <div class="red-circle" />
  87. <span>全部未完成</span>
  88. </div>
  89. <div class="item">
  90. <div class="grey-bg" />
  91. <span>设备未使用</span>
  92. </div>
  93. <div class="item">
  94. <div class="red-bg" />
  95. <span>设备异常</span>
  96. </div>
  97. <div class="item" style="margin-left:60px">
  98. <span>设备异常次数:{{ formatData.repairCount }}</span>
  99. </div>
  100. <div class="item">
  101. <span>设备总维护次数:{{ formatData.maintenanceCount }}</span>
  102. </div>
  103. <div class="item">
  104. <span>设备故障率:{{ formatData.faultRate }} %</span>
  105. <el-tooltip
  106. effect="dark"
  107. content="设备故障率计算公式:异常次数/总维护次数*100%,待处理与未使用不计入总维护次数中。"
  108. placement="top"
  109. >
  110. <i class="el-icon-question question-icon" />
  111. </el-tooltip>
  112. </div>
  113. </div>
  114. <div class="item-time">
  115. <span>统计时间:{{ curTime }}</span>
  116. </div>
  117. </div>
  118. </div>
  119. <div v-if="fliterData.length>0" class="table">
  120. <div class="column">
  121. <div class="item">设备名称/日期</div>
  122. <div v-for="(item,index) in fliterData" :key="index" class="item" style="cursor:pointer" @click="goLookStatic(item)">
  123. <span style="padding:0 6px" :title="item.she_bei_ming_chen">{{ item.original_device_n }}/{{ item.she_bei_ming_chen }}</span>
  124. </div>
  125. </div>
  126. <div class="column">
  127. <div v-for="(item,index) in formatData.list" :key="index" class="content-item">
  128. <div class="item">{{ index+1 }}</div>
  129. <div
  130. v-for="(i,ind) in item"
  131. :key="ind"
  132. class="item"
  133. :class="{
  134. unusual: i.status === false, // 异常
  135. unused: i.isUsed === false // 未使用
  136. }"
  137. >
  138. <el-tooltip v-show="i.count>0" class="item" effect="light" placement="top-start">
  139. <template slot="content">
  140. <div>
  141. <span v-if="i.todo">待处理:{{ i.todo }};</span>
  142. <span v-if="i.done">已完成:{{ i.done }};</span>
  143. <div v-for="(ii,indd) in i.data" :key="indd" class="detail">
  144. <el-divider />
  145. <div class="detail-item">
  146. <div class="item" style="margin:2px 0">处理人:{{ switchIdToUserName(ii.bian_zhi_ren_)|| '/' }}</div>
  147. <div class="item" style="margin:2px 0">设备状况:{{ ii.wei_hu_zhuang_tai|| '/' }}</div>
  148. <div class="item" style="margin:2px 0">维护项目:{{ ii.wei_hu_xiang_mu_c|| '/' }}</div>
  149. <div class="item" style="margin:2px 0">备注:{{ ii.bei_zhu_|| '/' }}</div>
  150. </div>
  151. </div>
  152. </div>
  153. </template>
  154. <div v-if="i.todo===0" class="green-circle" />
  155. <div v-else-if="i.done===0" class="red-circle" />
  156. <div v-else class="orange-circle" />
  157. </el-tooltip>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. <el-empty v-else description="暂无数据" />
  163. </div>
  164. <MaintenanceStatic v-if="MaintenanceStaticVisible" :dialog-visible.sync="MaintenanceStaticVisible" :params="dialogParams" />
  165. </div>
  166. </el-dialog>
  167. </template>
  168. <script>
  169. import MaintenanceStatic from './maintenanceStatic.vue'
  170. import xlsx from 'xlsx'
  171. import fs from 'file-saver'
  172. import dayjs from 'dayjs'
  173. import ibpsUserSelector from '@/business/platform/org/selector'
  174. export default {
  175. components: {
  176. ibpsUserSelector, MaintenanceStatic
  177. },
  178. props: {
  179. params: {
  180. type: Object,
  181. default: function () {
  182. return {}
  183. }
  184. },
  185. dialogVisible: {
  186. type: Boolean,
  187. default: false
  188. }
  189. },
  190. data () {
  191. const monthList = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
  192. const monthValue = dayjs().format('YYYY-MM')
  193. const year = +monthValue.split('-')[0]
  194. const month = +monthValue.split('-')[1]
  195. const monthDays = monthList[month - 1]
  196. if ((year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0)) {
  197. monthList[1] = 29
  198. }
  199. const { userId, position, level, mainPosition } = this.$store.getters
  200. return {
  201. faultRate: 0,
  202. maintenanceCount: 0,
  203. repairCount: 0,
  204. dialogParams: {},
  205. MaintenanceStaticVisible: false,
  206. pickerOptions: {
  207. disabledDate (time) {
  208. return time.getTime() > Date.now()
  209. }
  210. },
  211. curTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
  212. deviceNo: '',
  213. deviceName: '',
  214. deviceType: '',
  215. monthList: monthList,
  216. month: monthValue,
  217. monthDays: monthDays,
  218. userId: userId,
  219. position: (mainPosition && mainPosition.id) || position,
  220. level: level.second || level.first,
  221. loading: false,
  222. title: '设备维护统计',
  223. toolbars: [
  224. { key: 'export', label: '导出', type: 'primary', hidden: true },
  225. { key: 'cancel', label: '退出', type: 'danger' }
  226. ],
  227. initWidth: '1800px',
  228. isEdit: false,
  229. isFinished: false,
  230. readonly: false,
  231. preParams: {},
  232. Ids: [],
  233. form: {
  234. },
  235. rules: {
  236. },
  237. dataList: [],
  238. type: ['日保养', '周保养', '月保养', '季度保养', '半年保养', '年保养', '按需保养'],
  239. filter: [{
  240. descVal: '1',
  241. includeSub: true,
  242. old: 'position',
  243. partyId: this.$store.getters.userInfo.employee.positions,
  244. partyName: '',
  245. scriptContent: '',
  246. type: 'user',
  247. userType: 'position'
  248. }]
  249. }
  250. },
  251. computed: {
  252. deviceColumns () {
  253. return {
  254. 'leiXing': '保养类型',
  255. 'One': this.month + '-01',
  256. 'Two': this.month + '-02',
  257. 'Three': this.month + '-03',
  258. 'Four': this.month + '-04',
  259. 'Five': this.month + '-05',
  260. 'Six': this.month + '-06',
  261. 'Seven': this.month + '-07',
  262. 'Eight': this.month + '-08',
  263. 'Nine': this.month + '-09',
  264. 'Ten': this.month + '-10',
  265. 'Eleven': this.month + '-11',
  266. 'Twelve': this.month + '-12',
  267. 'Thirteen': this.month + '-13',
  268. 'Fourteen': this.month + '-14',
  269. 'Fifteen': this.month + '-15',
  270. 'Sixteen': this.month + '-16',
  271. 'Seventeen': this.month + '-17',
  272. 'Eighteen': this.month + '-18',
  273. 'Nineteen': this.month + '-19',
  274. 'Twenty': this.month + '-20',
  275. 'Twenty-One': this.month + '-21',
  276. 'Twenty-Two': this.month + '-22',
  277. 'Twenty-Three': this.month + '-23',
  278. 'Twenty-Four': this.month + '-24',
  279. 'Twenty-Five': this.month + '-25',
  280. 'Twenty-Six': this.month + '-26',
  281. 'Twenty-Seven': this.month + '-27',
  282. 'Twenty-Eight': this.month + '-28',
  283. 'Twenty-Nine': this.month + '-29',
  284. 'Thirty': this.month + '-30',
  285. 'Thirty-One': this.month + '-31'
  286. }
  287. },
  288. fliterData () {
  289. let fliterData = this.dataList
  290. if (this.position) {
  291. fliterData = fliterData.filter(item => item.bian_zhi_bu_men_ === this.position)
  292. }
  293. if (this.deviceNo) {
  294. fliterData = fliterData.filter(item => item.original_device_n?.indexOf(this.deviceNo) > -1)
  295. }
  296. if (this.deviceType) {
  297. fliterData = fliterData.filter(item => item.she_bei_lei_xing_?.indexOf(this.deviceType) > -1)
  298. }
  299. if (this.deviceName) {
  300. fliterData = fliterData.filter(item => item.she_bei_ming_chen?.indexOf(this.deviceName) > -1)
  301. }
  302. const result = []
  303. fliterData.forEach(item => {
  304. const { ri_qi_, she_bei_ming_chen, original_device_n, she_bei_lei_xing_ } = item
  305. const t = result.find(i => i.ri_qi_ === ri_qi_)
  306. if (t) {
  307. t.children.push(item)
  308. } else {
  309. result.push({
  310. she_bei_ming_chen: she_bei_ming_chen,
  311. ri_qi_: ri_qi_,
  312. original_device_n,
  313. she_bei_lei_xing_,
  314. children: [item]
  315. })
  316. }
  317. })
  318. // console.log('fliterData', result)
  319. return result
  320. },
  321. formatData () {
  322. let repairCount = 0 // 异常
  323. let maintenanceCount = 0 // 维护
  324. const answer = new Array(this.monthDays)
  325. for (let i = 0; i < this.monthDays; i++) {
  326. const arr = []
  327. const day = ('0' + (i + 1)).slice(-2)
  328. const fullDay = this.month + '-' + day
  329. // console.log(fullDay)
  330. this.fliterData.forEach(item => {
  331. const obj = {
  332. data: [],
  333. count: 0,
  334. todo: 0,
  335. done: 0,
  336. status: true,
  337. isUsed: true
  338. }
  339. const tempList = item.children.filter(k => k.ji_hua_shi_jian_ === fullDay)
  340. obj.count = tempList.length
  341. obj.todo = tempList.filter(k => k.shi_fou_guo_shen_ === '待处理').length
  342. const yiwancheng = tempList.filter(k => k.shi_fou_guo_shen_ === '已完成')
  343. obj.done = yiwancheng.length
  344. obj.data = yiwancheng
  345. const weixiu = obj.data.filter(item => item.wei_hu_zhuang_tai === '异常')
  346. obj.isUsed = !obj.data.some(item => item.wei_hu_zhuang_tai === '未使用')
  347. obj.status = weixiu.length === 0
  348. repairCount += weixiu.length
  349. maintenanceCount += yiwancheng.filter(item => item.wei_hu_zhuang_tai !== '未使用').length
  350. arr.push(obj)
  351. })
  352. answer[i] = arr
  353. }
  354. // 故障率
  355. const faultRate = maintenanceCount === 0 ? '0.00' : ((repairCount / maintenanceCount) * 100).toFixed(2)
  356. // console.log('data', answer)
  357. return { list: answer, repairCount, maintenanceCount, faultRate }
  358. }
  359. },
  360. mounted () {
  361. this.init()
  362. },
  363. methods: {
  364. handleActionEvent ({ key }) {
  365. switch (key) {
  366. case 'cancel':
  367. this.closeDialog()
  368. break
  369. case 'export':
  370. this.handleExport()
  371. break
  372. default:
  373. break
  374. }
  375. },
  376. // 查看设备统计
  377. goLookStatic (row) {
  378. this.dialogParams = row
  379. this.dialogParams.searchMonth = this.month
  380. this.MaintenanceStaticVisible = true
  381. },
  382. // 人员id 转人员名称
  383. switchIdToUserName (id) {
  384. const { userList } = this.$store.getters
  385. const temp = userList.find(item => item.userId === id)
  386. return temp ? temp.userName : ''
  387. },
  388. xlsx (json, fields, filename = '.xlsx') { // 导出xlsx
  389. json.forEach(item => {
  390. for (const i in item) {
  391. if (fields.hasOwnProperty(i)) {
  392. item[fields[i]] = item[i]
  393. }
  394. delete item[i] // 删除原先的对象属性
  395. }
  396. })
  397. const sheetName = filename // excel的文件名称
  398. const wb = xlsx.utils.book_new() // 工作簿对象包含一SheetNames数组,以及一个表对象映射表名称到表对象。XLSX.utils.book_new实用函数创建一个新的工作簿对象。
  399. const ws = xlsx.utils.json_to_sheet(json, { header: Object.values(fields) }) // 将JS对象数组转换为工作表。
  400. wb.SheetNames.push(sheetName)
  401. wb.Sheets[sheetName] = ws
  402. // console.log('json', ws)
  403. const defaultCellStyle = { font: { name: 'Verdana', sz: 13, color: 'FF00FF88' }, fill: { fgColor: { rgb: 'FFFFAA00' }}}// 设置表格的样式
  404. const wopts = { bookType: 'xlsx', bookSST: false, type: 'binary', cellStyles: true, defaultCellStyle: defaultCellStyle, showGridLines: false } // 写入的样式
  405. const wbout = xlsx.write(wb, wopts)
  406. const blob = new Blob([this.s2ab(wbout)], { type: 'application/octet-stream' })
  407. fs.saveAs(blob, filename + '.xlsx')
  408. },
  409. s2ab (s) {
  410. let buf
  411. if (typeof ArrayBuffer !== 'undefined') {
  412. buf = new ArrayBuffer(s.length)
  413. const view = new Uint8Array(buf)
  414. for (let i = 0; i !== s.length; ++i) view[i] = s.charCodeAt(i) & 0xff
  415. return buf
  416. } else {
  417. buf = new Array(s.length)
  418. for (let i = 0; i !== s.length; ++i) buf[i] = s.charCodeAt(i) & 0xFF
  419. return buf
  420. }
  421. },
  422. getTimeStamp () {
  423. return dayjs().format('YYYYMMDDHHmmss')
  424. },
  425. handleExport () {
  426. const exportData = this.type.map((item, index) => {
  427. const obj = { 'leiXing': item }
  428. for (let i = 1; i < this.monthDays + 1; i++) {
  429. const t = this.formatData.list[i - 1][index]
  430. const text = `已完成:${t.done};待处理:${t.todo}`
  431. obj[Object.keys(this.deviceColumns)[i]] = text
  432. }
  433. return obj
  434. })
  435. // const copyData = JSON.parse(JSON.stringify(exportData))
  436. // console.log('导出数据', copyData)
  437. this.xlsx(exportData, this.deviceColumns, '设备维护统计' + this.getTimeStamp())
  438. this.$message.success('导出设备成功!')
  439. },
  440. async handleMonthChange (val) {
  441. const year = +val.split('-')[0]
  442. const month = +val.split('-')[1]
  443. this.monthDays = this.monthList[month - 1]
  444. if ((year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0)) {
  445. this.monthList[1] = 29
  446. } else {
  447. this.monthList[1] = 28
  448. }
  449. await this.init()
  450. },
  451. // 获取人员部门
  452. getPersonPosition (id) {
  453. const userList = this.$store.getters.userList
  454. const bianzhiUserid = userList.find(i => i.userId === id)
  455. if (bianzhiUserid) {
  456. return bianzhiUserid.positionId
  457. }
  458. },
  459. checkRequired (flag) {
  460. },
  461. // 刷新
  462. async goRefresh () {
  463. },
  464. // 关闭当前窗口
  465. closeDialog (needRefresh) {
  466. this.$emit('update:dialogVisible', false, needRefresh)
  467. },
  468. async init () {
  469. this.loading = true
  470. this.title = `月度设备维护统计`
  471. const y = +this.month.split('-')[0]
  472. const m = +this.month.split('-')[1]
  473. const sql = `select a.id_ AS mainId,a.shi_fou_guo_shen_,a.bian_zhi_bu_men_,c.wei_hu_xiang_mu_c,a.bian_zhi_ren_,a.she_bei_ming_chen,a.she_bei_bian_hao_,a.ri_qi_,a.original_device_n,a.zhu_zhou_qi_,a.nei_rong_qing_kua,a.ji_hua_shi_jian_,c.she_bei_lei_xing_,c.wei_hu_ri_qi_,c.wei_hu_lei_xing_,c.ri_qi_shu_zi_,d.bei_zhu_,d.wei_hu_zhuang_tai from t_mjsbwhbyjlby a left join t_mjsbwhjhzb b on a.ji_hua_wai_jian_ = b.id_ left join v_device_devicemaintenance c on b.she_bei_bian_hao_ = c.id_ left join t_mjsbwhbyjlzby d on a.id_ = d.parent_id_ where a.shi_fou_guo_shen_!='已删除' and YEAR(a.ji_hua_shi_jian_) = ${y} and MONTH(a.ji_hua_shi_jian_) = ${m} and a.di_dian_='${this.level}'`
  474. const { variables: { data }} = await this.$common.request('sql', sql)
  475. // console.log('data', data)
  476. this.dataList = data
  477. this.dataList.forEach(item => {
  478. if (!Object.hasOwn(item, 'wei_hu_lei_xing_') || !item.wei_hu_lei_xing_) {
  479. item.wei_hu_lei_xing_ = '按需保养'
  480. }
  481. })
  482. this.loading = false
  483. }
  484. }
  485. }
  486. </script>
  487. <style lang="scss" scoped>
  488. .paper-detail-dialog {
  489. ::v-deep {
  490. .el-dialog__header {
  491. text-align: center;
  492. }
  493. }
  494. .dialog-title{
  495. display: flex;
  496. align-items: center;
  497. justify-content: center;
  498. div{
  499. z-index: 99999999;
  500. position: absolute;
  501. right:8vw;
  502. }
  503. .dialogtitle{
  504. font-size: 22px;
  505. font-family: SimHei;
  506. font-weight: bold;
  507. color: #222;
  508. }
  509. }
  510. .container {
  511. display: flex;
  512. width: 100%;
  513. justify-content: center;
  514. .el-row{
  515. margin: 0 !important;
  516. }
  517. .required{
  518. color: #606266 !important;
  519. &::before{
  520. content: '*';
  521. margin: 0 4px 0 -7.5px;
  522. color: red;
  523. }
  524. }
  525. .left{
  526. height: calc(100vh - 100px);
  527. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  528. padding:20px;
  529. overflow-y: auto;
  530. .agend{
  531. margin: 20px 0 10px 0;
  532. display: flex;
  533. justify-content: space-between;
  534. .descript{
  535. display: flex;
  536. gap: 18px;
  537. .item{
  538. width: auto;
  539. display: flex;
  540. align-items: center;
  541. gap: 4px;
  542. .green-circle {
  543. width: 12px;
  544. height: 12px;
  545. background-color: #67C23A;
  546. border-radius: 50%;
  547. }
  548. .red-circle {
  549. width: 12px;
  550. height: 12px;
  551. background-color: #F56C6C;
  552. border-radius: 50%;
  553. }
  554. .orange-circle {
  555. width: 12px;
  556. height: 12px;
  557. background-color: #E6A23C;
  558. border-radius: 50%;
  559. }
  560. .red-bg {
  561. width: 12px;
  562. height: 12px;
  563. background-color: #F56C6C;
  564. opacity: .7;
  565. }
  566. .grey-bg{
  567. width: 12px;
  568. height: 12px;
  569. background-color: #a6b1bd;
  570. opacity: .7;
  571. }
  572. }
  573. }
  574. }
  575. .search{
  576. display: flex;
  577. .item{
  578. width: 300px;
  579. display: flex;
  580. align-items: center;
  581. .label{
  582. font-size: 12px;
  583. width: 60px;
  584. }
  585. }
  586. }
  587. .item{
  588. width: 100%;
  589. }
  590. .title{
  591. margin: 16px 0 6px -16px;
  592. }
  593. .table{
  594. display: flex;
  595. .column{
  596. flex: 1;
  597. &:nth-child(2){
  598. display: flex;
  599. }
  600. >.item{
  601. height: 46px;
  602. line-height: 46px;
  603. border-bottom: 1px solid #333;
  604. border-right: 1px solid #333;
  605. border-left: 1px solid #333;
  606. span{
  607. display: inline-block;
  608. max-width: 320px;
  609. text-overflow: ellipsis;
  610. white-space: nowrap;
  611. overflow: hidden;
  612. }
  613. }
  614. @media screen and (max-width: 1800px) {
  615. >.item{
  616. height: 40px;
  617. line-height: 40px;
  618. }
  619. }
  620. @media screen and (max-width: 1550px) {
  621. >.item{
  622. height: 34px;
  623. line-height: 34px;
  624. }
  625. }
  626. @media screen and (max-width: 1450px) {
  627. >.item{
  628. height: 28px;
  629. line-height: 28px;
  630. }
  631. }
  632. >.item:nth-child(1){
  633. font-weight: 600;
  634. border-top: 1px solid #333;
  635. height: 30px;
  636. line-height: 30px;
  637. text-align: center;
  638. }
  639. >.item:not(:first-child) {
  640. :hover{
  641. color: #409EFF;
  642. }
  643. }
  644. .content-item{
  645. .unusual{
  646. background-color: #F56C6C !important;
  647. opacity: .7 !important;
  648. }
  649. .unused{
  650. background-color: #a6b1bd;
  651. opacity: .7;
  652. }
  653. >.item{
  654. position: relative;
  655. height: 46px;
  656. width: 46px;
  657. text-align: center;
  658. line-height: 46px;
  659. border-bottom: 1px solid #333;
  660. border-right: 1px solid #333;
  661. }
  662. @media screen and (max-width: 1800px) {
  663. >.item{
  664. height: 40px;
  665. width: 40px;
  666. line-height: 40px;
  667. }
  668. }
  669. @media screen and (max-width: 1550px) {
  670. >.item{
  671. height: 34px;
  672. width: 34px;
  673. line-height: 34px;
  674. }
  675. }
  676. @media screen and (max-width: 1450px) {
  677. >.item{
  678. height: 28px;
  679. width: 28px;
  680. line-height: 28px;
  681. }
  682. }
  683. >.item:nth-child(1){
  684. font-weight: 600;
  685. border-top: 1px solid #333;
  686. height: 30px;
  687. line-height: 30px;
  688. }
  689. .green-circle {
  690. cursor: pointer;
  691. position: absolute;
  692. top: 50%;
  693. left: 50%;
  694. transform: translate(-50%, -50%);
  695. width: 10px;
  696. height: 10px;
  697. background-color: #67C23A;
  698. border-radius: 50%;
  699. }
  700. .red-circle {
  701. cursor: pointer;
  702. position: absolute;
  703. top: 50%;
  704. left: 50%;
  705. transform: translate(-50%, -50%);
  706. width: 10px;
  707. height: 10px;
  708. background-color: #F56C6C;
  709. border-radius: 50%;
  710. }
  711. .orange-circle {
  712. cursor: pointer;
  713. position: absolute;
  714. top: 50%;
  715. left: 50%;
  716. transform: translate(-50%, -50%);
  717. width: 10px;
  718. height: 10px;
  719. background-color: #E6A23C;
  720. border-radius: 50%;
  721. }
  722. }
  723. }
  724. }
  725. }
  726. }
  727. }
  728. ::v-deep {
  729. .el-form-item__label{
  730. text-align: left;
  731. font-size: 12px !important;
  732. }
  733. .el-form-item__content{
  734. font-size: 12px !important;
  735. }
  736. .el-divider--horizontal{
  737. margin: 10px 0;
  738. }
  739. }
  740. </style>