earlyWarningRulePage.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  1. <template>
  2. <div class="earlyWarningRules">
  3. <div class="earlyWarningRulesBtn">
  4. <div class="collectSeach" :style="$utils.collectSeachSty()">
  5. <div class="exceed">
  6. <span class="exceedSpan">业务属性:</span>
  7. <el-select v-model="businessStr" placeholder="请选择业务属性" clearable >
  8. <el-option
  9. v-for="item in binSectionoptions"
  10. :key="item.id"
  11. :label="item.sectionName"
  12. :value="item.id">
  13. </el-option>
  14. </el-select>
  15. </div>
  16. <div class="exceed">
  17. <span class="exceedSpan" style="width:100px">预警名称:</span>
  18. <el-input v-model="indicatorStr" placeholder="请输入预警名称"></el-input>
  19. </div>
  20. <seachs @handleSeach="getSeachData" @handleRest="reset"></seachs>
  21. </div>
  22. <div class="PeriodBtn" :style="$utils.PeriodBtnSty()">
  23. <btns
  24. :showImport="false"
  25. :showExport="false"
  26. :showAdd="$utils.havePurview('earlyWarningRules:oneLevel:add')"
  27. :showSave="false" :showDelete="false"
  28. :disSave="true" :disDelete="true" :disImport="true" :disExport="true"
  29. @handleAdd="handleAdd"
  30. ></btns>
  31. </div>
  32. <div class="earlyWarningRulesTableData">
  33. <el-table :data="earlyWarningRulesData" style="width: 100%" @row-dblclick="handleEdit" :class="warningTableSty()">
  34. <el-table-column label="序号" type="index" align="center" />
  35. <el-table-column label="预警名称" prop="ruleName" />
  36. <el-table-column label="业务属性" prop="sectionName" width="200" />
  37. <el-table-column label="指标名称" prop="indicatorName" />
  38. <el-table-column label="预警类型" prop="type">
  39. <template #default="scope">
  40. <span v-if="scope.row.type === 'YDKP'" style="font-size: 12px;">月度考评</span>
  41. <span v-else-if="scope.row.type === 'JDKP'" style="font-size: 12px;">季度考评</span>
  42. <span v-else style="font-size: 12px;">年度考评</span>
  43. </template>
  44. </el-table-column>
  45. <el-table-column label="预警公式" prop="expression" />
  46. <el-table-column label="描述">
  47. <template #default="scope">
  48. <el-tooltip
  49. class="box-item"
  50. effect="customized"
  51. :content="scope.row.ruleDes"
  52. placement="top"
  53. >
  54. <span class="tooltipCC">{{scope.row.ruleDes}}</span>
  55. </el-tooltip>
  56. </template>
  57. </el-table-column>
  58. <el-table-column label="操作" width="100">
  59. <template #default="scope">
  60. <p class="indicitem" @click="handleDelete(scope.row)">删除</p>
  61. </template>
  62. </el-table-column>
  63. </el-table>
  64. <el-pagination
  65. @size-change="handleSizeChange"
  66. @current-change="handleCurrentChange"
  67. :current-page="page.currentPage"
  68. :page-size="page.pagesize"
  69. layout="total, prev, pager, next, jumper"
  70. :total="page.total">
  71. </el-pagination>
  72. </div>
  73. <el-dialog :title="title" v-model="dialogVisible" width="60vw" :close-on-click-modal="false">
  74. <div class="periodFrom">
  75. <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" :validate-on-rule-change="false">
  76. <el-form-item label="预警名称" prop="ruleName">
  77. <el-input v-model="ruleForm.ruleName" placeholder="请输入预警名称"></el-input>
  78. </el-form-item>
  79. <el-row>
  80. <el-col :span="12">
  81. <el-form-item label="业务属性" prop="binSection">
  82. <el-select v-model="ruleForm.binSection" placeholder="请选择业务属性" :disabled="isSave" @change="changeBinstation">
  83. <el-option
  84. v-for="item in binSectionoptions"
  85. :key="item.id"
  86. :label="item.sectionName"
  87. :value="item.id">
  88. </el-option>
  89. </el-select>
  90. </el-form-item>
  91. </el-col>
  92. <el-col :span="12">
  93. <el-form-item label="指标名称" prop="indicatorId">
  94. <!-- multiple collapse-tags -->
  95. <el-select v-model="ruleForm.indicatorId" placeholder="请选择指标名称"
  96. @change="changeIndication"
  97. :disabled="isSave">
  98. <el-option
  99. v-for="item in indicItemoptions"
  100. :key="item.id"
  101. :label="item.indicatorName"
  102. :value="item.id">
  103. </el-option>
  104. </el-select>
  105. </el-form-item>
  106. </el-col>
  107. <el-col :span="12">
  108. <el-form-item label="预警等级" prop="warningLevel">
  109. <el-select v-model="ruleForm.warningLevel" placeholder="请选择预警等级">
  110. <el-option
  111. v-for="item in warningLeveloptions"
  112. :key="item.value"
  113. :label="item.label"
  114. :value="item.value">
  115. </el-option>
  116. </el-select>
  117. </el-form-item>
  118. </el-col>
  119. <el-col :span="12">
  120. <el-form-item label="预警类型" prop="warningType">
  121. <el-select v-model="ruleForm.warningType" placeholder="请选择预警类型">
  122. <el-option
  123. v-for="item in warningTypeoptions"
  124. :key="item.value"
  125. :label="item.label"
  126. :value="item.value">
  127. </el-option>
  128. </el-select>
  129. </el-form-item>
  130. </el-col>
  131. <el-col :span="12">
  132. <el-form-item label="触发时间" prop="warningDate">
  133. <el-row style="width:100%">
  134. <el-col :span="22">
  135. <el-date-picker
  136. v-model="ruleForm.warningDate"
  137. value-format="YYYY-MM-DD"
  138. type="date"
  139. placeholder="请选择触发时间"
  140. />
  141. </el-col>
  142. <el-col :span="2" class="questionIcon">
  143. <el-popover
  144. placement="right-start"
  145. title="提示"
  146. :width="200"
  147. trigger="hover"
  148. >
  149. <div>
  150. <p>预警类型为年度:表示每年的今天执行;</p>
  151. <p>预警类型为季度:1,4,7,10月份表示每个季度的第一个月执行,2,5,8,11月份表示每个季度的第二个月执行,3,6,9,12月份表示每个季度的第三个月执行;</p>
  152. <p>预警类型为月度:表示每个月的今天执.</p>
  153. </div>
  154. <template #reference>
  155. <el-icon :size="20" color="#3B7AD1"><QuestionFilled /></el-icon>
  156. </template>
  157. </el-popover>
  158. </el-col>
  159. </el-row>
  160. </el-form-item>
  161. </el-col>
  162. <el-col :span="12">
  163. <el-form-item label="是否启用">
  164. <el-switch v-model="ruleForm.isEnable" />
  165. </el-form-item>
  166. </el-col>
  167. </el-row>
  168. <el-row>
  169. <el-col :span="12" class="earlyWarningRight">
  170. <el-form-item label="规则配置">
  171. <el-tabs type="border-card">
  172. <el-tab-pane label="指标项">
  173. <el-table
  174. size="mini"
  175. :show-header="false"
  176. :highlight-current-row="true"
  177. :stripe="false"
  178. :border="false"
  179. height="240"
  180. @row-dblclick="rowDbclick"
  181. :data="multipleSelectionArr"
  182. >
  183. <el-table-column prop="optionName" />
  184. <el-table-column prop="optionCode" />
  185. </el-table>
  186. </el-tab-pane>
  187. <el-tab-pane label="函数">
  188. <el-table
  189. size="mini"
  190. fit
  191. :show-header="false"
  192. :highlight-current-row="true"
  193. :stripe="false"
  194. :border="false"
  195. height="240"
  196. @row-dblclick="tabFuncRowClickHandle"
  197. :data="funcMsg"
  198. >
  199. <el-table-column min-width="40%">
  200. <template #default="scope">
  201. <el-popover trigger="hover" placement="bottom">
  202. <p>描述:{{ scope.row.formulaName }}</p>
  203. <!-- <p>参数:{{ scope.row.param }}</p> -->
  204. <template #reference>
  205. <span size="medium" transition="fade-in-linear">{{
  206. scope.row.formulaName
  207. }}</span>
  208. </template>
  209. </el-popover>
  210. </template>
  211. </el-table-column>
  212. <el-table-column min-width="60%">
  213. <template #default="scope">
  214. <el-popover trigger="hover" placement="bottom">
  215. <p>描述:{{ scope.row.description }}</p>
  216. <!-- <p>参数:{{ scope.row.param }}</p> -->
  217. <template #reference>
  218. <span size="medium" transition="fade-in-linear">{{
  219. scope.row.description
  220. }}</span>
  221. </template>
  222. </el-popover>
  223. </template>
  224. </el-table-column>
  225. </el-table>
  226. </el-tab-pane>
  227. <el-tab-pane label="运算符">
  228. <el-button-group>
  229. <el-button
  230. v-for="item in operator"
  231. :key="item"
  232. plain
  233. @click="scorRuleSplit(item)"
  234. style="width: 60px; margin: 7px 12px; height: 40px; border: 1px solid #409EFF;"
  235. >
  236. {{ item }}
  237. </el-button>
  238. </el-button-group>
  239. </el-tab-pane>
  240. </el-tabs>
  241. </el-form-item>
  242. </el-col>
  243. <el-col :span="12">
  244. <el-form-item label="规则公式" prop="representation">
  245. <div style="display:flex">
  246. <span style="font-size: 14px;color: #F65177;font-weight:blod">
  247. *可双击左侧规则配置辅助写公式,符合Excel规则
  248. </span>
  249. </div>
  250. <el-input
  251. type="textarea"
  252. rows="16"
  253. v-model="ruleForm.representation"
  254. id="representation"
  255. />
  256. </el-form-item>
  257. </el-col>
  258. </el-row>
  259. <el-form-item label="描述" prop="desc">
  260. <el-input v-model="ruleForm.desc" :rows="5" type="textarea" placeholder="请输入描述"></el-input>
  261. </el-form-item>
  262. </el-form>
  263. </div>
  264. <template #footer>
  265. <span class="dialog-footer">
  266. <el-button @click="dialogVisible = false">取 消</el-button>
  267. <el-button type="primary" @click="saveevaluscoringruleMsg('ruleForm')">确 定</el-button>
  268. </span>
  269. </template>
  270. </el-dialog>
  271. </div>
  272. </div>
  273. </template>
  274. <script>
  275. import btns from '../elbuttonS.vue'
  276. import seachs from '../seachGroup.vue'
  277. import {apiGetevaluationWarningruleList, apiGetindicatorListAll, apiGetfunctionList,apiGetIndidicList,
  278. apiGetbinsectionList, apiGetevaluationWarningSave, apiPostevaluationwarningruleDelete} from '../../api/api'
  279. export default {
  280. components: { btns,seachs },
  281. data() {
  282. return {
  283. dialogVisible: false,
  284. title: '',
  285. indicItemoptions: [],
  286. childerindicItemoptions: [],
  287. warningLeveloptions: [],
  288. warningTypeoptions: [],
  289. binSectionoptions: [],
  290. indicatorStr: '',
  291. businessStr: '',
  292. rowdataMsg: {},
  293. isSave: false,
  294. funcMsg: [],
  295. operator: [],
  296. multipleSelectionArr: [],
  297. ruleForm: {
  298. ruleName: '',
  299. binSection: '',
  300. indicatorId: '',
  301. warningLevel: '',
  302. warningType: '',
  303. warningDate: '',
  304. isEnable: true,
  305. representation: '',
  306. desc: ''
  307. },
  308. rules: {
  309. ruleName: [
  310. { required: true, message: '请输入预警名称', trigger: 'blur' }
  311. ],
  312. binSection: [
  313. { required: true, message: '请选择业务属性', trigger: 'change' }
  314. ],
  315. indicatorId: [
  316. { required: true, message: '请选择指标名称', trigger: 'change' }
  317. ],
  318. warningLevel: [
  319. { required: true, message: '请选择预警等级', trigger: 'change' }
  320. ],
  321. warningType: [
  322. { required: true, message: '请选择预警类型', trigger: 'change' }
  323. ],
  324. warningDate: [
  325. { required: true, message: '请选择触发时间', trigger: 'change' }
  326. ],
  327. representation: [
  328. { required: true, message: '请输入公式', trigger: 'blur' }
  329. ],
  330. desc: [
  331. { required: true, message: '请输入描述', trigger: 'blur' }
  332. ]
  333. },
  334. earlyWarningRulesData:[],
  335. page:{
  336. pagesize: 12,
  337. currentPage: 1,
  338. total: 0
  339. },
  340. winPix: window.devicePixelRatio,
  341. }
  342. },
  343. created() {
  344. this.warningLeveloptions = [
  345. {
  346. label: '高',
  347. value: 3
  348. },
  349. {
  350. label: '中',
  351. value: 2
  352. },
  353. {
  354. label: '低',
  355. value: 1
  356. }
  357. ]
  358. this.warningTypeoptions = [
  359. {
  360. label: '年度考评',
  361. value: 'NDKP'
  362. },
  363. {
  364. label: '季度考评',
  365. value: 'JDKP'
  366. },
  367. {
  368. label: '月度考评',
  369. value: 'YDKP'
  370. }
  371. ]
  372. this.getEvalscoringData()
  373. this.getDataDictionary()
  374. this.getEvaluationData()
  375. this.getFunData()
  376. this.operator = ["+", "-", "*", "/", "(", ")", ">", ">=", "<", "<=", "==", "!=",
  377. "&&", "||", "!", "%", "true", "false", ".", ]
  378. },
  379. methods:{
  380. // 查询预警规则数据
  381. getEvalscoringData() {
  382. let that = this
  383. let params = {
  384. pageNum: that.page.currentPage,
  385. pageSize: that.page.pagesize,
  386. ruleName: that.indicatorStr,
  387. binSection: that.businessStr
  388. }
  389. apiGetevaluationWarningruleList(params).then(datas =>{
  390. if (datas && datas.data) {
  391. that.earlyWarningRulesData = datas.data.records
  392. that.page.total = datas.data.total
  393. }
  394. })
  395. },
  396. // 函数查询
  397. getFunData() {
  398. let that = this
  399. apiGetfunctionList().then(datas =>{
  400. if (datas && datas.data) {
  401. that.funcMsg = datas.data
  402. }
  403. })
  404. },
  405. // 查询模块
  406. getDataDictionary() {
  407. let that = this
  408. apiGetbinsectionList().then(datas =>{
  409. if (datas && datas.data) {
  410. that.binSectionoptions = datas.data
  411. }
  412. })
  413. },
  414. changeIndication(val) {
  415. let that = this
  416. that.multipleSelectionArr = []
  417. let params = {
  418. indicatorId: val
  419. }
  420. apiGetIndidicList(params).then(datas =>{
  421. if (datas) {
  422. that.multipleSelectionArr = datas
  423. }
  424. })
  425. },
  426. tabFuncRowClickHandle(row) {
  427. let elInput = null
  428. elInput = document.getElementById("representation");
  429. let startPos = elInput.selectionStart; //第0个字符到选中的字符
  430. let endPos = elInput.selectionEnd; //选中字符到末尾字符
  431. if (startPos === undefined || endPos === undefined) return;
  432. let txt = elInput.value;
  433. let func = row.formulaExpresion
  434. // 将插值添加到选中光标位置
  435. let result = txt.substring(0, startPos) + func + txt.substring(endPos);
  436. elInput.value = result;
  437. elInput.focus();
  438. },
  439. rowDbclick(row) {
  440. this.scorRuleSplit(row.optionCode);
  441. },
  442. scorRuleSplit(val) {
  443. let elInput = null
  444. elInput = document.getElementById("representation");
  445. let startPos = elInput.selectionStart;
  446. let endPos = elInput.selectionEnd;
  447. if (startPos === undefined || endPos === undefined) return;
  448. let txt = elInput.value;
  449. let txtSplit = '['+val+']';
  450. let result = txt.substring(0, startPos) + txtSplit + txt.substring(endPos);
  451. elInput.value = result;
  452. this.ruleForm.representation = result
  453. elInput.focus();
  454. elInput.selectionStart = startPos + txtSplit.length;
  455. elInput.selectionEnd = startPos + txtSplit.length;
  456. },
  457. changeBinstation(val) {
  458. this.ruleForm.indicatorId = ''
  459. this.indicItemoptions = []
  460. this.getEvaluationData(val)
  461. },
  462. // 查询指标数据
  463. getEvaluationData(val) {
  464. let that = this
  465. let params = {
  466. binSection: val
  467. }
  468. apiGetindicatorListAll(params).then(datas =>{
  469. if (datas && datas.data) {
  470. that.indicItemoptions = datas.data
  471. }
  472. })
  473. },
  474. handleAdd() {
  475. this.dialogVisible = true
  476. this.isSave = false
  477. this.title = '新增考评预警规则'
  478. this.$nextTick(() =>{
  479. this.ruleForm = {
  480. ruleName: '',
  481. binSection: '',
  482. indicatorId: '',
  483. warningLevel: '',
  484. warningType: '',
  485. warningDate: '',
  486. isEnable: true,
  487. representation: '',
  488. desc: ''
  489. }
  490. })
  491. },
  492. handleEdit(row) {
  493. this.dialogVisible = true
  494. this.isSave = true
  495. this.title = '修改考评预警规则'
  496. this.rowdataMsg = row
  497. this.ruleForm = {
  498. ruleName: row.ruleName,
  499. binSection: row.binSection,
  500. indicatorId: row.indicatorId,
  501. warningLevel: row.grade,
  502. warningType: row.type,
  503. warningDate: row.cronTime,
  504. isEnable: row.enable,
  505. representation: row.expression,
  506. desc: row.ruleDes
  507. }
  508. this.getEvaluationData(row.binSection)
  509. },
  510. saveevaluscoringruleMsg(formName) {
  511. let that = this
  512. that.$refs[formName].validate((valid) => {
  513. if (valid) {
  514. that.saveAndEditIndicatorData()
  515. }
  516. });
  517. },
  518. //新增/修改指标数据
  519. saveAndEditIndicatorData() {
  520. let that = this
  521. let params = {
  522. ruleName: that.ruleForm.ruleName,
  523. binSection: that.ruleForm.binSection,
  524. indicatorId: that.ruleForm.indicatorId,
  525. grade: that.ruleForm.warningLevel,
  526. type: that.ruleForm.warningType,
  527. cronTime: that.ruleForm.warningDate+' 00:00:00',
  528. enable: that.ruleForm.isEnable,
  529. expression: encodeURI(that.ruleForm.representation),
  530. ruleDes: that.ruleForm.desc
  531. }
  532. if (that.isSave) {
  533. let evalradio = that.rowdataMsg
  534. params.id = evalradio.id
  535. }
  536. apiGetevaluationWarningSave(params).then(datas =>{
  537. if (!that.isSave) {
  538. that.$message({
  539. message: '考评预警规则新增成功',
  540. type: 'success'
  541. });
  542. } else {
  543. that.$message({
  544. message: '考评预警规则修改成功',
  545. type: 'success'
  546. });
  547. }
  548. that.dialogVisible = false
  549. that.getEvalscoringData()
  550. })
  551. },
  552. //删除指标数据
  553. handleDelete(row) {
  554. this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
  555. confirmButtonText: '确定',
  556. cancelButtonText: '取消',
  557. type: 'warning'
  558. }).then(() => {
  559. let that = this
  560. let params = {
  561. id: row.id
  562. }
  563. apiPostevaluationwarningruleDelete(params).then(datas =>{
  564. if (datas) {
  565. that.$message({
  566. type: 'success',
  567. message: '删除成功!'
  568. });
  569. that.getEvalscoringData()
  570. }
  571. })
  572. })
  573. },
  574. showCounter() {
  575. this.$refs.counter.init(this.ruleForm.optionName)
  576. },
  577. counterStr(val) {
  578. this.ruleForm.optionName = val
  579. },
  580. getSeachData() {
  581. this.page.currentPage = 1
  582. this.getEvalscoringData()
  583. },
  584. reset() {
  585. this.page.currentPage = 1
  586. this.indicatorStr = ''
  587. this.businessStr = ''
  588. this.getEvalscoringData()
  589. },
  590. handleSizeChange(val){
  591. this.page.pagesize = val
  592. this.getEvalscoringData()
  593. },
  594. handleCurrentChange(val){
  595. this.page.currentPage =val
  596. this.getEvalscoringData()
  597. },
  598. warningTableSty() {
  599. if (this.winPix === 1.25) {
  600. return 'warning125Table'
  601. } else {
  602. return 'warning100Table'
  603. }
  604. }
  605. }
  606. }
  607. </script>
  608. <style lang="less">
  609. .earlyWarningRules{
  610. .earlyWarningRulesBtn{
  611. .collectSeach{
  612. display: flex;
  613. padding: 24px 20px;
  614. border-bottom: 1px solid#D6DBEA;
  615. .exceed{
  616. display: flex;
  617. .exceedSpan{
  618. width: 75px;
  619. height: 12px;
  620. font-size: 14px;
  621. font-family: Microsoft YaHei;
  622. font-weight: 400;
  623. color: #8991B0;
  624. line-height: 12px;
  625. margin-top: 14px;
  626. }
  627. .el-input{
  628. margin-right:10px;
  629. .el-input__inner{
  630. height:40px;
  631. }
  632. .el-input__suffix{
  633. .el-select__caret{
  634. line-height:30px;
  635. }
  636. }
  637. }
  638. }
  639. .el-select{
  640. margin-right:10px;
  641. .el-input__inner{
  642. height:30px;
  643. }
  644. .el-input__suffix{
  645. .el-select__caret{
  646. line-height:30px;
  647. }
  648. }
  649. }
  650. }
  651. span{
  652. font-size:14px;
  653. }
  654. .PeriodBtn{
  655. display: flex;
  656. justify-content: flex-end;
  657. padding: 20px 0;
  658. }
  659. .el-button{
  660. height: 30px;
  661. // width:100px;
  662. padding: 0 30px ;
  663. // padding-top: 8px;
  664. span{
  665. margin:0;
  666. }
  667. }
  668. }
  669. .earlyWarningRulesTableData{
  670. .warning125Table{
  671. .el-table__body-wrapper{
  672. height: 53vh !important;
  673. }
  674. }
  675. .warning100Table{
  676. .el-table__body-wrapper{
  677. height: 60vh !important;
  678. }
  679. }
  680. .el-table{
  681. .el-input__inner{
  682. height: 30px !important;
  683. }
  684. .el-radio__label{
  685. display: none;
  686. }
  687. .tooltipCC{
  688. width: 400px;
  689. display: inline-block;
  690. overflow: hidden;
  691. text-overflow: ellipsis;
  692. white-space: nowrap;
  693. }
  694. .indicitem{
  695. color: #409EFF;
  696. font-size: 12px;
  697. margin-right: 20px;
  698. cursor:pointer;
  699. &:hover{
  700. text-decoration: underline;
  701. }
  702. }
  703. }
  704. .el-pagination{
  705. margin-top: 20px;
  706. text-align: end;
  707. position: relative;
  708. }
  709. }
  710. .el-overlay{
  711. .el-dialog{
  712. margin-top: 5vh;
  713. .el-dialog__body{
  714. padding: 30px 60px 30px 20px;
  715. .periodFrom{
  716. .el-select, .el-input{
  717. width: 100%;
  718. }
  719. .el-input{
  720. height: 30px;
  721. }
  722. .questionIcon{
  723. .el-icon{
  724. position: relative;
  725. top: 3px;
  726. left: 10px;
  727. }
  728. }
  729. .earlyWarningRight {
  730. width: 100%;
  731. .el-tabs{
  732. width: 100%;
  733. height: 100%;
  734. .el-tabs__content{
  735. .el-table{
  736. .el-table__body-wrapper{
  737. .el-checkbox__inner{
  738. border-radius: 10px;
  739. }
  740. }
  741. }
  742. }
  743. }
  744. }
  745. }
  746. }
  747. }
  748. }
  749. }
  750. </style>