index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  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. <el-form v-show="num == 0" :rules="queryData.rules" :model="queryParams" ref="queryForm" :inline="true" label-width="120px">
  36. <el-collapse-item :title="item.columnComment" :name="index" v-for="(item,index) in queryData.showData" :key="index"
  37. class="eitde">
  38. <el-row>
  39. <el-col :span="24" :key="index">
  40. <dynamic-forms @modelFn="modelFn" :ref="items.columnName" :config="queryParams" @inputs="changeFn" :formConfig="items"
  41. v-for="(items,indexs) in item.hrChildren" :key='indexs' />
  42. </el-col>
  43. </el-row>
  44. </el-collapse-item>
  45. </el-form>
  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. console.log(this.deledlid)
  179. // tab
  180. this.edingelsietab()
  181. this.init()
  182. },
  183. filters: {},
  184. methods: {
  185. modelFn(obj, cont) {
  186. this.$set(this.queryParams,obj,cont)
  187. },
  188. handleChange(val) {
  189. console.log(val);
  190. },
  191. enditTab(index) {
  192. this.num = index
  193. console.log(index)
  194. if(this.num == 0){
  195. console.log(34567)
  196. this.tabledeLise.table = this.tabldie[index].tableName
  197. this.formeanti.table = this.tabldie[index].tableName
  198. this.forme.table = this.tabldie[index].tableName
  199. this.tableZbie.table = this.taheus
  200. this.tableZbie.fixedData.id = this.taheusid
  201. this.init()
  202. this.reload()
  203. }else{
  204. this.tabName = this.tabldie[index].tableName
  205. this.queryParamslist.table = this.tabldie[index].tableName
  206. this.inittwo()
  207. this.foremliseju()
  208. }
  209. // this.tableZbie.table = this.tabldie[index].tableName
  210. // this.tableZbie.fixedData.id = this.tabldie[index].id
  211. // this.edingelsie()
  212. // this.init()
  213. },
  214. // 按钮
  215. init() {
  216. getTableQuery(
  217. this.tableZbie
  218. ).then(res => {
  219. let data = res.data
  220. this.queryData = data
  221. this.jeigneutwo = []
  222. this.jeigneu = []
  223. this.jeigneu = data.buttonList.split('')
  224. console.log(data.buttonList)
  225. console.log(this.jeigneu)
  226. this.jeigneu.filter(route => {
  227. // route.dept_id = route.dept_id.value
  228. console.log(route)
  229. if (route == 'A') {
  230. if (this.formy.id == -1) {
  231. route = '保存'
  232. this.jeigneutwo.push(route)
  233. } else {
  234. route = '新增'
  235. }
  236. } else if (route == 'M') {
  237. route = '保存'
  238. if (this.formy.id != -1) {
  239. this.jeigneutwo.push(route)
  240. }
  241. } else if (route == 'D') {
  242. route = '删除'
  243. if (this.formy.id != -1) {
  244. this.jeigneutwo.push(route)
  245. }
  246. } else if (route == 'Q') {
  247. route = '查询'
  248. this.jeigneutwo.push(route)
  249. } else if (route == 'S') {
  250. route = '提交'
  251. if (this.formy.id != -1) {
  252. this.jeigneutwo.push(route)
  253. }
  254. } else if (route == 'U') {
  255. route = '反提交'
  256. if (this.formy.id != -1) {
  257. this.jeigneutwo.push(route)
  258. }
  259. } else if (route == 'I') {
  260. route = '导入'
  261. this.jeigneutwo.push(route)
  262. } else if (route == 'E') {
  263. route = '导出'
  264. this.jeigneutwo.push(route)
  265. }
  266. })
  267. this.jeigneutwo.push('刷新')
  268. this.jeigneutwo.push('返回')
  269. console.log(this.queryData, 567)
  270. // 图片的显示隐藏
  271. if(this.queryData.showData.length !==0){
  272. this.queryData.showData.filter(route => {
  273. if(route.cssClass !== null){
  274. this.imgShoew = route.cssClass
  275. if(route.cssClass == 2 || route.cssClass == 4 ){
  276. console.log(34)
  277. // || route.mask.slice(3,4) == '0'
  278. route.hrChildren.filter(routers =>{
  279. routers.isonliy = true
  280. })
  281. // route.routers = true
  282. }else{
  283. console.log(123)
  284. route.hrChildren.filter(routers =>{
  285. routers.isonliy = false
  286. })
  287. // route.isonliy = false
  288. }
  289. }
  290. })
  291. }
  292. })
  293. },
  294. inittwo() {
  295. tableQuery({
  296. table: this.tabName,
  297. }).then(res => {
  298. let data = res.data
  299. this.queryDatatwo = data
  300. this.jeigneutwo = []
  301. this.jeigneu = []
  302. this.jeigneu = data.buttonList.split('')
  303. console.log(data.buttonList)
  304. console.log(this.jeigneu)
  305. this.jeigneu.filter(route => {
  306. // route.dept_id = route.dept_id.value
  307. console.log(route)
  308. if (route == 'A') {
  309. route = '新增'
  310. this.jeigneutwo.push(route)
  311. } else if (route == 'M') {
  312. route = '修改'
  313. if (this.formy.id != -1) {
  314. this.jeigneutwo.push(route)
  315. }
  316. } else if (route == 'D') {
  317. route = '删除'
  318. if (this.formy.id != -1) {
  319. this.jeigneutwo.push(route)
  320. }
  321. } else if (route == 'Q') {
  322. route = '查询'
  323. this.jeigneutwo.push(route)
  324. } else if (route == 'S') {
  325. route = '提交'
  326. if (this.formy.id != -1) {
  327. this.jeigneutwo.push(route)
  328. }
  329. } else if (route == 'U') {
  330. route = '反提交'
  331. if (this.formy.id != -1) {
  332. this.jeigneutwo.push(route)
  333. }
  334. } else if (route == 'I') {
  335. route = '导入'
  336. this.jeigneutwo.push(route)
  337. } else if (route == 'E') {
  338. route = '导出'
  339. this.jeigneutwo.push(route)
  340. }
  341. })
  342. // this.jeigneutwo.push('刷新')
  343. // this.jeigneutwo.push('返回')
  344. })
  345. },
  346. // 数据信息
  347. edingelsie() {
  348. console.log(1234)
  349. getQueryList(
  350. this.tabledeLise
  351. ).then(res => {
  352. let data = res.data
  353. this.taleLisst = data
  354. // console.log(this.queryData.queryList)
  355. })
  356. },
  357. // tab数据
  358. edingelsietab() {
  359. console.log(4566)
  360. geteditindeTab(this.tableZbietabg).then(response => {
  361. this.tabldie = [{tableComment:'主表数据',tableName:this.taheus}]
  362. this.tabldie =this.tabldie.concat(response.data.ref)
  363. if (this.tabldie.length !== 1) {
  364. // this.tableZbie.table = this.tabldie[0].tableName
  365. // this.tableZbie.fixedData.id = this.tabldie[0].id
  366. // this.foremliseju()
  367. } else {
  368. this.msgSuccess("暂无tab数据");
  369. this.$router.go(-1)
  370. }
  371. // this.msgSuccess("反提交成功");
  372. // this.open = false;
  373. // this.getList();
  374. });
  375. },
  376. // 列表数据
  377. foremliseju(){
  378. listIndex(this.queryParamslist).then(res => {
  379. console.log(res)
  380. if(res.code == 200){
  381. let data = res.data
  382. this.postList = data
  383. this.total = res.data.total - 0
  384. }else{
  385. console.log(876)
  386. // this.postList = []
  387. }
  388. this.loading = false
  389. console.log(this.total)
  390. console.log(this.postList,567)
  391. })
  392. },
  393. changeFn(obj) {
  394. for (let key in obj) {
  395. this.queryParams[key] = obj[key]
  396. }
  397. },
  398. handleQuery(index) {
  399. console.log(index, 4)
  400. for (let item of this.queryData.showData) {
  401. for (var i = 0; i < item.hrChildren.length; i++) {
  402. if (item.hrChildren[i].htmlType == 'checkbox') {
  403. this.queryParams[item.hrChildren[i].columnName] = this.$refs[item.hrChildren[i].columnName][0].config
  404. }else if(item.hrChildren[i].htmlType == 'imageUpload' || item.hrChildren[i].htmlType == 'fileUpload'){
  405. if(this.$refs[item.hrChildren[i].columnName][0].config.length){
  406. this.queryParams[item.hrChildren[i].columnName] = JSON.stringify(this.$refs[item.hrChildren[i].columnName][0].config)
  407. }
  408. } else if (item.hrChildren[i].htmlType == 'datetime') {
  409. if (this.$refs[item.hrChildren[i].columnName][0].config[item.hrChildren[i].columnName]) {
  410. this.queryParams[item.hrChildren[i].columnName] = this.$refs[item.hrChildren[i].columnName][0].config[item.hrChildren[i].columnName]
  411. }else{
  412. this.queryParams[item.hrChildren[i].columnName] = null
  413. }
  414. } else {
  415. this.queryParams[item.hrChildren[i].columnName] = this.$refs[item.hrChildren[i].columnName][0].config[item.hrChildren[i].columnName]
  416. }
  417. }
  418. }
  419. if (this.queryParams.pageNum !== undefined) {
  420. this.queryParams.pageNum = undefined
  421. }
  422. if (this.queryParams.pageSize !== undefined) {
  423. this.queryParams.pageSize = undefined
  424. }
  425. if (index == '删除') {
  426. //删除
  427. this.handleDelete(this.deledlid)
  428. } else if (index == '提交') {
  429. //提交 保存
  430. // this.formeanti.table = 'obj_test'
  431. this.formeanti.commitData = []
  432. this.formy.status = 1
  433. // this.formy.id = 0
  434. this.formeanti.commitData.push(this.formy)
  435. console.log(this.formeanti)
  436. this.antiSubmission()
  437. } else if (index == '反提交') {
  438. //反提交 保存
  439. // this.formeanti.table = 'obj_test'
  440. this.formeanti.commitData = []
  441. this.formy.status = 2
  442. // this.formy.id = 0
  443. this.formeanti.commitData.push(this.formy)
  444. console.log(this.formeanti)
  445. this.antiSubmission()
  446. } else if (index == '保存') {
  447. // 修改
  448. // this.forme.table = 'obj_test'
  449. // this.forme.objId = 1
  450. this.forme.fixedData = this.queryParams
  451. this.submitForm()
  452. } else if (index == '返回') {
  453. // if(this.xidugje ==0){
  454. // this.$router.go(-2)
  455. // }else{
  456. this.$router.go(-1)
  457. // }
  458. } else if (index == '刷新') {
  459. // this.xidugje = 1
  460. this.reload()
  461. }else if(index == '新增'){
  462. this.routerFn(-1, this.tabName)
  463. }else if(index == '修改'){
  464. if (this.single) {
  465. this.msgInfo('请勾选一条信息')
  466. return
  467. }
  468. const id = this.ids.join(',')
  469. console.log(12346)
  470. this.routerFn(id, this.tabName)
  471. }
  472. console.log(this.forme)
  473. // this.getList();
  474. },
  475. /** 新增 修改提交按钮 */
  476. submitForm: function() {
  477. console.log(3456)
  478. this.$refs["queryForm"].validate(valid => {
  479. if (valid) {
  480. addbjectSave(this.forme).then(response => {
  481. this.msgSuccess("保存成功");
  482. this.open = false;
  483. this.$router.go(-1)
  484. // this.getList();
  485. });
  486. }
  487. });
  488. },
  489. // 提交反提交
  490. antiSubmission() {
  491. this.$refs["queryForm"].validate(valid => {
  492. if (valid) {
  493. if (this.formy.status == 1) {
  494. // 提交
  495. tableSubimt(this.formeanti).then(response => {
  496. this.msgSuccess("提交成功");
  497. this.$router.go(-1)
  498. // this.open = false;
  499. // this.getList();
  500. });
  501. } else if (this.formy.status == 2) {
  502. // 反提交
  503. tableSubimtanit(this.formeanti).then(response => {
  504. this.msgSuccess("反提交成功");
  505. this.$router.go(-1)
  506. // this.open = false;
  507. // this.getList();
  508. });
  509. }
  510. }
  511. });
  512. },
  513. //删除
  514. handleDelete(index) {
  515. console.log(index)
  516. if(this.num == 0){
  517. this.$confirm('是否确认删除', "警告", {
  518. confirmButtonText: "确定",
  519. cancelButtonText: "取消",
  520. type: "warning"
  521. }).then(function() {
  522. return delMenutab(index);
  523. }).then(() => {
  524. // this.getList();
  525. this.msgSuccess("删除成功");
  526. this.$router.go(-1)
  527. })
  528. }else{
  529. if (this.single) {
  530. this.msgInfo('请勾选一条信息')
  531. return
  532. }
  533. console.log(this.ids)
  534. var that = this
  535. index.idList = this.ids
  536. index.table = this.tabName
  537. this.$confirm('是否确认删除', "警告", {
  538. confirmButtonText: "确定",
  539. cancelButtonText: "取消",
  540. type: "warning"
  541. }).then(function() {
  542. return delMenutab(index);
  543. }).then(() => {
  544. this.foremliseju();
  545. this.msgSuccess("删除成功");
  546. // this.$router.go(-1)
  547. })
  548. }
  549. },
  550. // 多选框选中数据
  551. handleSelectionChange(selection) {
  552. this.ids = selection.map(item => item.id)
  553. console.log(this.ids)
  554. this.single = selection.length != 1
  555. this.multiple = !selection.length
  556. },
  557. routerFn(id, tables) {
  558. console.log(157)
  559. if (this.queryDatatwo.viewType == 'crud') {
  560. this.$router.push({
  561. path: 'table',
  562. query: {
  563. id,
  564. tables,
  565. },
  566. })
  567. } else if (this.queryDatatwo.viewType == 'itemTab') {
  568. this.$router.push({
  569. path: '../form/index.vue',
  570. query: {
  571. id,
  572. tables,
  573. },
  574. })
  575. }
  576. },
  577. // 搜索
  578. handleQueryiu(){
  579. for(let item of this.queryDatatwo.queryList){
  580. // for(var i = 0 ; i < item.hrChildren.length ; i++){
  581. if(item.htmlType == 'checkbox'){
  582. this.queryParamstwoi[item.columnName] = this.$refs[item.columnName][0].config
  583. }else if(item.htmlType == 'imageUpload' || item.htmlType == 'fileUpload'){
  584. this.queryParamstwoi[item.columnName] = JSON.stringify(this.$refs[item.columnName][0].config)
  585. } else{
  586. this.queryParamstwoi[item.columnName] = this.$refs[item.columnName][0].config[item.columnName]
  587. }
  588. // }
  589. }
  590. for(var items in this.queryParamstwoi){
  591. if(this.queryParamstwoi[items] == ''){
  592. this.queryParamstwoi[items] = undefined
  593. }
  594. }
  595. this.queryParamslist.fixedData.condition = this.queryParamstwoi
  596. this.foremliseju()
  597. console.log(this.queryParamstwoi)
  598. },
  599. resetQuery(){
  600. this.resetForm("queryParamstwoi");
  601. this.foremliseju();
  602. }
  603. },
  604. };
  605. </script>
  606. <style lang="scss">
  607. .eniting_header {
  608. position: relative;
  609. .el-divider--horizontal {
  610. margin-top: 0;
  611. }
  612. .el-form-item{
  613. margin-bottom: 0 !important;
  614. margin-right: 10px;
  615. }
  616. }
  617. .eniting_nav {
  618. // .el-form-item{
  619. // width: 25% !important;
  620. // }
  621. .el-collapse-item__content {
  622. padding-bottom: 0;
  623. }
  624. .el-collapse-item__wrap {
  625. border-bottom: 0;
  626. }
  627. .el-collapse-item__header {
  628. border-bottom: 0;
  629. font-size: 15px;
  630. font-family: PingFang SC;
  631. font-weight: bold;
  632. color: #3C8DBC;
  633. line-height: 36px;
  634. }
  635. // .el-form-item__content{
  636. // width: 65%;
  637. // }
  638. .textarea_et {
  639. width: 95%;
  640. .el-form-item__content {
  641. width: 80%;
  642. height: 83px;
  643. .el-textarea__inner {
  644. height: 100%;
  645. }
  646. }
  647. }
  648. .textarea_etyju {
  649. width: 90%;
  650. .el-form-item__content {
  651. width: 75%;
  652. // height: 83px;
  653. .el-textarea__inner {
  654. // height: 100%;
  655. }
  656. }
  657. }
  658. .textarea_ety {
  659. width: 100%;
  660. .el-form-item__content {
  661. width: 88%;
  662. height: 150px;
  663. margin-bottom: 0;
  664. .el-textarea__inner {
  665. height: 100%;
  666. }
  667. }
  668. }
  669. .el-collapse {
  670. border-top: 0;
  671. }
  672. .eitde {
  673. background-color: #fff;
  674. border-radius: 6px;
  675. padding: 23px;
  676. margin-bottom: 20px;
  677. }
  678. }
  679. </style>
  680. <style scoped lang="scss">
  681. .table_headerBtuntue{
  682. display: flex;
  683. height: 30px;
  684. align-items: center;
  685. }
  686. .eniting {
  687. p {
  688. margin: 0;
  689. }
  690. background-color: #eef0ff;
  691. height: 100%;
  692. padding: 20px;
  693. .eniting_header {
  694. background-color: #fff;
  695. border-radius: 6px;
  696. padding: 23px;
  697. margin-bottom: 20px;
  698. .p {
  699. font-size: 15px;
  700. font-weight: bold;
  701. color: #3C8DBC;
  702. line-height: 36px;
  703. margin-bottom: 0;
  704. }
  705. .p::before {
  706. content: "";
  707. display: block;
  708. width: 18px;
  709. height: 8px;
  710. background: #3C8DBC;
  711. border-radius: 3px;
  712. }
  713. .ppl {
  714. display: flex;
  715. height: 54px;
  716. p {
  717. position: relative;
  718. width: 113px;
  719. height: 38px;
  720. img {
  721. position: absolute;
  722. top: 0;
  723. left: 0;
  724. width: 100%;
  725. height: 100%;
  726. // z-index: -1;
  727. }
  728. span {
  729. width: 100%;
  730. position: absolute;
  731. top: 0;
  732. left: 0;
  733. // transform: translate(-50%);
  734. text-align: center;
  735. line-height: 38px;
  736. font-size: 15px;
  737. font-family: PingFang SC;
  738. font-weight: bold;
  739. color: #aaa;
  740. }
  741. .span {
  742. color: #3C8DBC;
  743. }
  744. }
  745. }
  746. }
  747. // 内容
  748. .eniting_nav {
  749. // background-color: #fff;
  750. // border-radius: 6px;
  751. // padding: 23px;
  752. }
  753. }
  754. .imge_tab{
  755. position: absolute;
  756. right: 0;
  757. top: 5px;
  758. }
  759. </style>