earlyWarningRulePage.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  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, 'operator')"
  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. innerWidth: window.innerWidth
  342. }
  343. },
  344. created() {
  345. this.warningLeveloptions = [
  346. {
  347. label: '高',
  348. value: 3
  349. },
  350. {
  351. label: '中',
  352. value: 2
  353. },
  354. {
  355. label: '低',
  356. value: 1
  357. }
  358. ]
  359. this.warningTypeoptions = [
  360. {
  361. label: '年度考评',
  362. value: 'NDKP'
  363. },
  364. {
  365. label: '季度考评',
  366. value: 'JDKP'
  367. },
  368. {
  369. label: '月度考评',
  370. value: 'YDKP'
  371. }
  372. ]
  373. this.getEvalscoringData()
  374. this.getDataDictionary()
  375. this.getEvaluationData()
  376. this.getFunData()
  377. this.operator = ["+", "-", "*", "/", "(", ")", ">", ">=", "<", "<=", "==", "!=",
  378. "&&", "||", "!", "%", "true", "false", ".", ]
  379. },
  380. methods:{
  381. // 查询预警规则数据
  382. getEvalscoringData() {
  383. let that = this
  384. let params = {
  385. pageNum: that.page.currentPage,
  386. pageSize: that.page.pagesize,
  387. ruleName: that.indicatorStr,
  388. binSection: that.businessStr
  389. }
  390. apiGetevaluationWarningruleList(params).then(datas =>{
  391. if (datas && datas.data) {
  392. that.earlyWarningRulesData = datas.data.records
  393. that.page.total = datas.data.total
  394. }
  395. })
  396. },
  397. // 函数查询
  398. getFunData() {
  399. let that = this
  400. apiGetfunctionList().then(datas =>{
  401. if (datas && datas.data) {
  402. that.funcMsg = datas.data
  403. }
  404. })
  405. },
  406. // 查询模块
  407. getDataDictionary() {
  408. let that = this
  409. apiGetbinsectionList().then(datas =>{
  410. if (datas && datas.data) {
  411. that.binSectionoptions = datas.data
  412. }
  413. })
  414. },
  415. changeIndication(val) {
  416. let that = this
  417. that.multipleSelectionArr = []
  418. let params = {
  419. indicatorId: val
  420. }
  421. apiGetIndidicList(params).then(datas =>{
  422. if (datas) {
  423. that.multipleSelectionArr = datas
  424. }
  425. })
  426. },
  427. tabFuncRowClickHandle(row) {
  428. let elInput = null
  429. elInput = document.getElementById("representation");
  430. let startPos = elInput.selectionStart; //第0个字符到选中的字符
  431. let endPos = elInput.selectionEnd; //选中字符到末尾字符
  432. if (startPos === undefined || endPos === undefined) return;
  433. let txt = elInput.value;
  434. let func = row.formulaExpresion
  435. // 将插值添加到选中光标位置
  436. let result = txt.substring(0, startPos) + func + txt.substring(endPos);
  437. elInput.value = result;
  438. elInput.focus();
  439. },
  440. rowDbclick(row) {
  441. this.scorRuleSplit(row.optionCode);
  442. },
  443. scorRuleSplit(val, type) {
  444. let elInput = null
  445. elInput = document.getElementById("representation");
  446. let startPos = elInput.selectionStart;
  447. let endPos = elInput.selectionEnd;
  448. if (startPos === undefined || endPos === undefined) return;
  449. let txt = elInput.value;
  450. // let txtSplit = '['+val+']';
  451. let txtSplit = ''
  452. if (type === 'operator') {
  453. txtSplit = val
  454. } else {
  455. txtSplit = '['+val+']'
  456. }
  457. let result = txt.substring(0, startPos) + txtSplit + txt.substring(endPos);
  458. elInput.value = result;
  459. this.ruleForm.representation = result
  460. elInput.focus();
  461. elInput.selectionStart = startPos + txtSplit.length;
  462. elInput.selectionEnd = startPos + txtSplit.length;
  463. },
  464. changeBinstation(val) {
  465. this.ruleForm.indicatorId = ''
  466. this.indicItemoptions = []
  467. this.getEvaluationData(val)
  468. },
  469. // 查询指标数据
  470. getEvaluationData(val) {
  471. let that = this
  472. let params = {
  473. binSection: val
  474. }
  475. apiGetindicatorListAll(params).then(datas =>{
  476. if (datas && datas.data) {
  477. that.indicItemoptions = datas.data
  478. }
  479. })
  480. },
  481. handleAdd() {
  482. this.dialogVisible = true
  483. this.isSave = false
  484. this.title = '新增考评预警规则'
  485. this.$nextTick(() =>{
  486. this.ruleForm = {
  487. ruleName: '',
  488. binSection: '',
  489. indicatorId: '',
  490. warningLevel: '',
  491. warningType: '',
  492. warningDate: '',
  493. isEnable: true,
  494. representation: '',
  495. desc: ''
  496. }
  497. })
  498. },
  499. handleEdit(row) {
  500. this.dialogVisible = true
  501. this.isSave = true
  502. this.title = '修改考评预警规则'
  503. this.rowdataMsg = row
  504. this.ruleForm = {
  505. ruleName: row.ruleName,
  506. binSection: row.binSection,
  507. indicatorId: row.indicatorId,
  508. warningLevel: row.grade,
  509. warningType: row.type,
  510. warningDate: row.cronTime,
  511. isEnable: row.enable,
  512. representation: row.expression,
  513. desc: row.ruleDes
  514. }
  515. this.getEvaluationData(row.binSection)
  516. },
  517. saveevaluscoringruleMsg(formName) {
  518. let that = this
  519. that.$refs[formName].validate((valid) => {
  520. if (valid) {
  521. that.saveAndEditIndicatorData()
  522. }
  523. });
  524. },
  525. //新增/修改指标数据
  526. saveAndEditIndicatorData() {
  527. let that = this
  528. let params = {
  529. ruleName: that.ruleForm.ruleName,
  530. binSection: that.ruleForm.binSection,
  531. indicatorId: that.ruleForm.indicatorId,
  532. grade: that.ruleForm.warningLevel,
  533. type: that.ruleForm.warningType,
  534. cronTime: that.ruleForm.warningDate+' 00:00:00',
  535. enable: that.ruleForm.isEnable,
  536. expression: encodeURI(that.ruleForm.representation),
  537. ruleDes: that.ruleForm.desc
  538. }
  539. if (that.isSave) {
  540. let evalradio = that.rowdataMsg
  541. params.id = evalradio.id
  542. }
  543. apiGetevaluationWarningSave(params).then(datas =>{
  544. if (!that.isSave) {
  545. that.$message({
  546. message: '考评预警规则新增成功',
  547. type: 'success'
  548. });
  549. } else {
  550. that.$message({
  551. message: '考评预警规则修改成功',
  552. type: 'success'
  553. });
  554. }
  555. that.dialogVisible = false
  556. that.getEvalscoringData()
  557. })
  558. },
  559. //删除指标数据
  560. handleDelete(row) {
  561. this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
  562. confirmButtonText: '确定',
  563. cancelButtonText: '取消',
  564. type: 'warning'
  565. }).then(() => {
  566. let that = this
  567. let params = {
  568. id: row.id
  569. }
  570. apiPostevaluationwarningruleDelete(params).then(datas =>{
  571. if (datas) {
  572. that.$message({
  573. type: 'success',
  574. message: '删除成功!'
  575. });
  576. that.getEvalscoringData()
  577. }
  578. })
  579. })
  580. },
  581. showCounter() {
  582. this.$refs.counter.init(this.ruleForm.optionName)
  583. },
  584. counterStr(val) {
  585. this.ruleForm.optionName = val
  586. },
  587. getSeachData() {
  588. this.page.currentPage = 1
  589. this.getEvalscoringData()
  590. },
  591. reset() {
  592. this.page.currentPage = 1
  593. this.indicatorStr = ''
  594. this.businessStr = ''
  595. this.getEvalscoringData()
  596. },
  597. handleSizeChange(val){
  598. this.page.pagesize = val
  599. this.getEvalscoringData()
  600. },
  601. handleCurrentChange(val){
  602. this.page.currentPage =val
  603. this.getEvalscoringData()
  604. },
  605. warningTableSty() {
  606. if (this.winPix === 1.25 || this.innerWidth < 1800) {
  607. return 'warning125Table'
  608. } else {
  609. return 'warning100Table'
  610. }
  611. }
  612. }
  613. }
  614. </script>
  615. <style lang="less">
  616. .earlyWarningRules{
  617. .earlyWarningRulesBtn{
  618. .collectSeach{
  619. display: flex;
  620. padding: 24px 20px;
  621. border-bottom: 1px solid#D6DBEA;
  622. .exceed{
  623. display: flex;
  624. .exceedSpan{
  625. width: 75px;
  626. height: 12px;
  627. font-size: 14px;
  628. font-family: Microsoft YaHei;
  629. font-weight: 400;
  630. color: #8991B0;
  631. line-height: 12px;
  632. margin-top: 14px;
  633. }
  634. .el-input{
  635. margin-right:10px;
  636. .el-input__inner{
  637. height:40px;
  638. }
  639. .el-input__suffix{
  640. .el-select__caret{
  641. line-height:30px;
  642. }
  643. }
  644. }
  645. }
  646. .el-select{
  647. margin-right:10px;
  648. .el-input__inner{
  649. height:30px;
  650. }
  651. .el-input__suffix{
  652. .el-select__caret{
  653. line-height:30px;
  654. }
  655. }
  656. }
  657. }
  658. span{
  659. font-size:14px;
  660. }
  661. .PeriodBtn{
  662. display: flex;
  663. justify-content: flex-end;
  664. padding: 20px 0;
  665. }
  666. .el-button{
  667. height: 30px;
  668. // width:100px;
  669. padding: 0 30px ;
  670. // padding-top: 8px;
  671. span{
  672. margin:0;
  673. }
  674. }
  675. }
  676. .earlyWarningRulesTableData{
  677. .warning125Table{
  678. .el-table__body-wrapper{
  679. height: 53vh !important;
  680. }
  681. }
  682. .warning100Table{
  683. .el-table__body-wrapper{
  684. height: 60vh !important;
  685. }
  686. }
  687. .el-table{
  688. .el-input__inner{
  689. height: 30px !important;
  690. }
  691. .el-radio__label{
  692. display: none;
  693. }
  694. .tooltipCC{
  695. width: 400px;
  696. display: inline-block;
  697. overflow: hidden;
  698. text-overflow: ellipsis;
  699. white-space: nowrap;
  700. }
  701. .indicitem{
  702. color: #409EFF;
  703. font-size: 12px;
  704. margin-right: 20px;
  705. cursor:pointer;
  706. &:hover{
  707. text-decoration: underline;
  708. }
  709. }
  710. }
  711. .el-pagination{
  712. margin-top: 20px;
  713. text-align: end;
  714. position: relative;
  715. }
  716. }
  717. .el-overlay{
  718. .el-dialog{
  719. margin-top: 5vh;
  720. .el-dialog__body{
  721. padding: 30px 60px 30px 20px;
  722. .periodFrom{
  723. .el-select, .el-input{
  724. width: 100%;
  725. }
  726. .el-input{
  727. height: 30px;
  728. }
  729. .questionIcon{
  730. .el-icon{
  731. position: relative;
  732. top: 3px;
  733. left: 10px;
  734. }
  735. }
  736. .earlyWarningRight {
  737. width: 100%;
  738. .el-tabs{
  739. width: 100%;
  740. height: 100%;
  741. .el-tabs__content{
  742. .el-table{
  743. .el-table__body-wrapper{
  744. .el-checkbox__inner{
  745. border-radius: 10px;
  746. }
  747. }
  748. }
  749. }
  750. }
  751. }
  752. }
  753. }
  754. }
  755. }
  756. }
  757. </style>