<template>
  <div class="box">
    <component :is="template">
      <el-tabs :tab-position="tabPosition" style="height: 500px;">

        <!--{{$t('p_set')}}-->
        <el-tab-pane :label="$t('p_set')">
          <fieldset style="border:1px dashed #d8d8d8;margin: 10px 5px 10px 5px;">
            <legend style="color:#828282;border:0px;background-color:white;">{{$t('profile.basic_info')}}</legend>
            <label>{{$t('profile.user_name')}}:</label>
            <el-input v-model="input"></el-input>
            <label for>{{$t('placeholder.username')}}:</label>
            <el-input v-model="number"></el-input>
            <br />
            <label for>{{$t('profile.email')}}:</label>
            <el-input v-model="e_mail"></el-input>
            <label for>{{$t('view.phone')}}:</label>
            <el-input v-model="cellphone"></el-input>
          </fieldset>
          <fieldset style="border:1px dashed #d8d8d8;margin: 10px 5px 10px 5px;">
            <legend style="color:#828282;border:0px;background-color:white;">{{$t('profile.change_pwd')}}</legend>
            <label for>{{$t('profile.old_pwd')}}:</label>
            <el-input v-model="password" type="password"></el-input>
            <br />
            <label for>{{$t('profile.new_pwd')}}:</label>
            <el-input v-model="newpassword" type="password"></el-input>
            <br />
            <label for>{{$t('profile.confirm_pwd')}}:</label>
            <el-input v-model="affirm" type="password"></el-input>
          </fieldset>
          <div class="saveChange">
            <div class="exitbtn">
              <el-button type="success" @click="UserSetups">{{$t('btns.use')}}</el-button>
            </div>
          </div>
          <el-dialog :close-on-click-modal="false" :title="$t('success')" :visible.sync="Successfulpopup" width="30%">
            <span>{{$t('profile.basic_info')}}{{$t('msg.ss')}}</span>
            <span slot="footer" class="dialog-footer">
              <el-button @click="Successfulpopup = false">{{$t('btns.cancel')}}</el-button>
              <el-button type="primary" @click="Successfulpopup = false">{{$t('btns.sure')}}</el-button>
            </span>
          </el-dialog>
          <el-dialog :close-on-click-modal="false" :title="$t('msg.failure')" :visible.sync="failurepopup" width="30%">
            <span>{{$t('profile.basic_info')}}{{$t('msg.sf')}}</span>
            <span slot="footer" class="dialog-footer">
              <el-button @click="failurepopup = false">{{$t('btns.cancel')}}</el-button>
              <el-button type="primary" @click="failurepopup = false">{{$t('btns.sure')}}</el-button>
            </span>
          </el-dialog>
        </el-tab-pane>

        <!--鐨偆鏍峰紡-->
        <el-tab-pane label="鐨偆鏍峰紡">
          <div>
            <table class="table_noborder" width="100%" style="margin-top: 15px;">
              <tbody>
                <tr class="selectSkin">
                  <td align="center">
                    <div class="personSetSkin" style="float:left">
                      <div @click="addSkin">
                        <img src="/preview-good.gif" alt class="addImg" />
                        <div class="focusImg" style="display: block;">
                          <img src="/obpm/resource/images/iconfont-zhuangtai.gif" v-show=" showAttr" />
                        </div>
                      </div>
                      <span class="skinLabel">
                        <input type="radio" name="content.userSkin" value="good" style="display:none;"
                          checked="checked" />
                        <span>good</span>
                      </span>
                    </div>

                    <div class="personSetSkin" style="float:left">
                      <div @click="addModality">
                        <img src="/preview-H5.gif" alt class="addImg" />
                        <div class="focusImg">
                          <img src="/obpm/resource/images/iconfont-zhuangtai.gif" v-show="showReveal" />
                        </div>
                      </div>
                      <span class="skinLabel">
                        <input type="radio" name="content.userSkin" value="H5" style="display:none;" />
                        <span>{{$t('profile.default')}}</span>
                      </span>
                    </div>
                  </td>
                </tr>
              </tbody>
            </table>
            <div class="skinkung">
              <div class="skinright">
                <el-button type="success" @click="Userskin">{{$t('btns.use')}}</el-button>
              </div>
            </div>
          </div>
        </el-tab-pane>

        <!--浠g悊璁剧疆-->
        <el-tab-pane :label="$t('profile.proxy_setting')">
          <div class="agency-container">
            <div class="agency-header">
              <span>{{$t('profile.flow_proxy')}}:</span>
              <b class="agency-b">{{$t('profile.software')}}:</b>
              <el-radio v-model="radio" label="1">{{$t('view.two')}}</el-radio>
            </div>
            <div class="agency-middle">
              <div class="agency-left">
                <el-button type="primary" @click="construction"> {{$t('btns.new')}}</el-button>
                <el-dialog :close-on-click-modal="false" :title="$t('view.create_flow_info')"
                  :visible.sync="centerDialogVisible" width="40%" center>
                  <el-dialog :close-on-click-modal="false" width="30%" :title="$t('view.proxy_save')"
                    :visible.sync="innerVisible" append-to-body>
                    <el-button @click="innerVisible = false">{{$t('btns.cancel')}}</el-button>
                    <el-button @click="innerAgencyVisible">{{$t('msg.confirm')}}</el-button>
                  </el-dialog>
                  <div class="agency-dialog-content">
                    <label for>{{$t('profile.proxy_mode')}}:</label>
                    <el-radio-group v-model="radio2" @change="change">
                      <el-radio :label="1">{{$t('view.one_flow')}}</el-radio>
                      <el-radio :label="2">{{$t('view.all_flow')}}</el-radio>
                      <br />
                      <el-select v-model="value" :placeholder="$t('placeholder.select')" v-if="radio2!==2">
                        <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
                      </el-select>
                    </el-radio-group>
                    <br />
                    <label for>{{$t('btns.authorize')}}:</label>
                    <el-input v-model="dialogInput"></el-input>
                    <el-button>{{$t('btns.select')}}</el-button>
                    <br />
                    <label for>{{$t('view.proxy_start')}}</label>
                    <el-date-picker v-model="picker1" type="date" :placeholder="$t('placeholder.select_date')">
                    </el-date-picker>
                    <br />
                    <label for>{{$t('view.proxy_end')}}:</label>
                    <el-date-picker v-model="picker2" type="date" :placeholder="$t('placeholder.select_date')">
                    </el-date-picker>
                    <br />
                    <label for>{{$t('profile.status')}}:</label>
                    <el-radio v-model="radioDialog" label="1">{{$t('profile.activate')}}</el-radio>
                    <el-radio v-model="radioDialog" label="2">{{$t('profile.forbidden')}}</el-radio>
                    <br />
                    <label for class="Dialog-label">{{$t('profile.description')}}:</label>
                    <el-input class="Dialog-textarea" type="textarea" :rows="3" :placeholder="$t('placeholder.content')"
                      v-model="textarea"></el-input>
                  </div>
                  <!-- <el-button type="primary" class="agency-dialog-button" @click="centerDialog">淇濆瓨</el-button> -->
                  <span slot="footer" class="dialog-footer">
                    <el-button @click="dialogVisible = false">{{$t('btns.cancel')}}</el-button>
                    <el-button type="primary" @click="centerDialog">{{$t('btns.sure')}}</el-button>
                  </span>
                </el-dialog>
                <el-button type="danger" @click="DELETEusersetups">{{$t('btns.delete')}}</el-button>
              </div>
              <div class="agency-right">
                <label for>{{$t('profile.flow_name')}}:</label>
                <el-input v-model="agency" ref="empty"></el-input>
                <el-button>{{$t('btns.query')}}</el-button>
                <el-button @click="replacement">{{$t('reset')}}</el-button>
              </div>
            </div>
          </div>
          <el-table ref="Current" :data="process" tooltip-effect="dark" style="width: 100%" height="300px"
            @selection-change="handleCurrentChange">
            <el-table-column prop="id" type="selection" width="55"></el-table-column>
            <el-table-column prop="flowName" :label="$t('profile.flow_name')">
              <!-- <template slot-scope="scope">{{scope.row.flowName}}</template> -->
            </el-table-column>
            <el-table-column prop="proxyMode" :label="$t('profile.proxy_way')"></el-table-column>
            <el-table-column prop="description" :label="$t('profile.description')" show-overflow-tooltip>
            </el-table-column>
            <el-table-column prop="agentsName" :label="$t('profile.empower')"></el-table-column>
            <el-table-column prop="state" :label="$t('profile.status')"></el-table-column>
            <el-table-column :label="$t('operate')"></el-table-column>
          </el-table>
          <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
            :current-page.sync="currentPage1" :page-size="100" layout="total, prev, pager, next" :total="1000">
          </el-pagination>
          <div class="workHome">
            <div class="workHomeContent">
              <el-button type="success" @click="setCurrent()">{{$t('btns.use')}}</el-button>
            </div>
          </div>
        </el-tab-pane>

        <!--閫氳褰�-->
        <el-tab-pane :label="$t('profile.tel_list')">
          <div class="dendrogram">
            <div
              style="height:30px;line-height:30px;color:#7b8d9d;padding-left: 5px;font-size: 14px;font-weight: 700;border-bottom:1px solid #f0f0f0;">
              <a href="javascript:doviewByGroup('all')" style="color:black;">{{$t('profile.all_linkman')}}</a>
            </div>
            <el-table :data="linkman" style="width: 100%">
              <el-table-column prop="name" :label="$t('view.full_name')"></el-table-column>
              <el-table-column :label="$t('btns.delete')">
                <template slot-scope="scope">
                  <el-button icon="el-icon-delete" @click="removeAction(scope.$index,scope.row)"></el-button>
                </template>
              </el-table-column>
            </el-table>
            <el-dialog :close-on-click-modal="false" :title="$t('tip')" :visible.sync="RemoveVisibel" width="30%">
              <span>{{$t('view.comfirm_delete')}}</span>
              <span slot="footer" class="dialog-footer">
                <el-button @click="RemoveVisibel = false">{{$t('btns.cancel')}}</el-button>
                <el-button type="primary" @click="RemoveVisibel = false">{{$t('btns.sure')}}</el-button>
              </span>
            </el-dialog>
            <div class="doNewGroup">
              <a href="###" onclick="doNewGroup();">
                <span style="font-size:14px;color:#7a8d9d;"
                  @click="dialogVisible = true">+</span>{{$t('profile.new_group')}}
              </a>
            </div>
            <el-dialog :close-on-click-modal="false" :title="$t('view.input_group_name')" :visible.sync="dialogVisible"
              width="30%" :before-close="handleClose">
              <span>
                <el-input v-model="contentDialogVisible" :placeholder="$t('placeholder.input')" ref="keep"></el-input>
              </span>
              <span slot="footer" class="dialog-footer">
                <el-button @click="dialogVisible = false">{{$t('btns.cancel')}}</el-button>
                <el-button type="primary" @click="dialogensure">{{$t('btns.sure')}}</el-button>
              </span>
            </el-dialog>
          </div>
          <div class="content">
            <div class="content-width">
              <div class="nowrap">
                <el-button type="primary" @click="contentNowrap">{{$t('profile.add')}}</el-button>
                <el-dialog :close-on-click-modal="false" :title="$t('profile.add')" :visible.sync="AgencyDialogVisible"
                  width="30%" center>
                  <span>{{$t('profile.add')}}锛�</span>
                  <el-select v-model="valueAgency" :placeholder="$t('placeholder.select')"></el-select>
                  <span slot="footer" class="dialog-footer">
                    <el-button @click="AgencyDialogVisible = false">{{$t('btns.cancel')}}</el-button>
                    <el-button type="primary" @click="AgencyDialogVisible = false">{{$t('btns.sure')}}</el-button>
                  </span>
                </el-dialog>
              </div>
              <div class="nohark">
                <span>{{$t('profile.user_name')}}:</span>
                <el-input v-model="nohark" ref="in"></el-input>
                <el-button>{{$t('btns.query')}}</el-button>
                <el-button class="nohark_button" @click="reset">{{$t('reset')}}</el-button>
              </div>
            </div>
            <div class="content-keep">
              <div class="content-box">
                <el-table :data="tableData" ref="multipleTable" tooltip-effect="dark" style="width: 100%" height="240px"
                  row-key="1" @selection-change="handleSelectionChange">
                  <el-table-column type="selection" width="55"></el-table-column>
                  <el-table-column prop="dept" :label="$t('profile.user_name')">
                    <template slot-scope="scope">{{ scope.row.dept }}</template>
                  </el-table-column>
                  <el-table-column prop="mobile" :label="$t('view.phone')"></el-table-column>
                  <el-table-column prop="email" :label="$t('profile.email')"></el-table-column>
                </el-table>
              </div>
              <el-pagination background layout="prev, pager, next" :total="100" :page-size="pageSize"
                :pageNom="pageNom"></el-pagination>
              <div class="saveChange">
                <div class="exitbtn">
                  <el-button type="success" @click="toggleSelection()">{{$t('btns.use')}}</el-button>
                </div>
              </div>
            </div>
          </div>
        </el-tab-pane>
      </el-tabs>
    </component>
  </div>
</template>
<script>
import axios from "axios";
import { URLSearchParams } from "url";

export default {
  name: "personal",
  data() {
    return {
      tabPosition: "left",
      input: "",
      number: "",
      e_mail: "",
      cellphone: "",
      password: "",
      newpassword: "",
      nohark: "",
      contentDialogVisible: "",
      agency: "",
      dialogInput: "",
      textarea: "",
      valueAgency: "",
      radio2: "1",
      radioDialog: "1",
      pageSize: 10,
      pageNom: 1,
      Successfulpopup: false,
      failurepopup: false,
      showAttr: false,
      showReveal: false,
      showCreateGroupDiv: false,
      dialogVisible: false,
      centerDialogVisible: false,
      Agencydialog: false,
      innerVisible: false,
      AgencyDialogVisible: false,
      RemoveVisibel: false,
      value: "",
      picker1: "",
      picker2: "",
      inputNull: [],
      tableData: [],
      multipleSelection: [],
      process: [],
      currentRow: [],
      selectedIDs: [],
      options: [
        {
          value: this.$t("view.option") + "1",
          label: this.$t("view.aggregation_node"),
        },
        {
          value: this.$t("view.option") + "2",
          label: this.$t("view.no_aggregation_node"),
        },
        {
          value: this.$t("view.option") + "3",
          label: this.$t("view.main_flow"),
        },
        {
          value: this.$t("view.option") + "4",
          label: this.$t("view.agree_update"),
        },
        {
          value: this.$t("view.option") + "5",
          label: this.$t("view.arrival_trigger"),
        },
        {
          value: this.$t("view.option") + "6",
          label: this.$t("view.sponsor"),
        },
        {
          value: this.$t("view.option") + "7",
          label: this.$t("view.co_signer"),
        },
        {
          value: this.$t("view.option") + "8",
          label: this.$t("view.not_select"),
        },
        {
          value: this.$t("view.option") + "9",
          label: this.$t("view.send_select"),
        },
        {
          value: this.$t("view.option") + "10",
          label: this.$t("view.send_lock"),
        },
        {
          value: this.$t("view.option") + "11",
          label: this.$t("view.send_jh"),
        },
        {
          value: this.$t("view.option") + "12",
          label: this.$t("view.send_fjh"),
        },
        {
          value: this.$t("view.option") + "13",
          label: this.$t("view.superior_department"),
        },
        {
          value: this.$t("view.option") + "14",
          label: this.$t("view.child_flow"),
        },
      ],
      linkman: [
        {
          name: "鐜嬪皬铏�",
        },
        {
          name: "椹皬榫�",
        },
        {
          name: "寮犲皬鐙�",
        },
      ],
    };
  },
  created() {
    this.Userskin();
    this.UserSetups();
    this.ContentBox();
    this.centerDialog();
    this.dialogensure();
    this.proxys();
    this.DELETEusersetups();
    this.contacts();
  },
  methods: {
    //浼垹闄�
    removeAction(index) {
      this.RemoveVisibel = true;
      this.linkman.splice(index, 1);
    },
    construction() {
      this.centerDialogVisible = true;
      this.innerVisible = false;
    },
    setCurrent(rows) {
      if (rows) {
        rows.forEach((row) => {
          this.$refs.Current.toggleRowSelection(row);
        });
      } else {
        this.$refs.Current.clearSelection();
      }
    },
    handleCurrentChange(val) {
      this.currentRow = val;
      let ids = [];
      this.currentRow.map((item) => {
        ids.push(item.id);
      });
      this.selectedIDs = ids;
      console.log("澶氶€�", this.selectedIDs);
    },
    toggleSelection(rows) {
      if (rows) {
        rows.forEach((row) => {
          this.$refs.multipleTable.toggleRowSelection(row);
        });
      } else {
        this.$refs.multipleTable.clearSelection();
      }
    },
    innerAgencyVisible() {
      this.innerVisible = false;
      this.centerDialogVisible = false;
    },
    handleSelectionChange(val) {
      this.multipleSelection = val;
      console.log(this.multipleSelection);
    },
    contentNowrap() {
      if (this.multipleSelection.length == 0) {
        alert(this.$t("profile.select_one_user"));
      } else {
        this.AgencyDialogVisible = !this.AgencyDialogVisible;
      }
    },
    replacement() {
      this.agency = "";
    },
    reset() {
      this.$refs.in.value = "";
    },
    dialogVisible() {
      let Data = this.contentDialogVisible;
      this.inputNull = Data;
    },
    addSkin() {
      if (this.showAttr == true) {
        this.showAttr = false;
      } else {
        this.showAttr = true;
        this.showReveal = false;
      }
    },
    addModality() {
      if (this.showReveal == true) {
        this.sshowReveal = false;
      } else {
        this.showReveal = true;
        this.showAttr = false;
      }
    },
    // 閫氳褰曟柊寤哄垎缁勬柊澧炴暟鎹�
    dialogensure() {
      // axios({
      //   url: "obpm" + "/portal/workflow/runtime/proxy/save.action",
      //   method: "post",
      //   data: {
      //     id: "qcNaUonpwa7e2EXWeqx",
      //     domain: "3CffNlgt9B9StIjIUPB",
      //     name: this.contentDialogVisible
      //   }
      // })
      //   .then(res => {
      //     console.log(res);
      //   })
      //   .catch(error => {
      //     console.log(error);
      //   });
      this.dialogVisible = false;
    },
    // 鑾峰彇閫氳褰曞垎缁�
    contacts() {
      // axios({
      //   url: "obpm" + "/runtime/users/selectbox/contacts/group",
      //   method: "get"
      // })
      //   .then(res => {
      //     console.log(res);
      //   })
      //   .catch(error => {
      //     console.log(error);
      //   });
    },
    // 鍒犻櫎浠g悊
    DELETEusersetups() {
      axios({
        url: "obpm" + "/runtime/HdPeBqYwJyFyjHkhZu3/usersetups/proxys",
        method: "delete",
        data: this.selectedIDs,
      })
        .then((res) => {
          if (res.status == 200) {
            this.proxys();
          }
          console.log(res);
        })
        .catch((error) => {
          console.log(error);
        });
    },
    // 淇濆瓨浠g悊淇℃伅
    centerDialog() {
      axios({
        url: "obpm" + "/runtime/HdPeBqYwJyFyjHkhZu3/usersetups/proxys/save",
        method: "post",
        data: {
          proxyMode: this.radio2,
          flowName: this.value,
          agentsName: this.dialogInput,
          startProxyTime: this.picker1,
          endProxyTime: this.picker2,
          state: this.radioDialog,
          description: this.textarea,
        },
      })
        .then((res) => {
          if (res.status == 200) {
            this.proxys();
          }
          console.log(res);
        })
        .catch((error) => {
          console.log(error);
        });
      this.innerVisible = !this.innerVisible;
      this.value = "";
      this.dialogInput = "";
      this.picker1 = "";
      this.picker2 = "";
      this.textarea = "";
    },
    // 鑾峰彇浠g悊鍒楄〃
    proxys() {
      axios({
        url: "obpm" + "/runtime/HdPeBqYwJyFyjHkhZu3/usersetups/proxys",
        method: "get",
      })
        .then((res) => {
          let newData = res.data.data.datas.map((item) => {
            return {
              id: item.id,
              flowName: item.flowName,
              proxyMode: item.proxyMode,
              description: item.description,
              agentsName: item.agentsName,
              state: item.state,
            };
          });
          this.process = newData;
          console.log(newData);
        })
        .catch((error) => {
          console.log(error);
        });
    },
    // 璇锋眰閫氳褰曢噷闈㈣娓叉煋鐨勬暟鎹�
    ContentBox() {
      axios({
        url: "obpm" + "/runtime/users/selectbox/contacts",
        method: "get",
        params: {
          contactsId: "",
          pageSize: this.pageSize,
          pageNom: this.pageNom,
        },
      })
        .then((res) => {
          let newData = res.data.data.datas.map((item) => {
            return {
              dept: item.dept,
              mobile: item.mobile,
              email: item.email,
            };
          });
          this.tableData = newData;
          // console.log(newData);
        })
        .catch(function (error) {
          console.log(error);
        });
    },
    // 杩欐槸鐨偆鏍峰紡鐨勮姹�
    Userskin() {
      axios({
        url: "obpm" + "/runtime/users/skin",
        method: "post",
        data: {
          skin: "H5",
        },
      })
        .then((res) => {
          if (res.status == 200) {
            alert(this, $t("profile.h_ss"));
            window.location = "http://localhost:8080/obpm/portal/H5/main.jsp";
          }
          console.log(res.status);
        })
        .catch(function (error) {
          console.log(error);
        });
    },
    // 杩欐槸涓汉{{$t('profile.basic_info')}}鐨勮姹�
    UserSetups() {
      axios({
        url: "obpm" + "/runtime/usersetups/detail",
        method: "post",
        data: {
          name: this.input,
          email: this.e_mail,
          telephone: this.cellphone,
        },
      })
        .then((res) => {
          if (res.status == 200) {
            this.Successfulpopup = !this.Successfulpopup;
          } else {
            this.failurepopup = true;
          }
        })
        .catch(function (error) {
          console.log(error);
        });
    },
  },
};
</script>
<style lang="scss"  scoped>
legend {
  display: block;
  font-size: 12px;
}
label {
  font-family: Arial, Vendera, Tahoma;
  color: #999999;
  width: 100px;
  text-align: right;
}
.el-input {
  width: 200px;
  height: 40px;
  margin-left: 10px;
  margin-bottom: 20px;
  border: 0;
}
.saveChange {
  width: 100%;
}
.exitbtn {
  float: right;
}
.personSetSkin {
  position: relative;
}
.focusImg img {
  position: absolute;
  right: 0;
  top: 0;
}
.addImg {
  margin-left: 50px;
  border: 1px solid #cccccc;
  padding: 5px;
}
.skinLabel span {
  display: block;
  text-align: center;
  margin-left: 50px;
  margin-top: 5px;
}
.skinkung {
  width: 100%;
}
.skinright {
  float: right;
  margin-top: 200px;
}
.dendrogram {
  float: left;
  width: 200px;
  height: 500px;
}
.createGroupDiv {
  width: 100%;
  height: 30px;
  overflow: hidden;
}
.createGroupDiv a {
  float: left;
  width: 150px;
  height: 100%;
  overflow: hidden;
}
.more_btn {
  float: right;
  width: 50px;
  height: 100%;
}
.more_rename {
  float: left;
  width: 25px;
  height: 100%;
}
.more_delete {
  float: left;
  width: 25px;
  height: 100%;
}
.content {
  float: right;
  width: 750px;
  min-height: 400px;
  overflow: hidden;
}
.content-width {
  width: 100%;
  height: 40px;
}
.nowrap {
  float: left;
  width: 300px;
  height: 40px;
}
.nohark {
  float: right;
  width: 450px;
  height: 40px;
}
.nohark .el-button {
  background: #cccccc;
  margin-left: 5px;
}
.nohark .nohark_button {
  background: white;
}
.content-keep {
  width: 100%;
  height: 500px;
}
.content-box {
  width: 100%;
  /* height: 380px; */
}
.content-keep .el-table {
  margin-top: 20px;
}
.saveChange {
  width: 100%;
  overflow: hidden;
}
.exitbtn {
  float: right;
  /* margin-top: 150px; */
}
.agency-container {
  width: 100%;
  height: 100%;
  background: white;
}
.agency-header {
  width: 100%;
  height: 30px;
}
.agency-header span {
  display: inline-block;
  font-weight: bold;
  font-size: 14px;
  color: black;
}
.agency-header .agency-b {
  display: inline-block;
  margin-left: 10px;
  font-weight: 100;
  font-size: 10px;
  color: black;
}
.agency-header .el-radio {
  line-height: 30px;
  margin-left: 10px;
}
.agency-middle {
  width: 100%;
  height: 50px;
  overflow: hidden;
  .agency-left {
    float: left;
    width: 335px;
    height: 100%;
  }
  .agency-right {
    float: right;
    width: 630px;
    height: 100%;
    .el-button {
      background: whitesmoke;
      margin-left: 5px;
    }
  }
}
.workHome {
  width: 100%;
}
.workHomeContent {
  float: right;
}
.agency-dialog-content {
  min-width: 500px;
  min-height: 300px;
  label {
    width: 100px;
    text-align: right;
  }
  .el-select {
    margin-left: 20px;
  }
  .el-radio {
    margin-left: 20px;
  }
  .el-input {
    margin-left: 20px;
  }
  .el-date-picker {
    margin-left: 20px;
  }
  .Dialog-textarea {
    width: 40%;
    margin-left: 20px;
  }
  .agency-dialog-button {
    margin-left: 300px;
  }
}
</style>