index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  1. <template>
  2. <fullscreen :fullscreen.sync="fullscreen" class="container">
  3. <div class="container-box">
  4. <toolList @iconCli='iconCli' :tooltit='tooltit'></toolList>
  5. <div style="overflow: hidden;">
  6. <el-button style="float: right;margin-top: 10px;" type="primary" @click="dialogCheck(3)">添加</el-button>
  7. <el-button style="float: right;margin-top: 10px;margin-right: 20px;" type="primary" @click="getStanding">台账</el-button>
  8. </div>
  9. <div class="tabbox">
  10. <el-table height="calc(100% - 40px)" class="com-table" ref="multipleTable" :data="tableData"
  11. tooltip-effect="dark" size="small" border style="width: 100%" v-loading="loading">
  12. <el-table-column prop="woTitle" label="业务名称">
  13. </el-table-column>
  14. <el-table-column prop="opName" label="申请姓名">
  15. </el-table-column>
  16. <el-table-column prop="createTime" label="申请时间">
  17. </el-table-column>
  18. <el-table-column prop="stsDesc" label="状态">
  19. </el-table-column>
  20. <el-table-column label="操作" width="120px" align="center">
  21. <template slot-scope="scope">
  22. <el-button size="mini" type="primary" @click="dialogCheck(1,scope.row)">查看</el-button>
  23. <el-button size="mini" type="danger" v-if="scope.row.sts != 1"
  24. @click="dialogCheck(2,scope.row)">处理</el-button>
  25. <!-- <el-button size="mini" type="danger" @click="delLine(scope.row)">删除</el-button> -->
  26. </template>
  27. </el-table-column>
  28. </el-table>
  29. <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next" background
  30. :total="total">
  31. </el-pagination>
  32. </div>
  33. </div>
  34. <el-dialog :title="titname" :visible.sync="dialogStatus" width="50%" :destroy-on-close="true"
  35. :modal-append-to-body="false" :close-on-click-modal="false" :before-close="closedia" :fullscreen="true">
  36. <div v-loading="loadinged">
  37. <el-form :model="infolist" ref="infolist" :rules="rules" style="height: calc(100vh - 180px);overflow-y: scroll;">
  38. <div class="info-line">
  39. <el-form-item prop="woName">
  40. <span>工单名称</span>
  41. <el-input v-model="infolist.woName" placeholder="工单名称" :disabled="disableStatus">
  42. </el-input>
  43. </el-form-item>
  44. <el-form-item prop="terminal">
  45. <span>申请流程</span>
  46. <el-select clearable v-model="terminal" placeholder="申请流程" disabled>
  47. <el-option v-for="items in options" :key="items.procId" :label="items.procName"
  48. :value="items.procId">
  49. </el-option>
  50. </el-select>
  51. </el-form-item>
  52. <el-form-item>
  53. <span>合作伙伴</span>
  54. <el-input v-model="infolist.factoryName" placeholder="合作伙伴名称" :disabled="disableStatus">
  55. </el-input>
  56. </el-form-item>
  57. <el-form-item>
  58. <span>是否新接口</span>
  59. <el-select clearable v-model="infolist.woType" placeholder="是否新接口" :disabled="disableStatus">
  60. <el-option v-for="items in ifopt" :key="items.id" :label="items.name"
  61. :value="items.id">
  62. </el-option>
  63. </el-select>
  64. </el-form-item>
  65. </div>
  66. <el-form-item class="info-line online">
  67. <span>正文内容</span>
  68. <el-input v-model="infolist.textContent" placeholder="正文内容" type="textarea" :autosize="{ minRows: 3, maxRows: 10}"
  69. :disabled="disableStatus">
  70. </el-input>
  71. </el-form-item>
  72. <el-form-item class="info-line online">
  73. <span>开发功能概要</span>
  74. <el-input v-model="infolist.devFunc" placeholder="开发功能概要" type="textarea" :autosize="{ minRows: 3, maxRows: 10}"
  75. :disabled="disableStatus">
  76. </el-input>
  77. </el-form-item>
  78. <div class="info-line">
  79. <el-form-item>
  80. <span>开发工单名称</span>
  81. <el-input v-model="infolist.itWoName" placeholder="IT开发工单名称" :disabled="!infolist.woType||vision == '记录开发信息'">
  82. </el-input>
  83. </el-form-item>
  84. <el-form-item>
  85. <span>开发工单编号</span>
  86. <el-input v-model="infolist.itWoNo" placeholder="IT开发工单编号" :disabled="!infolist.woType||vision == '记录开发信息'">
  87. </el-input>
  88. </el-form-item>
  89. <el-form-item>
  90. <span>提交时间</span>
  91. <el-date-picker :disabled="!infolist.woType||vision == '记录开发信息'" v-model="infolist.itSubTime" type="date"
  92. placeholder="提交时间">
  93. </el-date-picker>
  94. </el-form-item>
  95. </div>
  96. <div class="info-line" v-if="vision == '记录开发信息'">
  97. <el-form-item>
  98. <span>需求工单名称</span>
  99. <el-input v-model="infolist.elecWoName" placeholder="线上渠道业务需求工单名称" :disabled="titname != '审批'">
  100. </el-input>
  101. </el-form-item>
  102. <el-form-item>
  103. <span>需求工单编号</span>
  104. <el-input v-model="infolist.elecWoNo" placeholder="线上渠道业务需求工单编号" :disabled="titname != '审批'">
  105. </el-input>
  106. </el-form-item>
  107. <el-form-item>
  108. <span>提交时间</span>
  109. <el-date-picker :disabled="titname != '审批'" v-model="infolist.elecSubTime" type="date"
  110. placeholder="提交时间">
  111. </el-date-picker>
  112. </el-form-item>
  113. </div>
  114. <div style="padding:0 20px 0 120px;margin-bottom: 20px;" v-if="disableStatus">
  115. <uploadDown :datalist="datalist" :dialogStatus="uploadstatus"></uploadDown>
  116. </div>
  117. <div style="padding-left: 100px" v-if="!disableStatus">
  118. <myUpload @uploadBack="uploadBack" :fileInfo="fileInfo" :fileList="fileInfo.fileList">
  119. </myUpload>
  120. </div>
  121. <el-form-item class="info-line online" v-if="vision == '审批'">
  122. <span>审批说明</span>
  123. <el-input v-model="remark" placeholder="审批说明" type="textarea" :autosize="{ minRows: 3, maxRows: 10}"
  124. :disabled="titname == '查看'">
  125. </el-input>
  126. </el-form-item>
  127. <div style="margin-bottom: 20px;padding: 0 20px;" v-if="titname != '添加'">
  128. <el-table class="com-table" ref="multipleTable" :data="rovaList" tooltip-effect="dark"
  129. size="small" border style="width: 100%">
  130. <el-table-column prop="taskId" label="编号">
  131. </el-table-column>
  132. <el-table-column prop="taskName" label="环节">
  133. </el-table-column>
  134. <el-table-column prop="assigneeName" label="处理人">
  135. </el-table-column>
  136. <el-table-column prop="assigneeNo" label="处理人工号">
  137. </el-table-column>
  138. <el-table-column prop="opTime" label="处理时间">
  139. </el-table-column>
  140. <!-- <el-table-column prop="remark" label="备注">
  141. </el-table-column> -->
  142. </el-table>
  143. </div>
  144. </el-form>
  145. <div slot="footer" class="dialog-footer myfooter">
  146. <el-button v-if="titname != '查看' && vision == '记录开发信息'" type="primary" @click="dialogCli(2)">确 定
  147. </el-button>
  148. <el-button v-if="titname == '添加'" type="primary" @click="dialogCliadd">确 定</el-button>
  149. <el-button v-if="vision == '结束'||titname == '查看'" @click="dialogCli(3)">确 定</el-button>
  150. <el-button @click="dialogCli(3)">取 消</el-button>
  151. </div>
  152. </div>
  153. </el-dialog>
  154. <myMessage :messTit='messTit' @closeMessage="closeMessage" :centerDialogVisible="centerDialogVisible"
  155. v-if="centerDialogVisible"></myMessage>
  156. </fullscreen>
  157. </template>
  158. <script>
  159. import mySearch from "../../../components/search.vue";
  160. import myMessage from "../../../components/myMessage.vue"
  161. import toolList from '../../../components/toolList'
  162. import myUpload from '../../../components/upload'
  163. import uploadDown from '../../../components/uploadDown.vue'
  164. export default {
  165. components: {
  166. mySearch,
  167. myMessage,
  168. toolList,
  169. myUpload,
  170. uploadDown
  171. },
  172. data() {
  173. const woName = (rule, value, callback) => {
  174. if (!this.infolist.woName) {
  175. callback(new Error('不能为空'))
  176. } else {
  177. callback()
  178. }
  179. }
  180. const terminal = (rule, value, callback) => {
  181. if (!this.terminal) {
  182. callback(new Error('不能为空'))
  183. } else {
  184. callback()
  185. }
  186. }
  187. return {
  188. rules: {
  189. woName: [{
  190. required: true,
  191. trigger: 'blur',
  192. validator: woName
  193. }],
  194. terminal: [{
  195. required: true,
  196. trigger: 'change',
  197. validator: terminal
  198. }],
  199. },
  200. tooltit: '线上合作渠道合作开发',
  201. fullscreen: false,
  202. total: 0,
  203. pageSize: 1,
  204. tableData: [{}],
  205. dialogStatus: false,
  206. disableStatus: false,
  207. titname: '',
  208. infolist: {
  209. itSubTime:'',
  210. elecSubTime:''
  211. },
  212. userInfo: {},
  213. params: {},
  214. centerDialogVisible: false,
  215. messTit: '',
  216. delid: '',
  217. loading: false,
  218. loadinged: false,
  219. fileInfo: {
  220. limit: 5,
  221. url: '/bpm/api/upload',
  222. fileList: []
  223. },
  224. rovaList: [],
  225. vision: '',
  226. datalist: {
  227. url: '/bpm/api/download',
  228. type: 1
  229. },
  230. uploadstatus: false,
  231. rovaList: [],
  232. mydisable: 1,
  233. opname: '',
  234. opno: '',
  235. attList: [],
  236. options: [],
  237. // terminal:'720193003341541376',
  238. terminal:'720549298208940032',
  239. remark:'',
  240. visionsts:'1',
  241. ifopt:[
  242. {
  243. id:1,
  244. name:'是'
  245. },{
  246. id:0,
  247. name:'否'
  248. }
  249. ]
  250. }
  251. },
  252. methods: {
  253. closedia() {
  254. this.infolist = {};
  255. this.attList = [];
  256. this.fileInfo.fileList = [];
  257. this.dialogStatus = false;
  258. },
  259. //获取列表
  260. getList(v, n) {
  261. this.pageSize = n;
  262. let _this = this;
  263. this.loading = true;
  264. v.procName = "合作开发流程";
  265. this.$http({
  266. url: "/bpm/api/queryToDoAndFinishTaskList",
  267. method: "post",
  268. headers: {
  269. "Content-Type": "application/json",
  270. "page": '{"pageNo":"' + n + '","pageSize":"10"}'
  271. },
  272. data: v,
  273. }).then((res) => {
  274. this.tableData = res.data.data;
  275. this.total = res.data.totalRecord;
  276. this.loading = false;
  277. });
  278. },
  279. // 分页
  280. currchange(v) {
  281. this.pageSize = v;
  282. this.getList(this.params, this.pageSize);
  283. },
  284. //申请
  285. dialogCheck(v, n) {
  286. this.infolist.itSubTime = '';
  287. this.infolist.elecSubTime = '';
  288. this.dialogStatus = true;
  289. let infolist = Object.assign({}, n);
  290. this.vision = '';
  291. this.visionsts = '';
  292. if (v === 1) {
  293. this.titname = '查看';
  294. this.disableStatus = true;
  295. } else if (v === 2) {
  296. this.titname = '审批';
  297. this.disableStatus = true;
  298. } else if (v === 3) {
  299. this.titname = '添加';
  300. this.disableStatus = false;
  301. return
  302. }
  303. this.$http({
  304. url: '/bpm/api/taskInit',
  305. method: "post",
  306. headers: {
  307. "Content-Type": "application/json",
  308. },
  309. data: {
  310. woNo: n.woNo
  311. },
  312. }).then((res) => {
  313. // this.infolist = Object.assign({}, res.data);
  314. this.terminal = infolist.procId;
  315. this.opname = res.data.opName;
  316. this.opno = res.data.opNo;
  317. this.infolist = JSON.parse(res.data.params.terminalRes);
  318. this.infolist.procId=infolist.procId;
  319. this.infolist.procVersion=infolist.procVersion;
  320. this.remark=infolist.remark;
  321. this.infolist.stepId=infolist.stepId;
  322. this.infolist.taskId=infolist.taskId;
  323. this.infolist.taskName=infolist.taskName;
  324. this.infolist.opName=infolist.opName;
  325. this.infolist.opNo=infolist.opNo;
  326. this.infolist.opTime=infolist.opTime;
  327. this.infolist.woNo=infolist.woNo;
  328. if (res.data.taskList[res.data.taskList.length - 1].taskName == '流程发起') {
  329. this.disableStatus = false;
  330. this.vision = '流程发起';
  331. }else if (res.data.taskList[res.data.taskList.length - 1].taskName == '记录开发信息') {
  332. this.vision = '记录开发信息';
  333. }
  334. this.datalist.attList = JSON.parse(res.data.params.attList);
  335. this.attList = [];
  336. this.fileInfo.fileList = [];
  337. this.datalist.attList.forEach(item => {
  338. item.id = item.attchFileId;
  339. this.fileInfo.fileList.push({
  340. name: item.fileName,
  341. url: '',
  342. id: item.id,
  343. attchFileId: item.attchFileId,
  344. fileName: item.fileName
  345. });
  346. this.attList.push({
  347. name: item.fileName,
  348. url: '',
  349. id: item.id,
  350. attchFileId: item.attchFileId,
  351. fileName: item.fileName
  352. });
  353. })
  354. this.rovaList = res.data.taskList;
  355. this.uploadstatus = true;
  356. });
  357. },
  358. //审批
  359. dialogCli(v) {
  360. this.dialogStatus = false;
  361. if (v === 3) {
  362. this.infolist = {};
  363. this.attList = [];
  364. this.fileInfo.fileList = [];
  365. return
  366. }
  367. let _this = this;
  368. this.infolist.opTime = _this.$formatDate(new Date(), "YYYY-MM-DD HH:mm:ss")
  369. this.infolist.itSubTime?this.infolist.itSubTime = _this.$formatDate(this.infolist.itSubTime, "YYYY-MM-DD HH:mm:ss"):'';
  370. this.infolist.elecSubTime?this.infolist.elecSubTime = _this.$formatDate(this.infolist.elecSubTime, "YYYY-MM-DD HH:mm:ss"):'';
  371. if (v === 1) {
  372. // let params = {
  373. // dealType: '1',
  374. // dealTypeDesc: '打回',
  375. // procId: this.infolist.procId,
  376. // procVersion: this.infolist.procVersion,
  377. // remark: this.remark,
  378. // stepId: this.infolist.stepId,
  379. // taskId: this.infolist.taskId,
  380. // taskName: this.infolist.taskName,
  381. // opName: this.infolist.opName,
  382. // opNo: this.opno,
  383. // opTime: this.infolist.opTime,
  384. // params: {
  385. // procExeCondiVal: '不同意',
  386. // terminalRes: JSON.stringify(this.infolist),
  387. // assigneeNo: this.opno,
  388. // assigneeName: this.opname,
  389. // },
  390. // woNo: this.infolist.woNo,
  391. // }
  392. // this.submitInfo("/bpm/api/submitTask", params);
  393. } else if (v === 2) {
  394. let param = {
  395. dealType: '0',
  396. dealTypeDesc: '提交',
  397. procId: this.infolist.procId,
  398. procVersion: this.infolist.procVersion,
  399. remark: this.remark,
  400. stepId: this.infolist.stepId,
  401. taskId: this.infolist.taskId,
  402. taskName: this.infolist.taskName,
  403. opName: this.infolist.opName,
  404. opNo: this.infolist.opNo,
  405. opTime: this.infolist.opTime,
  406. params: {
  407. woType: this.infolist.woType,
  408. terminalRes: JSON.stringify(this.infolist)
  409. },
  410. woNo: this.infolist.woNo,
  411. }
  412. if(this.vision == '流程发起'){
  413. let attList = [];
  414. for (let i = 0; i < this.attList.length; i++) {
  415. attList.push({
  416. id: this.attList[i].id,
  417. fileCode: this.attList[i].fileCode,
  418. fileName: this.attList[i].fileName,
  419. opName: this.attList[i].opName,
  420. opNo: this.attList[i].opNo,
  421. opTime: this.attList[i].opTime,
  422. woNo: this.infolist.woNo,
  423. attchFileId: this.attList[i].attchFileId,
  424. });
  425. }
  426. param.params.attList = JSON.stringify(attList)
  427. }
  428. this.submitInfo("/bpm/api/submitTask", param);
  429. }
  430. },
  431. //添加
  432. dialogCliadd(v) {
  433. let _this = this;
  434. let info = {};
  435. info.opTime = _this.$formatDate(new Date(), "YYYY-MM-DD HH:mm:ss");
  436. info.opNo = this.userInfo.loginNo;
  437. info.opName = this.userInfo.loginName;
  438. info.woTitle = this.infolist.woName;
  439. info.params = {};
  440. info.params.terminalRes = this.infolist;
  441. info.procId = this.terminal;
  442. for (let i = 0; i < this.options.length; i++) {
  443. if (this.terminal == this.options[i].procId) {
  444. info.procName = this.options[i].procName;
  445. info.procVersion = this.options[i].procVersion;
  446. }
  447. }
  448. let attList = [];
  449. for (let i = 0; i < this.attList.length; i++) {
  450. attList.push({
  451. id: this.attList[i].id,
  452. fileCode: this.attList[i].fileCode,
  453. fileName: this.attList[i].fileName,
  454. opName: this.attList[i].opName,
  455. opNo: this.attList[i].opNo,
  456. opTime: this.attList[i].opTime,
  457. woNo: this.infolist.woNo,
  458. attchFileId: this.attList[i].attchFileId,
  459. });
  460. }
  461. info.params.attList = JSON.stringify(attList)
  462. info.params.terminalRes = JSON.stringify(info.params.terminalRes);
  463. this.submitInfo("/bpm/api/startProc", info);
  464. },
  465. submitInfo(u, v) {
  466. let _this = this;
  467. this.$refs.infolist.validate(valid => {
  468. if (valid) {
  469. this.$http({
  470. url: u,
  471. method: "post",
  472. headers: {
  473. "Content-Type": "application/json",
  474. },
  475. data: v,
  476. }).then((res) => {
  477. if (res.data.result === 1) {
  478. _this.$message({
  479. message: res.data.desc,
  480. type: 'error'
  481. });
  482. } else {
  483. _this.$message({
  484. message: '成功',
  485. type: 'success'
  486. });
  487. _this.closedia();
  488. _this.infolist = {};
  489. _this.attList = [];
  490. _this.fileInfo.fileList = [];
  491. _this.getList(this.params, this.pageSize);
  492. }
  493. });
  494. }
  495. })
  496. },
  497. getStanding(){
  498. this.$router.push({
  499. path: '/dStanding',
  500. });
  501. this.setabList('开发流程台账', '/dStanding');
  502. },
  503. setabList(n, p) {
  504. let params = {
  505. children: "",
  506. name: n,
  507. rountPath: p,
  508. target: "_self",
  509. };
  510. for (let i = 0; i < this.$store.state.tabList.length; i++) {
  511. if (this.$store.state.tabList[i].name === params.name) {
  512. this.$store.state.tabList[i] = params;
  513. }
  514. }
  515. let set = new Set([...this.$store.state.tabList, params]);
  516. set.add(params);
  517. this.$store.commit("setDefaultActive", params.rountPath);
  518. this.$store.commit("setTabList", Array.from(set));
  519. },
  520. //流程
  521. getTermianl() {
  522. this.$http({
  523. url: "/bpm/api/queryBpmProcList",
  524. method: "post",
  525. headers: {
  526. "Content-Type": "application/json",
  527. "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
  528. },
  529. data: {},
  530. }).then((res) => {
  531. this.options = res.data.data;
  532. });
  533. },
  534. closeMessage(v) {
  535. this.centerDialogVisible = false;
  536. let _this = this;
  537. if (v === 1) {
  538. _this.$http({
  539. url: "/bpm/api/deleteBpmPrePlugin",
  540. method: "post",
  541. headers: {
  542. "Content-Type": "application/json",
  543. },
  544. data: {
  545. id: this.delid
  546. },
  547. }).then((res) => {
  548. if (res.data.result === 1) {
  549. _this.$message({
  550. message: res.data.desc,
  551. type: 'error'
  552. });
  553. } else {
  554. _this.$message({
  555. message: '删除成功',
  556. type: 'success'
  557. });
  558. _this.getList(this.params, this.pageSize);
  559. }
  560. });
  561. }
  562. },
  563. //删除
  564. delLine(v) {
  565. this.centerDialogVisible = true;
  566. this.messTit = '即将删除此条数据, 是否删除?';
  567. this.delid = v.id;
  568. },
  569. //文件返回值
  570. uploadBack(v) {
  571. this.attList = v;
  572. },
  573. //功能栏
  574. iconCli(v) {
  575. if (v === 1) {
  576. this.getList(this.params, this.pageSize);
  577. }
  578. if (v === 2) {
  579. this.fullscreen = !this.fullscreen
  580. }
  581. },
  582. getUser() {
  583. this.userInfo = JSON.parse(window.sessionStorage.userInfo);
  584. }
  585. },
  586. mounted() {
  587. this.getList({}, 1);
  588. this.getUser();
  589. this.getTermianl();
  590. },
  591. created() {
  592. }
  593. }
  594. </script>
  595. <style scoped lang="scss">
  596. .onetab {
  597. margin-bottom: 20px;
  598. padding: 0 20px;
  599. }
  600. .titbox {
  601. div {
  602. float: right;
  603. i {
  604. font-size: 22px;
  605. margin-left: 20px;
  606. cursor: pointer;
  607. }
  608. }
  609. }
  610. .tabbox {
  611. margin-top: 15px;
  612. }
  613. .pageBox {
  614. text-align: right;
  615. margin-top: 10px;
  616. }
  617. .info-line {
  618. width: 100%;
  619. display: block;
  620. padding-left: 20px;
  621. div {
  622. width: 50%;
  623. display: inline-block;
  624. }
  625. span {
  626. width: 100px;
  627. display: inline-block;
  628. text-align: left;
  629. i {
  630. color: red;
  631. display: inline-block;
  632. padding-right: 5px;
  633. }
  634. }
  635. .el-select,
  636. .el-input {
  637. width: calc(100% - 120px);
  638. }
  639. }
  640. .online {
  641. width: 100%;
  642. .el-select {
  643. width: calc(100% - 120px);
  644. }
  645. span {
  646. vertical-align: top;
  647. }
  648. .el-textarea {
  649. width: calc(100% - 120px);
  650. }
  651. }
  652. .adv-type {
  653. margin-top: 20px;
  654. display: flex;
  655. justify-content: space-between;
  656. flex-wrap: wrap;
  657. // border: 1px solid #ddd;
  658. border-radius: 5px;
  659. padding: 20px;
  660. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
  661. div {
  662. width: 33%;
  663. text-align: center;
  664. height: 80px;
  665. overflow: hidden;
  666. min-width: 100px;
  667. cursor: pointer;
  668. padding-top: 10px;
  669. margin: 10px 0;
  670. }
  671. div:hover {
  672. background: #CFE8FC;
  673. border-radius: 5px;
  674. }
  675. span {
  676. width: 100%;
  677. display: inline-block;
  678. height: 40px;
  679. // line-height: 40px;
  680. i {
  681. color: #0074D9;
  682. font-size: 36px;
  683. }
  684. }
  685. }
  686. </style>