dashboard.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  1. <template>
  2. <popu>
  3. <div class="app-container">
  4. <div class="menu-list">
  5. <div>
  6. <div class="main-title">
  7. <div class="title">常用菜单</div>
  8. <div class="el-icon-setting" @click="dialogVisible = !dialogVisible" />
  9. </div>
  10. <div class="child">
  11. <el-row :gutter="20">
  12. <el-col
  13. v-for="(it, idx) in normsMenuList"
  14. :key="idx"
  15. class="item"
  16. :span="4"
  17. style="margin-top: 16px; padding: 3px 20px"
  18. >
  19. <el-link class="link" :underline="false" @click="clickMenu(it.curUrl)">{{ it.moduleName }}</el-link>
  20. </el-col>
  21. </el-row>
  22. </div>
  23. </div>
  24. <div v-for="(item, index) in menuList" :key="index" class="group">
  25. <div v-if="item.moduleName != '首页'">
  26. <div class="main-title">
  27. <div class="title">{{ item.moduleName }}</div>
  28. </div>
  29. <div v-if="item.children && item.children.length" class="child">
  30. <el-row :gutter="20">
  31. <el-col v-for="(it, idx) in item.children" :key="idx" class="item" :span="4">
  32. <el-link class="link" :underline="false" @click="clickMenu(it.curUrl)">{{ it.moduleName }}</el-link>
  33. </el-col>
  34. </el-row>
  35. </div>
  36. <div v-else class="child">
  37. <div class="item">
  38. <el-link class="link" :underline="false" @click="clickMenu(item.curUrl)">{{ item.moduleName }}</el-link>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <!-- 弹窗 -->
  45. <el-dialog title="菜单配置" :visible.sync="dialogVisible" width="70%">
  46. <el-checkbox-group v-model="checkList" :max="10">
  47. <div v-for="(item, index) in menuList" :key="index" class="group">
  48. <div v-if="item.moduleName != '首页'">
  49. <div v-if="item.children && item.children.length" class="dia-child">
  50. <el-checkbox v-for="(it, idx) in item.children" :key="idx" :label="it.moduleId" class="dia-item">{{
  51. it.moduleName
  52. }}</el-checkbox>
  53. </div>
  54. <div v-else class="child">
  55. <el-checkbox class="dia-item" :label="item.moduleId">{{ item.moduleName }}</el-checkbox>
  56. </div>
  57. </div>
  58. </div>
  59. </el-checkbox-group>
  60. <div class="dia-tip">( {{ checkList.length }} / 10 )注:最多选10个导航菜单</div>
  61. <span slot="footer" class="dialog-footer">
  62. <el-button
  63. @click="
  64. dialogVisible = false
  65. checkList = []
  66. "
  67. >取 消</el-button
  68. >
  69. <el-button type="primary" @click="handleSaveMenu">确 定</el-button>
  70. </span>
  71. </el-dialog>
  72. <el-dialog
  73. title="消息"
  74. :visible.sync="showMessages"
  75. :append-to-body="true"
  76. width="50%"
  77. :show-close="false"
  78. :close-on-click-modal="false"
  79. >
  80. <el-radio-group v-model="type" size="mini" @change="checkFn">
  81. <el-radio-button label="1">系统通知</el-radio-button>
  82. <el-radio-button label="2">文件下发</el-radio-button>
  83. <el-radio-button label="3">返利确认单</el-radio-button>
  84. <el-radio-button label="4">物流通知</el-radio-button>
  85. <el-radio-button label="5">到货通知</el-radio-button>
  86. </el-radio-group>
  87. <br />
  88. <br />
  89. <!-- 系统通知 -->
  90. <div v-show="type == '1'" class="table">
  91. <el-table
  92. ref="table"
  93. v-loading="listLoading"
  94. class="cql"
  95. :data="dataList"
  96. element-loading-text="Loading"
  97. border
  98. fit
  99. highlight-current-row
  100. stripe
  101. >
  102. <el-table-column align="center" type="index" min-width="160" show-overflow-tooltip />
  103. <el-table-column align="center" label="标题" prop="title" min-width="160" show-overflow-tooltip />
  104. <el-table-column align="center" label="来源" prop="source" min-width="160" show-overflow-tooltip />
  105. <el-table-column align="center" label="时间" prop="issueTime" min-width="160" show-overflow-tooltip />
  106. <el-table-column align="center" label="" min-width="160" show-overflow-tooltip>
  107. <template slot-scope="scope">
  108. <el-button type="text" class="textColor" @click="lookInDialog(scope.row.id)">查看</el-button>
  109. </template>
  110. </el-table-column>
  111. </el-table>
  112. </div>
  113. <!-- 文件下发 -->
  114. <div v-show="type == '2'" class="table">
  115. <el-table
  116. ref="table"
  117. v-loading="listLoading"
  118. :data="fileList"
  119. element-loading-text="Loading"
  120. border
  121. fit
  122. highlight-current-row
  123. stripe
  124. >
  125. <el-table-column align="center" type="index" min-width="160" show-overflow-tooltip />
  126. <el-table-column align="center" label="标题" prop="title" min-width="160" show-overflow-tooltip />
  127. <el-table-column
  128. align="center"
  129. label="来源"
  130. prop="operatorNickName"
  131. min-width="160"
  132. show-overflow-tooltip
  133. />
  134. <el-table-column align="center" label="时间" prop="createTime" min-width="160" show-overflow-tooltip />
  135. <el-table-column align="center" label="操作" min-width="160" show-overflow-tooltip>
  136. <template slot-scope="scope">
  137. <el-button type="text" class="textColor" @click="downloadFn(scope.row.id)">下载</el-button>
  138. </template>
  139. </el-table-column>
  140. </el-table>
  141. </div>
  142. <!-- 返利确认单 -->
  143. <div v-show="type == '3'" class="table">
  144. <el-table
  145. ref="table"
  146. v-loading="listLoading"
  147. :data="rebateList"
  148. element-loading-text="Loading"
  149. border
  150. fit
  151. highlight-current-row
  152. stripe
  153. >
  154. <el-table-column align="center" type="index" min-width="160" show-overflow-tooltip />
  155. <el-table-column
  156. align="center"
  157. label="经销商名称"
  158. prop="customerName"
  159. min-width="160"
  160. show-overflow-tooltip
  161. />
  162. <el-table-column align="center" label="确认人" prop="examineBy" min-width="160" show-overflow-tooltip />
  163. <el-table-column align="center" label="确认时间" prop="examineTime" min-width="160" show-overflow-tooltip />
  164. <el-table-column align="center" label="" min-width="160" show-overflow-tooltip>
  165. <template slot-scope="scope">
  166. <el-button type="text" class="textColor" @click="secondFn(scope.row.rebateOrderId)">{{
  167. isCustomer ? '确认' : '复核'
  168. }}</el-button>
  169. </template>
  170. </el-table-column>
  171. </el-table>
  172. </div>
  173. <!-- 物流通知 -->
  174. <div v-show="type == '4'" class="table">
  175. <el-table
  176. ref="table"
  177. v-loading="listLoading"
  178. :data="invoiceOrderList"
  179. element-loading-text="Loading"
  180. border
  181. fit
  182. highlight-current-row
  183. stripe
  184. >
  185. <el-table-column align="center" type="index" min-width="160" show-overflow-tooltip />
  186. <el-table-column align="center" label="发货单" prop="id" min-width="160" show-overflow-tooltip>
  187. <template slot-scope="scope">
  188. <el-link v-if="!isCustomer" type="primary" :underline="false" @click="handleJump(scope.row.id)">{{
  189. scope.row.id
  190. }}</el-link>
  191. <template v-else>{{ scope.row.id }}</template>
  192. </template>
  193. </el-table-column>
  194. <el-table-column
  195. align="center"
  196. label="内容"
  197. prop="orderTrackStatus"
  198. min-width="160"
  199. show-overflow-tooltip
  200. />
  201. <el-table-column align="center" label="时间" prop="orderTrackTime" min-width="160" show-overflow-tooltip />
  202. <el-table-column align="center" label="收货地址" prop="address" min-width="160" show-overflow-tooltip>
  203. <template slot-scope="scope">
  204. {{ scope.row.address ? scope.row.address : '——' }}
  205. </template>
  206. </el-table-column>
  207. <el-table-column align="center" label="收货客户" prop="receivingName" min-width="160" show-overflow-tooltip>
  208. <template slot-scope="scope">{{ scope.row.receivingName ? scope.row.receivingName : '——' }}</template>
  209. </el-table-column>
  210. <el-table-column align="center" label="" min-width="80" show-overflow-tooltip fixed="right">
  211. <template slot-scope="scope">
  212. <el-button type="text" class="textColor" @click="handLogistics(scope.row)">查看</el-button>
  213. </template>
  214. </el-table-column>
  215. </el-table>
  216. </div>
  217. <!-- 到货通知 -->
  218. <div v-show="type == '5'" class="table">
  219. <el-table
  220. ref="table"
  221. v-loading="listLoading"
  222. :data="arrivalNoticeList"
  223. element-loading-text="Loading"
  224. border
  225. fit
  226. highlight-current-row
  227. stripe
  228. >
  229. <el-table-column
  230. property="materialOldNumber"
  231. align="left"
  232. min-width="120"
  233. label="产品编号"
  234. show-overflow-tooltip
  235. />
  236. <el-table-column
  237. property="materialNumber"
  238. align="left"
  239. min-width="100"
  240. label="物料编码"
  241. show-overflow-tooltip
  242. />
  243. <el-table-column
  244. property="materialName"
  245. align="left"
  246. min-width="250"
  247. label="产品名称"
  248. show-overflow-tooltip
  249. />
  250. <el-table-column
  251. property="specification"
  252. align="left"
  253. min-width="350"
  254. label="规格型号"
  255. show-overflow-tooltip
  256. />
  257. <el-table-column property="stockName" align="left" min-width="100" label="到货仓库" show-overflow-tooltip />
  258. <el-table-column
  259. property="updateTime"
  260. align="left"
  261. min-width="200"
  262. label="到货通知时间"
  263. show-overflow-tooltip
  264. />
  265. </el-table>
  266. </div>
  267. <br />
  268. <br />
  269. <!-- 分页 -->
  270. <div class="fr">
  271. <el-pagination
  272. :current-page="currentPage"
  273. :page-sizes="[10, 20, 30, 50]"
  274. :page-size="10"
  275. layout="total, sizes, prev, pager, next, jumper"
  276. :total="listTotal"
  277. @size-change="handleSizeChange"
  278. @current-change="handleCurrentChange"
  279. />
  280. </div>
  281. <br /><br />
  282. <!-- 内层弹窗 -->
  283. <el-dialog width="40%" title="消息标题" :visible.sync="inDialog" append-to-body>
  284. <div class="detail-container">
  285. <div class="title">{{ detailData.title }}</div>
  286. <div class="text">
  287. 发布人:{{ detailData.issueNickName }}<el-divider direction="vertical" />发布时间:{{
  288. detailData.issueTime
  289. }}
  290. </div>
  291. <el-divider />
  292. <div class="content">{{ detailData.content }}</div>
  293. <el-divider v-if="detailData.files && detailData.files.length > 0" />
  294. <div v-if="detailData.files && detailData.files.length > 0" class="file">
  295. <div>附件:</div>
  296. <div class="file-list">
  297. <div v-for="(item, index) in detailData.files" :key="index" class="item">
  298. <el-image
  299. v-if="checkFileType(item.url) == 'image'"
  300. class="img"
  301. :src="imageURL + item.url"
  302. :preview-src-list="[imageURL + item.url]"
  303. />
  304. <div v-else class="box2" @click="openLink(item.url)">
  305. <img v-if="checkFileType(item.url) == 'word'" src="@/assets/common/word.png" />
  306. <img v-if="checkFileType(item.url) == 'excel'" src="@/assets/common/excel.png" />
  307. <img v-if="checkFileType(item.url) == 'ppt'" src="@/assets/common/ppt.png" />
  308. <img v-if="checkFileType(item.url) == 'pdf'" src="@/assets/common/pdf.png" />
  309. <div class="name ellipsis-3">{{ item.name }}</div>
  310. </div>
  311. </div>
  312. </div>
  313. </div>
  314. </div>
  315. <div slot="footer" class="dialog-footer">
  316. <el-button size="mini" type="primary" @click="confirmCheck(detailData.noticeId)">确认接收</el-button>
  317. <el-button size="mini" @click="inDialog = false">关 闭</el-button>
  318. </div>
  319. </el-dialog>
  320. <div slot="footer" class="dialog-footer">
  321. <el-button type="primary" size="mini" @click="closeFn">关闭</el-button>
  322. </div>
  323. </el-dialog>
  324. <el-dialog title="物流信息" :visible.sync="visible" width="60%" @close="onClose" :close-on-click-modal="false">
  325. <el-timeline class="logistics" :reverse="false" v-if="logisticsDetail.length">
  326. <el-timeline-item
  327. placement="top"
  328. type="success"
  329. v-for="(item, index) in logisticsDetail"
  330. :key="index"
  331. :timestamp="item.time"
  332. >
  333. <el-row :gutter="20">
  334. <el-col class="logistics-title"> {{ item.status }} </el-col>
  335. <el-col>
  336. <div class="flex">
  337. <div>{{ item.context }}</div>
  338. <!-- <div>{{ item.createTime }}</div> -->
  339. </div>
  340. </el-col>
  341. </el-row>
  342. </el-timeline-item>
  343. </el-timeline>
  344. <div v-else class="tip">暂无物流信息</div>
  345. </el-dialog>
  346. </div>
  347. </popu>
  348. </template>
  349. <script>
  350. import {
  351. getNoticeList,
  352. getComListList,
  353. getComListDownload,
  354. getNoticeDetail,
  355. confirmCheck,
  356. getRebateOrderList,
  357. getRouter,
  358. getMenuList,
  359. setMenuList,
  360. getListInvoiceOrder
  361. } from '@/api/dashboard'
  362. import { getArrivalNotice } from '@/api/stock'
  363. import { getListOrderTrack } from '@/api/supply/pickup'
  364. import { getFileUrl } from '@/api/common'
  365. import { mapGetters } from 'vuex'
  366. import popu from '@/components/template/popu.vue'
  367. export default {
  368. name: 'Dashboard',
  369. components: {
  370. popu
  371. },
  372. created() {
  373. this.getDataList({
  374. pageSize: this.pageSize,
  375. pageNum: this.currentPage,
  376. readFlag: false
  377. })
  378. getRouter({
  379. flag: 'index',
  380. adminUserId: this.userid
  381. }).then(res => {
  382. this.menuList = res.data
  383. console.log(res.data)
  384. })
  385. this.getMenuList()
  386. },
  387. computed: {
  388. ...mapGetters(['showMessages', 'userid', 'isCustomer'])
  389. },
  390. data() {
  391. return {
  392. imageURL: this.$imageUrl,
  393. type: '1',
  394. currentPage: 1, // 当前页码
  395. pageSize: 10, // 每页数量
  396. listTotal: 0, // 列表总数
  397. dataList: [],
  398. listLoading: false, // 列表加载loading
  399. fileList: [],
  400. inDialog: false,
  401. detailData: [],
  402. rebateList: [],
  403. // isCustomer: JSON.parse(localStorage.getItem('supply_user')).isCustomer,
  404. menuList: [],
  405. dialogVisible: false,
  406. checkList: [],
  407. normsMenuList: [],
  408. invoiceOrderList: [],
  409. bol: true,
  410. visible: false,
  411. orderId: '',
  412. logisticsDetail: []
  413. }
  414. },
  415. methods: {
  416. // 获取常用菜单列表
  417. getMenuList() {
  418. getMenuList().then(res => {
  419. this.normsMenuList = res.data
  420. if (this.normsMenuList.length) {
  421. this.normsMenuList.forEach(k => {
  422. this.checkList.push(k.moduleId)
  423. })
  424. }
  425. })
  426. },
  427. // 保存常用菜单
  428. handleSaveMenu() {
  429. setMenuList({ adminModuleIds: this.checkList.join(',') }).then(res => {
  430. this.$successMsg('设置成功')
  431. this.checkList = []
  432. this.getMenuList()
  433. this.dialogVisible = false
  434. })
  435. },
  436. // 打开链接
  437. openLink(url) {
  438. getFileUrl({ key: url }).then(res => {
  439. window.open(res.data)
  440. })
  441. },
  442. // 复核
  443. secondFn(id) {
  444. this.$router.push({
  445. path: '/finance/rebate/rebate_list',
  446. query: {
  447. id
  448. }
  449. })
  450. this.$store.commit('user/showMessage', 'no')
  451. },
  452. // 确认查收
  453. confirmCheck(id) {
  454. confirmCheck({ noticeIds: id }).then(res => {
  455. this.$successMsg('查收成功')
  456. this.inDialog = false
  457. this.getDataList({
  458. pageSize: this.pageSize,
  459. pageNum: this.currentPage,
  460. readFlag: false
  461. })
  462. })
  463. },
  464. // 检查文件类型
  465. checkFileType(url) {
  466. if (!url) return ''
  467. const fileSuffix = url.substring(url.lastIndexOf('.') + 1)
  468. if (['jpg', 'jpeg', 'png'].includes(fileSuffix)) {
  469. return 'image'
  470. } else if (['doc', 'docx', 'dot', 'wps', 'wpt'].includes(fileSuffix)) {
  471. return 'word'
  472. } else if (['xls', 'xlsx', 'xlt', 'et', 'ett'].includes(fileSuffix)) {
  473. return 'excel'
  474. } else if (['ppt', 'pptx', 'dps', 'dpt', 'pot', 'pps'].includes(fileSuffix)) {
  475. return 'ppt'
  476. } else if (['pdf'].includes(fileSuffix)) {
  477. return 'pdf'
  478. } else {
  479. return ''
  480. }
  481. },
  482. // 查看
  483. async lookInDialog(id) {
  484. const res = await getNoticeDetail({ id })
  485. // console.log(res, 7898);
  486. this.detailData = res.data
  487. this.inDialog = true
  488. },
  489. // 下载
  490. async downloadFn(id) {
  491. const res = await getComListDownload({ id })
  492. if (res.data) {
  493. window.open(this.imageURL + res.data)
  494. }
  495. },
  496. // 获取文件列表数据
  497. async getFileList(data) {
  498. const res = await getComListList(data)
  499. this.fileList = res.data.records
  500. this.listTotal = res.data.total
  501. },
  502. // 更改每页数量
  503. handleSizeChange(val) {
  504. this.pageSize = val
  505. this.currentPage = 1
  506. if (this.type == 1) {
  507. this.getDataList({
  508. pageSize: this.pageSize,
  509. pageNum: this.currentPage,
  510. readFlag: false
  511. })
  512. }
  513. if (this.type == 2) {
  514. this.getFileList({
  515. needDown: true,
  516. pageSize: this.pageSize,
  517. pageNo: this.currentPage
  518. })
  519. }
  520. if (this.type == 3) {
  521. this.getRebateList({
  522. pageSize: this.pageSize,
  523. pageNum: this.currentPage,
  524. isSecondExamine: false
  525. })
  526. }
  527. if (this.type == 4) {
  528. this.getListInvoiceOrder({
  529. pageSize: this.pageSize,
  530. pageNum: this.currentPage
  531. })
  532. }
  533. if (this.type == 5) {
  534. this.getArrivalNotice({
  535. pageSize: this.pageSize,
  536. pageNum: this.currentPage
  537. })
  538. }
  539. },
  540. // 更改当前页
  541. handleCurrentChange(val) {
  542. this.currentPage = val
  543. if (this.type == 1) {
  544. this.getDataList({
  545. pageSize: this.pageSize,
  546. pageNum: this.currentPage,
  547. readFlag: false
  548. })
  549. }
  550. if (this.type == 2) {
  551. this.getFileList({
  552. needDown: true,
  553. pageSize: this.pageSize,
  554. pageNo: this.currentPage
  555. })
  556. }
  557. if (this.type == 3) {
  558. this.getRebateList({
  559. pageSize: this.pageSize,
  560. pageNum: this.currentPage,
  561. isSecondExamine: false
  562. })
  563. }
  564. if (this.type == 4) {
  565. this.getListInvoiceOrder({
  566. pageSize: this.pageSize,
  567. pageNum: this.currentPage
  568. })
  569. }
  570. if (this.type == 5) {
  571. this.getArrivalNotice({
  572. pageSize: this.pageSize,
  573. pageNum: this.currentPage
  574. })
  575. }
  576. },
  577. // 获取返利确认单数据
  578. async getRebateList(data) {
  579. const res = await getRebateOrderList(data)
  580. this.rebateList = res.data.records
  581. this.listTotal = res.data.total
  582. },
  583. // 获取列表数据
  584. async getDataList(data) {
  585. const res = await getNoticeList(data)
  586. console.log(res)
  587. this.dataList = res.data.records
  588. this.listTotal = res.data.total
  589. },
  590. // 获取物流列表
  591. async getListInvoiceOrder(data) {
  592. const res = await getListInvoiceOrder(data)
  593. this.invoiceOrderList = res.data.records
  594. this.listTotal = res.data.total
  595. },
  596. async getArrivalNotice(data) {
  597. const res = await getArrivalNotice(data)
  598. this.arrivalNoticeList = res.data.records
  599. this.listTotal = res.data.total
  600. },
  601. // 选择
  602. checkFn(v) {
  603. this.$refs.table.doLayout()
  604. this.type = v
  605. if (v == 1) {
  606. this.getDataList({
  607. pageSize: this.pageSize,
  608. pageNum: this.currentPage,
  609. readFlag: false
  610. })
  611. }
  612. if (v == 2) {
  613. this.getFileList({
  614. needDown: true,
  615. pageSize: this.pageSize,
  616. pageNo: this.currentPage
  617. })
  618. }
  619. if (v == 3) {
  620. this.getRebateList({
  621. pageSize: this.pageSize,
  622. pageNum: this.currentPage,
  623. isSecondExamine: false
  624. })
  625. }
  626. if (v == 4) {
  627. this.getListInvoiceOrder({
  628. pageSize: this.pageSize,
  629. pageNum: this.currentPage
  630. })
  631. }
  632. if (this.type == 5) {
  633. this.getArrivalNotice({
  634. pageSize: this.pageSize,
  635. pageNum: this.currentPage
  636. })
  637. }
  638. },
  639. // 关闭
  640. closeFn() {
  641. this.$store.commit('user/showMessage', 'no')
  642. },
  643. // 点击菜单
  644. clickMenu(path) {
  645. const curlArr = ['/notice', '/issue']
  646. if (curlArr.includes(path)) {
  647. path += '/index'
  648. }
  649. this.$router.push({
  650. path
  651. })
  652. },
  653. handLogistics(row) {
  654. getListOrderTrack({ orderId: row.id }).then(res => {
  655. this.logisticsDetail = res.data
  656. })
  657. this.orderId = row.id
  658. this.visible = true
  659. },
  660. onClose() {
  661. this.logisticsDetail = []
  662. this.orderId = ''
  663. this.visible = false
  664. },
  665. handleJump(id) {
  666. this.$router.push({ path: `/exwarehouse/sum_list?id=${id}` })
  667. this.$store.commit('user/SET_MESSAGE', false)
  668. this.inDialog = false
  669. }
  670. }
  671. }
  672. </script>
  673. <style lang="scss" scoped>
  674. .dashboard {
  675. &-container {
  676. background: #f5f5f5;
  677. padding: 30px;
  678. min-height: calc(100vh - 86px);
  679. .top-container {
  680. .today-content {
  681. font-size: 14px;
  682. }
  683. }
  684. }
  685. }
  686. .cql {
  687. ::v-deep.el-table__header-wrapper {
  688. background-color: #f5f7fa;
  689. }
  690. }
  691. .dia-menu-title {
  692. padding: 10px 0;
  693. color: #000;
  694. font-weight: bold;
  695. }
  696. .dia-tip {
  697. padding: 10px 0;
  698. color: #000;
  699. font-weight: bold;
  700. }
  701. .dia-child {
  702. display: flex;
  703. flex-wrap: wrap;
  704. }
  705. .dia-item {
  706. flex: 0 1 220px;
  707. padding: 3px 0;
  708. }
  709. .menu-list {
  710. .main-title {
  711. margin: 10px 0 0;
  712. .el-icon-setting {
  713. cursor: pointer;
  714. font-size: 22px;
  715. }
  716. }
  717. .group {
  718. margin-bottom: 20px;
  719. .child {
  720. display: flex;
  721. flex-wrap: wrap;
  722. padding-left: 10px;
  723. .el-row {
  724. width: 100%;
  725. }
  726. .item {
  727. margin-top: 16px;
  728. }
  729. }
  730. }
  731. ::v-deep .el-link--inner {
  732. white-space: nowrap;
  733. overflow: hidden;
  734. text-overflow: ellipsis;
  735. }
  736. }
  737. .logistics-title {
  738. padding-bottom: 10px;
  739. }
  740. .tip {
  741. height: 200px;
  742. text-align: center;
  743. line-height: 200px;
  744. }
  745. </style>