globalForm.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  1. <template>
  2. <!-- 仿 单页 -->
  3. <div>
  4. <!-- 头部搜索框部分 -->
  5. <div class="title">
  6. <el-row>
  7. <el-col :span="6" class="left">
  8. <div class="searchBox">
  9. <div class="searchTitle">网站名称</div>
  10. <el-select v-model="webSiteName_id" :multiple="false" :multiple-limit="1" filterable remote
  11. clearable reserve-keyword placeholder="请输入网站名称" :remote-method="getWebNavList"
  12. :loading="webSiteLoading" @change="selectWebSite">
  13. <el-option v-for="item in webSiteList" :key="item.value" :label="item.label"
  14. :value="item.value">
  15. </el-option>
  16. </el-select>
  17. </div>
  18. </el-col>
  19. <el-col :span="6" class="left">
  20. <div class="searchBox">
  21. <div class="searchTitle">表单名称</div>
  22. <el-input v-model="tabbarName" class="input" placeholder="请输入表单名称">
  23. </el-input>
  24. </div>
  25. </el-col>
  26. <el-col :span="8" class="right">
  27. <div class="btnList">
  28. <button class="search" @click="goSearch">搜索</button>
  29. <button class="reset" @click="goReset">重置</button>
  30. </div>
  31. </el-col>
  32. </el-row>
  33. </div>
  34. <!--表格内容 start------------------------------------------------------------>
  35. <div class="layerBox">
  36. <tableTitle :name="tableDivTitle" />
  37. <button class="btn" @click="addWebsite">添加表单</button>
  38. <el-row>
  39. <template>
  40. <el-table class="my-table" :data="tableData" style="width: 100%">
  41. <el-table-column fixed prop="id" label="编号" width="90">
  42. <template slot-scope="scope">
  43. {{ (page - 1) * pageSize + scope.$index + 1 }}
  44. </template>
  45. </el-table-column>
  46. <el-table-column prop="name" label="表单名" width="">
  47. </el-table-column>
  48. <el-table-column prop="table" label="表名" width="">
  49. </el-table-column>
  50. <el-table-column prop="website_name" label="网站名称" width="">
  51. </el-table-column>
  52. <el-table-column prop="is_code" label="验证码" width="122">
  53. <template slot-scope="scope">
  54. {{ scope.row.is_code === 0 ? '未使用验证码' : '已使用验证码' }}
  55. </template>
  56. </el-table-column>
  57. <el-table-column fixed="right" label="操作" width="444">
  58. <template slot-scope="scope">
  59. <div class="listBtnBox">
  60. <div class="listLookBtn" @click="goLook(scope.row.id, scope.row )">
  61. <i class="el-icon-view"></i>
  62. 查看内容
  63. </div>
  64. <div class="listMainBtn" @click="goFont(scope.row.id, scope.row)">
  65. <!-- <i class="el-icon-edit-outline"></i> -->
  66. <i class="el-icon-check"></i>
  67. 自定义字段
  68. </div>
  69. <div class="listEditBtn" @click="goEdit(scope.row.id, scope.row)">
  70. <i class="el-icon-edit-outline"></i>
  71. 编辑
  72. </div>
  73. <div class="listDeleteBtn" @click="deleteRow(scope.row.id)">
  74. <i class="el-icon-delete"></i>
  75. 删除
  76. </div>
  77. </div>
  78. </template>
  79. </el-table-column>
  80. </el-table>
  81. </template>
  82. </el-row>
  83. </div>
  84. <!--分页 start------------------------------------------------------------>
  85. <div class="alignBox">
  86. <el-row>
  87. <el-col :span="24">
  88. <el-pagination background
  89. @size-change="handleSizeChange"
  90. @current-change="handleCurrentChange"
  91. :current-page="page"
  92. :page-size="pageSize"
  93. layout="total, prev, pager, next, jumper"
  94. :pager-count="5"
  95. :total="total">
  96. </el-pagination>
  97. </el-col>
  98. </el-row>
  99. </div>
  100. <!--分页 end------------------------------------------------------------>
  101. <!--表格内容 end------------------------------------------------------------>
  102. <!-- 弹出框 编辑 start----------------------------------------------------------->
  103. <el-dialog :title="dialogName" :visible.sync="dialogTableVisible" width="50%" top="8vh"
  104. :close-on-click-modal="false" @close="cancelForm">
  105. <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">
  106. <div class="dialogText">
  107. <el-form-item label="表单名:" prop="form_name" >
  108. <el-input v-model="ruleForm.form_name" placeholder="请输入表单名">
  109. </el-input>
  110. </el-form-item>
  111. <el-form-item label="表名:" prop="table_name">
  112. <el-input v-model="ruleForm.table_name" placeholder="请输入表名" :disabled="dialogName === '编辑表单'">
  113. </el-input>
  114. </el-form-item>
  115. <el-form-item label="网站名称:" prop="tabbarName_2">
  116. <el-select v-model="ruleForm.tabbarName_2" :multiple="false" :multiple-limit="1" filterable remote
  117. clearable reserve-keyword placeholder="请输入网站名称" :remote-method="getWebNavList"
  118. :loading="webSiteLoading" @change="selectWebSite_2">
  119. <el-option v-for="item in webSiteList_2" :key="item.value" :label="item.label"
  120. :value="item.value">
  121. </el-option>
  122. </el-select>
  123. </el-form-item>
  124. <el-form-item label="验证码:" prop="use_captcha">
  125. <el-switch
  126. v-model="ruleForm.use_captcha"
  127. active-text="启用"
  128. inactive-text="停用"
  129. active-color="#5570F1"
  130. inactive-color="#DCDFE6">
  131. </el-switch>
  132. </el-form-item>
  133. </div>
  134. <div class="dialogBtn">
  135. <el-button type="info" @click="cancelForm">取消</el-button>
  136. <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
  137. </div>
  138. </el-form>
  139. </el-dialog>
  140. <!-- 弹出框 编辑 end----------------------------------------------------------->
  141. </div>
  142. </template>
  143. <script>
  144. //表格标题
  145. import tableTitle from './components/tableTitle.vue';
  146. //引入公用样式
  147. import '@/styles/global.less';
  148. import { edit_table_api, del_table_api, add_table_api, get_list_api } from '@/api/globalFormApi'
  149. export default {
  150. components: {
  151. tableTitle,//表格标题-
  152. },
  153. data() {
  154. const validateEmpty = (rule, value, callback) => {
  155. if (value.length == 0) {
  156. callback(new Error('该项不能为空!'))
  157. } else {
  158. callback()
  159. }
  160. }
  161. // 新增字母数字验证规则
  162. const validateTableName = (rule, value, callback) => {
  163. const reg = /^[A-Za-z0-9]+$/;
  164. if (!reg.test(value)) {
  165. callback(new Error('表名只能包含字母和数字'));
  166. } else {
  167. callback();
  168. }
  169. };
  170. return {
  171. selecta_arr: ["1","2","3","4"],//表格数据
  172. if_submit_form:"",//判断是添加还是编辑
  173. tableDivTitle: "表单列表", //列表标题
  174. dialogTableVisible: false, //编辑弹框
  175. dialogName: '编辑', //编辑弹窗名称
  176. disabled: false, //禁用
  177. tableData: [],//表格数据
  178. // 可以输入的搜索框相关
  179. webSiteList: [],//获取关联网站列表
  180. webSiteList_2: [],//获取关联网站列表
  181. webSiteLoading: false,
  182. //3.4 上传logo图片
  183. logoUrl: '',
  184. hovering: false, // 鼠标悬浮状态 悬浮时显示删除
  185. value: '',
  186. activeid: "", //活动id
  187. type: "", //查看时需要传递的类型
  188. // 分页相关
  189. page: 1,
  190. pageSize: 10,
  191. total: 0,
  192. formLabelWidth: '', //广告示例图相关
  193. // 搜索框相关
  194. webSiteName_name: '', //网站名称
  195. webSiteName_id: '', //网站名称id
  196. webSiteName_id_2: '', //网站名称id=form
  197. tabbarName: '', //单页名称
  198. website_id: "", //网站id
  199. ruleForm: {
  200. use_captcha: 0, // 新增验证码开关
  201. form_name: '投诉举报', //表单名
  202. table_name: 'complaints_report', //表名
  203. webName: '', //网站名称
  204. tabbarName: '', //单页名称
  205. tabbarName_2: '', //单页名称
  206. pageType: '', //页面类型
  207. },
  208. rules: {
  209. table_name: [
  210. { required: true, trigger: 'blur', validator: validateEmpty }, // 原有必填验证
  211. { trigger: 'blur', validator: validateTableName } // 新增格式验证
  212. ],
  213. form_name: [{ required: true, trigger: 'blur', validator: validateEmpty }],
  214. webName: [{ required: true, trigger: 'blur', validator: validateEmpty }],
  215. tabbarName: [{ required: true, trigger: 'blur', validator: validateEmpty }],
  216. tabbarName_2: [{ required: true, trigger: 'blur', validator: validateEmpty }],
  217. pageType: [{ required: true, trigger: 'blur', validator: validateEmpty }],
  218. }
  219. }
  220. },
  221. methods: {
  222. //1.列表和分页相关 start ------------------------------------------------------------>
  223. //1.1 开始请求列表信息方法
  224. getData() {
  225. get_list_api({
  226. page: this.page,
  227. pageSize: this.pageSize,
  228. }).then(data => {
  229. this.tableData = data.data.list
  230. this.total = data.data.total
  231. })
  232. },
  233. //1.2 删除内容
  234. deleteRow(recive_id) {
  235. let data = new FormData()
  236. data.append('id', recive_id)
  237. this.$confirm('注意:确定删除?', '提示:', {
  238. confirmButtonText: '确定',
  239. cancelButtonText: '取消',
  240. }).then(() => {
  241. // console.log("当前删除:" + id)
  242. del_table_api({
  243. id: recive_id
  244. }).then(data => {
  245. if (data.code = 200) {
  246. this.$message({
  247. message: '删除成功',
  248. type: 'success'
  249. })
  250. this.getData()
  251. } else if (data.code == 0) {
  252. this.$message({
  253. message: data.message,
  254. type: 'error'
  255. })
  256. }
  257. })
  258. }).catch(() => {
  259. this.$message({
  260. type: 'warning',
  261. message: '已取消删除'
  262. });
  263. });
  264. },
  265. //1.3 查看示例图
  266. goGraph() {
  267. this.dialogVisible = true
  268. },
  269. //1.4 列表内容分页
  270. //直接跳转
  271. handleSizeChange(val) {
  272. this.page = val;
  273. this.getData();
  274. },
  275. //1.5 点击分页
  276. handleCurrentChange(val) {
  277. this.page = val;
  278. this.getData();
  279. },
  280. // 1.6 搜索按钮
  281. goSearch() {
  282. get_list_api({
  283. page: this.page,
  284. pageSize: this.pageSize,
  285. website_id: this.webSiteName_id,
  286. name: this.tabbarName,
  287. }).then(data => {
  288. this.tableData = data.data.list
  289. this.total = data.data.total
  290. })
  291. },
  292. //1.7 重置按钮
  293. goReset() {
  294. this.webSiteName_name = ""
  295. this.tabbarName = ""
  296. this.webSiteName_id = ""
  297. this.webSiteList = []
  298. this.getData()
  299. },
  300. //列表和分页相关 end ------------------------------------------------------------>
  301. //1.9 编辑
  302. goEdit(id, val) {
  303. console.log("=================",val);
  304. this.dialogName = '编辑表单'
  305. this.activeid = id
  306. this.dialogTableVisible = true
  307. this.disabled = true
  308. // console.log(id, val);
  309. // console.log("状态", val);
  310. // 数据回显
  311. this.ruleForm.form_name = val.name // 表单名
  312. this.ruleForm.table_name = val.table // 表名
  313. this.ruleForm.use_captcha = val.is_code == 1 ? true : false
  314. this.webSiteName_id_2 = val.website_id // 网站ID
  315. // 回显网站2名称
  316. this.ruleForm.tabbarName_2 = val.website_id // 设置选中值
  317. return this.getWebNavList(val.website_name)
  318. },
  319. //2.0 查看
  320. goLook(id, val) {
  321. console.log("查看----------",id);
  322. this.$router.push({
  323. path: '/globalFormDetail',
  324. query: {
  325. id: id,
  326. }
  327. })
  328. },
  329. //2.0 自定义字段
  330. goFont(recive_id, val) {
  331. // console.log("ID=", recive_id)
  332. this.$router.push({
  333. path: '/globalFormFont',
  334. query: {
  335. id: recive_id,
  336. website_name: val.website_name, // 网站名称
  337. }
  338. })
  339. },
  340. //1.7 添加
  341. addWebsite() {
  342. this.dialogTableVisible = true
  343. this.dialogName = "添加表单"
  344. this.disabled = false
  345. //添加时清空回显回来的数据
  346. this.ruleForm.webName = '' //关联网站名称
  347. this.ruleForm.tabbarName = '' //单页名称
  348. this.ruleForm.pageType = '' //页面类型
  349. this.ruleForm.use_captcha = false //验证码
  350. this.ruleForm={
  351. use_captcha: 0, // 新增验证码开关
  352. form_name: '投诉举报', //表单名
  353. table_name: 'complaints_report', //表名
  354. webName: '', //网站名称
  355. tabbarName: '', //单页名称
  356. tabbarName_2: '', //单页名称
  357. pageType: '', //页面类型
  358. }
  359. },
  360. // 弹出层相关方法
  361. submitForm(formName) {
  362. if(this.dialogName == "添加表单"){
  363. this.$refs[formName].validate((valid) => {
  364. if (valid) {
  365. add_table_api({// 提交表单add_table_api
  366. website_id: this.webSiteName_id_2, //网站id
  367. name: this.ruleForm.form_name, //表单名
  368. table: this.ruleForm.table_name, //表名
  369. is_code: this.ruleForm.use_captcha==true ? 1:0, //验证码
  370. }).then(data =>{
  371. if (data.code == 200) {
  372. this.$message({
  373. message: '添加成功',
  374. type: 'success'
  375. })
  376. this.dialogTableVisible = false
  377. this.getData()
  378. }
  379. }).catch(err =>{
  380. console.log(err);
  381. this.$message.error('添加失败---',err)
  382. })
  383. this.cancelForm()
  384. }else {
  385. this.$message.error('请填写所有必填项')
  386. return false
  387. }
  388. })
  389. return
  390. }
  391. if(this.dialogName == "编辑表单"){
  392. this.$refs[formName].validate((valid) => {
  393. if (valid) {
  394. edit_table_api({// 编辑表单
  395. website_id: this.webSiteName_id_2, //网站id
  396. name: this.ruleForm.form_name, //表单名
  397. table: this.ruleForm.table_name, //表名
  398. id: this.activeid, // 编辑时需要的id
  399. is_code: this.ruleForm.use_captcha==true ? 1:0, //验证码
  400. }).then(data =>{
  401. if (data.code == 200) {
  402. this.$message({
  403. message: '编辑成功',
  404. type: 'success'
  405. })
  406. this.dialogTableVisible = false
  407. this.getData()
  408. }
  409. }).catch(err =>{
  410. console.log(err);
  411. })
  412. this.cancelForm()
  413. }else {
  414. this.$message.error('请填1写所有必填项')
  415. return false
  416. }
  417. })
  418. }
  419. },
  420. //取消添加或编辑
  421. cancelForm() {
  422. this.$refs.ruleForm.resetFields() // 重置表单并清除验证状态
  423. this.$refs.ruleForm.clearValidate() // 清除所有验证提示
  424. this.dialogTableVisible = false
  425. this.webSiteName_id_2 = ""; //网站id
  426. this.ruleForm.form_name = "";//表单名
  427. this.ruleForm.table_name = ""; //表名
  428. this.webSiteList_2 = [] // 清空网站2下拉列表数据
  429. this.ruleForm.tabbarName_2 = '' // 新增:清空表单中网站2的绑定值
  430. },
  431. //3.6 上传图片操作
  432. beforeAvatarUpload(file) {
  433. const isJPG = file.type === 'image/jpeg';
  434. const isPNG = file.type === 'image/png';
  435. const isLt2M = file.size / 1024 / 1024 < 2;
  436. if (!isJPG && !isPNG) {
  437. this.$message.error('上传图片只能是 JPG 或 PNG 格式!');
  438. return false;
  439. }
  440. if (!isLt2M) {
  441. this.$message.error('上传图片大小不能超过 2MB!');
  442. return false;
  443. }
  444. const formData = new FormData();
  445. formData.append('file', file);
  446. this.$store.dispatch('pool/uploadFile', formData).then(res => {
  447. this.logoUrl = res.data.imgUrl;//显示缩略图
  448. this.ruleForm.adPhoto = res.data.imgUrl;//提供表单地址
  449. // console.log(res.data.imgUrl)
  450. }).catch(() => {
  451. this.$message({
  452. type: 'info',
  453. message: '网络错误,请重试!'
  454. });
  455. })
  456. // 阻止默认的上传行为
  457. return false;
  458. },
  459. handleDelete() {
  460. // 删除图片
  461. this.logoUrl = ''; // 清空图片 URL
  462. },
  463. //搜索部分的输入关键词下拉框
  464. selectWebSite(value) {
  465. this.webSiteName_id = value
  466. },
  467. selectWebSite_2(value) {
  468. this.webSiteName_id_2 = value
  469. this.ruleForm.tabbarName_2 = value // 新增表单字段同步
  470. },
  471. //添加 / 编辑弹窗中输入关键词下拉框
  472. // 判断是否已经关联了网站
  473. detectionWebSite(value) {
  474. console.log(value);
  475. this.website_id = value
  476. console.log(this.website_id);
  477. },
  478. //
  479. getWebNavList(query) {
  480. if (query !== '') {
  481. this.webSiteLoading = true;
  482. let data = { keyword: query }
  483. let dataArr = [];
  484. this.$store.dispatch('pool/getNavWebList', data).then(res => {
  485. console.log(res.data)
  486. for (let item of res.data) {
  487. let data = {};
  488. data.key = item.id;
  489. data.value = item.id;
  490. data.label = item.website_name;
  491. dataArr.push(data)
  492. }
  493. this.webSiteList = dataArr;
  494. this.webSiteList_2 = dataArr;
  495. this.webSiteLoading = false;
  496. }).catch(() => {
  497. this.$message({
  498. type: 'info',
  499. message: '网络错误,请重试!'
  500. });
  501. })
  502. } else {
  503. this.navList = [];
  504. }
  505. },
  506. },
  507. mounted() {
  508. this.getData()
  509. },
  510. }
  511. </script>
  512. <style scoped lang="less">
  513. input[aria-hidden=true] {
  514. display: none !important;
  515. }
  516. // 提示信息
  517. .tips {
  518. margin: 30px;
  519. background-color: #e9ecf9;
  520. border-radius: 11px;
  521. .tipsIcon {
  522. margin: 10px 15px;
  523. display: inline-block;
  524. width: 24px;
  525. height: 24px;
  526. background: url("../../assets/advertise/Info Circle.png") no-repeat;
  527. vertical-align: middle;
  528. }
  529. .tipsText {
  530. font-size: 14px;
  531. color: #666666;
  532. }
  533. }
  534. // 头部
  535. .title {
  536. margin: 30px 30px 20px 30px;
  537. padding: 30px 30px 40px 30px;
  538. background-color: #fff;
  539. border-radius: 20px 20px 20px 20px;
  540. border: 1px solid #E9EDF7;
  541. .left {
  542. float: left;
  543. }
  544. .right {
  545. float: right;
  546. }
  547. .searchBox {
  548. ::v-deep .el-input {
  549. position: relative;
  550. font-size: 14px;
  551. display: inline-block;
  552. width: 80%;
  553. }
  554. .searchTitle {
  555. padding-bottom: 10px;
  556. font-family: Microsoft YaHei, Microsoft YaHei;
  557. font-weight: 400;
  558. font-size: 14px;
  559. color: #999999;
  560. line-height: 16px;
  561. }
  562. .el-select {
  563. width: 100%;
  564. display: inline-block;
  565. position: relative;
  566. }
  567. }
  568. .btnList {
  569. float: right;
  570. padding-top: 28px;
  571. button {
  572. height: 38px;
  573. border: none;
  574. border-radius: 8px;
  575. padding: 0 30px;
  576. }
  577. .search {
  578. background-color: #5570f1;
  579. color: #fff;
  580. margin-right: 20px;
  581. }
  582. .reset {
  583. font-family: Microsoft YaHei, Microsoft YaHei;
  584. font-weight: 400;
  585. font-size: 16px;
  586. color: #333333;
  587. background: #F5F7FB;
  588. border-radius: 8px 8px 8px 8px;
  589. border: 1px solid rgba(85, 112, 241, 0.11);
  590. }
  591. }
  592. }
  593. .layerBox {
  594. padding: 30px 20px;
  595. position: relative;
  596. .btn {
  597. position: absolute;
  598. top: 30px;
  599. right: 20px;
  600. height: 38px;
  601. color: #fff;
  602. background-color: #5570f1;
  603. border: none;
  604. border-radius: 8px;
  605. padding: 8px 28px 9px;
  606. box-sizing: border-box;
  607. }
  608. .listBtnBox {
  609. justify-content: left;
  610. }
  611. .listDeleteBtn,.listMainBtn,
  612. .listEditBtn,
  613. .listLookBtn {
  614. margin-left: 0px;
  615. padding-left: 0px;
  616. margin-right: 10px;
  617. word-break: keep-all; white-space: nowrap;
  618. height: 36px;width:auto;padding:0px 10px;
  619. line-height: 36px;
  620. }
  621. .listLookBtn {
  622. text-align: center;
  623. border-radius: 8px;
  624. cursor: pointer;
  625. color: #55b5f1;
  626. background-color: rgba(85, 181, 241, 0.16);
  627. >i {
  628. padding-right: 8px;
  629. }
  630. }
  631. ::v-deep .el-form-item {
  632. margin-bottom: 50px;
  633. }
  634. ::v-deep .el-select {
  635. width: 100%;
  636. }
  637. ::v-deep .el-input--medium,
  638. ::v-deep .el-form-item__label {
  639. line-height: 36px;
  640. font-size: 16px;
  641. }
  642. }
  643. // 弹出层内容
  644. .dialogText {
  645. margin: 0 7px 0 3px;
  646. padding-bottom: 1px;
  647. padding: 30px 60px 1px 20px;
  648. background-color: #f5f7fb;
  649. .adImage {
  650. width: 140px;
  651. height: 140px;
  652. line-height: 210px;
  653. border-radius: 12px;
  654. border: 1px solid rgba(85, 112, 241, 0.11);
  655. img {
  656. width: 140px;
  657. height: 80px;
  658. }
  659. }
  660. ::v-deep .avatar {
  661. width: 140px;
  662. height: auto;
  663. }
  664. .price {
  665. ::v-deep .el-input {
  666. width: 29%;
  667. }
  668. }
  669. .example {
  670. font-family: Microsoft YaHei;
  671. color: #5570F1;
  672. }
  673. .el_btnList {
  674. margin-right: 15px;
  675. margin-top: 20px;
  676. }
  677. //日期时间选择器的宽
  678. ::v-deep .el-date-editor.el-input {
  679. width: 48%;
  680. }
  681. ::v-deep .el-button+.el-button {
  682. margin-left: 0px;
  683. }
  684. ::v-deep .el-select {
  685. width: 100%;
  686. }
  687. ::v-deep .el-form-item {
  688. margin-bottom: 50px;
  689. }
  690. }
  691. // 弹出层按钮
  692. .dialogBtn {
  693. text-align: center;
  694. margin: 50px auto 20px;
  695. button {
  696. width: 184px;
  697. padding: 16px;
  698. font-family: Microsoft YaHei, Microsoft YaHei;
  699. font-weight: 400;
  700. font-size: 20px;
  701. border: none;
  702. border-radius: 12px 12px 12px 12px;
  703. }
  704. // 取消
  705. .cancel {
  706. color: #333333;
  707. background-color: #f5f7fb;
  708. border: 2px solid rgba(85, 112, 241, 0.11);
  709. }
  710. // 提交
  711. .submit {
  712. color: #fff;
  713. background-color: #5570F1;
  714. margin-left: 40px;
  715. }
  716. }
  717. //审核弹出框
  718. .radioGroup {
  719. ::v-deep .el-form-item {
  720. margin-top: 40px;
  721. margin-bottom: 0;
  722. }
  723. }
  724. .graph {
  725. background-color: #f5f7fb;
  726. padding: 60px 100px;
  727. overflow: hidden;
  728. li {
  729. float: left;
  730. }
  731. >li:first-child {
  732. margin-right: 100px;
  733. }
  734. }
  735. .dialog-footer {
  736. margin: 0 auto;
  737. }
  738. </style>