index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. <template>
  2. <div class="eniting">
  3. <!-- 头部 -->
  4. <div class="eniting_header">
  5. <!-- <p class="p">表编辑</p> -->
  6. <div class="imge_tab">
  7. <img src="../../../assets/images/pic_sy_ytj.png" alt="" v-if="imgShoew == 2" >
  8. <img src="../../../assets/images/pic_sy_shz.png" alt="" v-if="imgShoew == 4" >
  9. <img src="../../../assets/images/pic_sy_ybh.png" alt="" v-if="imgShoew == 3" >
  10. </div>
  11. <div class="ppl">
  12. <p v-for="(item,index) in tabldie" :key="index" @click="enditTab(index)">
  13. <img src="../../../assets/images/icon_tbtab_normal.png" alt="" class="index_headerImg" v-if="num !== index">
  14. <img src="../../../assets/images/icon_tbtab_selected.png" alt="" class="index_headerImg" v-if="num == index">
  15. <span :class="[index == num ? 'span' : '']">{{item.tableComment}}</span>
  16. </p>
  17. </div>
  18. <el-divider></el-divider>
  19. <div class="table_headerBtun table_headerBtuntue" v-if="queryData.buttonList">
  20. <el-form v-if="num !== 0" :model="queryParamstwoi" ref="queryForm" :inline="true" >
  21. <dynamic-form :ref="item.columnName" :config="queryParamstwoi" @inputs="changeFn" :formConfig="item" v-for="(item,index) in queryDatatwo.queryList"
  22. :key='index' />
  23. <el-form-item>
  24. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQueryiu">搜索</el-button>
  25. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  26. </el-form-item>
  27. </el-form>
  28. <el-button type="primary" size="small" plain v-for="(item,indexss) in jeigneutwo" :key="keyname + indexss"
  29. @click="handleQuery(item)">{{item}}</el-button>
  30. </div>
  31. </div>
  32. <!-- 内容 -->
  33. <div class="eniting_nav">
  34. <el-collapse v-model="activeNames" @change="handleChange" >
  35. <div class="table_forem">
  36. <el-form v-show="num == 0" :rules="queryData.rules" :model="queryParams" ref="queryForm" :inline="true" :label-width="this.queryData.table_column == 6 ? '70px' :'120px'">
  37. <el-collapse-item :title="item.columnComment" :name="index" v-for="(item,index) in queryData.showData" :key="index"
  38. class="eitde">
  39. <el-row>
  40. <dynamic-formsteo @iChange="iChange" :queryData="queryData" @modelFn="modelFn" :ref="items.columnName" :config="queryParams" @inputs="changeFn" :formConfig="items"
  41. v-for="(items,indexs) in item.hrChildren" :key='indexs' />
  42. </el-row>
  43. </el-collapse-item>
  44. </el-form>
  45. </div>
  46. <div v-show= "num !==0" style="background-color: #fff; padding-bottom: 40px; padding-left: 23px; padding-right: 23px; padding-top: 23px;" >
  47. <el-table v-loading="loading" :data="postList.rows" @selection-change="handleSelectionChange">
  48. <el-table-column type="selection" width="55" style="color: red;" align="center" />
  49. <template v-for="(item, index) in postList.tableHeadList">
  50. <el-table-column :label="item.columnComment" align="center" :prop="item.columnName" :key="index" >
  51. <template slot-scope="scope">
  52. <img class="img_icon" v-if="item.htmlType=='imageUpload' && scope.row[scope.column.property]" @click="imgBtn(JSON.parse(scope.row[scope.column.property])[0].url)"
  53. :src="JSON.parse(scope.row[scope.column.property])[0].url" alt="">
  54. <!-- :style="scope.row.list_class" scope.row[scope.column.property] -->
  55. <span :style="scope.row.list_class" v-else-if="item.columnName == 'status' " >{{ scope.row[scope.column.property] }}</span>
  56. <span v-else>{{ scope.row[scope.column.property] }}</span>
  57. </template>
  58. </el-table-column>
  59. </template>
  60. </el-table>
  61. <div class="index_haderPagin">
  62. <pagination
  63. v-show="total>0"
  64. :total="total"
  65. :page.sync="queryParamslist.pageNo"
  66. :limit.sync="queryParamslist.pageSize"
  67. @pagination="foremliseju"
  68. />
  69. </div>
  70. </div>
  71. </el-collapse>
  72. </div>
  73. </div>
  74. </template>
  75. <script>
  76. import {
  77. tableQuery,
  78. getTableQuery,
  79. delMenutab,
  80. getQueryList,
  81. geteditindeTab,
  82. tableSubimt,
  83. tableSubimtanit,
  84. addbjectSave
  85. } from '@/api/system/table.js';
  86. import {
  87. listIndex,
  88. } from '@/api/system/form.js'
  89. export default {
  90. name: "index",
  91. inject: ['reload'],
  92. data() {
  93. return {
  94. // 总条数
  95. total: 0,
  96. loading:true,
  97. activeNames: [0],
  98. title: '单表1',
  99. // 查询参数
  100. queryParams: {},
  101. labletit: '查询参数1233',
  102. num: 0,
  103. tabledeLise: {
  104. table: '',
  105. isUi: true
  106. },
  107. taleLisst: [], //列表数据
  108. // 按钮参数
  109. tableZbie: {
  110. table: 'obj_test',
  111. isUi: true,
  112. fixedData: {
  113. id: -1
  114. }
  115. },
  116. tableZbietabg: {
  117. table: 'sys_user'
  118. },
  119. queryData: {},
  120. queryDatatwo:{},
  121. keyname: 'nu',
  122. tabldie: [],
  123. forme: {
  124. table: '',
  125. objId: -1,
  126. fixedData: {}
  127. },
  128. formeanti: {
  129. table: '',
  130. commitData: [],
  131. },
  132. formy: {
  133. id: 0,
  134. status: 1
  135. },
  136. // 删除参数
  137. deledlid: {
  138. table: '',
  139. idList: []
  140. },
  141. jeigneu: [],
  142. jeigneutwo: [],
  143. imgShoew:1,
  144. queryParamslist: {
  145. pageNo: 1,
  146. pageSize: 10,
  147. orderBy:'create_time desc',
  148. table: '',
  149. fixedData:{
  150. condition:{}
  151. }
  152. },
  153. postList: {},
  154. single: true,
  155. multiple: true,
  156. taheus:'',
  157. taheusid:0,
  158. tabName:'',
  159. queryParamstwoi:{},
  160. };
  161. },
  162. mounted() {
  163. this.deledlid.idList = []
  164. this.formeanti.table = this.$route.query.tables
  165. // this.formeanti.id = this.$route.query.id
  166. this.forme.table = this.$route.query.tables
  167. this.forme.objId = this.$route.query.id
  168. this.tabledeLise.table = this.$route.query.tables
  169. this.tableZbie.table = this.$route.query.tables
  170. this.tableZbie.fixedData.id = this.$route.query.id
  171. this.formy.id = this.$route.query.id
  172. this.tableZbietabg.table = this.$route.query.tables
  173. this.deledlid.table = this.$route.query.tables
  174. this.queryParamslist.table = this.$route.query.tables
  175. this.taheus = this.$route.query.tables
  176. this.taheusid = this.$route.query.id
  177. this.deledlid.idList.push(this.$route.query.id)
  178. // tab
  179. this.edingelsietab()
  180. this.init()
  181. },
  182. filters: {},
  183. methods: {
  184. iChange(name,val){
  185. for(let item of this.queryData.showData){
  186. for(let itemChild of item.hrChildren){
  187. if(itemChild.columnName == name){
  188. itemChild.columnValue = (val?val:null)
  189. }
  190. }
  191. }
  192. },
  193. modelFn(obj, cont) {
  194. this.$set(this.queryParams,obj,cont)
  195. },
  196. handleChange(val) {
  197. },
  198. enditTab(index) {
  199. this.num = index
  200. if(this.num == 0){
  201. this.tabledeLise.table = this.tabldie[index].tableName
  202. this.formeanti.table = this.tabldie[index].tableName
  203. this.forme.table = this.tabldie[index].tableName
  204. this.tableZbie.table = this.taheus
  205. this.tableZbie.fixedData.id = this.taheusid
  206. this.init()
  207. this.reload()
  208. }else{
  209. this.tabName = this.tabldie[index].tableName
  210. this.queryParamslist.table = this.tabldie[index].tableName
  211. this.inittwo()
  212. this.foremliseju()
  213. }
  214. },
  215. // 按钮
  216. init() {
  217. getTableQuery(
  218. this.tableZbie
  219. ).then(res => {
  220. let data = res.data
  221. this.queryData = data
  222. this.jeigneutwo = []
  223. this.jeigneu = []
  224. this.jeigneu = data.buttonList.split('')
  225. this.jeigneu.filter(route => {
  226. if (route == 'A') {
  227. if (this.formy.id == -1) {
  228. route = '保存'
  229. this.jeigneutwo.push(route)
  230. } else {
  231. route = '新增'
  232. }
  233. } else if (route == 'M') {
  234. route = '保存'
  235. if (this.formy.id != -1) {
  236. this.jeigneutwo.push(route)
  237. }
  238. } else if (route == 'D') {
  239. route = '删除'
  240. if (this.formy.id != -1) {
  241. this.jeigneutwo.push(route)
  242. }
  243. } else if (route == 'Q') {
  244. route = '查询'
  245. this.jeigneutwo.push(route)
  246. } else if (route == 'S') {
  247. route = '提交'
  248. if (this.formy.id != -1) {
  249. this.jeigneutwo.push(route)
  250. }
  251. } else if (route == 'U') {
  252. route = '反提交'
  253. if (this.formy.id != -1) {
  254. this.jeigneutwo.push(route)
  255. }
  256. } else if (route == 'I') {
  257. route = '导入'
  258. this.jeigneutwo.push(route)
  259. } else if (route == 'E') {
  260. route = '导出'
  261. this.jeigneutwo.push(route)
  262. }
  263. })
  264. this.jeigneutwo.push('刷新')
  265. this.jeigneutwo.push('返回')
  266. // 图片的显示隐藏
  267. if(this.queryData.showData.length !==0){
  268. this.queryData.showData.filter(route => {
  269. route.hrChildren.filter(routerst =>{
  270. if(this.queryData.table_column == undefined){
  271. this.queryData.table_column = null
  272. }
  273. routerst.tableColumnuy = this.queryData.table_column
  274. })
  275. if(route.cssClass !== null){
  276. this.imgShoew = route.cssClass
  277. if(route.cssClass == 2 || route.cssClass == 4 ){
  278. route.hrChildren.filter(routers =>{
  279. routers.isonliy = true
  280. })
  281. }else{
  282. route.hrChildren.filter(routers =>{
  283. routers.isonliy = false
  284. })
  285. }
  286. }
  287. })
  288. }
  289. })
  290. },
  291. inittwo() {
  292. tableQuery({
  293. table: this.tabName,
  294. }).then(res => {
  295. let data = res.data
  296. this.queryDatatwo = data
  297. this.jeigneutwo = []
  298. this.jeigneu = []
  299. this.jeigneu = data.buttonList.split('')
  300. this.jeigneu.filter(route => {
  301. if (route == 'A') {
  302. route = '新增'
  303. this.jeigneutwo.push(route)
  304. } else if (route == 'M') {
  305. route = '修改'
  306. if (this.formy.id != -1) {
  307. this.jeigneutwo.push(route)
  308. }
  309. } else if (route == 'D') {
  310. route = '删除'
  311. if (this.formy.id != -1) {
  312. this.jeigneutwo.push(route)
  313. }
  314. } else if (route == 'Q') {
  315. route = '查询'
  316. this.jeigneutwo.push(route)
  317. } else if (route == 'S') {
  318. route = '提交'
  319. if (this.formy.id != -1) {
  320. this.jeigneutwo.push(route)
  321. }
  322. } else if (route == 'U') {
  323. route = '反提交'
  324. if (this.formy.id != -1) {
  325. this.jeigneutwo.push(route)
  326. }
  327. } else if (route == 'I') {
  328. route = '导入'
  329. this.jeigneutwo.push(route)
  330. } else if (route == 'E') {
  331. route = '导出'
  332. this.jeigneutwo.push(route)
  333. }
  334. })
  335. })
  336. },
  337. // 数据信息
  338. edingelsie() {
  339. getQueryList(
  340. this.tabledeLise
  341. ).then(res => {
  342. let data = res.data
  343. this.taleLisst = data
  344. })
  345. },
  346. // tab数据
  347. edingelsietab() {
  348. geteditindeTab(this.tableZbietabg).then(response => {
  349. this.tabldie = [{tableComment:'主表数据',tableName:this.taheus}]
  350. this.tabldie =this.tabldie.concat(response.data.ref)
  351. if (this.tabldie.length !== 1) {
  352. } else {
  353. this.msgSuccess("暂无tab数据");
  354. this.$store.dispatch("tagsView/delView", this.$route);
  355. this.$router.go(-1)
  356. }
  357. });
  358. },
  359. // 列表数据
  360. foremliseju(){
  361. listIndex(this.queryParamslist).then(res => {
  362. if(res.code == 200){
  363. let data = res.data
  364. this.postList = data
  365. this.total = res.data.total - 0
  366. }else{
  367. }
  368. this.loading = false
  369. })
  370. },
  371. changeFn(obj) {
  372. for (let key in obj) {
  373. this.queryParams[key] = obj[key]
  374. }
  375. },
  376. handleQuery(index) {
  377. for (let item of this.queryData.showData) {
  378. for (var i = 0; i < item.hrChildren.length; i++) {
  379. if (item.hrChildren[i].htmlType == 'checkbox') {
  380. this.queryParams[item.hrChildren[i].columnName] = this.$refs[item.hrChildren[i].columnName][0].config
  381. }else if(item.hrChildren[i].htmlType == 'imageUpload' || item.hrChildren[i].htmlType == 'fileUpload'){
  382. if(this.$refs[item.hrChildren[i].columnName][0].config.length){
  383. this.queryParams[item.hrChildren[i].columnName] = JSON.stringify(this.$refs[item.hrChildren[i].columnName][0].config)
  384. }
  385. } else if (item.hrChildren[i].htmlType == 'datetime') {
  386. if (this.$refs[item.hrChildren[i].columnName][0].config[item.hrChildren[i].columnName]) {
  387. this.queryParams[item.hrChildren[i].columnName] = this.$refs[item.hrChildren[i].columnName][0].config[item.hrChildren[i].columnName]
  388. }else{
  389. this.queryParams[item.hrChildren[i].columnName] = null
  390. }
  391. } else {
  392. this.queryParams[item.hrChildren[i].columnName] = this.$refs[item.hrChildren[i].columnName][0].config[item.hrChildren[i].columnName]
  393. }
  394. }
  395. }
  396. if (this.queryParams.pageNum !== undefined) {
  397. this.queryParams.pageNum = undefined
  398. }
  399. if (this.queryParams.pageSize !== undefined) {
  400. this.queryParams.pageSize = undefined
  401. }
  402. if (index == '删除') {
  403. //删除
  404. this.handleDelete(this.deledlid)
  405. } else if (index == '提交') {
  406. //提交 保存
  407. this.formeanti.commitData = []
  408. this.formy.status = 1
  409. this.formeanti.commitData.push(this.formy)
  410. this.antiSubmission()
  411. } else if (index == '反提交') {
  412. //反提交 保存
  413. this.formeanti.commitData = []
  414. this.formy.status = 2
  415. this.formeanti.commitData.push(this.formy)
  416. this.antiSubmission()
  417. } else if (index == '保存') {
  418. // 修改
  419. this.forme.fixedData = this.queryParams
  420. this.submitForm()
  421. } else if (index == '返回') {
  422. this.$store.dispatch("tagsView/delView", this.$route);
  423. this.$router.go(-1)
  424. } else if (index == '刷新') {
  425. this.reload()
  426. }else if(index == '新增'){
  427. this.routerFn(-1, this.tabName)
  428. }else if(index == '修改'){
  429. if (this.single) {
  430. this.msgInfo('请勾选一条信息')
  431. return
  432. }
  433. const id = this.ids.join(',')
  434. this.routerFn(id, this.tabName)
  435. }
  436. // this.getList();
  437. },
  438. /** 新增 修改提交按钮 */
  439. submitForm: function() {
  440. this.$refs["queryForm"].validate(valid => {
  441. if (valid) {
  442. addbjectSave(this.forme).then(response => {
  443. this.msgSuccess("保存成功");
  444. this.open = false;
  445. this.$store.dispatch("tagsView/delView", this.$route);
  446. this.$router.go(-1)
  447. // this.getList();
  448. });
  449. }
  450. });
  451. },
  452. // 提交反提交
  453. antiSubmission() {
  454. this.$refs["queryForm"].validate(valid => {
  455. if (valid) {
  456. if (this.formy.status == 1) {
  457. // 提交
  458. tableSubimt(this.formeanti).then(response => {
  459. this.msgSuccess("提交成功");
  460. this.$store.dispatch("tagsView/delView", this.$route);
  461. this.$router.go(-1)
  462. // this.getList();
  463. });
  464. } else if (this.formy.status == 2) {
  465. // 反提交
  466. tableSubimtanit(this.formeanti).then(response => {
  467. this.msgSuccess("反提交成功");
  468. this.$store.dispatch("tagsView/delView", this.$route);
  469. this.$router.go(-1)
  470. // this.getList();
  471. });
  472. }
  473. }
  474. });
  475. },
  476. //删除
  477. handleDelete(index) {
  478. if(this.num == 0){
  479. this.$confirm('是否确认删除', "警告", {
  480. confirmButtonText: "确定",
  481. cancelButtonText: "取消",
  482. type: "warning"
  483. }).then(function() {
  484. return delMenutab(index);
  485. }).then(() => {
  486. // this.getList();
  487. this.msgSuccess("删除成功");
  488. this.$store.dispatch("tagsView/delView", this.$route);
  489. this.$router.go(-1)
  490. })
  491. }else{
  492. if (this.single) {
  493. this.msgInfo('请勾选一条信息')
  494. return
  495. }
  496. // console.log(this.ids)
  497. var that = this
  498. index.idList = this.ids
  499. index.table = this.tabName
  500. this.$confirm('是否确认删除', "警告", {
  501. confirmButtonText: "确定",
  502. cancelButtonText: "取消",
  503. type: "warning"
  504. }).then(function() {
  505. return delMenutab(index);
  506. }).then(() => {
  507. this.foremliseju();
  508. this.msgSuccess("删除成功");
  509. // this.$router.go(-1)
  510. })
  511. }
  512. },
  513. // 多选框选中数据
  514. handleSelectionChange(selection) {
  515. this.ids = selection.map(item => item.id)
  516. this.single = selection.length != 1
  517. this.multiple = !selection.length
  518. },
  519. routerFn(id, tables) {
  520. // if (this.queryDatatwo.viewType == 'crud') {
  521. this.$router.push({
  522. path: 'table',
  523. query: {
  524. id,
  525. tables,
  526. },
  527. })
  528. },
  529. // 搜索
  530. handleQueryiu(){
  531. for(let item of this.queryDatatwo.queryList){
  532. if(item.htmlType == 'checkbox'){
  533. this.queryParamstwoi[item.columnName] = this.$refs[item.columnName][0].config
  534. }else if(item.htmlType == 'imageUpload' || item.htmlType == 'fileUpload'){
  535. this.queryParamstwoi[item.columnName] = JSON.stringify(this.$refs[item.columnName][0].config)
  536. } else{
  537. this.queryParamstwoi[item.columnName] = this.$refs[item.columnName][0].config[item.columnName]
  538. }
  539. }
  540. for(var items in this.queryParamstwoi){
  541. if(this.queryParamstwoi[items] == ''){
  542. this.queryParamstwoi[items] = undefined
  543. }
  544. }
  545. this.queryParamslist.fixedData.condition = this.queryParamstwoi
  546. this.foremliseju()
  547. },
  548. resetQuery(){
  549. this.resetForm("queryParamstwoi");
  550. this.foremliseju();
  551. }
  552. },
  553. };
  554. </script>
  555. <style lang="scss">
  556. .table_forem{
  557. .el-form--inline .el-form-item{
  558. width: 100% !important;
  559. }
  560. .el-select{
  561. width: 100%;
  562. }
  563. .el-date-editor.el-input{
  564. width: 100% !important;
  565. }
  566. .el-form-item--medium .el-form-item__content{
  567. width: 70%;
  568. }
  569. }
  570. .eniting_header {
  571. position: relative;
  572. .el-divider--horizontal {
  573. margin-top: 0;
  574. }
  575. .el-form-item{
  576. margin-bottom: 0 !important;
  577. margin-right: 10px;
  578. }
  579. }
  580. .eniting_nav {
  581. // .el-form-item{
  582. // width: 25% !important;
  583. // }
  584. .el-collapse-item__content {
  585. padding-bottom: 0;
  586. }
  587. .el-collapse-item__wrap {
  588. border-bottom: 0;
  589. }
  590. .el-collapse-item__header {
  591. border-bottom: 0;
  592. font-size: 15px;
  593. font-family: PingFang SC;
  594. font-weight: bold;
  595. color: #3C8DBC;
  596. line-height: 36px;
  597. }
  598. // .el-form-item__content{
  599. // width: 65%;
  600. // }
  601. .textarea_et {
  602. width: 95%;
  603. .el-form-item__content {
  604. width: 80%;
  605. height: 83px;
  606. .el-textarea__inner {
  607. height: 100%;
  608. }
  609. }
  610. }
  611. .textarea_etyju {
  612. width: 90%;
  613. .el-form-item__content {
  614. width: 75%;
  615. // height: 83px;
  616. .el-textarea__inner {
  617. // height: 100%;
  618. }
  619. }
  620. }
  621. .textarea_ety {
  622. width: 100%;
  623. .el-form-item__content {
  624. width: 88%;
  625. height: 150px;
  626. margin-bottom: 0;
  627. .el-textarea__inner {
  628. height: 100%;
  629. }
  630. }
  631. }
  632. .el-collapse {
  633. border-top: 0;
  634. }
  635. .eitde {
  636. background-color: #fff;
  637. border-radius: 6px;
  638. padding: 23px;
  639. padding-top: 0;
  640. margin-bottom: 10px;
  641. }
  642. }
  643. </style>
  644. <style scoped lang="scss">
  645. .table_headerBtuntue{
  646. display: flex;
  647. height: 30px;
  648. align-items: center;
  649. }
  650. .eniting {
  651. p {
  652. margin: 0;
  653. }
  654. background-color: #eef0ff;
  655. height: 100%;
  656. padding: 20px;
  657. .eniting_header {
  658. background-color: #fff;
  659. border-radius: 6px;
  660. padding: 13px;
  661. margin-bottom: 10px;
  662. .p {
  663. font-size: 15px;
  664. font-weight: bold;
  665. color: #3C8DBC;
  666. line-height: 36px;
  667. margin-bottom: 0;
  668. }
  669. .p::before {
  670. content: "";
  671. display: block;
  672. width: 18px;
  673. height: 8px;
  674. background: #3C8DBC;
  675. border-radius: 3px;
  676. }
  677. .ppl {
  678. display: flex;
  679. height: 54px;
  680. p {
  681. position: relative;
  682. width: 113px;
  683. height: 38px;
  684. img {
  685. position: absolute;
  686. top: 0;
  687. left: 0;
  688. width: 100%;
  689. height: 100%;
  690. // z-index: -1;
  691. }
  692. span {
  693. width: 100%;
  694. position: absolute;
  695. top: 0;
  696. left: 0;
  697. // transform: translate(-50%);
  698. text-align: center;
  699. line-height: 38px;
  700. font-size: 15px;
  701. font-family: PingFang SC;
  702. font-weight: bold;
  703. color: #aaa;
  704. }
  705. .span {
  706. color: #3C8DBC;
  707. }
  708. }
  709. }
  710. }
  711. // 内容
  712. .eniting_nav {
  713. // background-color: #fff;
  714. // border-radius: 6px;
  715. // padding: 23px;
  716. }
  717. }
  718. .imge_tab{
  719. position: absolute;
  720. right: 0;
  721. top: 5px;
  722. }
  723. </style>