view.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. <template>
  2. <div>
  3. <!-- 用户设置 -->
  4. <el-card>
  5. <el-container direction="vertical">
  6. <h3 style="margin-bottom:20px">用户设置:</h3>
  7. <el-form label-width="120px" :model="userForm" :rules="userRule" ref="userForm">
  8. <el-form-item label="用户名:">
  9. <el-input v-model.trim="userForm.name" style="width: 300px;"></el-input>
  10. </el-form-item>
  11. <el-form-item label="联系方式:" prop="phone">
  12. <el-input v-model.trim="userForm.phone" style="width: 300px;"></el-input>
  13. </el-form-item>
  14. <el-form-item >
  15. <el-button type="primary" size="small" @click="onSubUser">提交</el-button>
  16. <el-button type="danger" size="small" @click="resetForm">重置</el-button>
  17. </el-form-item>
  18. </el-form>
  19. </el-container>
  20. </el-card>
  21. <!-- 开发者设置 -->
  22. <el-card>
  23. <el-container direction="vertical">
  24. <h3 style="margin-bottom:20px">开发者设置:</h3>
  25. <el-form label-width="120px" :model="formKey" :rules="ruleKey" ref="keyForm">
  26. <el-form-item label="密钥设置:" :prop="useKey == '1' ? 'ReSecurityKey' : 'securityKey'" class="keySet">
  27. <el-input v-if="useKey == '1'" v-model.trim="formKey.ReSecurityKey" autocomplete="off" style="width: 300px;margin-right:10px"></el-input>
  28. <el-input v-else v-model.trim="formKey.securityKey" autocomplete="off" style="width: 300px;margin-right:10px"></el-input>
  29. <el-button type="primary" size="small" @click="updateKey">{{useKey == '1' ? '重设' : '设置'}}</el-button>
  30. <!-- <el-alert
  31. title="请输入32位字符串,用于接口生成签名"
  32. type="info"
  33. show-icon
  34. style="width:880px;display:inline"
  35. :closable="false">
  36. </el-alert> -->
  37. <span style="color:rgb(255 1 1 / 0.7);margin-left:10px;font-size:12px;">请输入32位字符串,用于接口生成签名</span>
  38. </el-form-item>
  39. <el-form-item label="ip白名单:" >
  40. <div v-if="cIpList">
  41. <el-input style="width: 300px;margin-bottom: 10px;margin-right: 10px;" :value="ipFormData.name"></el-input>
  42. <i class="el-icon-circle-plus-outline" style="color:#409EFF;font-size:22px;" @click="add"></i>
  43. </div>
  44. <template v-else>
  45. <div v-for="(item, idx) in ipList" :key="item">
  46. <el-input style="width: 300px;margin-bottom: 10px;margin-right: 10px;" :value="item"></el-input>
  47. <template v-if="idx == 0">
  48. <i class="el-icon-circle-plus-outline" style="color:#409EFF;font-size:22px;" @click="add"></i>
  49. <i class="el-icon-remove-outline" style="color:#F56C6C;margin-left:10px;font-size:22px;" @click="del(item)"></i>
  50. </template>
  51. <!-- <i v-if="idx == 0" class="el-icon-circle-plus-outline" style="color:#409EFF;" @click="add"></i> -->
  52. <i v-else class="el-icon-remove-outline" style="color:#F56C6C;font-size:22px;" @click="del(item)"></i>
  53. </div>
  54. </template>
  55. </el-form-item>
  56. </el-form>
  57. <!-- 添加ip弹层 -->
  58. <el-dialog title="添加ip白名单" :visible="dialogFormVisible" @close="btnCancle">
  59. <el-form :model="ipFormData" :rules="rules" ref="ipFormData" label-width="80px">
  60. <el-form-item label="ip:" prop="name">
  61. <el-input v-model="ipFormData.name" autocomplete="off" style="width: 300px"></el-input>
  62. </el-form-item>
  63. </el-form>
  64. <span slot="footer" class="dialog-footer">
  65. <el-button @click="btnCancle">取 消</el-button>
  66. <el-button type="primary" @click="onSubmit('ipFormData')">确 定</el-button>
  67. </span>
  68. </el-dialog>
  69. </el-container>
  70. </el-card>
  71. <!-- 余额预警电话设置 -->
  72. <el-card>
  73. <el-container direction="vertical">
  74. <h3 style="margin-bottom:20px">余额预警电话设置:</h3>
  75. <el-form label-width="120px" ref="formWarning" :model="balanceForm" :rules="balanceRules">
  76. <el-form-item
  77. label="设置余额预警:"
  78. prop="alarm_amount"
  79. style="margin-bottom: 10px;">
  80. <el-input
  81. size="small"
  82. v-model="balanceForm.alarm_amount"
  83. autocomplete="off"
  84. style="width: 140px;margin-right:10px"
  85. onkeyup="value=value.replace(/[^\d.]/g,'')"
  86. @blur="balanceForm.alarm_amount = $event.target.value"
  87. ></el-input>
  88. <el-button type="primary" size="small" @click="onBalance">设置</el-button>
  89. <span style="color:rgb(255 1 1 / 0.7);margin-left:10px;font-size:12px;">建议设置50000及以上余额预警</span>
  90. </el-form-item>
  91. <el-form-item style="margin-bottom: 0;color:#606266">
  92. <span>请设置余额预警电话,当账户所剩余额达到预警额度时,将会给预留电话发送短信提醒,以免给您的业务带来不便。每隔五分钟提醒一次,最多提示五次。</span>
  93. </el-form-item>
  94. <el-form-item label="设置预警电话:">
  95. <div v-if="cWarningList">
  96. <el-input style="width: 300px;margin-bottom: 10px;margin-right: 10px;" :value="addphone.phone"></el-input>
  97. <i class="el-icon-circle-plus-outline" style="color:#409EFF;font-size:22px;" @click="addwphone"></i>
  98. </div>
  99. <template v-else>
  100. <div v-for="(item, idx) in warningList" :key="item">
  101. <el-input style="width: 300px;margin-bottom: 10px;margin-right: 10px;" :value="item"></el-input>
  102. <template v-if="idx == 0">
  103. <i class="el-icon-circle-plus-outline" style="color:#409EFF;font-size:22px;" @click="addwphone"></i>
  104. <i class="el-icon-remove-outline" style="color:#F56C6C;margin-left:10px;font-size:22px;" @click="delwphone(item)"></i>
  105. </template>
  106. <i v-else class="el-icon-remove-outline" style="color:#F56C6C;font-size:22px;" @click="delwphone(item)"></i>
  107. </div>
  108. </template>
  109. </el-form-item>
  110. </el-form>
  111. <!-- 添加预警弹层 -->
  112. <el-dialog title="添加预警电话" :visible="warningDialogVisible" @close="cancleWarning">
  113. <el-form :model="addphone" :rules="ruleAddphone" ref="addphone" label-width="100px">
  114. <el-form-item label="预警电话:" prop="phone">
  115. <el-input v-model="addphone.phone" autocomplete="off" style="width: 300px"></el-input>
  116. </el-form-item>
  117. </el-form>
  118. <span slot="footer" class="dialog-footer">
  119. <el-button @click="cancleWarning">取 消</el-button>
  120. <el-button type="primary" @click="onSubmitWarning('addphone')">确 定</el-button>
  121. </span>
  122. </el-dialog>
  123. </el-container>
  124. </el-card>
  125. <!-- 话费充值设置 -->
  126. <el-card>
  127. <el-container direction="vertical">
  128. <h3 style="margin-bottom:20px">话费充值设置:</h3>
  129. <el-form label-width="120px" ref="phoneForm" :model="phoneForm" :rules="phoneRules">
  130. <el-form-item
  131. label="回调时间:"
  132. prop="time_out"
  133. style="margin-bottom: 10px;">
  134. <el-input
  135. size="small"
  136. v-model.number="phoneForm.time_out"
  137. autocomplete="off"
  138. style="width: 140px;margin-right:10px"
  139. ></el-input>
  140. <span style="color:rgb(255 1 1 / 0.7);margin-left:10px;font-size:12px;">单位分钟,建议设置3分钟及以上时间</span>
  141. </el-form-item>
  142. <el-form-item label="充值质量:">
  143. <el-radio-group v-model="phoneForm.quality">
  144. <el-radio :label="1">普通通道</el-radio>
  145. <el-radio :label="2">快速通道</el-radio>
  146. <el-radio :label="3">普通+快速通道</el-radio>
  147. </el-radio-group>
  148. </el-form-item>
  149. <el-form-item>
  150. <el-button type="primary" size="small" @click="onSetTime">设置</el-button>
  151. </el-form-item>
  152. </el-form>
  153. </el-container>
  154. </el-card>
  155. </div>
  156. </template>
  157. <script>
  158. // getIpList获取Ip列表 delIpList-删除 addIp-添加 getUserInfo-用户信息 onSubUser-提交用户设置 addwphone-添加预警电话 delwphone-删除
  159. import {
  160. // getIpList,
  161. delIpList,
  162. addIp,
  163. getUserInfo,
  164. updateKey,
  165. onSubUser,
  166. addwphone,
  167. delwphone,
  168. phonrRec
  169. } from "@/api";
  170. export default {
  171. name: 'pageView',
  172. data() {
  173. var checkAmount = (rule, value, callback) => {
  174. console.log('rule', rule, value);
  175. console.log('value', value);
  176. if (value === '') {
  177. return callback(new Error('余额预警不能为空'));
  178. } else if (value.indexOf(".") != -1 && value.split('.').length > 2) {
  179. callback(new Error('请输入正确格式,只能有一位小数点'));
  180. } else if (value.indexOf(".") != -1 && value.split('.')[1].length > 2) {
  181. callback(new Error('小数点后面只能有两位'));
  182. } else {
  183. var Money = parseFloat(value).toFixed(3);
  184. var MoneyResult = Money.substring(0, Money.length - 1);
  185. var xsd = MoneyResult.toString().split(".");
  186. // console.log('Money', Money, MoneyResult, xsd, xsd[1].length);
  187. // if (xsd.length == 1) {
  188. // this.balanceForm.alarm_amount = creditResult.toString() + ".00";
  189. // }
  190. if (xsd.length > 1) {
  191. if (xsd[1].length == 1) {
  192. this.balanceForm.alarm_amount = MoneyResult;
  193. }
  194. if (xsd[1].length > 1) {
  195. this.balanceForm.alarm_amount = xsd[0].toString() + "." + xsd[1].toString().substring(0, 2);
  196. }
  197. }
  198. callback()
  199. }
  200. };
  201. var checkPhone = (rule, value, callback) => {
  202. if (!value) {
  203. return callback(new Error('联系方式不能为空'));
  204. } else if (!/^1[3-9]\d{9}$/.test(value)) {
  205. callback(new Error('请输入合法手机号'));
  206. } else {
  207. callback()
  208. }
  209. };
  210. var checkTime = (rule, value, callback) => {
  211. if (value < 3) {
  212. return callback(new Error('回调时间必须输入大于等于3的数字'));
  213. } else {
  214. callback()
  215. }
  216. };
  217. return {
  218. pageSize: 10,
  219. pageNumber: 1,
  220. ipList: [],
  221. total: 0,
  222. // ip
  223. ip: null,
  224. // ip弹层
  225. dialogFormVisible: false,
  226. // 新增ip数据
  227. ipFormData: {
  228. name: ''
  229. },
  230. // 表单校验
  231. rules: {
  232. name: [
  233. { required: true, message: '请输入ip', trigger: 'blur' },
  234. { pattern: /((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)/, message:'请输入合法ip', trigger: 'blur' }
  235. ]
  236. },
  237. repeatIp: false,
  238. // 密钥校验,只能是数字和字母
  239. formKey: {
  240. securityKey: '',
  241. ReSecurityKey: ''
  242. },
  243. ruleKey: {
  244. securityKey: [
  245. { required: true, message: '请输入密钥', trigger: 'blur' },
  246. { min: 1, max: 32, message:'请输入32位的字符串', trigger: 'blur' }
  247. ],
  248. // 之前设置过密钥
  249. ReSecurityKey: [
  250. { min: 1, max: 32, message:'请输入32位的字符串', trigger: 'blur' }
  251. ]
  252. },
  253. // 是否设置过密钥 1-设置过
  254. useKey: '',
  255. // 用户设置
  256. userForm: {
  257. name: '',
  258. phone: ''
  259. },
  260. userRule: {
  261. phone: [
  262. {validator: checkPhone, trigger: 'blur'}
  263. ]
  264. },
  265. // 预警电话列表
  266. warningList: [],
  267. // 添加预警
  268. addphone: {
  269. phone: ''
  270. },
  271. ruleAddphone: {
  272. phone: [
  273. { required: true, message: '请输入预警电话', trigger: 'blur' },
  274. { pattern: /^1[3-9]\d{9}$/, message:'请输入正确的电话', trigger: 'blur' }
  275. ]
  276. },
  277. warningDialogVisible: false,
  278. repeatPhone: false,
  279. // 余额预警
  280. balanceForm: {
  281. alarm_amount: '',
  282. },
  283. balanceRules: {
  284. alarm_amount: [
  285. {validator: checkAmount, trigger: 'blur'}
  286. ]
  287. },
  288. // 话费充值设置
  289. phoneForm: {
  290. time_out: '',
  291. quality: 1
  292. },
  293. phoneRules: {
  294. time_out: [
  295. { required: true, message: '请输入回调时间', trigger: 'blur' },
  296. { required: true, type: 'number', message: '回调时间必须为数字值', trigger: 'blur'},
  297. { validator: checkTime, trigger: 'blur'}
  298. ]
  299. }
  300. };
  301. },
  302. created() {
  303. // this.getIpList();
  304. this.getUserInfo()
  305. },
  306. computed: {
  307. cIpList() {
  308. return this.ipList < 1
  309. },
  310. cWarningList() {
  311. return this.warningList < 1
  312. }
  313. },
  314. methods: {
  315. // 删除
  316. del(ip) {
  317. console.log('ip', ip);
  318. // 提示
  319. this.$confirm("确认删除该ip?", {
  320. confirmButtonText: "确定",
  321. cancelButtonText: "取消",
  322. type: "warning",
  323. })
  324. .then(async () => {
  325. // 调用删除接口
  326. try {
  327. let param = new URLSearchParams()
  328. param.append('ip', ip)
  329. // const res = await delIpList({ip: ip})
  330. const res = await delIpList(param)
  331. console.log('删除ip', res);
  332. if (res && res.code == 200) {
  333. // 提示
  334. this.$message({
  335. message: '删除成功',
  336. type: 'success'
  337. });
  338. // 获取列表
  339. this.getUserInfo()
  340. } else {
  341. this.$message.error('删除失败')
  342. }
  343. } catch (error) {
  344. console.log(error);
  345. this.$message.error('删除失败')
  346. }
  347. })
  348. .catch(() => {
  349. return false;
  350. });
  351. },
  352. // 添加
  353. add() {
  354. this.ipFormData.name = ''
  355. this.dialogFormVisible = true
  356. },
  357. // 关闭弹层
  358. btnCancle() {
  359. this.dialogFormVisible = false
  360. this.$refs.ipFormData.resetFields()
  361. },
  362. // 确定添加
  363. onSubmit(formName) {
  364. this.$refs[formName].validate(async(valid) => {
  365. if (valid) {
  366. // console.log(valid);
  367. if (this.ipList.length > 0) {
  368. // this.ipList.forEach(item => {
  369. // this.repeatIp = item.ip == this.ipFormData.name
  370. // })
  371. this.repeatIp = this.ipList.find((item => item == this.ipFormData.name))
  372. }
  373. if (this.repeatIp) {
  374. this.$message.error('该ip已存在')
  375. return
  376. }
  377. // console.log('校验通过');
  378. try {
  379. let param = new URLSearchParams()
  380. param.append('ip', this.ipFormData.name)
  381. const res = await addIp(param)
  382. console.log('添加ip', res);
  383. if (res && res.code == 200) {
  384. this.$message({
  385. message: '添加ip成功',
  386. type: 'success'
  387. });
  388. this.getUserInfo()
  389. // this.dialogFormVisible = false
  390. // this.ipFormData.name = ''
  391. } else {
  392. this.$message.error('添加ip失败')
  393. }
  394. this.dialogFormVisible = false
  395. this.ipFormData.name = ''
  396. } catch (error) {
  397. console.log(error);
  398. this.dialogFormVisible = false
  399. this.ipFormData.name = ''
  400. this.$message.error('添加ip失败')
  401. }
  402. }
  403. });
  404. },
  405. // 获取商户号
  406. async getUserInfo() {
  407. try {
  408. const res = await getUserInfo()
  409. console.log('个人中心', res);
  410. if (res && res.code == 200) {
  411. this.ipList = res.datas.ips
  412. this.useKey = res.datas.use_key
  413. this.userForm.name = res.datas.contact_name != 'null' ? res.datas.contact_name : ''
  414. this.userForm.phone = res.datas.contact_phone != 'null' ? res.datas.contact_phone : ''
  415. this.balanceForm.alarm_amount = res.datas.alarm_amount != 'null' ? res.datas.alarm_amount : ''
  416. this.warningList = res.datas.warning_phone
  417. this.phoneForm.time_out = res.datas.timeout
  418. this.phoneForm.quality = res.datas.quality
  419. }
  420. } catch (error) {
  421. console.log(error);
  422. }
  423. },
  424. // 设置密钥
  425. async updateKey() {
  426. let res
  427. this.$refs.keyForm.validate(async(valid) => {
  428. if (valid) {
  429. if (this.useKey == '1') {
  430. try {
  431. let param = new URLSearchParams()
  432. param.append('secure_key', this.formKey.ReSecurityKey)
  433. // res = await updateKey(this.formKey.ReSecurityKey)
  434. res = await updateKey(param)
  435. } catch (error) {
  436. console.log(error);
  437. }
  438. } else {
  439. try {
  440. let param = new URLSearchParams()
  441. param.append('secure_key', this.formKey.securityKey)
  442. // res = await updateKey(this.formKey.securityKey)
  443. res = await updateKey(param)
  444. } catch (error) {
  445. console.log(error);
  446. }
  447. }
  448. console.log('密钥', res);
  449. if (res && res.code == 200) {
  450. this.$message.success('设置密钥成功')
  451. } else {
  452. this.$message.error('设置密钥失败')
  453. }
  454. this.formKey.ReSecurityKey = ''
  455. this.formKey.securityKey = ''
  456. }
  457. })
  458. },
  459. // 提交用户设置
  460. onSubUser() {
  461. this.$refs.userForm.validate(async(valid) => {
  462. // console.log('valid', valid);
  463. if (valid) {
  464. try {
  465. let param = new URLSearchParams()
  466. param.append('contact_name', this.userForm.name)
  467. param.append('contact_phone', this.userForm.phone)
  468. const res = await onSubUser(param)
  469. if (res && res.code && res.code == 200) {
  470. this.$message.success('提交用户设置成功')
  471. this.getUserInfo()
  472. }
  473. // this.userForm.name = ''
  474. // this.userForm.phone = ''
  475. console.log('用户设置提交', res);
  476. } catch (error) {
  477. console.log(error);
  478. this.$message.error('提交用户设置失败')
  479. }
  480. }
  481. })
  482. },
  483. // 重置
  484. resetForm() {
  485. this.userForm.name = ''
  486. this.$refs.userForm.resetFields();
  487. },
  488. // 添加预警
  489. addwphone() {
  490. this.addphone.phone = ''
  491. this.warningDialogVisible = true
  492. },
  493. // 关闭预警弹层
  494. cancleWarning() {
  495. this.warningDialogVisible = false
  496. this.$refs.addphone.resetFields()
  497. },
  498. // 确认添加
  499. onSubmitWarning(formName) {
  500. this.$refs[formName].validate(async(valid) => {
  501. if (valid) {
  502. console.log(valid);
  503. if (this.warningList.length > 0) {
  504. this.repeatPhone = this.warningList.find((item => item == this.addphone.phone))
  505. }
  506. if (this.repeatPhone) {
  507. this.$message.error('该预警电话已存在')
  508. return
  509. }
  510. // console.log('校验通过');
  511. try {
  512. let param = new URLSearchParams()
  513. param.append('phone', this.addphone.phone)
  514. const res = await addwphone(param)
  515. console.log('添加预警电话', res);
  516. if (res && res.code == 200) {
  517. this.$message({
  518. message: '添加预警电话成功',
  519. type: 'success'
  520. });
  521. this.getUserInfo()
  522. // this.dialogFormVisible = false
  523. // this.ipFormData.name = ''
  524. } else {
  525. this.$message.error('添加预警电话失败')
  526. }
  527. this.warningDialogVisible = false
  528. this.addphone.phone = ''
  529. } catch (error) {
  530. console.log(error);
  531. this.warningDialogVisible = false
  532. this.addphone.phone = ''
  533. this.$message.error('添加预警电话失败')
  534. }
  535. }
  536. });
  537. },
  538. // 删除预警电话
  539. delwphone(phone) {
  540. console.log('phone',phone);
  541. // 提示
  542. this.$confirm("确认删除该预警电话?", {
  543. confirmButtonText: "确定",
  544. cancelButtonText: "取消",
  545. type: "warning",
  546. })
  547. .then(async () => {
  548. // 调用删除接口
  549. try {
  550. let param = new URLSearchParams()
  551. param.append('phone', phone)
  552. // const res = await delIpList({ip: ip})
  553. const res = await delwphone(param)
  554. console.log('删除预警电话', res);
  555. if (res && res.code == 200) {
  556. // 提示
  557. this.$message({
  558. message: '删除预警电话成功',
  559. type: 'success'
  560. });
  561. // 获取列表
  562. this.getUserInfo()
  563. } else {
  564. this.$message.error('删除预警电话失败')
  565. }
  566. } catch (error) {
  567. console.log(error);
  568. this.$message.error('删除预警电话失败')
  569. }
  570. })
  571. .catch(() => {
  572. return false;
  573. });
  574. },
  575. // 设置余额预警
  576. async onBalance() {
  577. try {
  578. // if (!this.warningList.length) {
  579. // this.warningDialogVisible = true
  580. // return
  581. // }
  582. let param = new URLSearchParams()
  583. param.append('alarm_amount', this.balanceForm.alarm_amount)
  584. const res = await onSubUser(param)
  585. // console.log('设置余额预警', res);
  586. if (res && res.code == 200) {
  587. this.getUserInfo()
  588. this.$message.success('设置余额预警成功')
  589. }
  590. } catch (error) {
  591. console.log(error);
  592. this.$message.error('设置余额预警失败')
  593. }
  594. },
  595. // 设置回调时间
  596. async onSetTime() {
  597. try {
  598. let param = new URLSearchParams()
  599. param.append('quality', this.phoneForm.quality)
  600. param.append('time_out', this.phoneForm.time_out)
  601. const res = await phonrRec(param)
  602. // console.log('设置-话费', res);
  603. if (res && res.code == 200) {
  604. this.getUserInfo()
  605. this.$message.success('设置话费充值成功')
  606. }
  607. } catch (error) {
  608. console.log(error);
  609. this.$message.error('设置话费充值失败')
  610. }
  611. }
  612. },
  613. };
  614. </script>
  615. <style scoped>
  616. .dialog-footer {
  617. display: block;
  618. text-align: center;
  619. }
  620. .dialog-footer .el-button {
  621. margin: 0 30px;
  622. }
  623. .el-icon-circle-plus-outline,
  624. .el-icon-remove-outline {
  625. font-size: 25px;
  626. vertical-align: middle;
  627. }
  628. .el-alert {
  629. padding: 0px 10px;
  630. }
  631. .keySet {
  632. /* border-bottom: 1px solid #DCDFE6; */
  633. /* padding-bottom: 10px; */
  634. }
  635. .keySet .el-button {
  636. margin-right: 10px;
  637. }
  638. .el-card {
  639. padding-bottom: 0px;
  640. }
  641. </style>
  642. <style>
  643. .el-main {
  644. padding: 0;
  645. }
  646. .el-card {
  647. margin: 20px 30px;
  648. }
  649. </style>