<!--
 * @Description: 党建管理 => 情况说明管理
 * @Author: Rockery
 * @Date: 2021-12-10 10:45:58
 * @LastEditors: Rockery
 * @LastEditTime: 2022-01-20 17:41:01
 * @FilePath: \party_construct_web\src\views\PartyBuildingMgr\SituationDesc\SituationDescIndex.vue
 * @Copyright: Copyright (c) 2016~2021 Rockery(1113269755@qq.com)
-->

<template>
  <div
    class="app-container situationdesc"
    :class="['ADD','VIEW'].includes(pageType) ? 'desc-page':''"
  >
    <template v-if="pageType === 'LIST'">
      <div class="situationdesc-main">
        <el-row :gutter="10">
          <el-col :span="24">
            <div class="situationdesc-main-title">
              <div>
                <img
                  :src="require('@/assets/logo/home-main-title-logo.png')"
                  @error="imgViewerOnerror"
                />
              </div>
              <div>情况说明管理</div>
            </div>
          </el-col>
          <div v-loading="loading">
            <el-col :span="24" class="mt20">
              <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
                <el-form-item prop="beginTime">
                  <el-date-picker
                    v-model="queryParams.beginTime"
                    type="date"
                    size="small"
                    clearable
                    format="yyyy年MM月dd日"
                    value-format="yyyy-MM-dd"
                    style="width: 100%;"
                    placeholder="请选择开始时间"
                  ></el-date-picker>
                </el-form-item>
                <el-form-item prop="endTime">
                  <el-date-picker
                    v-model="queryParams.endTime"
                    type="date"
                    size="small"
                    clearable
                    format="yyyy年MM月dd日"
                    value-format="yyyy-MM-dd"
                    style="width: 100%;"
                    placeholder="请选择结束时间"
                  ></el-date-picker>
                </el-form-item>
                <el-form-item prop="name">
                  <el-input
                    v-model="queryParams.name"
                    placeholder="请输入情况说明人姓名"
                    clearable
                    size="small"
                    style="width: 100%;"
                    @keyup.enter.native="handleQuery"
                  />
                </el-form-item>
                <el-form-item>
                  <el-button
                    v-hasPermi="['partybuildingmgr:situationdesc:query']"
                    type="primary"
                    icon="el-icon-search"
                    @click="handleQueryClick"
                  >搜索</el-button>
                  <el-button
                    v-hasPermi="['partybuildingmgr:situationdesc:reset']"
                    icon="el-icon-refresh"
                    @click="resetQueryClick"
                  >重置</el-button>
                </el-form-item>
                <el-form-item class="fr" style="margin-right: 0;">
                  <el-button
                    v-hasPermi="['partybuildingmgr:situationdesc:add']"
                    type="rocpartyprimarybtn"
                    icon="el-icon-plus"
                    @click="handleAddClick"
                  >新增</el-button>
                </el-form-item>
              </el-form>
            </el-col>
            <el-col :span="24">
              <el-table
                :data="list"
                stripe
                border
                :header-cell-style="{'text-align':'center'}"
                header-row-class-name="situationdesc-table_header-row"
                class="situationdesc-main-table"
                style="width: 100%;"
              >
                <el-table-column
                  label="情况说明人姓名"
                  prop="conditionPerson"
                  width="180"
                  :show-overflow-tooltip="true"
                />
                <el-table-column label="说明了以下流程节点问题" :show-overflow-tooltip="true">
                  <template slot-scope="scope">
                    <div>{{ scope.row.conditionPointsText ? ('流程节点问题：' + scope.row.conditionPointsText) : (scope.row.otherDesc? '其他问题：' + scope.row.otherDesc: '') }}</div>
                  </template>
                </el-table-column>
                <el-table-column
                  label="情况说明时间"
                  align="center"
                  prop="conditionTime"
                  width="180"
                  :show-overflow-tooltip="true"
                />
                <el-table-column
                  label="操作"
                  align="center"
                  fixed="right"
                  width="100"
                  class-name="small-padding fixed-width"
                >
                  <template slot-scope="scope">
                    <el-button
                      v-hasPermi="['partybuildingmgr:situationdesc:view']"
                      size="mini"
                      type="text"
                      icon="el-icon-view"
                      style="color: #909399;"
                      @click="handleViewClick(scope.row)"
                    >详情</el-button>
                  </template>
                </el-table-column>
              </el-table>
            </el-col>
            <el-col :span="24">
              <pagination
                v-show="total>0"
                :total="total"
                :page.sync="queryParams.pageNum"
                :limit.sync="queryParams.pageSize"
                @pagination="initData"
              />
            </el-col>
          </div>
        </el-row>
      </div>
    </template>
    <template v-else-if="pageType === 'ADD'">
      <div class="situationdesc-addpage">
        <el-form
          ref="situationDescAddpageFormRef"
          :model="addPageFormObj.formModel"
          :rules="addPageFormObj.formRules"
          label-width="190px"
          class="situationdesc-addpage-form"
        >
          <el-row>
            <el-col :span="24">
              <div class="situationdesc-addpage-title">
                <div>
                  <img
                    :src="require('@/assets/logo/home-main-title-logo.png')"
                    @error="imgViewerOnerror"
                  />
                </div>
                <div>新增情况说明</div>
              </div>
            </el-col>
            <el-col :span="24">
              <div class="situationdesc-addpage-line"></div>
            </el-col>
            <el-col :span="24">
              <el-form-item label="情况说明时间：" prop="conditionTime">
                <el-date-picker
                  v-model="addPageFormObj.formModel.conditionTime"
                  type="date"
                  clearable
                  format="yyyy年MM月dd日"
                  value-format="yyyy-MM-dd"
                  style="width: 100%;"
                  placeholder="请选择情况说明时间"
                ></el-date-picker>
              </el-form-item>
            </el-col>
            <el-col :span="24">
              <el-form-item label="情况说明人:" prop="conditionPersonOption">
                <el-select
                  v-model="addPageFormObj.formModel.conditionPersonOption"
                  clearable
                  filterable
                  style="width: 100%;"
                  placeholder="请选择情况说明人"
                  @change="handleConditionPersonChange"
                >
                  <el-option
                    v-for="situationExplainerOption in situationExplainerOptions"
                    :key="situationExplainerOption.id + '-' + situationExplainerOption.name"
                    :label="situationExplainerOption.id + '-' + situationExplainerOption.name"
                    :value="situationExplainerOption.id + ';' + situationExplainerOption.name"
                  />
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="24">
              <el-form-item label="情况说明：" prop="conditionFile">
                <roc-pdf-file-upload
                  key="ROCPDFFILEUPLOADSITUATIONDESCCONDITIONFILEKEY"
                  v-model="addPageFormObj.formModel.conditionFile"
                  upload-file-title="情况说明"
                ></roc-pdf-file-upload>
              </el-form-item>
            </el-col>
            <el-col :span="24">
              <el-form-item label="问题类型：" required class="situationdesc-addpage-form-processnode">
                <el-radio-group v-model="addPageFormObj.formModel.type" style="width: 100%;">
                  <el-radio label="1">流程节点问题</el-radio>
                  <el-radio label="2">其他问题</el-radio>
                </el-radio-group>
                <template v-if="addPageFormObj.formModel.type === '2'">
                  <el-input
                    type="textarea"
                    clearable
                    maxlength="300"
                    show-word-limit
                    :autosize="{ minRows: 6}"
                    placeholder="请输入内容"
                    v-model="addPageFormObj.formModel.otherDesc"
                  />
                </template>
                <template v-else-if="addPageFormObj.formModel.type === '1'">
                  <div class="mt5 mb20">
                    <el-button
                      type="rocpartyprimarybtn"
                      @click="handleDetectionProcessProblemClick"
                    >立即检测流程问题</el-button>
                  </div>
                  <template v-if="isHasDetectProblem === 'HASDATA'">
                    <div>
                      <el-checkbox-group
                        v-model="addPageFormObj.formModel.conditionPointList"
                        style="width: 100%;"
                        @change="handleConditionPointListChange"
                      >
                        <el-checkbox
                          v-for="(item, index) in processProblemCheckboxOptions"
                          :key="'PROCESSPROBLEM-' + index"
                          :label="item.errorId + '|' + item.errorMsg"
                          style="width: 100%;"
                        >
                          <div class="processnode-circle">{{ item.errorId }}</div>
                          <div class="processnode-label">{{ item.errorMsg }}</div>
                        </el-checkbox>
                      </el-checkbox-group>
                    </div>
                  </template>
                  <template v-else-if="isHasDetectProblem === 'NOHASDATA'">
                    <div style="color: #67c23a; font-size: 16px; font-weight: 400;">无流程问题。</div>
                  </template>
                  <template v-else-if="isHasDetectProblem === 'INITDATA'">
                    <div style="color: #e6a23c; font-size: 16px; font-weight: 400;">待检测流程问题。</div>
                  </template>
                  <template v-else>
                    <div>&nbsp;</div>
                  </template>
                </template>
                <template v-else>
                  <div>&nbsp;</div>
                </template>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
        <div class="pagefooter-btngroup">
          <el-button
            type="rocpartyprimaryplainbtn"
            icon="el-icon-circle-close"
            @click="handleAddpageCloseClick"
          >取 消</el-button>
          <el-button
            :disabled="getAddBtnIsDisabled()"
            type="rocpartyprimarybtn"
            icon="el-icon-circle-check"
            @click="handleAddpageSubmitClick"
          >确 定</el-button>
        </div>
      </div>
    </template>
    <template v-else-if="pageType === 'VIEW'">
      <div class="situationdesc-viewpage">
        <el-form
          ref="situationDescViewpageFormRef"
          :model="viewPageFormObj.formModel"
          label-width="190px"
          class="situationdesc-viewpage-form"
        >
          <el-row>
            <el-col :span="24">
              <div class="situationdesc-viewpage-title">
                <div>
                  <img
                    :src="require('@/assets/logo/home-main-title-logo.png')"
                    @error="imgViewerOnerror"
                  />
                </div>
                <div>情况说明会详情</div>
              </div>
            </el-col>
            <el-col :span="24">
              <div class="situationdesc-viewpage-line"></div>
            </el-col>
            <el-col :span="24">
              <el-form-item label="情况说明时间：" prop="conditionTime">
                <div>{{ viewPageFormObj.formModel.conditionTime }}</div>
              </el-form-item>
            </el-col>
            <el-col :span="24">
              <el-form-item label="情况说明人:" prop="conditionPerson">
                <div>{{ viewPageFormObj.formModel.conditionPerson }}</div>
              </el-form-item>
            </el-col>
            <el-col :span="24">
              <el-form-item label="情况说明：" prop="conditionFile">
                <div class="situationdesc-viewpage-form-desc">
                  <div @click="handleViewPageCheckClick">查看</div>
                  <div
                    @click="handleViewPageDownloadClick(viewPageFormObj.formModel.conditionFile, '党建管理-情况说明管理-详情-情况说明')"
                  >下载</div>
                </div>
              </el-form-item>
            </el-col>
            <el-col :span="24">
              <el-form-item
                label="问题类型："
                prop="sort"
                class="situationdesc-viewpage-form-processnode"
              >
                <div>{{ viewPageFormObj.formModel.type === 1 ? '流程节点问题' : (viewPageFormObj.formModel.type === 2 ? '其他问题' : '')}}</div>
              </el-form-item>
            </el-col>
            <template v-if="viewPageFormObj.formModel.type === 1">
              <el-col :span="24">
                <el-form-item
                  label="流程节点问题："
                  prop="sort"
                  class="situationdesc-viewpage-form-processnode"
                >
                  <div v-html="viewPageFormObj.formModel.conditionPointsText"></div>
                </el-form-item>
              </el-col>
            </template>
            <template v-else-if="viewPageFormObj.formModel.type === 2">
              <el-col :span="24">
                <el-form-item
                  label="其他问题："
                  prop="sort"
                  class="situationdesc-viewpage-form-processnode"
                >
                  <div>{{ viewPageFormObj.formModel.otherDesc }}</div>
                </el-form-item>
              </el-col>
            </template>
            <template v-else>
              <div>&nbsp;</div>
            </template>
          </el-row>
        </el-form>
        <div class="pagefooter-btngroup">
          <el-button
            type="rocpartyprimaryplainbtn"
            icon="el-icon-circle-close"
            @click="handleViewPageCloseClick"
          >关 闭</el-button>
        </div>
      </div>
    </template>
    <template v-else>
      <div>&nbsp;</div>
    </template>

    <roc-vue-pdf-dialog
      v-if="pdfDialogVisible"
      :visible.sync="pdfDialogVisible"
      :pdfUrl="viewPdfFileUrlPrefix + viewPageFormObj.formModel.conditionFile"
    ></roc-vue-pdf-dialog>
  </div>
</template>

<script>
import {
  listSituationDesc,
  viewSituationDesc,
  addSituationDesc,
  getFactSheetOptionList
} from "@/api/PartyBuildingMgr/SituationDesc";
import {
  checkProgressAndCompletion
} from "@/api/PartyBuildingMgr/FullPartyMember";
import { regularDownloadPdfFile } from "@/utils/rockeryutil";

export default {
  name: "Situationdesc",
  components: {
    'roc-pdf-file-upload': () => import('@/components/RocPdfFileUpload'),
    'roc-vue-pdf-dialog': () => import('@/components/RocVuePdfDialog')
  },
  data() {
    return {
      // 遮罩层
      loading: true,
      pageType: 'LIST',
      // 情况说明人选项列表
      situationExplainerOptions: [],
      total: 10,
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        beginTime: undefined,
        endTime: undefined,
        name: undefined
      },
      list: [],
      /** 新增或编辑弹框 */
      addPageFormObj: {
        formModel: {
          conditionTime: undefined,
          conditionPersonOption: undefined,
          conditionPointsText: undefined,
          memberId: undefined,
          conditionPerson: undefined,
          conditionFile: undefined,
          type: '1',
          conditionPoints: undefined,
          conditionPointList: [],
          otherDesc: undefined
        },
        formRules: {
          conditionTime: [{ required: true, message: '情况说明时间不能为空！', trigger: ['blur', 'change'] }],
          conditionPersonOption: [{ required: true, message: '情况说明人不能为空！', trigger: 'change' }],
          conditionFile: [{ required: true, message: '情况说明不能为空！', trigger: 'blur' }],
          type: [{ required: true, message: '问题类型不能为空！', trigger: 'change' }]
        }
      },
      isHasDetectProblem: 'INITDATA',
      processProblemCheckboxOptions: [],
      viewPageFormObj: {
        formModel: {
          conditionPoints: []
        }
      },
      pdfDialogVisible: false,
      viewPdfFileUrlPrefix: `${window.origin}${process.env.VUE_APP_FILE_VIEW_API}`
    };
  },
  created() {
    this.initData();
  },
  methods: {
    /**
    * 初始化数据
    */
    initData() {
      this.getList();
    },
    /**
    * 获取表格数据
    */
    getList() {
      this.loading = true;
      listSituationDesc(this.queryParams).then(
        response => {
          this.list = response.rows || [];
          this.total = response.total ?? 0;
          this.loading = false;
        }
      );
    },
    /**
     * 情况说明人选项列表
     */
    async getFactSheetOptionListData() {
      await getFactSheetOptionList().then(
        resp => {
          this.situationExplainerOptions = resp.data || [];
        }
      );
    },
    /**
    * 搜索按钮事件
    */
    handleQueryClick() {
      this.queryParams.pageNum = 1;
      this.initData();
    },
    /**
    * 重置按钮事件
    */
    resetQueryClick() {
      this.resetForm("queryForm");
      this.handleQueryClick();
    },
    /**
    * 新增按钮事件
    */
    async handleAddClick() {
      // 初始化数据
      this.resetForm('situationDescAddpageFormRef');
      await this.getFactSheetOptionListData();

      // 绑定数据
      this.addPageFormObj = {
        ...this.addPageFormObj,
        formModel: {
          conditionTime: undefined,
          conditionPersonOption: undefined,
          conditionPointsText: undefined,
          memberId: undefined,
          conditionPerson: undefined,
          conditionFile: undefined,
          type: '1',
          conditionPoints: undefined,
          conditionPointList: [],
          otherDesc: undefined
        }
      };
      this.pageType = 'ADD';
    },
    /**
    * 详情按钮事件
    */
    handleViewClick(row) {
      viewSituationDesc(row.id).then((viewResp) => {
        if (viewResp.code === 200) {
          this.viewPageFormObj.formModel = viewResp.data || {};
          if (this.viewPageFormObj.formModel.type === 1) {
            this.viewPageFormObj.formModel.conditionPointsText = this.viewPageFormObj.formModel.conditionPointsText.replace('；', '；<br />');
          }
          this.pageType = 'VIEW';
        }
      });
    },
    /**
    * 立即检测流程问题按钮事件
    */
    handleDetectionProcessProblemClick() {
      if (!this.addPageFormObj.formModel.memberId) {
        this.msgWarning('请选择情况说明人！');
        return;
      }

      checkProgressAndCompletion({ memberId: this.addPageFormObj.formModel.memberId }).then((checkResp) => {
        if (checkResp.code === 200) {
          if (checkResp.data && checkResp.data.length > 0) {
            this.isHasDetectProblem = 'HASDATA';
            this.processProblemCheckboxOptions = checkResp.data || [];
          } else {
            this.isHasDetectProblem = 'NOHASDATA';
          }
        }
      });
    },
    /**
    * 新增页面确定按钮事件
    */
    handleAddpageSubmitClick() {
      this.$refs["situationDescAddpageFormRef"].validate(valid => {
        if (valid) {
          const { conditionPersonOption, conditionPointList, ...formModel } = this.addPageFormObj.formModel || {};
          addSituationDesc(formModel).then((addResp) => {
            if (addResp.code === 200) {
              this.msgSuccess('新增成功！');
              this.initData();
              this.pageType = 'LIST';
            }
          });
        }
      });
    },
    /**
    * 新增页面取消按钮事件
    */
    handleAddpageCloseClick() {
      this.addPageFormObj.formModel = {
        conditionTime: undefined,
        conditionPersonOption: undefined,
        conditionPointsText: undefined,
        memberId: undefined,
        conditionPerson: undefined,
        conditionFile: undefined,
        type: '1',
        conditionPoints: undefined,
        conditionPointList: [],
        otherDesc: undefined
      };
      this.isHasDetectProblem = 'INITDATA';
      this.resetForm('situationDescAddpageFormRef');
      this.pageType = 'LIST';
    },
    /**
     * 详情页面查看按钮事件
     */
    handleViewPageCheckClick() {
      this.pdfDialogVisible = true;
    },
    /**
     * 详情页面下载按钮事件
     */
    handleViewPageDownloadClick(pdfFilePath, pdfFileName = 'pdf-file') {
      if (!pdfFilePath) return;
      regularDownloadPdfFile(`${window.origin}${process.env.VUE_APP_FILE_VIEW_API}${pdfFilePath}`, pdfFileName);
    },
    /**
     * 详情页面关闭按钮事件
     */
    handleViewPageCloseClick() {
      this.pageType = 'LIST';
    },
    /**
     * 情况说明人选项改变事件
     */
    handleConditionPersonChange(val) {
      if (!val) {
        this.addPageFormObj.formModel.memberId = undefined;
        this.addPageFormObj.formModel.conditionPerson = undefined;
      } else {
        const conditionPersonOption = this.addPageFormObj.formModel.conditionPersonOption.split(';') || [];
        this.addPageFormObj.formModel.memberId = conditionPersonOption[0];
        this.addPageFormObj.formModel.conditionPerson = conditionPersonOption[1];
      }
      this.isHasDetectProblem = 'INITDATA';
    },
    /**
     * 流程问题多选框组改变事件
     */
    handleConditionPointListChange(val) {
      if (val && val.length > 0) {
        const conditionPointList = this.addPageFormObj.formModel.conditionPointList || [];
        this.addPageFormObj.formModel.conditionPoints = '';
        let [conditionPointsList, conditionPointsTextList] = [[], []];
        for (let item of conditionPointList) {

          if (item) {
            let tempItemArr = item.split('|') || [];
            conditionPointsList.push(tempItemArr[0]);
            conditionPointsTextList.push(`${tempItemArr[0]}、${tempItemArr[1]}`);
          }
        }
        this.addPageFormObj.formModel.conditionPoints = conditionPointsList.join(',');
        this.addPageFormObj.formModel.conditionPointsText = `${conditionPointsTextList.join('；')}。`;
      } else {
        this.addPageFormObj.formModel.conditionPoints = undefined;
        this.addPageFormObj.formModel.conditionPointsText = undefined;
      }
    },
    /**
     * 获取新增页面的确定按钮是否禁用
     */
    getAddBtnIsDisabled() {
      const { conditionPersonOption, conditionPointsText, conditionPoints, conditionPointList, otherDesc, ...formModel } = this.addPageFormObj.formModel || {};
      let flag = false;
      for (let item in formModel) {
        if (item === 'type') {
          if (formModel[item] === '2') {
            if (!otherDesc) {
              flag = true;
              break;
            }
          } else if (formModel[item] === '1') {
            if (!conditionPointList || conditionPointList.length <= 0) {
              flag = true;
              break;
            }
          } else { }
        } else {
          if (!formModel[item]) {
            flag = true;
            break;
          }
        }
      }

      return flag;
    }
  }
};
</script>

<style  lang="scss" scoped>
.situationdesc {
  .situationdesc-main {
    padding: 20px 20px 72px;
    min-height: 750px;
    background: url("../../../assets/images/home-head-img.png"), #ffffff;
    background-size: 67px 67px, cover;
    background-position: right 20px bottom 5px, center;
    background-repeat: no-repeat, no-repeat;
    border-radius: 10px;

    &-title {
      display: flex;
      align-items: center;

      div {
        &:first-child {
          height: 37px;
          line-height: 37px;
        }

        &:last-child {
          margin-left: 15px;
          height: 37px;
          font-size: 26px;
          font-weight: 400;
          color: #4f4f4f;
          line-height: 37px;
          letter-spacing: 1px;
        }

        img {
          width: 34px;
          height: 34px;
        }
      }
    }

    &-tabs.el-tabs {
      margin-top: 20px;

      ::v-deep {
        .el-tabs__item {
          font-size: 18px;
          font-weight: 500;
          color: #4f4f4f;
          opacity: 0.9;
        }

        .el-tabs__active-bar {
          background-color: #de0010;
        }

        .el-tabs__item.is-active {
          color: #de0010;
          background: #f9e9ea;
        }
      }
    }

    &-table {
      ::v-deep {
        .situationdesc-table_header-row th.el-table__cell {
          background-color: #e5d4b4;
        }

        .el-table__row {
          background-color: #ffffff;
        }

        .el-table__row.el-table__row--striped {
          background-color: #f0f0f0;
        }
      }
    }
  }

  &-addpage {
    width: 100%;

    &-title {
      display: flex;
      align-items: center;
      margin-bottom: 5px;

      div {
        &:first-child {
          height: 37px;
          line-height: 37px;
        }

        &:last-child {
          margin-left: 15px;
          height: 37px;
          font-size: 26px;
          font-weight: 400;
          color: #4f4f4f;
          line-height: 37px;
          letter-spacing: 1px;
        }

        img {
          width: 34px;
          height: 34px;
        }
      }
    }

    &-line {
      width: 100%;
      height: 1px;
      background: #d8dce5;
      margin-bottom: 15px;
    }

    &-form {
      &-processnode {
        ::v-deep {
          .el-checkbox {
            display: flex;
            align-items: center;
            margin-bottom: 20px;

            .el-checkbox__input {
              display: flex;
              align-items: center;
              justify-content: center;
              height: 24px;
              line-height: 24px;
            }

            .el-checkbox__label {
              display: flex;
              align-items: center;
            }
          }
        }
        .processnode-circle {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 24px;
          height: 24px;
          font-size: 14px;
          color: #323232;
          background: #ffffff;
          border: 1px solid #323232;
          border-radius: 50%;
          line-height: 24px;
          opacity: 0.9;
        }

        .processnode-label {
          display: flex;
          align-items: center;
          margin-left: 5px;
          height: 24px;
          font-size: 16px;
          font-weight: 400;
          color: #333333;
          line-height: 20px;
          opacity: 0.9;
        }
      }
    }
  }

  &-viewpage {
    width: 100%;

    &-title {
      display: flex;
      align-items: center;
      margin-bottom: 5px;

      div {
        &:first-child {
          height: 37px;
          line-height: 37px;
        }

        &:last-child {
          margin-left: 15px;
          height: 37px;
          font-size: 26px;
          font-weight: 400;
          color: #4f4f4f;
          line-height: 37px;
          letter-spacing: 1px;
        }

        img {
          width: 34px;
          height: 34px;
        }
      }
    }

    &-line {
      width: 100%;
      height: 1px;
      background: #d8dce5;
      margin-bottom: 15px;
    }

    &-form {
      &-desc {
        display: flex;
        align-items: center;
        width: 100%;
        height: 36px;
        line-height: 36px;

        div {
          display: flex;
          align-items: center;
          justify-content: center;
          height: 36px;
          font-weight: 400;
          font-style: normal;
          font-size: 18px;
          color: rgba(24, 144, 255, 0.996);
          line-height: 36px;
          cursor: pointer;

          &:last-child {
            margin-left: 20px;
          }

          &:hover {
            text-decoration: underline;
          }
        }
      }

      &-processnode {
        ::v-deep {
          .el-checkbox {
            display: flex;
            align-items: center;

            .el-checkbox__input {
              display: flex;
              align-items: center;
              justify-content: center;
              height: 36px;
              line-height: 36px;
            }

            .el-checkbox__label {
              display: flex;
              align-items: center;
            }

            &.is-disabled {
              cursor: not-allowed;
            }
          }
        }
        .processnode-circle {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 24px;
          height: 24px;
          font-size: 14px;
          color: #323232;
          background: #ffffff;
          border: 1px solid #323232;
          border-radius: 50%;
          line-height: 36px;
          opacity: 0.9;
        }

        .processnode-label {
          display: flex;
          align-items: center;
          margin-left: 5px;
          height: 36px;
          font-size: 16px;
          font-weight: 400;
          color: #333333;
          line-height: 36px;
          opacity: 0.9;
        }
      }
    }
  }
}
</style>