|
@@ -1,1377 +0,0 @@
|
|
|
-<template>
|
|
|
- <div class="bgBox">
|
|
|
- <div class="topBox">
|
|
|
- <div class="headerBox">
|
|
|
- <div class="top">
|
|
|
- <span class="oneColor"></span>
|
|
|
- <span class="titleOne">报警预警场景</span>
|
|
|
- </div>
|
|
|
- <el-button class="buts" @click="editSubmit">保存</el-button>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="formBox">
|
|
|
- <el-form
|
|
|
- ref="ruleForm"
|
|
|
- :model="tableFormer"
|
|
|
- label-width="100px"
|
|
|
- v-if="viShow"
|
|
|
- >
|
|
|
- <el-row :gutter="24">
|
|
|
- <el-col
|
|
|
- v-for="(item, index) in tableColsCopys"
|
|
|
- :key="index"
|
|
|
- :span="6"
|
|
|
- >
|
|
|
- <el-form-item :label="item.columnLabel">
|
|
|
- <template
|
|
|
- v-if="
|
|
|
- item.listqueryTemplateID || item.listqueryTemplateID == 0
|
|
|
- "
|
|
|
- >
|
|
|
- <el-select
|
|
|
- v-model="tableFormer[item.columnName]"
|
|
|
- class="input-shadow"
|
|
|
- size="small"
|
|
|
- filterable
|
|
|
- default-first-option
|
|
|
- clearable
|
|
|
- placeholder="请选择"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in tableOptionser[item.columnName]"
|
|
|
- :key="item.v ? item.v : item.planDepartureApt"
|
|
|
- :label="item.k ? item.k : item.planDepartureApt"
|
|
|
- :value="item.v ? item.v : item.planDepartureApt"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </template>
|
|
|
- <template v-else-if="item.dataType == 'longtext'">
|
|
|
- <el-input
|
|
|
- size="small"
|
|
|
- :rows="1"
|
|
|
- type="textarea"
|
|
|
- v-model="tableFormer[item.columnName]"
|
|
|
- ></el-input>
|
|
|
- </template>
|
|
|
- <template v-else-if="item.dataType == 'datetime'">
|
|
|
- <el-date-picker
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- v-model="tableFormer[item.columnName]"
|
|
|
- :rows="1"
|
|
|
- type="datetime"
|
|
|
- placeholder="选择日期时间"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <el-input
|
|
|
- size="small"
|
|
|
- v-model="tableFormer[item.columnName]"
|
|
|
- ></el-input>
|
|
|
- </template>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="centerBox">
|
|
|
- <div class="wrap">
|
|
|
- <DataTable
|
|
|
- :data-id="dataId"
|
|
|
- :rows="12"
|
|
|
- labelWidth="100px"
|
|
|
- :minHeight="70"
|
|
|
- width="800px"
|
|
|
- :isStatuser="true"
|
|
|
- :isAuth="true"
|
|
|
- authAdd="ss_aim_add"
|
|
|
- authEdit="ss_aim_cardEdit"
|
|
|
- authDel="ss_aim_cardDelete"
|
|
|
- tableHeight="610"
|
|
|
- :data-content="{ alarmSceneId }"
|
|
|
- >
|
|
|
- <template v-slot:header>
|
|
|
- <div class="status flex-wrap">
|
|
|
- <div class="manageTitle">报警预警策略</div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </DataTable>
|
|
|
- </div>
|
|
|
- <!-- <DataTable
|
|
|
- :data-id="dataId"
|
|
|
- :rows="12"
|
|
|
- labelWidth="100px"
|
|
|
- :minHeight="70"
|
|
|
- width="800px"
|
|
|
- :isStatuser="true"
|
|
|
- :isAuth="true"
|
|
|
- authAdd="ss_aim_add"
|
|
|
- authEdit="ss_aim_cardEdit"
|
|
|
- authDel="ss_aim_cardDelete"
|
|
|
- tableHeight="610"
|
|
|
- :tableup="true"
|
|
|
- >
|
|
|
- <template v-slot:header>
|
|
|
- <div class="status flex-wrap">
|
|
|
- <div class="manageTitle">报警预警策略</div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </DataTable> -->
|
|
|
- <!-- <div class="LBox">
|
|
|
- <el-row :gutter="24" @scroll="scrollEvent">
|
|
|
- <el-col :span="4">
|
|
|
- <div @click="addDig" class="lbox-add">
|
|
|
- <div class="terminal-info-add-icons">
|
|
|
- <span class="icon el-icon-plus"></span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :span="4" v-for="(item, index) in infoArr" :key="index">
|
|
|
- <div class="headerBoxs">
|
|
|
- <div class="tltle-head">
|
|
|
- <el-tooltip
|
|
|
- effect="dark"
|
|
|
- :content="item.StrategyName"
|
|
|
- placement="bottom"
|
|
|
- >
|
|
|
- <div class="title flower">{{ item.StrategyName }}</div>
|
|
|
- </el-tooltip>
|
|
|
- <div class="edit_log" @click="editup(item)"></div>
|
|
|
- <div
|
|
|
- @click="delBox(item, index)"
|
|
|
- class="el-icon-close icon posab"
|
|
|
- ></div>
|
|
|
- </div>
|
|
|
- <div class="text item" style="margin-top: 15px">
|
|
|
- <div class="adTime fwgh" style="margin-bottom: 15px">
|
|
|
- 预警时长:<span class="timeER">{{
|
|
|
- item.warningDuration
|
|
|
- }}</span>
|
|
|
- </div>
|
|
|
- <div class="adTime fwgh">
|
|
|
- 报警时长:<span class="timeER">{{ item.alarmDuration }}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </div> -->
|
|
|
- </div>
|
|
|
-
|
|
|
- <!--删除弹框-->
|
|
|
- <Dialog :flag="rmFlag">
|
|
|
- <div class="airportInfoDialog">
|
|
|
- <div class="del-title">删除报警预警策略</div>
|
|
|
- <div class="content er">
|
|
|
- <div class="log"></div>
|
|
|
- 是否确认删除
|
|
|
- <p style="color: #eb2f3b; margin-top: 0px; margin-bottom: 0px">
|
|
|
- {{ this.delName }}?
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <div class="DelFoot right t30" style="background: #ffffff">
|
|
|
- <el-button
|
|
|
- size="medium"
|
|
|
- @click="tableRemove"
|
|
|
- class="r25 buwitch"
|
|
|
- type="danger"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
- <el-button size="medium" class="r26" @click="rmFlag = false"
|
|
|
- >取消</el-button
|
|
|
- >
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </Dialog>
|
|
|
- <!--新增/编辑-->
|
|
|
- <!-- <Dialog :width="width" :flag="true">
|
|
|
- <div class="dialog-content">
|
|
|
- <div class="title">{{ tableTitle }}</div>
|
|
|
- <div class="contents">
|
|
|
- <el-form ref="ruleForm" :model="tableForm" :label-width="labelWidth">
|
|
|
- <el-row :gutter="20">
|
|
|
- <el-col v-for="(item, index) in tableColsCopy" :key="index">
|
|
|
- <el-form-item :label="item.columnLabel">
|
|
|
- <template
|
|
|
- v-if="
|
|
|
- item.listqueryTemplateID || item.listqueryTemplateID == 0
|
|
|
- "
|
|
|
- >
|
|
|
- <el-select
|
|
|
- v-model="tableForm[item.columnName]"
|
|
|
- class="input-shadow"
|
|
|
- size="small"
|
|
|
- filterable
|
|
|
- default-first-option
|
|
|
- placeholder="请选择"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in tableOptions[item.columnName]"
|
|
|
- :key="item.v ? item.v : item.planDepartureApt"
|
|
|
- :label="item.k ? item.k : item.planDepartureApt"
|
|
|
- :value="item.v ? item.v : item.planDepartureApt"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </template>
|
|
|
- <template v-else-if="item.dataType == 'longtext'">
|
|
|
- <el-input
|
|
|
- size="small"
|
|
|
- :rows="1"
|
|
|
- type="textarea"
|
|
|
- @change="inputChangeHandler(item.columnName)"
|
|
|
- v-model="tableForm[item.columnName]"
|
|
|
- ></el-input>
|
|
|
- </template>
|
|
|
- <template v-else-if="item.dataType == 'datetime'">
|
|
|
- <el-date-picker
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- v-model="tableForm[item.columnName]"
|
|
|
- :rows="1"
|
|
|
- type="datetime"
|
|
|
- placeholder="选择日期时间"
|
|
|
- @change="inputChangeHandler(item.columnName)"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <el-input
|
|
|
- size="small"
|
|
|
- v-model="tableForm[item.columnName]"
|
|
|
- @change="inputChangeHandler(item.columnName)"
|
|
|
- ></el-input>
|
|
|
- </template>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
- <div class="foot right">
|
|
|
- <el-button size="medium" @click="handleOk" class="r24" type="primary"
|
|
|
- >确定</el-button
|
|
|
- >
|
|
|
- <el-button @click="flag = false" size="medium">取消</el-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </Dialog> -->
|
|
|
- </div>
|
|
|
-</template>
|
|
|
-
|
|
|
-<script>
|
|
|
-import Dialog from "@/layout/components/Dialog/index.vue";
|
|
|
-import Search from "@/layout/components/Search/index.vue";
|
|
|
-import { Query, GeneralDataReception } from "@/api/dataIntegration";
|
|
|
-import { getQuery } from "@/api/flight";
|
|
|
-import DataTable from "@/components/Table";
|
|
|
-import {
|
|
|
- AirlinesInquiry,
|
|
|
- AirportsList,
|
|
|
- AddUserWarning,
|
|
|
- DelUserWarning,
|
|
|
- traceNodeslist,
|
|
|
- Alarmlocation,
|
|
|
-} from "@/api/SystemSettings.js";
|
|
|
-export default {
|
|
|
- components: { Dialog, Search, DataTable },
|
|
|
- data() {
|
|
|
- return {
|
|
|
- alarmSceneId: null,
|
|
|
- viShow: false,
|
|
|
- dataId: DATACONTENT_ID.sysServiceStrategyId,
|
|
|
- id: this.$route.query.id,
|
|
|
- flag: false,
|
|
|
- tableFormer: {},
|
|
|
- aircompeny: [],
|
|
|
- infoArr: [], //报警预警策略列表
|
|
|
- posType: 1,
|
|
|
- arilist: [],
|
|
|
- traceList: [],
|
|
|
- editFalg: false,
|
|
|
- posArrCopy: null,
|
|
|
- delName: "",
|
|
|
- DelId: "", //删除场景id
|
|
|
- region: "",
|
|
|
- StartNode: "",
|
|
|
- StartNodeer: "",
|
|
|
- EndNodeer: "",
|
|
|
- EndNode: "",
|
|
|
- pid: "",
|
|
|
- StartPositionList: [],
|
|
|
- endPositionList: [],
|
|
|
- form: {
|
|
|
- name: "",
|
|
|
- WarningDur: "",
|
|
|
- alamDur: "",
|
|
|
- desc: "",
|
|
|
- StartPosition: this.$route.query.StartPosition,
|
|
|
- EndPosition: this.$route.query.EndPosition,
|
|
|
- },
|
|
|
- regform: [
|
|
|
- {
|
|
|
- name: "节点或位置间超时",
|
|
|
- id: 1,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "临近航班起飞",
|
|
|
- id: 2,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "降落后超时",
|
|
|
- id: 3,
|
|
|
- },
|
|
|
- ],
|
|
|
- pickerOptions: {
|
|
|
- shortcuts: [
|
|
|
- {
|
|
|
- text: "最近一周",
|
|
|
- onClick(picker) {
|
|
|
- const end = new Date();
|
|
|
- const start = new Date();
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
- picker.$emit("pick", [start, end]);
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- text: "最近一个月",
|
|
|
- onClick(picker) {
|
|
|
- const end = new Date();
|
|
|
- const start = new Date();
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
|
- picker.$emit("pick", [start, end]);
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- text: "最近三个月",
|
|
|
- onClick(picker) {
|
|
|
- const end = new Date();
|
|
|
- const start = new Date();
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
|
- picker.$emit("pick", [start, end]);
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- page: 1,
|
|
|
- tableTitle: "新增",
|
|
|
- labelWidth: "110px",
|
|
|
- dataContent: [],
|
|
|
- tableCols: [],
|
|
|
- tableColser: [],
|
|
|
- tableColsCopy: [],
|
|
|
- tableColsCopys: [],
|
|
|
- tableForm: {}, //弹框表单
|
|
|
- width: "560px",
|
|
|
- flag: false,
|
|
|
- rmFlag: false,
|
|
|
- tableObj: {}, //增/删/改数据缓存
|
|
|
- tableType: "",
|
|
|
- noMore: false,
|
|
|
- loading: false,
|
|
|
- page: 1,
|
|
|
- AirportList: [],
|
|
|
- characterList: [], //二字码列表
|
|
|
- tableOptions: {},
|
|
|
- tableOptionser: {},
|
|
|
- };
|
|
|
- },
|
|
|
- created() {
|
|
|
- this.alarmSceneId = Number(this.$route.query.id);
|
|
|
- this.sysServiceWarn();
|
|
|
- // this.UserWarning();
|
|
|
- },
|
|
|
- watch: {
|
|
|
- code3() {
|
|
|
- this.AlarmlocationList(this.code3, "1");
|
|
|
- },
|
|
|
- code4() {
|
|
|
- this.AlarmlocationList(this.code4, "2");
|
|
|
- },
|
|
|
- },
|
|
|
- methods: {
|
|
|
- load() {
|
|
|
- //
|
|
|
- if (this.noMore || this.loading) {
|
|
|
- return;
|
|
|
- }
|
|
|
- this.getQuery();
|
|
|
- },
|
|
|
- //获取预警报警场景(按照ID)
|
|
|
- async sysServiceWarn() {
|
|
|
- try {
|
|
|
- this.loading = true;
|
|
|
- let arr = [];
|
|
|
- arr.push(this.$route.query.id);
|
|
|
- const { code, returnData } = await Query({
|
|
|
- id: DATACONTENT_ID.sysServiceWarnId,
|
|
|
- dataContent: arr,
|
|
|
- });
|
|
|
- if (code == 0) {
|
|
|
- this.loading = false;
|
|
|
- this.page--;
|
|
|
- this.tableFormer = returnData.listValues[0]
|
|
|
- ? returnData.listValues[0]
|
|
|
- : {};
|
|
|
- this.tableColser = returnData.columnSet;
|
|
|
- this.tableColsCopys = this.tableColser.filter(
|
|
|
- (item) => item.needShow
|
|
|
- );
|
|
|
- const datas = _.cloneDeep(this.tableColsCopys);
|
|
|
- // const reqUts = [];
|
|
|
- datas.forEach(async (item) => {
|
|
|
- if (item.listqueryTemplateID || item.listqueryTemplateID == 0) {
|
|
|
- // const reqUt = this.getSelectData(item.listqueryTemplateID)
|
|
|
- // reqUts.push(reqUt)
|
|
|
- if (!this.tableOptionser[item.columnName]) {
|
|
|
- this.tableOptionser[item.columnName] = await this.getSelectData(
|
|
|
- item.listqueryTemplateID
|
|
|
- );
|
|
|
- }
|
|
|
- //
|
|
|
- }
|
|
|
- // this.filterValues[item.columnName] = ''
|
|
|
- });
|
|
|
- setTimeout(() => {
|
|
|
- this.viShow = true;
|
|
|
- }, 300);
|
|
|
- } else {
|
|
|
- this.page--;
|
|
|
- this.$message.error.message;
|
|
|
- this.loading = false;
|
|
|
- }
|
|
|
- } catch (error) {
|
|
|
- this.page--;
|
|
|
- this.loading = false;
|
|
|
- }
|
|
|
- },
|
|
|
- //获取开始位置
|
|
|
- async AlarmlocationList(data, val) {
|
|
|
- if (val == "1") {
|
|
|
- const result = await Alarmlocation({ code: data });
|
|
|
- if (result.code == 0) {
|
|
|
- this.StartPositionList = result.returnData;
|
|
|
- }
|
|
|
- } else if (val == "2") {
|
|
|
- const result = await Alarmlocation({ code: data });
|
|
|
- if (result.code == 0) {
|
|
|
- this.endPositionList = result.returnData;
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- //清除搜索
|
|
|
- clearSearchData() {},
|
|
|
- //模糊查询
|
|
|
- findarrays(ar, feature, v) {
|
|
|
- var arr = [];
|
|
|
- for (var i = 0; i < ar.length; i++) {
|
|
|
- var atxt = ar[i][feature];
|
|
|
- var btxt = v;
|
|
|
- // 将字符串按某个字符切割成若干个字符串,并以数组形式返回
|
|
|
- var atxtarr = atxt.split("");
|
|
|
- var btxtarr = btxt.split("");
|
|
|
- var type = 0;
|
|
|
- for (var k = 0; k < atxtarr.length; k++) {
|
|
|
- for (var p = 0; p < btxtarr.length; p++) {
|
|
|
- if (atxtarr[k] == btxtarr[p]) {
|
|
|
- type = 1;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if (type == 1) {
|
|
|
- arr.push(ar[i]);
|
|
|
- }
|
|
|
- }
|
|
|
- return arr;
|
|
|
- },
|
|
|
- //搜索
|
|
|
- getSearchData(val) {
|
|
|
- if (val) {
|
|
|
- this.infoArr = this.findarrays(this.infoArr, "name", val);
|
|
|
- } else {
|
|
|
- this.UserWarning();
|
|
|
- }
|
|
|
- },
|
|
|
- closeForm() {
|
|
|
- this.$refs.form.resetFields();
|
|
|
- },
|
|
|
- changeValue(val) {
|
|
|
- this.form.name = val;
|
|
|
-
|
|
|
- this.$forceUpdate();
|
|
|
- },
|
|
|
- changeValue1(val) {
|
|
|
- this.form.WarningDur = val;
|
|
|
- this.$forceUpdate();
|
|
|
- },
|
|
|
- changeValue2(val) {
|
|
|
- this.form.alamDur = val;
|
|
|
- this.$forceUpdate();
|
|
|
- },
|
|
|
- changeValue3(val) {
|
|
|
- this.form.desc = val;
|
|
|
- this.$forceUpdate();
|
|
|
- },
|
|
|
-
|
|
|
- //获取航司信息列表
|
|
|
- async getAirlines() {
|
|
|
- const res = await AirlinesInquiry({});
|
|
|
- if (res.code === 0) {
|
|
|
- this.aircompeny = res.returnData;
|
|
|
- } else {
|
|
|
- this.$message.error.message;
|
|
|
- }
|
|
|
- },
|
|
|
- //机场列表
|
|
|
- async getAirlist() {
|
|
|
- const res = await AirportsList({});
|
|
|
- if (res.code === 0) {
|
|
|
- this.arilist = res.returnData;
|
|
|
- } else {
|
|
|
- this.$message.error.message;
|
|
|
- }
|
|
|
- },
|
|
|
- //节点信息列表
|
|
|
- async tracenode() {
|
|
|
- const res = await traceNodeslist({});
|
|
|
- if (res.code === 0) {
|
|
|
- this.traceList = res.returnData;
|
|
|
- } else {
|
|
|
- this.$message.error.message;
|
|
|
- }
|
|
|
- },
|
|
|
- //编辑数据
|
|
|
- async editSubmit() {
|
|
|
- this.tableFormer.event = 2;
|
|
|
- this.generalDataReceptions(this.tableFormer);
|
|
|
- },
|
|
|
-
|
|
|
- //策略列表
|
|
|
- async UserWarning() {
|
|
|
- try {
|
|
|
- let arr = [];
|
|
|
- arr.push(this.$route.query.id);
|
|
|
- const { code, returnData } = await Query({
|
|
|
- id: DATACONTENT_ID.sysServiceStrategyId,
|
|
|
- needPage: this.page,
|
|
|
- dataContent: arr,
|
|
|
- });
|
|
|
- if (code == 0) {
|
|
|
- this.infoArr.push(...returnData.listValues);
|
|
|
- this.tableCols = returnData.columnSet;
|
|
|
- this.tableColsCopy = this.tableCols.filter((item) => item.needShow);
|
|
|
- const datas = _.cloneDeep(this.tableColsCopy);
|
|
|
- datas.forEach(async (item) => {
|
|
|
- if (item.listqueryTemplateID || item.listqueryTemplateID == 0) {
|
|
|
- if (!this.tableOptions[item.columnName]) {
|
|
|
- this.tableOptions[item.columnName] = await this.getSelectData(
|
|
|
- item.listqueryTemplateID
|
|
|
- );
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error.message;
|
|
|
- this.page--;
|
|
|
- }
|
|
|
- } catch (error) {
|
|
|
- this.page--;
|
|
|
- }
|
|
|
- // const res = await UserWarningList({
|
|
|
- // sceneId: this.id,
|
|
|
- // });
|
|
|
- // if (res.code === 0) {
|
|
|
- // this.infoArr = res.returnData;
|
|
|
- // } else {
|
|
|
- // this.$message.error.message;
|
|
|
- // }
|
|
|
- },
|
|
|
- infoIndex() {},
|
|
|
-
|
|
|
- delBox(item) {
|
|
|
- this.rmFlag = true;
|
|
|
- this.tableObj.alarmStrategyID = item.alarmStrategyID;
|
|
|
- },
|
|
|
- //删除
|
|
|
- async remove() {
|
|
|
- const res = await DelUserWarning({
|
|
|
- id: this.DelId,
|
|
|
- });
|
|
|
- if (res.code === 0) {
|
|
|
- this.$message.success("删除报警预警策略成功");
|
|
|
- this.UserWarning();
|
|
|
- } else {
|
|
|
- this.$message.error.message;
|
|
|
- }
|
|
|
- this.remove = false;
|
|
|
- },
|
|
|
- addDig() {
|
|
|
- this.flag = true;
|
|
|
- this.tableType = "add";
|
|
|
- this.tableForm = {};
|
|
|
- },
|
|
|
- editInfo(item) {
|
|
|
- this.posType = 2;
|
|
|
- this.editFalg = true;
|
|
|
- this.form.name = item.name;
|
|
|
- this.region = item.way;
|
|
|
- this.form.WarningDur = item.earlyWarningTime;
|
|
|
- this.form.alamDur = item.warningTime;
|
|
|
- this.StartNode = item.beginNodeId;
|
|
|
- this.EndNode = item.endNodeId;
|
|
|
- this.form.StartPosition = item.beginLocationID;
|
|
|
- this.form.EndPosition = item.endNodeLocationID;
|
|
|
- this.form.desc = item.remark;
|
|
|
- this.pid = item.id;
|
|
|
- this.posArrCopy = _.cloneDeep(item);
|
|
|
- },
|
|
|
-
|
|
|
- close() {
|
|
|
- this.editFalg = false;
|
|
|
- },
|
|
|
- async submit() {
|
|
|
- if (this.posType === 1) {
|
|
|
- const res = await AddUserWarning({
|
|
|
- id: null,
|
|
|
- sceneId: this.id,
|
|
|
- warnName: this.form.name,
|
|
|
- way: this.region,
|
|
|
- earlyWarningTime: this.form.WarningDur,
|
|
|
- warningTime: this.form.alamDur,
|
|
|
- beginNodeId: this.StartNode,
|
|
|
- endNodeId: this.EndNode,
|
|
|
- beginLocationID: this.form.StartPosition,
|
|
|
- endNodeLocationID: this.form.EndPosition,
|
|
|
- beginLocationId: this.form.StartPosition,
|
|
|
- endNodeLocationId: this.form.EndPosition,
|
|
|
- remark: this.form.desc,
|
|
|
- });
|
|
|
- if (res.code === 0) {
|
|
|
- this.editFalg = false;
|
|
|
- this.UserWarning();
|
|
|
- this.$message.success("新增报警预警策略成功");
|
|
|
- } else {
|
|
|
- this.$message.error.message;
|
|
|
- }
|
|
|
- } else {
|
|
|
- const res = await AddUserWarning({
|
|
|
- id: this.pid,
|
|
|
- sceneId: this.id,
|
|
|
- name: this.form.name,
|
|
|
- way: this.region,
|
|
|
- earlyWarningTime: this.form.WarningDur,
|
|
|
- warningTime: this.form.alamDur,
|
|
|
- beginNodeId: this.form.StartNode,
|
|
|
- endNodeId: this.form.EndNode,
|
|
|
- beginLocationId: this.form.StartPosition,
|
|
|
- endNodeLocationId: this.form.EndPosition,
|
|
|
- remark: this.form.desc,
|
|
|
- });
|
|
|
- if (res.code === 0) {
|
|
|
- this.editFalg = false;
|
|
|
- this.UserWarning();
|
|
|
- this.$message.success("编辑报警预警策略成功");
|
|
|
- } else {
|
|
|
- this.$message.error.message;
|
|
|
- }
|
|
|
- }
|
|
|
- this.closeForm();
|
|
|
- },
|
|
|
- // 新增/编辑-确认
|
|
|
- submitClickHandler() {
|
|
|
- this.$refs["ruleForm"].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- if (this.tableType == "add") {
|
|
|
- this.tableForm.event = 1;
|
|
|
- } else {
|
|
|
- this.tableForm.event = 2;
|
|
|
- }
|
|
|
- this.generalDataReception(this.tableForm);
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- //表格-增/删/改
|
|
|
- async generalDataReception(data) {
|
|
|
- try {
|
|
|
- data = {
|
|
|
- ...data,
|
|
|
- };
|
|
|
- const { code, message } = await GeneralDataReception({
|
|
|
- serviceId: DATACONTENT_ID.sysServiceStrategyaddId,
|
|
|
- dataContent: JSON.stringify(data),
|
|
|
- });
|
|
|
- if (code == 0) {
|
|
|
- this.$message.success("操作成功");
|
|
|
- this.infoArr = [];
|
|
|
- this.page = 1;
|
|
|
- this.UserWarning();
|
|
|
- this.flag = false;
|
|
|
- this.rmFlag = false;
|
|
|
- this.tableObj = {};
|
|
|
- this.tableForm = {};
|
|
|
- } else {
|
|
|
- this.$message.error("操作失败");
|
|
|
- this.flag = false;
|
|
|
- this.rmFlag = false;
|
|
|
- this.tableObj = {};
|
|
|
- this.tableForm = {};
|
|
|
- }
|
|
|
- } catch (error) {
|
|
|
- this.flag = false;
|
|
|
- this.rmFlag = false;
|
|
|
- this.tableObj = {};
|
|
|
- this.tableForm = {};
|
|
|
- }
|
|
|
- },
|
|
|
- //表格-删除-确认
|
|
|
- tableRemove() {
|
|
|
- this.tableObj.event = 3;
|
|
|
- this.generalDataReception(this.tableObj);
|
|
|
- },
|
|
|
- //弹框-确定
|
|
|
- handleOk() {
|
|
|
- this.submitClickHandler();
|
|
|
- },
|
|
|
- //表格-增/删/改
|
|
|
- async generalDataReceptions(data) {
|
|
|
- try {
|
|
|
- data = {
|
|
|
- ...data,
|
|
|
- };
|
|
|
- const { code, message } = await GeneralDataReception({
|
|
|
- serviceId: DATACONTENT_ID.sysServiceaddId,
|
|
|
- dataContent: JSON.stringify(data),
|
|
|
- });
|
|
|
- if (code == 0) {
|
|
|
- this.$message.success("操作成功");
|
|
|
- this.$router.push({
|
|
|
- path: "/BasicsData/warningSet",
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message.error("操作失败");
|
|
|
- }
|
|
|
- } catch (error) {}
|
|
|
- },
|
|
|
- //编辑
|
|
|
- editup(data) {
|
|
|
- this.flag = true;
|
|
|
- this.tableType = "";
|
|
|
- this.tableForm = JSON.parse(JSON.stringify(data));
|
|
|
- },
|
|
|
- // 选择机场
|
|
|
- async getAirPortData() {
|
|
|
- try {
|
|
|
- const res = await getQuery({
|
|
|
- id: DATACONTENT_ID.departureAirId,
|
|
|
- dataContent: [],
|
|
|
- });
|
|
|
- if (Number(res.code) === 0) {
|
|
|
- this.AirportList = res.returnData.listValues;
|
|
|
- // this.formData.currentAirport = "PEK";
|
|
|
- // this.getAviationData();
|
|
|
- // this.upAviationData();
|
|
|
- // this.resetLoopEvent();
|
|
|
- } else {
|
|
|
- this.$message.error(res.message);
|
|
|
- }
|
|
|
- } catch (error) {}
|
|
|
- },
|
|
|
- //选择二字码
|
|
|
- async getCharacterData() {
|
|
|
- try {
|
|
|
- const res = await getQuery({
|
|
|
- id: DATACONTENT_ID.twoCharacterOptions,
|
|
|
- dataContent: [],
|
|
|
- });
|
|
|
- if (Number(res.code) === 0) {
|
|
|
- this.characterList = res.returnData.listValues;
|
|
|
- // this.formData.currentAirport = "PEK";
|
|
|
- // this.getAviationData();
|
|
|
- // this.upAviationData();
|
|
|
- // this.resetLoopEvent();
|
|
|
- } else {
|
|
|
- this.$message.error(res.message);
|
|
|
- }
|
|
|
- } catch (error) {}
|
|
|
- },
|
|
|
- // 列表滚动事件
|
|
|
- scrollEvent(e) {
|
|
|
- if (
|
|
|
- e.srcElement.offsetHeight +
|
|
|
- e.srcElement.scrollTop -
|
|
|
- e.srcElement.scrollHeight ===
|
|
|
- 0
|
|
|
- ) {
|
|
|
- if (this.isUpdate) {
|
|
|
- this.page += 1;
|
|
|
- this.UserWarning();
|
|
|
- } else {
|
|
|
- this.$message.warning("到底了");
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- changeSelect(data) {
|
|
|
- if (this.tableForm[data] === "") {
|
|
|
- this.tableForm[data] = null;
|
|
|
- }
|
|
|
- this.tableForm[this.tableOptions[data][0].setvalue] =
|
|
|
- this.tableForm[data];
|
|
|
- //
|
|
|
- },
|
|
|
- //获取弹框-下拉数据
|
|
|
- async getSelectData(id) {
|
|
|
- const { code, returnData } = await Query({
|
|
|
- id,
|
|
|
- dataContent: [],
|
|
|
- });
|
|
|
- if (code == 0) {
|
|
|
- return returnData.listValues;
|
|
|
- } else {
|
|
|
- return [];
|
|
|
- }
|
|
|
- },
|
|
|
- changeSelects(data) {
|
|
|
- if (this.tableFormer[data] === "") {
|
|
|
- this.tableFormer[data] = null;
|
|
|
- }
|
|
|
- this.tableFormer[this.tableOptionser[data][0].setvalue] =
|
|
|
- this.tableFormer[data];
|
|
|
- //
|
|
|
- },
|
|
|
- },
|
|
|
-};
|
|
|
-</script>
|
|
|
-
|
|
|
-<style lang="scss" scoped>
|
|
|
-.bgBox {
|
|
|
- padding: 0;
|
|
|
- width: 100%;
|
|
|
-
|
|
|
- .log {
|
|
|
- width: 26px;
|
|
|
- height: 26px;
|
|
|
- background: #eb2f3b;
|
|
|
- border-radius: 50%;
|
|
|
- margin-right: 15px;
|
|
|
- background: url("../../../../assets/index/ic_close_hint.png") no-repeat;
|
|
|
- background-size: 100% 100%;
|
|
|
- }
|
|
|
- .er {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
- // ::v-deep .el-input__suffix {
|
|
|
- // right: 0;
|
|
|
- // }
|
|
|
- ::v-deep .el-dialog__body {
|
|
|
- padding-left: 0 !important;
|
|
|
- padding-right: 0 !important;
|
|
|
- // padding-top: 20px !important;
|
|
|
- padding-bottom: 0px;
|
|
|
- }
|
|
|
- ::v-deep .el-form-item__content {
|
|
|
- margin-left: 0;
|
|
|
- }
|
|
|
- ::v-deep .el-dialog__headerbtn {
|
|
|
- top: 17px;
|
|
|
- color: #ffffff;
|
|
|
- }
|
|
|
- ::v-deep .el-date-editor {
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
- ::v-deep .el-dialog__close {
|
|
|
- color: #ffffff;
|
|
|
- }
|
|
|
- ::v-deep .el-range-separator {
|
|
|
- line-height: 27px;
|
|
|
- }
|
|
|
- ::v-deep .el-range__icon {
|
|
|
- line-height: 27px;
|
|
|
- }
|
|
|
- ::v-deep .el-dialog__header {
|
|
|
- width: 100%;
|
|
|
- height: 36px;
|
|
|
- display: -webkit-box;
|
|
|
- display: -ms-flexbox;
|
|
|
- display: flex;
|
|
|
- background: #2d67e3;
|
|
|
- padding: 0 16px 0 16px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- display: none;
|
|
|
- }
|
|
|
- ::v-deep .el-dialog__title {
|
|
|
- color: #ffffff !important;
|
|
|
- font-size: 16px !important;
|
|
|
- margin-bottom: 15px;
|
|
|
- }
|
|
|
-}
|
|
|
-.timeER {
|
|
|
- font-size: 14px;
|
|
|
- font-family: Helvetica;
|
|
|
- font-weight: 400;
|
|
|
- color: #afb4bf;
|
|
|
-}
|
|
|
-.box-card {
|
|
|
- width: 268px;
|
|
|
- height: 144px;
|
|
|
- margin-left: 18px;
|
|
|
- margin-top: 24px;
|
|
|
- background: #fff;
|
|
|
- box-shadow: 0px 6px 7px 0px rgb(0 0 0 / 6%);
|
|
|
- border-radius: 4px;
|
|
|
-}
|
|
|
-.headerBox {
|
|
|
- padding: 16px 32px 16px 16px;
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- .tltle-head {
|
|
|
- display: flex;
|
|
|
- width: 100%;
|
|
|
- flex-direction: row;
|
|
|
- justify-content: flex-start;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
- .el-button {
|
|
|
- width: 64px;
|
|
|
- height: 32px;
|
|
|
- background: #2d67e3;
|
|
|
- border-radius: 4px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- font-size: 14px;
|
|
|
- font-family: Microsoft YaHei;
|
|
|
- font-weight: 400;
|
|
|
- color: #ffffff;
|
|
|
- }
|
|
|
-}
|
|
|
-.text {
|
|
|
- font-size: 14px;
|
|
|
-}
|
|
|
-
|
|
|
-.item {
|
|
|
- padding: 18px 0;
|
|
|
-}
|
|
|
-
|
|
|
-.box-card {
|
|
|
- width: 216px;
|
|
|
- height: 104px;
|
|
|
- margin-top: -13px;
|
|
|
- cursor: pointer;
|
|
|
- margin-left: 35px;
|
|
|
- background: #f5f7fa;
|
|
|
- box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
|
|
|
- border-radius: 8px;
|
|
|
-}
|
|
|
-.topBox {
|
|
|
- // height: 280px;
|
|
|
- background: #ffffff;
|
|
|
- box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
|
|
|
- border-radius: 4px;
|
|
|
- margin-bottom: 25px;
|
|
|
-}
|
|
|
-.headerBoxs {
|
|
|
- height: 144px;
|
|
|
- padding: 24px 24px 20px 18px;
|
|
|
- background: #ffffff;
|
|
|
- border-radius: 4px;
|
|
|
- margin-bottom: 24px;
|
|
|
- position: relative;
|
|
|
- .posab {
|
|
|
- position: absolute;
|
|
|
- right: 12px;
|
|
|
- }
|
|
|
- .tltle-head {
|
|
|
- display: flex;
|
|
|
- // justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
- .el-button {
|
|
|
- width: 64px;
|
|
|
- height: 32px;
|
|
|
- background: #2d67e3;
|
|
|
- border-radius: 4px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- font-size: 14px;
|
|
|
- font-family: Microsoft YaHei;
|
|
|
- font-weight: 400;
|
|
|
- color: #ffffff;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.top {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- flex-direction: row;
|
|
|
-}
|
|
|
-
|
|
|
-.oneColor {
|
|
|
- width: 4px;
|
|
|
- height: 20px;
|
|
|
- margin-right: 12px;
|
|
|
- background: #2d67e3;
|
|
|
-}
|
|
|
-.titleOne {
|
|
|
- width: 144px;
|
|
|
- font-size: 20px;
|
|
|
- font-family: Microsoft YaHei;
|
|
|
- font-weight: bold;
|
|
|
- color: #303133;
|
|
|
-}
|
|
|
-
|
|
|
-.formBox {
|
|
|
- display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
- width: 100%;
|
|
|
- padding-right: 24px;
|
|
|
- padding-left: 24px;
|
|
|
- ::v-deep .el-input__suffix {
|
|
|
- top: 0px;
|
|
|
- }
|
|
|
-}
|
|
|
-::v-deep .el-input__prefix {
|
|
|
- left: 17px;
|
|
|
-}
|
|
|
-::v-deep .el-row {
|
|
|
- width: 100%;
|
|
|
-}
|
|
|
-::v-deep .el-select {
|
|
|
- width: 100%;
|
|
|
-}
|
|
|
-::v-deep .formBox {
|
|
|
- .el-input__inner {
|
|
|
- margin-left: 15px;
|
|
|
- // width: 160px;
|
|
|
- height: 32px;
|
|
|
- background: #fff;
|
|
|
- border: 1px solid #d7dae3;
|
|
|
- border-radius: 4px;
|
|
|
- }
|
|
|
- // .digName4 {
|
|
|
- // display: flex;
|
|
|
- // .el-input {
|
|
|
- // width: 58%;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // .digName4 .el-input__inner {
|
|
|
- // // width: 400px;
|
|
|
- // height: 32px;
|
|
|
- // margin-left: 16px;
|
|
|
- // background: #fff;
|
|
|
- // border: 1px solid #d7dae3;
|
|
|
- // border-radius: 4px;
|
|
|
- // }
|
|
|
-
|
|
|
- // .digName {
|
|
|
- // width: 100%;
|
|
|
- // display: flex;
|
|
|
- // justify-content: space-around;
|
|
|
- // // flex-direction: row;
|
|
|
- // }
|
|
|
- // .aviName {
|
|
|
- // display: flex;
|
|
|
- // flex-direction: row;
|
|
|
- // margin-bottom: 24px;
|
|
|
- // width: 100%;
|
|
|
- // margin-right: 10px;
|
|
|
- // text-align: right;
|
|
|
- // > .el-input {
|
|
|
- // width: 58%;
|
|
|
- // }
|
|
|
- // .el-select {
|
|
|
- // width: 58%;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // .aviName1 {
|
|
|
- // // width: 25%;
|
|
|
- // width: 100%;
|
|
|
- // display: flex;
|
|
|
- // flex-direction: row;
|
|
|
- // margin-bottom: 24px;
|
|
|
- // margin-right: 38px;
|
|
|
- // text-align: right;
|
|
|
- // justify-content: center;
|
|
|
- // .aviP5 {
|
|
|
- // width: 82px;
|
|
|
- // line-height: 30px;
|
|
|
- // }
|
|
|
- // .el-input__inner {
|
|
|
- // width: 231px;
|
|
|
- // height: 32px;
|
|
|
- // background: #fff;
|
|
|
- // }
|
|
|
- // .el-input__prefix {
|
|
|
- // left: 17px;
|
|
|
- // top: -3px;
|
|
|
- // }
|
|
|
- // .el-input__suffix {
|
|
|
- // top: -3px;
|
|
|
- // }
|
|
|
- // // .el-input__suffix {
|
|
|
- // // top: -2;
|
|
|
- // // }
|
|
|
- // // .el-input__icon {
|
|
|
- // // margin-left: 10px;
|
|
|
- // // }
|
|
|
- // }
|
|
|
- // .aviName2 {
|
|
|
- // display: flex;
|
|
|
- // flex-direction: row;
|
|
|
- // margin-bottom: 24px;
|
|
|
- // margin-right: 10px;
|
|
|
- // text-align: right;
|
|
|
- // .el-textarea__inner {
|
|
|
- // width: 972px;
|
|
|
- // height: 32px;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // .aviP {
|
|
|
- // width: 110px;
|
|
|
- // height: 32px;
|
|
|
- // line-height: 32px;
|
|
|
- // color: #303133;
|
|
|
- // }
|
|
|
- // .aviP1 {
|
|
|
- // width: 110px;
|
|
|
- // text-align: right;
|
|
|
- // height: 32px;
|
|
|
- // line-height: 32px;
|
|
|
- // color: #303133;
|
|
|
- // }
|
|
|
- // .aviP2 {
|
|
|
- // width: 83px;
|
|
|
- // display: flex;
|
|
|
- // justify-content: flex-start;
|
|
|
- // padding-left: 2px;
|
|
|
- // text-align: right;
|
|
|
- // height: 32px;
|
|
|
- // line-height: 32px;
|
|
|
- // color: #303133;
|
|
|
- // }
|
|
|
- // .aviP3 {
|
|
|
- // width: 64px;
|
|
|
- // height: 32px;
|
|
|
- // line-height: 32px;
|
|
|
- // text-align: right;
|
|
|
- // margin-right: 40px;
|
|
|
- // }
|
|
|
-}
|
|
|
-.centerBox {
|
|
|
- height: 610px;
|
|
|
- padding: 0 0 22px 0;
|
|
|
- // background: #ffffff;
|
|
|
- // box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
|
|
|
- // border-radius: 4px;
|
|
|
-}
|
|
|
-.centerTitle {
|
|
|
- width: 126px;
|
|
|
- height: 18px;
|
|
|
- font-size: 18px;
|
|
|
- font-weight: bold;
|
|
|
- color: #303133;
|
|
|
-}
|
|
|
-.delIcon {
|
|
|
- cursor: pointer;
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
- background: #000000;
|
|
|
- opacity: 0.8;
|
|
|
- border-radius: 50%;
|
|
|
- color: #ffffff;
|
|
|
- font-weight: bold;
|
|
|
- text-align: center;
|
|
|
- line-height: 24px;
|
|
|
- margin-left: 232px;
|
|
|
-}
|
|
|
-
|
|
|
-.centerCard {
|
|
|
- display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
- width: 100%;
|
|
|
-}
|
|
|
-.boxFlex {
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
-}
|
|
|
-.addIcon {
|
|
|
- color: #d7dae3;
|
|
|
- font-size: 60px;
|
|
|
-}
|
|
|
-.LBox {
|
|
|
- height: 100%;
|
|
|
- display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
- width: 100%;
|
|
|
- // margin-left: 30px;
|
|
|
- margin-top: 16px;
|
|
|
- margin-bottom: 20px;
|
|
|
-}
|
|
|
-.lbox-add {
|
|
|
- height: 144px;
|
|
|
- background: #f5f7fa;
|
|
|
- border: 1px dashed #9ebbf7;
|
|
|
- border-radius: 8px;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- cursor: pointer;
|
|
|
- .icon {
|
|
|
- font-size: 31px;
|
|
|
- color: #9ebbf7;
|
|
|
- }
|
|
|
-}
|
|
|
-.forBox {
|
|
|
- width: 230px;
|
|
|
- height: 120px;
|
|
|
- margin-bottom: 24px;
|
|
|
- background: #f5f7fa;
|
|
|
- box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
|
|
|
- border-radius: 2px;
|
|
|
- padding: 24px;
|
|
|
- position: relative;
|
|
|
- margin-right: 24px;
|
|
|
- cursor: pointer;
|
|
|
- .name {
|
|
|
- font-size: 18px;
|
|
|
- font-family: Microsoft YaHei;
|
|
|
- font-weight: bold;
|
|
|
- color: #303133;
|
|
|
- white-space: nowrap;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- }
|
|
|
- .edit {
|
|
|
- margin-top: 32px;
|
|
|
- position: relative;
|
|
|
- .round {
|
|
|
- display: inline-block;
|
|
|
- width: 28px;
|
|
|
- height: 28px;
|
|
|
- // background: #f5f7fa;
|
|
|
- border-radius: 50%;
|
|
|
- line-height: 28px;
|
|
|
- text-align: center;
|
|
|
- // box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- position: absolute;
|
|
|
- right: 0px;
|
|
|
- i {
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .close {
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
- background: #000000;
|
|
|
- opacity: 0.8;
|
|
|
- border-radius: 50%;
|
|
|
- position: absolute;
|
|
|
- right: -12px;
|
|
|
- line-height: 24px;
|
|
|
- text-align: center;
|
|
|
- top: -12px;
|
|
|
- i {
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
- }
|
|
|
- &:last-child {
|
|
|
- margin-right: 0;
|
|
|
- }
|
|
|
-}
|
|
|
-.active {
|
|
|
- background: #6e82a7;
|
|
|
- .name {
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
- .edit {
|
|
|
- .round {
|
|
|
- background: #fff;
|
|
|
- i {
|
|
|
- color: #6e82a7;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-::v-deep .DigClass {
|
|
|
- .el-dialog {
|
|
|
- // border-radius: 20px;
|
|
|
- width: 462px;
|
|
|
- }
|
|
|
- .el-dialog__header {
|
|
|
- padding: 35px 46px 10px;
|
|
|
- }
|
|
|
- .el-dialog__title {
|
|
|
- font-size: 24px;
|
|
|
- font-weight: bold;
|
|
|
- color: #303133;
|
|
|
- }
|
|
|
-}
|
|
|
-::v-deep .EditDig {
|
|
|
- .itemBox {
|
|
|
- display: flex;
|
|
|
- justify-content: space-around;
|
|
|
- }
|
|
|
- .el-dialog {
|
|
|
- // border-radius: 20px;
|
|
|
- width: 600px;
|
|
|
- display: flex;
|
|
|
- display: -ms-flex; /* 兼容IE */
|
|
|
- flex-direction: column;
|
|
|
- -ms-flex-direction: column; /* 兼容IE */
|
|
|
- margin: 0 !important;
|
|
|
- position: absolute;
|
|
|
- top: 50%;
|
|
|
- left: 50%;
|
|
|
- transform: translate(-50%, -50%);
|
|
|
- max-height: calc(100% - 30px);
|
|
|
- max-width: calc(100% - 30px);
|
|
|
- // height: 515px;
|
|
|
- }
|
|
|
- .el-input__inner {
|
|
|
- width: 160px;
|
|
|
- height: 32px;
|
|
|
- background: #ffffff;
|
|
|
- border: 1px solid #d7dae3;
|
|
|
- border-radius: 4px;
|
|
|
- }
|
|
|
- .el-textarea__inner {
|
|
|
- width: 462px;
|
|
|
- height: 96px;
|
|
|
- background: #ffffff;
|
|
|
- border: 1px solid #d7dae3;
|
|
|
- border-radius: 4px;
|
|
|
- }
|
|
|
- .el-dialog__header {
|
|
|
- padding: 35px 46px 10px;
|
|
|
- }
|
|
|
- .el-dialog__footer {
|
|
|
- padding-left: 0px;
|
|
|
- padding-right: 0px;
|
|
|
- padding-bottom: 0;
|
|
|
- }
|
|
|
- .el-dialog__title {
|
|
|
- font-size: 24px;
|
|
|
- font-weight: bold;
|
|
|
- color: #303133;
|
|
|
- }
|
|
|
-
|
|
|
- .dialog-footer {
|
|
|
- height: 56px;
|
|
|
- display: flex;
|
|
|
- justify-content: flex-end;
|
|
|
- align-items: center;
|
|
|
- padding-right: 34px;
|
|
|
- background: #f0f5ff;
|
|
|
- padding-bottom: 0;
|
|
|
- }
|
|
|
-}
|
|
|
-</style>
|