globalForm.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
  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="请输入表名(小写字母和下划线:complaints_report)" :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: '', //表名
  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: '', //表名
  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. this.cancelForm()
  379. }else{
  380. this.$message.error(data.message)
  381. return
  382. }
  383. }).catch(err =>{
  384. console.log(err);
  385. this.$message.error('添加失败---',err)
  386. })
  387. }else {
  388. this.$message.error('请填写所有必填项')
  389. return false
  390. }
  391. })
  392. return
  393. }
  394. if(this.dialogName == "编辑表单"){
  395. this.$refs[formName].validate((valid) => {
  396. if (valid) {
  397. edit_table_api({// 编辑表单
  398. website_id: this.webSiteName_id_2, //网站id
  399. name: this.ruleForm.form_name, //表单名
  400. table: this.ruleForm.table_name, //表名
  401. id: this.activeid, // 编辑时需要的id
  402. is_code: this.ruleForm.use_captcha==true ? 1:0, //验证码
  403. }).then(data =>{
  404. if (data.code == 200) {
  405. this.$message({
  406. message: '编辑成功',
  407. type: 'success'
  408. })
  409. this.dialogTableVisible = false
  410. this.getData()
  411. this.cancelForm()
  412. }else{
  413. this.$message.error(data.message)
  414. return false
  415. }
  416. }).catch(err =>{
  417. console.log(err);
  418. })
  419. }else {
  420. this.$message.error('请填1写所有必填项')
  421. return false
  422. }
  423. })
  424. }
  425. },
  426. //取消添加或编辑
  427. cancelForm() {
  428. this.$refs.ruleForm.resetFields() // 重置表单并清除验证状态
  429. this.$refs.ruleForm.clearValidate() // 清除所有验证提示
  430. this.dialogTableVisible = false
  431. this.webSiteName_id_2 = ""; //网站id
  432. this.ruleForm.form_name = "";//表单名
  433. this.ruleForm.table_name = ""; //表名
  434. this.webSiteList_2 = [] // 清空网站2下拉列表数据
  435. this.ruleForm.tabbarName_2 = '' // 新增:清空表单中网站2的绑定值
  436. },
  437. //3.6 上传图片操作
  438. beforeAvatarUpload(file) {
  439. const isJPG = file.type === 'image/jpeg';
  440. const isPNG = file.type === 'image/png';
  441. const isLt2M = file.size / 1024 / 1024 < 2;
  442. if (!isJPG && !isPNG) {
  443. this.$message.error('上传图片只能是 JPG 或 PNG 格式!');
  444. return false;
  445. }
  446. if (!isLt2M) {
  447. this.$message.error('上传图片大小不能超过 2MB!');
  448. return false;
  449. }
  450. const formData = new FormData();
  451. formData.append('file', file);
  452. this.$store.dispatch('pool/uploadFile', formData).then(res => {
  453. this.logoUrl = res.data.imgUrl;//显示缩略图
  454. this.ruleForm.adPhoto = res.data.imgUrl;//提供表单地址
  455. // console.log(res.data.imgUrl)
  456. }).catch(() => {
  457. this.$message({
  458. type: 'info',
  459. message: '网络错误,请重试!'
  460. });
  461. })
  462. // 阻止默认的上传行为
  463. return false;
  464. },
  465. handleDelete() {
  466. // 删除图片
  467. this.logoUrl = ''; // 清空图片 URL
  468. },
  469. //搜索部分的输入关键词下拉框
  470. selectWebSite(value) {
  471. this.webSiteName_id = value
  472. },
  473. selectWebSite_2(value) {
  474. this.webSiteName_id_2 = value
  475. this.ruleForm.tabbarName_2 = value // 新增表单字段同步
  476. },
  477. //添加 / 编辑弹窗中输入关键词下拉框
  478. // 判断是否已经关联了网站
  479. detectionWebSite(value) {
  480. console.log(value);
  481. this.website_id = value
  482. console.log(this.website_id);
  483. },
  484. //
  485. getWebNavList(query) {
  486. if (query !== '') {
  487. this.webSiteLoading = true;
  488. let data = { keyword: query }
  489. let dataArr = [];
  490. this.$store.dispatch('pool/getNavWebList', data).then(res => {
  491. console.log(res.data)
  492. for (let item of res.data) {
  493. let data = {};
  494. data.key = item.id;
  495. data.value = item.id;
  496. data.label = item.website_name;
  497. dataArr.push(data)
  498. }
  499. this.webSiteList = dataArr;
  500. this.webSiteList_2 = dataArr;
  501. this.webSiteLoading = false;
  502. }).catch(() => {
  503. this.$message({
  504. type: 'info',
  505. message: '网络错误,请重试!'
  506. });
  507. })
  508. } else {
  509. this.navList = [];
  510. }
  511. },
  512. },
  513. mounted() {
  514. this.getData()
  515. },
  516. }
  517. </script>
  518. <style scoped lang="less">
  519. input[aria-hidden=true] {
  520. display: none !important;
  521. }
  522. // 提示信息
  523. .tips {
  524. margin: 30px;
  525. background-color: #e9ecf9;
  526. border-radius: 11px;
  527. .tipsIcon {
  528. margin: 10px 15px;
  529. display: inline-block;
  530. width: 24px;
  531. height: 24px;
  532. background: url("../../assets/advertise/Info Circle.png") no-repeat;
  533. vertical-align: middle;
  534. }
  535. .tipsText {
  536. font-size: 14px;
  537. color: #666666;
  538. }
  539. }
  540. // 头部
  541. .title {
  542. margin: 30px 30px 20px 30px;
  543. padding: 30px 30px 40px 30px;
  544. background-color: #fff;
  545. border-radius: 20px 20px 20px 20px;
  546. border: 1px solid #E9EDF7;
  547. .left {
  548. float: left;
  549. }
  550. .right {
  551. float: right;
  552. }
  553. .searchBox {
  554. ::v-deep .el-input {
  555. position: relative;
  556. font-size: 14px;
  557. display: inline-block;
  558. width: 80%;
  559. }
  560. .searchTitle {
  561. padding-bottom: 10px;
  562. font-family: Microsoft YaHei, Microsoft YaHei;
  563. font-weight: 400;
  564. font-size: 14px;
  565. color: #999999;
  566. line-height: 16px;
  567. }
  568. .el-select {
  569. width: 100%;
  570. display: inline-block;
  571. position: relative;
  572. }
  573. }
  574. .btnList {
  575. float: right;
  576. padding-top: 28px;
  577. button {
  578. height: 38px;
  579. border: none;
  580. border-radius: 8px;
  581. padding: 0 30px;
  582. }
  583. .search {
  584. background-color: #5570f1;
  585. color: #fff;
  586. margin-right: 20px;
  587. }
  588. .reset {
  589. font-family: Microsoft YaHei, Microsoft YaHei;
  590. font-weight: 400;
  591. font-size: 16px;
  592. color: #333333;
  593. background: #F5F7FB;
  594. border-radius: 8px 8px 8px 8px;
  595. border: 1px solid rgba(85, 112, 241, 0.11);
  596. }
  597. }
  598. }
  599. .layerBox {
  600. padding: 30px 20px;
  601. position: relative;
  602. .btn {
  603. position: absolute;
  604. top: 30px;
  605. right: 20px;
  606. height: 38px;
  607. color: #fff;
  608. background-color: #5570f1;
  609. border: none;
  610. border-radius: 8px;
  611. padding: 8px 28px 9px;
  612. box-sizing: border-box;
  613. }
  614. .listBtnBox {
  615. justify-content: left;
  616. }
  617. .listDeleteBtn,.listMainBtn,
  618. .listEditBtn,
  619. .listLookBtn {
  620. margin-left: 0px;
  621. padding-left: 0px;
  622. margin-right: 10px;
  623. word-break: keep-all; white-space: nowrap;
  624. height: 36px;width:auto;padding:0px 10px;
  625. line-height: 36px;
  626. }
  627. .listLookBtn {
  628. text-align: center;
  629. border-radius: 8px;
  630. cursor: pointer;
  631. color: #55b5f1;
  632. background-color: rgba(85, 181, 241, 0.16);
  633. >i {
  634. padding-right: 8px;
  635. }
  636. }
  637. ::v-deep .el-form-item {
  638. margin-bottom: 50px;
  639. }
  640. ::v-deep .el-select {
  641. width: 100%;
  642. }
  643. ::v-deep .el-input--medium,
  644. ::v-deep .el-form-item__label {
  645. line-height: 36px;
  646. font-size: 16px;
  647. }
  648. }
  649. // 弹出层内容
  650. .dialogText {
  651. margin: 0 7px 0 3px;
  652. padding-bottom: 1px;
  653. padding: 30px 60px 1px 20px;
  654. background-color: #f5f7fb;
  655. .adImage {
  656. width: 140px;
  657. height: 140px;
  658. line-height: 210px;
  659. border-radius: 12px;
  660. border: 1px solid rgba(85, 112, 241, 0.11);
  661. img {
  662. width: 140px;
  663. height: 80px;
  664. }
  665. }
  666. ::v-deep .avatar {
  667. width: 140px;
  668. height: auto;
  669. }
  670. .price {
  671. ::v-deep .el-input {
  672. width: 29%;
  673. }
  674. }
  675. .example {
  676. font-family: Microsoft YaHei;
  677. color: #5570F1;
  678. }
  679. .el_btnList {
  680. margin-right: 15px;
  681. margin-top: 20px;
  682. }
  683. //日期时间选择器的宽
  684. ::v-deep .el-date-editor.el-input {
  685. width: 48%;
  686. }
  687. ::v-deep .el-button+.el-button {
  688. margin-left: 0px;
  689. }
  690. ::v-deep .el-select {
  691. width: 100%;
  692. }
  693. ::v-deep .el-form-item {
  694. margin-bottom: 50px;
  695. }
  696. }
  697. // 弹出层按钮
  698. .dialogBtn {
  699. text-align: center;
  700. margin: 50px auto 20px;
  701. button {
  702. width: 184px;
  703. padding: 16px;
  704. font-family: Microsoft YaHei, Microsoft YaHei;
  705. font-weight: 400;
  706. font-size: 20px;
  707. border: none;
  708. border-radius: 12px 12px 12px 12px;
  709. }
  710. // 取消
  711. .cancel {
  712. color: #333333;
  713. background-color: #f5f7fb;
  714. border: 2px solid rgba(85, 112, 241, 0.11);
  715. }
  716. // 提交
  717. .submit {
  718. color: #fff;
  719. background-color: #5570F1;
  720. margin-left: 40px;
  721. }
  722. }
  723. //审核弹出框
  724. .radioGroup {
  725. ::v-deep .el-form-item {
  726. margin-top: 40px;
  727. margin-bottom: 0;
  728. }
  729. }
  730. .graph {
  731. background-color: #f5f7fb;
  732. padding: 60px 100px;
  733. overflow: hidden;
  734. li {
  735. float: left;
  736. }
  737. >li:first-child {
  738. margin-right: 100px;
  739. }
  740. }
  741. .dialog-footer {
  742. margin: 0 auto;
  743. }
  744. </style>