globalFormFont.vue 29 KB

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