project-list.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. <template>
  2. <div v-loading="!isAfterRender" element-loading-text="加载中..." class="hc-full">
  3. <hc-table
  4. v-if="isAfterRender" :column="tableColumn" :datas="tableData" :index-style="{ width: 60 }" is-check
  5. :check-style="{ fixed: true, width: 29 }" class="hc-project-list-table" @selection-change="tableCheckChange"
  6. >
  7. <template #name="{ row }">
  8. <el-link type="primary" @click="rowNameClick(row)">{{ row.name }}</el-link>
  9. </template>
  10. <template #action="{ row }">
  11. <el-link v-if="isAdminAuth" type="warning" @click="completion(row)">项目完成情况</el-link>
  12. <el-link type="primary" @click="examine(row)">查看</el-link>
  13. <el-link v-if="isAdminAuth" v-del-com:[delTableItem]="row" type="danger">删除</el-link>
  14. <el-link v-yes-com:[deriveTableItem]="row" type="success">导出</el-link>
  15. </template>
  16. </hc-table>
  17. <!-- 查看详情 -->
  18. <hc-drawer v-model="isDrawer" to-id="hc-main-box" is-close>
  19. <hc-card class="hc-project-list-drawer">
  20. <template #header>
  21. <div class="flex-1 text-center text-[24px] font-bold">项目详情</div>
  22. </template>
  23. <hc-info-table>
  24. <tr>
  25. <hc-info-table-td is-title width="30px" center>项目阶段</hc-info-table-td>
  26. <hc-info-table-td center>{{ rowDetail?.projectStageName }}</hc-info-table-td>
  27. <hc-info-table-td is-title width="30px" center>项目类型</hc-info-table-td>
  28. <hc-info-table-td center>{{ rowDetail?.projectTypeName }}</hc-info-table-td>
  29. </tr>
  30. <tr>
  31. <hc-info-table-td is-title width="30px" center>项目名称</hc-info-table-td>
  32. <hc-info-table-td center>{{ rowDetail?.name }}</hc-info-table-td>
  33. <hc-info-table-td is-title width="30px" center>建设规模</hc-info-table-td>
  34. <hc-info-table-td center>{{ rowDetail?.buildScaleName }}</hc-info-table-td>
  35. </tr>
  36. <tr>
  37. <hc-info-table-td is-title width="30px" center>开 工 年</hc-info-table-td>
  38. <hc-info-table-td center>{{ rowDetail?.startYear }}</hc-info-table-td>
  39. <hc-info-table-td is-title width="30px" center>完 工 年</hc-info-table-td>
  40. <hc-info-table-td center>{{ rowDetail?.endYear }}</hc-info-table-td>
  41. </tr>
  42. <tr>
  43. <hc-info-table-td is-title width="30px" center>总投资</hc-info-table-td>
  44. <hc-info-table-td center>{{ rowDetail?.allInvestMoney }}</hc-info-table-td>
  45. <hc-info-table-td is-title width="30px" center>“十四五”计划投资</hc-info-table-td>
  46. <hc-info-table-td center>{{ rowDetail?.fourteenFiveInvest }}</hc-info-table-td>
  47. </tr>
  48. <tr>
  49. <hc-info-table-td is-title width="30px" center>市级重点项目</hc-info-table-td>
  50. <hc-info-table-td center>{{ rowDetail.isFocusProject === 1 ? '是' : '否' }}</hc-info-table-td>
  51. <hc-info-table-td is-title width="30px" center>交通强国建设试点任务</hc-info-table-td>
  52. <hc-info-table-td center>{{ rowDetail?.isPilotPlan === 1 ? '是' : '否' }}</hc-info-table-td>
  53. </tr>
  54. <tr>
  55. <hc-info-table-td is-title width="30px" center>牵头单位</hc-info-table-td>
  56. <hc-info-table-td center>{{ rowDetail?.leaderUnit }}</hc-info-table-td>
  57. <hc-info-table-td is-title width="30px" center rowspan="2">配合单位</hc-info-table-td>
  58. <hc-info-table-td center rowspan="2">{{ rowDetail?.assistUnit }}</hc-info-table-td>
  59. </tr>
  60. <tr>
  61. <hc-info-table-td is-title width="30px" center>责任单位</hc-info-table-td>
  62. <hc-info-table-td center>{{ rowDetail?.dutyUnit }}</hc-info-table-td>
  63. </tr>
  64. </hc-info-table>
  65. <div class="hc-project-list-drawer-year">
  66. <el-scrollbar>
  67. <div class="relative p-2 pt-3">
  68. <hc-card-item class="year-detail">
  69. <template #header>
  70. <div class="flex-1 text-center text-[14px]">
  71. <HcDropdown v-model="yearKey" :datas="yearData.list" text="年" :props="{ key: 'planYear', label: 'planYear' }" @change="yearChange" />
  72. </div>
  73. </template>
  74. <el-table v-if="yearData.list && yearData.list.length > 0" :data="yearData.list[yearIndex].list" border class="w-full" :span-method="tableYearMethod">
  75. <el-table-column prop="planQuarterName" label="季度" width="100" align="center" />
  76. <el-table-column prop="planMonthName" class-name="line" width="120" align="center">
  77. <template #header>
  78. <div class="hc-table-th-line">
  79. <span class="left">月份</span>
  80. <span class="right">完成情况</span>
  81. </div>
  82. </template>
  83. </el-table-column>
  84. <el-table-column prop="planInvestMoney" label="计划完成投资额(亿元)" width="100" align="center" />
  85. <el-table-column prop="investMoney" label="投资完成额(亿元)" width="100" align="center" />
  86. <el-table-column prop="investUnfinishedMoney" label="投资未完成额(亿元)" width="100" align="center" />
  87. <el-table-column prop="yearlyTarget" label="全年目标" width="100" align="center" />
  88. <el-table-column prop="workPlan " label="工作计划" width="100" align="center" />
  89. <el-table-column prop="workProgressAll" label="累计进展计划" align="center" />
  90. <el-table-column prop="planRatio" label="形象进度百分比(%)" width="100" align="center" />
  91. <el-table-column prop="workProgress" label="工作计划进展计划" align="center" />
  92. </el-table>
  93. <hc-info-table v-if="yearData.list && yearData.list.length > 0" class="mt-[-1px]">
  94. <tr>
  95. <hc-info-table-td is-title width="130px" center>该年累计完成投资(亿元)</hc-info-table-td>
  96. <hc-info-table-td center>{{ yearData.list[yearIndex].yearFinishInvest || "-" }}</hc-info-table-td>
  97. <hc-info-table-td is-title width="130px" center>该年力争完成投资(亿元)</hc-info-table-td>
  98. <hc-info-table-td center>{{ yearData.list[yearIndex]?.yearlyInvest || "-" }}</hc-info-table-td>
  99. <hc-info-table-td is-title width="130px" center>该年累计未完成投资(亿元)</hc-info-table-td>
  100. <hc-info-table-td center>{{ yearData.list[yearIndex]?.yearUnfinishedInvest || "-" }}</hc-info-table-td>
  101. </tr>
  102. </hc-info-table>
  103. <hc-info-table v-if="yearData.list && yearData.list.length > 0" class="mt-[-1px]">
  104. <tr>
  105. <hc-info-table-td is-title width="30px" center>存在问题</hc-info-table-td>
  106. <hc-info-table-td center>{{ yearData.list[yearIndex]?.questionable || '-' }}</hc-info-table-td>
  107. <hc-info-table-td is-title width="30px" center>工作建议</hc-info-table-td>
  108. <hc-info-table-td center>{{ yearData.list[yearIndex]?.workAdvise || '-' }}</hc-info-table-td>
  109. </tr>
  110. <tr>
  111. <hc-info-table-td is-title width="30px" center>填报单位</hc-info-table-td>
  112. <hc-info-table-td center>{{ yearData.list[yearIndex]?.writeUnit || '-' }}</hc-info-table-td>
  113. <hc-info-table-td is-title width="30px" center>联系人</hc-info-table-td>
  114. <hc-info-table-td center>{{ yearData.list[yearIndex]?.linkman || '-' }}</hc-info-table-td>
  115. </tr>
  116. </hc-info-table>
  117. </hc-card-item>
  118. </div>
  119. </el-scrollbar>
  120. </div>
  121. </hc-card>
  122. </hc-drawer>
  123. <!-- 项目完成情况 -->
  124. <hc-drawer v-model="isCompletionDrawer" to-id="hc-main-box" is-close>
  125. <hc-card class="hc-project-list-drawer" is-action-btn>
  126. <template #header>
  127. <div class="flex-1 text-center text-[24px] font-bold">项目完成情况</div>
  128. </template>
  129. <hc-info-table>
  130. <tr>
  131. <hc-info-table-td is-title width="30px" center>项目名称</hc-info-table-td>
  132. <hc-info-table-td center>{{ rowDetail?.name }}</hc-info-table-td>
  133. <hc-info-table-td is-title width="30px" center>项目类型</hc-info-table-td>
  134. <hc-info-table-td center>{{ rowDetail?.projectTypeName }}</hc-info-table-td>
  135. </tr>
  136. </hc-info-table>
  137. <div class="hc-project-list-drawer-year detail">
  138. <el-scrollbar>
  139. <div class="relative p-2 pt-3">
  140. <hc-card-item class="year-detail edit">
  141. <template #header>
  142. <div class="flex-1 text-center text-[14px]">
  143. <HcDropdown v-model="yearKey" :datas="yearData.list" text="年" :props="{ key: 'planYear', label: 'planYear' }" @change="yearChange" />
  144. </div>
  145. </template>
  146. <el-table v-if="yearData.list && yearData.list.length > 0" :data="yearData.list[yearIndex].list" border class="w-full" :span-method="tableYearMethod1">
  147. <el-table-column prop="planQuarterName" label="季度" width="100" align="center" />
  148. <el-table-column prop="planMonthName" class-name="line" width="120" align="center">
  149. <template #header>
  150. <div class="hc-table-th-line">
  151. <span class="left">月份</span>
  152. <span class="right">完成情况</span>
  153. </div>
  154. </template>
  155. </el-table-column>
  156. <el-table-column prop="planInvestMoney" label="计划完成投资额(亿元)" width="100" align="center">
  157. <template #default="{ row }">
  158. <hc-body>
  159. <hc-table-input v-model="row.planInvestMoney" disabled />
  160. </hc-body>
  161. </template>
  162. </el-table-column>
  163. <el-table-column prop="investMoney" label="投资完成额(亿元)" width="100" align="center">
  164. <template #default="{ row }">
  165. <hc-body>
  166. <hc-table-input v-model="row.investMoney" />
  167. </hc-body>
  168. </template>
  169. </el-table-column>
  170. <el-table-column prop="investMoneyAll" label="累计投资完成额(亿元)" width="100" align="center">
  171. <template #default="{ row }">
  172. <hc-body>
  173. <hc-table-input v-model="row.investMoneyAll" disabled />
  174. </hc-body>
  175. </template>
  176. </el-table-column>
  177. <el-table-column prop="workPlan" label="工作计划" width="100" align="center">
  178. <template #default="{ row }">
  179. <hc-body>
  180. <hc-table-input v-model="row.workPlan" type="textarea" disabled resize="none" />
  181. </hc-body>
  182. </template>
  183. </el-table-column>
  184. <el-table-column prop="workProgress" label="工作计划进展情况" align="center">
  185. <template #default="{ row }">
  186. <hc-body>
  187. <hc-table-input v-model="row.workProgress" type="textarea" resize="none" :disabled="yearData.list[yearIndex].isCanFill === 1 ? false : true" />
  188. </hc-body>
  189. </template>
  190. </el-table-column>
  191. <el-table-column prop="workProgress" label="累计进展情况" align="center">
  192. <template #default="{ row }">
  193. <hc-body>
  194. <hc-table-input v-model="row.workProgress" type="textarea" resize="none" :disabled="yearData.list[yearIndex].isCanFill === 1 ? false : true" />
  195. </hc-body>
  196. </template>
  197. </el-table-column>
  198. <el-table-column prop="planRatio" label="形象进度百分比(%)" width="100" align="center">
  199. <template #default="{ row }">
  200. <hc-body>
  201. <hc-table-input v-model="row.planRatio" :disabled="yearData.list[yearIndex].isCanFill === 1 ? false : true" />
  202. </hc-body>
  203. </template>
  204. </el-table-column>
  205. </el-table>
  206. <hc-info-table v-if="yearData.list && yearData.list.length > 0" class="mt-[-1px]">
  207. <tr>
  208. <hc-info-table-td is-title width="30px" center>存在问题</hc-info-table-td>
  209. <hc-info-table-td center>
  210. <el-input v-model="yearData.list[yearIndex].questionable" type="textarea" resize="none" />
  211. </hc-info-table-td>
  212. <hc-info-table-td is-title width="30px" center>工作建议</hc-info-table-td>
  213. <hc-info-table-td center>
  214. <el-input v-model=" yearData.list[yearIndex].workAdvise" type="textarea" resize="none" />
  215. </hc-info-table-td>
  216. </tr>
  217. <tr>
  218. <hc-info-table-td is-title width="30px" center>填报单位</hc-info-table-td>
  219. <hc-info-table-td center>
  220. <el-input v-model="yearData.list[yearIndex].writeUnit " />
  221. </hc-info-table-td>
  222. <hc-info-table-td is-title width="30px" center>联系人</hc-info-table-td>
  223. <hc-info-table-td center>
  224. <el-input v-model="yearData.list[yearIndex].linkman" />
  225. </hc-info-table-td>
  226. </tr>
  227. </hc-info-table>
  228. </hc-card-item>
  229. </div>
  230. </el-scrollbar>
  231. </div>
  232. <template #action>
  233. <el-button type="info" @click="isCompletionDrawer = false">取消</el-button>
  234. <el-button type="warning" :loading="saveCompleLoading" @click="saveComplete">保存</el-button>
  235. </template>
  236. </hc-card>
  237. </hc-drawer>
  238. </div>
  239. </template>
  240. <script setup>
  241. import { onMounted, ref, watch } from 'vue'
  242. import mainApi from '~api/project/project'
  243. import { deepClone, getArrValue, getObjValue, isNullES, newDownBlob } from 'js-fast-way'
  244. const props = defineProps({
  245. isAdmin: {
  246. type: Boolean,
  247. default: false,
  248. },
  249. loading: {
  250. type: Boolean,
  251. default: false,
  252. },
  253. datas: {
  254. type: Array,
  255. default: () => ([]),
  256. },
  257. })
  258. //事件
  259. const emit = defineEmits(['tap', 'completion', 'examine', 'del', 'export', 'check'])
  260. //监听权限
  261. const isAdminAuth = ref(props.isAdmin)
  262. watch(() => props.isAdmin, (admin) => {
  263. isAdminAuth.value = admin
  264. })
  265. //渲染完成
  266. const isAfterRender = ref(false)
  267. onMounted(() => {
  268. //表格太复杂,渲染较慢,等页面先加载完成,再渲染表格,不然会卡住一下不动。
  269. //因为表头涉及到年份,如果年份很多,那么会更卡。
  270. setTimeout(() => {
  271. isAfterRender.value = true
  272. }, 200)
  273. })
  274. //表头
  275. const tableColumn = ref([
  276. { key: 'projectStageName', name: '项目阶段' },
  277. { key: 'projectTypeName', name: '项目类型' },
  278. { key: 'name', name: '项目名称' },
  279. { key: 'buildScaleName', name: '建设规模' },
  280. { key: 'startYear', name: '开工年' },
  281. { key: 'endYear', name: '完工年' },
  282. { key: 'allInvest', name: '总投资(亿元)' },
  283. { key: 'fourteenFiveInvest', name: '\“十四五”\'计划投资(亿元)' },
  284. { key: 'isFocusProjectName', name: '市级重点项目' },
  285. { key: 'isPilotPlanName', name: '交通强国建设试点任务' },
  286. { key: 'finishedInvestMoney', name: '完成投资金额(亿元)' },
  287. { key: 'progressRatio', name: '项目进展比例(%)' },
  288. { key: 'finishedFillRatio', name: '完成情况填写比例(%)' },
  289. { key: 'leaderUnit', name: '牵头单位' },
  290. { key: 'assistUnit', name: '配合单位' },
  291. { key: 'dutyUnit', name: '责任单位' },
  292. { key: 'action', name: '操作', width: isAdminAuth.value ? 220 : 100, fixed:'right', align: 'center' },
  293. ])
  294. //监听数据
  295. const tableData = ref(props.datas)
  296. watch(() => props.datas, (data) => {
  297. tableData.value = data
  298. })
  299. //表格被选择
  300. const tableCheckKeys = ref([])
  301. const tableCheckChange = (rows) => {
  302. tableCheckKeys.value = rows
  303. emit('check', rows)
  304. }
  305. //项目名称被点击
  306. const rowNameClick = (row) => {
  307. emit('tap', row)
  308. }
  309. //项目完成情况
  310. const isCompletionDrawer = ref(false)
  311. const completion = (row) => {
  312. isCompletionDrawer.value = true
  313. emit('completion', row)
  314. getDetailData(row.id)
  315. }
  316. //查看
  317. const rowDetail = ref({})
  318. const isDrawer = ref(false)
  319. const isDrawerType = ref('view')
  320. const examine = (row) => {
  321. isDrawer.value = true
  322. isDrawerType.value = 'view'
  323. rowDetail.value = row
  324. getDetailData(row.id)
  325. // emit('examine', row)
  326. }
  327. const getDetailData = async (id) => {
  328. const { error, code, data, msg } = await mainApi.detailMore(id)
  329. if (error || code !== 200) {
  330. window.$message.error(msg ?? '获取数据失败')
  331. drawerCancel()
  332. return
  333. }
  334. //处理数据
  335. const res = getObjValue(data)
  336. const list = getArrValue(res.list)
  337. res.list = list
  338. rowDetail.value = res
  339. yearData.value = res
  340. console.log(yearData.value, 'yearData.valu')
  341. //设置默认数据
  342. if (list.length > 0) {
  343. yearKey.value = list[0].planYear
  344. yearIndex.value = 0
  345. }
  346. }
  347. //删除
  348. const delTableItem = ({ item }, resolve) => {
  349. console.log('我被执行了', item)
  350. //这里可以写一些操作,下面是模拟3秒关闭
  351. setTimeout(() => {
  352. resolve()
  353. emit('del', item)
  354. }, 3000)
  355. }
  356. //关闭抽屉
  357. const drawerCancel = () => {
  358. isDrawer.value = false
  359. isDrawerType.value = ''
  360. yearData.value = {}
  361. }
  362. //导出数据
  363. const deriveTableItem = ({ item }, resolve) => {
  364. console.log('我被执行了', item)
  365. //这里可以写一些操作,下面是模拟3秒关闭
  366. setTimeout(() => {
  367. resolve()
  368. emit('export', item)
  369. }, 3000)
  370. }
  371. //批量删除
  372. const batchRemove = () => {
  373. if (!isAdminAuth.value) return
  374. const rows = tableCheckKeys.value
  375. console.log('批量删除', rows)
  376. }
  377. //批量导出
  378. const batchExport = () => {
  379. const rows = tableCheckKeys.value
  380. console.log('批量导出', rows)
  381. }
  382. //年数据
  383. const yearKey = ref('2023')
  384. const yearData = ref({})
  385. const yearIndex = ref(-1)
  386. const yearChange = (_, index) => {
  387. yearIndex.value = index
  388. }
  389. //合并列或行
  390. const tableYearMethod = ({ rowIndex, columnIndex }) => {
  391. return setSpanMethod(columnIndex, rowIndex)
  392. }
  393. //合并列或行
  394. const tableYearMethod1 = ({ rowIndex, columnIndex }) => {
  395. return setSpanMethod(columnIndex, rowIndex, false)
  396. }
  397. const saveCompleLoading = ref(false)
  398. const saveComplete = async ()=>{
  399. saveCompleLoading.value = true
  400. //发起请求
  401. const { error, code, msg } = await mainApi.updateProFin({
  402. ...yearData.value,
  403. })
  404. //判断状态
  405. saveCompleLoading.value = false
  406. if (!error && code === 200) {
  407. window?.$message?.success(msg)
  408. } else {
  409. window.$message.error(msg ?? '操作失败')
  410. }
  411. }
  412. const setSpanMethod = (column, row, isAllYear = true) => {
  413. if (column === 0) { //第一列
  414. const rows = [0, 3, 6, 9], irows = [1, 2, 4, 5, 7, 8, 10, 11]
  415. if (rows.indexOf(row) !== -1) {
  416. //主要季度隐藏
  417. return { rowspan: 3, colspan: 1 }
  418. } else if (irows.indexOf(row) !== -1) {
  419. //非主要的季度隐藏
  420. return { rowspan: 0, colspan: 0 }
  421. } else {
  422. return { rowspan: 1, colspan: 1 }
  423. }
  424. } else if (column === 2) { //第三列
  425. const rows = [0, 3, 6, 9], irows = [1, 2, 4, 5, 7, 8, 10, 11]
  426. if (rows.indexOf(row) !== -1) {
  427. //主要隐藏
  428. return { rowspan: 3, colspan: 1 }
  429. } else if (irows.indexOf(row) !== -1) {
  430. //非主要的隐藏
  431. return { rowspan: 0, colspan: 0 }
  432. } else {
  433. return { rowspan: 1, colspan: 1 }
  434. }
  435. } else if (column === 5) { //第六列
  436. if (isAllYear) {
  437. if (row === 0) {
  438. return { rowspan: 12, colspan: 1 }
  439. } else if (row > 0 && row < 12) {
  440. return { rowspan: 0, colspan: 0 }
  441. } else {
  442. return { rowspan: 1, colspan: 1 }
  443. }
  444. } else {
  445. const rows = [0, 3, 6, 9], irows = [1, 2, 4, 5, 7, 8, 10, 11]
  446. if (rows.indexOf(row) !== -1) {
  447. //主要隐藏
  448. return { rowspan: 3, colspan: 1 }
  449. } else if (irows.indexOf(row) !== -1) {
  450. //非主要的隐藏
  451. return { rowspan: 0, colspan: 0 }
  452. } else {
  453. return { rowspan: 1, colspan: 1 }
  454. }
  455. }
  456. } else if (column === 6) { //第七列
  457. if (isAllYear) {
  458. const rows = [0, 3, 6, 9], irows = [1, 2, 4, 5, 7, 8, 10, 11]
  459. if (rows.indexOf(row) !== -1) {
  460. //主要隐藏
  461. return { rowspan: 3, colspan: 1 }
  462. } else if (irows.indexOf(row) !== -1) {
  463. //非主要的隐藏
  464. return { rowspan: 0, colspan: 0 }
  465. } else {
  466. return { rowspan: 1, colspan: 1 }
  467. }
  468. }
  469. }
  470. }
  471. defineExpose({
  472. batchRemove,
  473. batchExport,
  474. })
  475. </script>
  476. <style lang="scss">
  477. .hc-project-list-table .el-table[hc].new {
  478. --el-table-header-bg-color: #101010;
  479. --el-table-header-text-color: #fff;
  480. --el-table-text-color: #101010;
  481. thead.is-group th.el-table__cell {
  482. background: var(--el-table-header-bg-color);
  483. }
  484. thead .el-table-fixed-column--left.el-table__cell,
  485. thead .el-table-fixed-column--right.el-table__cell {
  486. background: var(--el-table-header-bg-color) !important;
  487. }
  488. tbody .el-table-fixed-column--left.el-table__cell,
  489. tbody .el-table-fixed-column--right.el-table__cell {
  490. background: var(--el-table-tr-bg-color) !important;
  491. }
  492. .el-table__body tr.current-row>td.el-table__cell {
  493. background-color: var(--el-table-current-row-bg-color) !important;
  494. }
  495. }
  496. .hc-project-list-drawer-year {
  497. position: relative;
  498. border: 1px solid #dddddd;
  499. border-top: 0;
  500. height: calc(100% - 170px);
  501. &.detail {
  502. height: calc(100% - 34px);
  503. }
  504. .year-detail {
  505. padding: 14px;
  506. background: #f7f7f7;
  507. border-radius: 5px;
  508. .hc-card-item-header {
  509. border-bottom: 1px solid #ecebeb;
  510. padding-bottom: 10px;
  511. .item-header {
  512. justify-content: center;
  513. }
  514. }
  515. .el-table {
  516. --el-table-border-color: #dcdcdc;
  517. --el-table-header-text-color: #101010;
  518. --el-table-row-hover-bg-color: transparent;
  519. }
  520. .el-table th.el-table__cell.line {
  521. padding: 0;
  522. height: 100%;
  523. .cell {
  524. padding: 0;
  525. height: 100%;
  526. display: contents;
  527. }
  528. .hc-table-th-line {
  529. position: relative;
  530. height: 100%;
  531. font-size: 14px;
  532. display: contents;
  533. .left {
  534. position: absolute;
  535. bottom: 6px;
  536. left: 10px;
  537. }
  538. .right {
  539. position: absolute;
  540. top: 6px;
  541. right: 6px;
  542. font-size: 13px;
  543. }
  544. &::after {
  545. content: '';
  546. position: absolute;
  547. top: 36px;
  548. left: -20px;
  549. width: 180px;
  550. height: 1px;
  551. background: #dcdcdc;
  552. transform: rotate(27deg);
  553. }
  554. }
  555. }
  556. &.edit .el-table--enable-row-transition .el-table__body td.el-table__cell {
  557. height: 60px;
  558. }
  559. .el-table .el-table__cell .cell {
  560. .hc-new-main-body_content {
  561. padding: 4px !important;
  562. .el-input, .el-textarea {
  563. height: 100%;
  564. .el-input__inner {
  565. text-align: center;
  566. }
  567. .el-textarea__inner {
  568. height: 100%;
  569. }
  570. }
  571. }
  572. }
  573. }
  574. }
  575. </style>