index.vue 25 KB

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