index.vue 25 KB

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