|
|
@@ -0,0 +1,787 @@
|
|
|
+<template>
|
|
|
+ <div class="container" style="
|
|
|
+ min-height: 100%;
|
|
|
+ padding-bottom: 100px;
|
|
|
+ margin-left: 25px;
|
|
|
+ margin-top: 20px;
|
|
|
+ ">
|
|
|
+
|
|
|
+ <el-descriptions title="编辑管理人员信息">
|
|
|
+ <el-descriptions-item label="用户名">{{ username }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="姓名">{{ name }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="工号">{{
|
|
|
+ jobNumber
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="手机">{{
|
|
|
+ phone
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="性别">{{
|
|
|
+ gender > 0 ? (gender > 1 ? "未知" : "女") : "男"
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="状态">{{
|
|
|
+ isLock !== "0" ? "禁用" : "启用"
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="机构">{{ orgName }}</el-descriptions-item>
|
|
|
+
|
|
|
+ <el-descriptions-item label="角色">{{
|
|
|
+ roleName
|
|
|
+ }}</el-descriptions-item>
|
|
|
+
|
|
|
+ <!-- <el-descriptions-item label="机构类型">一级机构</el-descriptions-item> -->
|
|
|
+ </el-descriptions>
|
|
|
+
|
|
|
+ <el-descriptions title="补充基础信息"></el-descriptions>
|
|
|
+ <div div-lc-mark>
|
|
|
+ <el-form inline class="demo-form-inline">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="14">
|
|
|
+
|
|
|
+ </el-col>
|
|
|
+ <!-- <el-form-item label="所属机构" prop="deptId">
|
|
|
+
|
|
|
+ <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" :normalizer="tenantIdnormalizer"
|
|
|
+ :props="{ checkStrictly: true, label: 'name' }" placeholder="请选择归属机构" />
|
|
|
+ </el-form-item> -->
|
|
|
+ <el-form-item label="所属部门" prop="deptId">
|
|
|
+ <treeselect v-model="deptId" :options="deptList" :show-count="true" :normalizer="tenantIdnormalizer"
|
|
|
+ :props="{ checkStrictly: true, label: 'name' }" placeholder="请选择" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item v-if="1" label="责任职务" style="margin-left: 270px">
|
|
|
+ <el-input v-model="dutiesId" placeholder="责任职务"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item v-if="1" label="用工形式" style="margin-left: 258px">
|
|
|
+ <el-input v-model="workType" placeholder="用工形式"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <div v-if="1">
|
|
|
+ <div div-lc-mark>
|
|
|
+ <el-switch v-model="isFullTime" active-text inactive-text="是否专职"></el-switch>
|
|
|
+
|
|
|
+ <el-form-item v-if="1" label="最高学历" style="margin-left: 258px">
|
|
|
+ <el-select v-model="highestEducation" placeholder="最高学历">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.sys_highest_education"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="`${dict.value}`"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="机构类型" prop="orgType">
|
|
|
+ <el-select v-model="form.orgType" placeholder="请选择机构类型">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.sys_org_type"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="`${dict.value}`"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item> -->
|
|
|
+ <!-- <el-form-item
|
|
|
+ style="margin-left: 270px"
|
|
|
+ v-if="1"
|
|
|
+ label="平台供应商品牌"
|
|
|
+ >
|
|
|
+ <el-select
|
|
|
+ v-model="platformSupplierBrand"
|
|
|
+ placeholder="平台供应商品牌"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(platformSupplierB, key) in platformSupplierBrands"
|
|
|
+ :key="key"
|
|
|
+ :label="platformSupplierB.label"
|
|
|
+ :value="platformSupplierB.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item> -->
|
|
|
+ <!-- <el-form-item label="机构类型" prop="highestEducation">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.highestEducation"
|
|
|
+ placeholder="请选择"
|
|
|
+ clearable
|
|
|
+ style="width: 240px"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.sys_highest_education"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item> -->
|
|
|
+ </div>
|
|
|
+ <!-- <div div-lc-mark style="margin-top: 20px">
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleOrgAdd"
|
|
|
+ v-hasPermi="['system:construction:add']">新增</el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-table v-loading="orgloading" :data="constructionList" @selection-change="handleOrgSelectionChange">
|
|
|
+ <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table-column label="id" align="center" prop="id" />
|
|
|
+ <el-table-column label="标准" align="center" prop="standard" />
|
|
|
+ <el-table-column label="达标日期" align="center" prop="dateOfCompliance" width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ parseTime(scope.row.dateOfCompliance) }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="是否证书佐证" align="center" prop="certificateEvidence" />
|
|
|
+ <el-table-column label="证书" align="center" prop="certificate" />
|
|
|
+ <el-table-column label="佐证" align="center" prop="evidence" />
|
|
|
+ <el-table-column v-if="false" label="机构id" align="center" prop="orgId" />
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit" @click="handleOrgUpdate(scope.row)"
|
|
|
+ v-hasPermi="['system:construction:edit']">查看证书</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit" @click="handleOrgUpdate(scope.row)"
|
|
|
+ v-hasPermi="['system:construction:edit']">修改</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-delete" @click="handleOrgDelete(scope.row)"
|
|
|
+ v-hasPermi="['system:construction:remove']">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div> -->
|
|
|
+
|
|
|
+ <!-- <el-descriptions title="保安" style="margin-top: 20px"></el-descriptions>
|
|
|
+ <div div-lc-mark>
|
|
|
+ <el-switch style="margin-right: 100px" v-model="askari" active-text inactive-text="是否有保安"></el-switch>
|
|
|
+ <span>上传保安证</span>
|
|
|
+
|
|
|
+ <div class="image-container" style="margin-left: 20px">
|
|
|
+ <el-image :src="uploadp" fit="contain"></el-image>
|
|
|
+ </div>
|
|
|
+ <div class="image-container" style="margin-right: 0">
|
|
|
+ <el-image :src="uplp" fit="contain"></el-image>
|
|
|
+ </div>
|
|
|
+ </div> -->
|
|
|
+ <div div-lc-mark style="margin-top: 10px">
|
|
|
+ <el-descriptions title="业务库设置"></el-descriptions>
|
|
|
+ </div>
|
|
|
+ <div div-lc-mark>
|
|
|
+ <span>业务库类型:</span>
|
|
|
+ <el-select v-model="businessLibraryType" placeholder="活动区域" style="margin-left: 5px">
|
|
|
+ <el-option v-for="(businessLibraryTy, key) in businessLibraryTypes" :key="key" :label="businessLibraryTy.label"
|
|
|
+ :value="businessLibraryTy.value"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <span style="margin-left: 50px">值守方式</span>
|
|
|
+ <el-radio-group v-model="dutyMode" style="margin-left: 10px">
|
|
|
+ <el-radio :label="0">同楼异地值守</el-radio>
|
|
|
+ <el-radio :label="1">远程值守</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ <el-switch style="margin-left: 50px" v-model="remoteControl" active-text inactive-text="业务库出入口远程控制"></el-switch>
|
|
|
+ </div>
|
|
|
+ <div div-lc-mark>
|
|
|
+ <el-descriptions title="在行自助银行设置" style="margin-top: 20px"></el-descriptions>
|
|
|
+ </div>
|
|
|
+ <div div-lc-mark>
|
|
|
+ <el-switch v-model="selfServiceBank" active-text inactive-text="是否有在行自助银行"></el-switch>
|
|
|
+ <span style="margin-left: 50px">在行式大堂设备</span>
|
|
|
+ <div style="display: inline-block; width: 200px">
|
|
|
+ <el-input-number style="margin-left: 10px" v-model="lobbyEquipment" controls-position="right"
|
|
|
+ @change="handleChange" :min="1" :max="10"></el-input-number>
|
|
|
+ </div>
|
|
|
+ <span style="margin-left: 50px">在行式穿墙设备</span>
|
|
|
+ <div style="display: inline-block; width: 200px">
|
|
|
+ <el-input-number style="margin-left: 10px" v-model="wallPenetratingEquipment" controls-position="right"
|
|
|
+ @change="handleChange" :min="1" :max="10"></el-input-number>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div div-lc-mark style="margin-top: 20px">
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleBankAdd"
|
|
|
+ v-hasPermi="['system:BankPhysicalDefenseConstruction:add']">新增</el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-table v-loading="bankloading" :data="BankPhysicalDefenseConstructionList"
|
|
|
+ @selection-change="handleBankSelectionChange">
|
|
|
+ <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table-column label="id" align="center" prop="id" />
|
|
|
+ <el-table-column label="标准" align="center" prop="standard" />
|
|
|
+ <el-table-column label="达标日期" align="center" prop="dateOfCompliance" width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{
|
|
|
+ parseTime(scope.row.dateOfCompliance, "YYYY-MM-dd HH:mm:ss")
|
|
|
+ }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="是否证书佐证" align="center" prop="certificateEvidence" />
|
|
|
+ <el-table-column label="证书" align="center" prop="certificate" />
|
|
|
+ <el-table-column label="佐证" align="center" prop="evidence" />
|
|
|
+ <el-table-column v-if="false" label="机构id" align="center" prop="orgId" />
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit" @click="handleBankUpdate(scope.row)"
|
|
|
+ v-hasPermi="['system:construction:edit']">查看证书</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit" @click="handleBankUpdate(scope.row)"
|
|
|
+ v-hasPermi="['system:BankPhysicalDefenseConstruction:edit']">修改</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-delete" @click="handleBankDelete(scope.row)"
|
|
|
+ v-hasPermi="['system:BankPhysicalDefenseConstruction:remove']">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <!-- 添加或修改银行物防建设对话框 -->
|
|
|
+ <el-dialog :title="Banktitle" :visible.sync="Bankopen" width="500px" append-to-body>
|
|
|
+ <el-form ref="Bankform" :model="Bankform" label-width="80px">
|
|
|
+ <el-form-item label="标准" prop="standard">
|
|
|
+ <el-input v-model="Bankform.standard" placeholder="请输入标准" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="达标日期" prop="dateOfCompliance">
|
|
|
+ <el-date-picker clearable v-model="Bankform.dateOfCompliance" type="date" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ placeholder="请选择达标日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="是否证书佐证" prop="certificateEvidence">
|
|
|
+ <el-input v-model="Bankform.certificateEvidence" placeholder="请输入是否证书佐证" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="证书" prop="certificate">
|
|
|
+ <el-input v-model="Bankform.certificate" placeholder="请输入证书" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="佐证" prop="evidence">
|
|
|
+ <el-input v-model="Bankform.evidence" placeholder="请输入佐证" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="false" label="机构id" prop="orgId">
|
|
|
+ <el-input v-model="Bankform.orgId" placeholder="请输入机构id" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitBankForm">确 定</el-button>
|
|
|
+ <el-button @click="Bankcancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+ <el-dialog :title="orgtitle" :visible.sync="orgopen" width="500px" append-to-body>
|
|
|
+ <el-form ref="orgform" :model="orgform" label-width="80px">
|
|
|
+ <el-form-item label="标准" prop="standard">
|
|
|
+ <el-input v-model="orgform.standard" placeholder="请输入标准" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="达标日期" prop="dateOfCompliance">
|
|
|
+ <el-date-picker clearable v-model="orgform.dateOfCompliance" type="date" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ placeholder="请选择达标日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="是否证书佐证" prop="certificateEvidence">
|
|
|
+ <el-input v-model="orgform.certificateEvidence" placeholder="请输入是否证书佐证" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="证书" prop="certificate">
|
|
|
+ <el-input v-model="orgform.certificate" placeholder="请输入证书" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="佐证" prop="evidence">
|
|
|
+ <el-input v-model="orgform.evidence" placeholder="请输入佐证" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="false" label="机构id" prop="orgId">
|
|
|
+ <el-input v-model="orgform.orgId" placeholder="请输入机构id" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitOrgForm">确 定</el-button>
|
|
|
+ <el-button @click="orgcancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 50px; margin-left: 42%">
|
|
|
+ <el-button type="primary" @click="saveExtend" size="small">提交</el-button>
|
|
|
+ <el-button type="primary" @click="nosaveExtend" size="small">取消</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import uploadpng from "@/assets/images/upload.png";
|
|
|
+import uplpng from "@/assets/images/upl.png";
|
|
|
+import { deptTreeList } from "@/api/system/public";
|
|
|
+import {
|
|
|
+ getUser
|
|
|
+} from "@/api/system/user";
|
|
|
+import{ getInformationByUserId}from "@/api/system/information"
|
|
|
+import request from '@/utils/request'
|
|
|
+import Treeselect from "@riophae/vue-treeselect";
|
|
|
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
+
|
|
|
+// import {
|
|
|
+// listOrgPhysicalDefenseConstruction,
|
|
|
+// getOrgPhysicalDefenseConstruction,
|
|
|
+// addOrgPhysicalDefenseConstruction,
|
|
|
+// updateOrgPhysicalDefenseConstruction,
|
|
|
+// delOrgPhysicalDefenseConstruction,
|
|
|
+// } from "@/api/system/OrgPhysicalDefenseConstruction";
|
|
|
+// import {
|
|
|
+// listBankPhysicalDefenseConstruction,
|
|
|
+// getBankPhysicalDefenseConstruction,
|
|
|
+// delBankPhysicalDefenseConstruction,
|
|
|
+// addBankPhysicalDefenseConstruction,
|
|
|
+// updateBankPhysicalDefenseConstruction,
|
|
|
+// } from "@/api/system/BankPhysicalDefenseConstruction";
|
|
|
+export default {
|
|
|
+ dicts:['sys_highest_education'],
|
|
|
+ props: [],
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ //个人信息回显的
|
|
|
+ username: null,
|
|
|
+ name: null,
|
|
|
+ jobNumber: null,
|
|
|
+ phone: null,
|
|
|
+ gender: null,
|
|
|
+ isLock: null,
|
|
|
+ orgName: null,
|
|
|
+ roleName: null,
|
|
|
+ id: null,
|
|
|
+ //机构补充信息
|
|
|
+ deptId: null,
|
|
|
+ dutiesId: null,
|
|
|
+ workType: null,
|
|
|
+ isFullTime: null,
|
|
|
+ highestEducation: null,
|
|
|
+ educationType: null,
|
|
|
+ certificateWork: null,
|
|
|
+ professionalQualifications: null,
|
|
|
+ certificateFailReason: null,
|
|
|
+ workTime: null,
|
|
|
+ entryTime: null,
|
|
|
+ bornTime: null,
|
|
|
+ responsibilitiesLeaderName: null,
|
|
|
+ responsibilitiesLeaderDuties: null,
|
|
|
+ qualificationCertificateUrl: null,
|
|
|
+ // 查询参数
|
|
|
+ queryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ name: null,
|
|
|
+ updateId: null,
|
|
|
+ orgType: null
|
|
|
+ },
|
|
|
+ // orgType: 1,
|
|
|
+ // weatherAreaCode: null,
|
|
|
+ // premisesArea: null,
|
|
|
+ // ownership: null,
|
|
|
+ // outsideArea: null,
|
|
|
+ // askari: 1,
|
|
|
+ // businessLibraryType: 1,
|
|
|
+ // dutyMode: 0,
|
|
|
+ // remoteControl: null,
|
|
|
+ // selfServiceBank: null,
|
|
|
+ // lobbyEquipment: 1,
|
|
|
+ // wallPenetratingEquipment: 2,
|
|
|
+ // platformBrand: null,
|
|
|
+ // platformSupplierBrand: null,
|
|
|
+ // constructionTime:null,
|
|
|
+ // lastUpdateTime:null,
|
|
|
+ //机构建设数据
|
|
|
+
|
|
|
+ // 遮罩层
|
|
|
+ orgloading: true,
|
|
|
+ // 选中数组
|
|
|
+ orgids: [],
|
|
|
+ // 选中数组
|
|
|
+ Bankids: [],
|
|
|
+ // 非单个禁用
|
|
|
+ single: true,
|
|
|
+ // 非多个禁用
|
|
|
+ multiple: true,
|
|
|
+ // 显示搜索条件
|
|
|
+ showSearch: true,
|
|
|
+ // 总条数
|
|
|
+ total: 0,
|
|
|
+ // 机构物防建设表格数据
|
|
|
+ constructionList: [],
|
|
|
+ // 银行物防建设表格数据
|
|
|
+ BankPhysicalDefenseConstructionList: [],
|
|
|
+ // 部门树选项
|
|
|
+ deptOptions: undefined,
|
|
|
+ // 机构树选项
|
|
|
+ deptList: null,
|
|
|
+ // 弹出层标题
|
|
|
+ orgtitle: "",
|
|
|
+ // 弹出层标题
|
|
|
+ Banktitle: "",
|
|
|
+ // 是否显示弹出层
|
|
|
+ Bankopen: false,
|
|
|
+ // 表单参数
|
|
|
+ Bankform: {},
|
|
|
+ // 是否显示弹出层
|
|
|
+ orgopen: false,
|
|
|
+ // 表单参数
|
|
|
+ orgform: {},
|
|
|
+ //2个图片信息
|
|
|
+ uploadp: uploadpng,
|
|
|
+ uplp: uplpng,
|
|
|
+ //下拉框生成信息
|
|
|
+ orgTypes: {
|
|
|
+ orgTyp1: { label: "营业网点", value: 0 },
|
|
|
+ orgTyp2: { label: "监控中心", value: 1 },
|
|
|
+ },
|
|
|
+ businessLibraryTypes: {
|
|
|
+ businessLibraryTyp1: { label: "1类业务库", value: 1 },
|
|
|
+ businessLibraryTyp2: { label: "2类业务库", value: 2 },
|
|
|
+ businessLibraryTyp3: { label: "3类业务库", value: 3 },
|
|
|
+ },
|
|
|
+ platformBrands: {
|
|
|
+ platformBrand1: { label: "品牌1", value: 0 },
|
|
|
+ platformBrand2: { label: "品牌2", value: 1 },
|
|
|
+ },
|
|
|
+ platformSupplierBrands: {
|
|
|
+ platformSupplierBrand1: { label: "品牌1", value: 0 },
|
|
|
+ platformSupplierBrand2: { label: "品牌2", value: 1 },
|
|
|
+ },
|
|
|
+ prop: "",
|
|
|
+ propItem: "",
|
|
|
+
|
|
|
+ row: "",
|
|
|
+ };
|
|
|
+ },
|
|
|
+ watch: {},
|
|
|
+ computed: {
|
|
|
+ switchModel: {
|
|
|
+ get() {
|
|
|
+ return this.switchValue === 1; // 将0转换为false,1转换为true
|
|
|
+ },
|
|
|
+ set(value) {
|
|
|
+ this.switchValue = value ? 1 : 0; // 将false转换为0,true转换为1
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ /** 查询机构下拉树结构 */
|
|
|
+ // getDeptTree() {
|
|
|
+ // deptTreeSelect().then(response => {
|
|
|
+ // this.deptOptions = response.data;
|
|
|
+ // console.log(this.deptOptions, ' this.deptOptions')
|
|
|
+ // this.defaultKeys.push(response.data[0].id);
|
|
|
+ // this.queryParams.orgId = response.data[0].id;
|
|
|
+ // this.handleQuery();
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+
|
|
|
+ /** 查询机构下拉树结构 */
|
|
|
+ // getDeptTreeList() {
|
|
|
+ // deptTreeList().then(response => {
|
|
|
+ // this.deptList = response.data;
|
|
|
+ // // this.defaultKeys.push(response.data[0].deptId);
|
|
|
+ // this.queryParams.deptId = response.data[0].deptId;
|
|
|
+ // this.handleQuery();
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ created() {
|
|
|
+ this.getOrgInfo();
|
|
|
+ this.getDeptTreeList();
|
|
|
+ // this.getOrgPhysicalDefenseConstructionInfo();
|
|
|
+ //this.getBankPhysicalDefenseConstructionInfo();
|
|
|
+ },
|
|
|
+ mounted() { },
|
|
|
+
|
|
|
+ methods: {
|
|
|
+
|
|
|
+ //自定义数据
|
|
|
+ tenantIdnormalizer(node, instanceId) {
|
|
|
+ if (node.children && !node.children.length) {
|
|
|
+ delete node.children
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ id: node.id,
|
|
|
+ label: node.name,
|
|
|
+ children: node.children
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ request() { },
|
|
|
+ handleChange(value) { },
|
|
|
+ getOrgInfo() {
|
|
|
+ getUser(this.$route.params.id).then((data) => {
|
|
|
+ if (data.data != null) {
|
|
|
+ this.username = data.data.username;
|
|
|
+ this.name = data.data.name;
|
|
|
+ this.jobNumber = data.data.jobNumber;
|
|
|
+ this.phone = data.data.phone;
|
|
|
+ this.gender = data.data.gender;
|
|
|
+ this.isLock = data.data.isLock;
|
|
|
+ this.orgName = data.data.orgName;
|
|
|
+ this.roleName = data.roleName;
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 查询机构下拉树结构 */
|
|
|
+ getDeptTreeList() {
|
|
|
+ deptTreeList().then(response => {
|
|
|
+ this.deptList = response.data;
|
|
|
+ this.defaultKeys.push(response.data[0].deptId);
|
|
|
+ this.queryParams.deptId = response.data[0].deptId;
|
|
|
+ this.handleQuery();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 查询机构下拉树结构 */
|
|
|
+ getDeptInfo() {
|
|
|
+ getInformationByUserId(this.$route.params.id).then(response => {
|
|
|
+ this.deptList = response.data;
|
|
|
+ this.defaultKeys.push(response.data[0].deptId);
|
|
|
+ this.queryParams.deptId = response.data[0].deptId;
|
|
|
+ this.handleQuery();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ getInformation(){
|
|
|
+ getInformationByUserId(this.$route.params.id).then((data)=>{
|
|
|
+ if (data.data != null) {
|
|
|
+ this.deptId=data.data.deptId;
|
|
|
+ this.dutiesId=data.data.dutiesId;
|
|
|
+ this.workType=data.data.workType;
|
|
|
+ this.isFullTime=data.data.isFullTime;
|
|
|
+ this.highestEducation=data.data.highestEducation;
|
|
|
+ this.educationType=data.data.educationType;
|
|
|
+ this.certificateWork=data.data.certificateWork;
|
|
|
+ this.professionalQualifications=data.data.professionalQualifications;
|
|
|
+ this.certificateFailReason=data.data.certificateFailReason;
|
|
|
+ this.workTime=data.data.workTime;
|
|
|
+ this.entryTime=data.data.entryTime;
|
|
|
+ this.bornTime=data.data.bornTime;
|
|
|
+ this.responsibilitiesLeaderName=data.data.responsibilitiesLeaderName;
|
|
|
+ this.responsibilitiesLeaderDuties=data.data.responsibilitiesLeaderDuties;
|
|
|
+ this.qualificationCertificateUrl=data.data.qualificationCertificateUrl;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // getExtendInfo() {
|
|
|
+ // getExtendByOrgId(this.$route.params.id).then((data) => {
|
|
|
+
|
|
|
+ // if (data.data != null) {
|
|
|
+ // this.orgType = data.data.orgType;
|
|
|
+ // this.weatherAreaCode = data.data.weatherAreaCode;
|
|
|
+ // this.premisesArea = data.data.premisesArea;
|
|
|
+ // this.ownership = data.data.ownership;
|
|
|
+ // this.outsideArea = data.data.outsideArea;
|
|
|
+ // this.askari = data.data.askari;
|
|
|
+ // this.remoteControl = data.data.remoteControl;
|
|
|
+ // this.selfServiceBank = data.data.selfServiceBank;
|
|
|
+ // this.lobbyEquipment = data.data.lobbyEquipment;
|
|
|
+ // this.wallPenetratingEquipment = data.data.wallPenetratingEquipment;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ getOrgPhysicalDefenseConstructionInfo() {
|
|
|
+ this.orgloading = true;
|
|
|
+ let dat = { orgId: this.$route.params.id };
|
|
|
+ listOrgPhysicalDefenseConstruction(dat).then((data) => {
|
|
|
+ console.log(data);
|
|
|
+ this.constructionList = data.rows;
|
|
|
+ this.orgloading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // getBankPhysicalDefenseConstructionInfo() {
|
|
|
+ // this.bankloading = true;
|
|
|
+ // let dat = { orgId: this.$route.params.id };
|
|
|
+ // listBankPhysicalDefenseConstruction(dat).then((data) => {
|
|
|
+ // console.log(data);
|
|
|
+ // this.BankPhysicalDefenseConstructionList = data.rows;
|
|
|
+ // this.bankloading = false;
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // 取消按钮
|
|
|
+ Bankcancel() {
|
|
|
+ this.Bankopen = false;
|
|
|
+ this.Bankreset();
|
|
|
+ },
|
|
|
+ // 表单重置
|
|
|
+ // Bankreset() {
|
|
|
+ // this.Bankform = {
|
|
|
+ // id: null,
|
|
|
+ // standard: null,
|
|
|
+ // dateOfCompliance: null,
|
|
|
+ // certificateEvidence: null,
|
|
|
+ // certificate: null,
|
|
|
+ // evidence: null,
|
|
|
+ // createTime: null,
|
|
|
+ // updateTime: null,
|
|
|
+ // createBy: null,
|
|
|
+ // updateBy: null,
|
|
|
+ // orgId: null,
|
|
|
+ // };
|
|
|
+ // this.resetForm("Bankform");
|
|
|
+ // },
|
|
|
+ // 多选框选中数据
|
|
|
+ handleBankSelectionChange(selection) {
|
|
|
+ this.Bankids = selection.map((item) => item.id);
|
|
|
+ this.single = selection.length !== 1;
|
|
|
+ this.multiple = !selection.length;
|
|
|
+ },
|
|
|
+ /** 新增按钮操作 */
|
|
|
+ handleBankAdd() {
|
|
|
+ this.Bankreset();
|
|
|
+ this.Bankopen = true;
|
|
|
+ this.Banktitle = "添加银行物防建设";
|
|
|
+ },
|
|
|
+ /** 修改按钮操作 */
|
|
|
+ handleBankUpdate(row) {
|
|
|
+ this.Bankreset();
|
|
|
+ const id = row.id || this.Bankids;
|
|
|
+ getBankPhysicalDefenseConstruction(id).then((response) => {
|
|
|
+ this.Bankform = response.data;
|
|
|
+ this.Bankopen = true;
|
|
|
+ this.Banktitle = "修改银行物防建设";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 提交按钮 */
|
|
|
+ submitBankForm() {
|
|
|
+ this.Bankform.orgId = this.$route.params.id;
|
|
|
+ this.$refs["Bankform"].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ if (this.Bankform.id != null) {
|
|
|
+ updateBankPhysicalDefenseConstruction(this.Bankform).then(
|
|
|
+ (response) => {
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
+ this.Bankopen = false;
|
|
|
+ this.getBankPhysicalDefenseConstructionInfo();
|
|
|
+ }
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ addBankPhysicalDefenseConstruction(this.Bankform).then(
|
|
|
+ (response) => {
|
|
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
+ this.Bankopen = false;
|
|
|
+ this.getBankPhysicalDefenseConstructionInfo();
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 删除按钮操作 */
|
|
|
+ handleBankDelete(row) {
|
|
|
+ const Bankids = row.id || this.Bankids;
|
|
|
+ this.$modal
|
|
|
+ .confirm('是否确认删除银行物防建设编号为"' + Bankids + '"的数据项?')
|
|
|
+ .then(function () {
|
|
|
+ return delBankPhysicalDefenseConstruction(Bankids);
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.getBankPhysicalDefenseConstructionInfo();
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
+ })
|
|
|
+ .catch(() => { });
|
|
|
+ },
|
|
|
+ // 表单重置
|
|
|
+ // orgreset() {
|
|
|
+ // this.orgform = {
|
|
|
+ // id: null,
|
|
|
+ // standard: null,
|
|
|
+ // dateOfCompliance: null,
|
|
|
+ // certificateEvidence: null,
|
|
|
+ // certificate: null,
|
|
|
+ // evidence: null,
|
|
|
+ // createTime: null,
|
|
|
+ // updateTime: null,
|
|
|
+ // createBy: null,
|
|
|
+ // updateBy: null,
|
|
|
+ // orgId: null,
|
|
|
+ // };
|
|
|
+ // this.resetForm("orgform");
|
|
|
+ // },
|
|
|
+ // 取消按钮
|
|
|
+ orgcancel() {
|
|
|
+ this.orgopen = false;
|
|
|
+ this.orgreset();
|
|
|
+ },
|
|
|
+ // 多选框选中数据
|
|
|
+ handleOrgSelectionChange(selection) {
|
|
|
+ this.orgids = selection.map((item) => item.id);
|
|
|
+ this.single = selection.length !== 1;
|
|
|
+ this.multiple = !selection.length;
|
|
|
+ },
|
|
|
+ /** 新增按钮操作 */
|
|
|
+ handleOrgAdd() {
|
|
|
+ this.orgreset();
|
|
|
+ this.orgopen = true;
|
|
|
+ this.orgtitle = "添加机构物防建设";
|
|
|
+ },
|
|
|
+ /** 修改按钮操作 */
|
|
|
+ handleOrgUpdate(row) {
|
|
|
+ this.orgreset();
|
|
|
+ const id = row.id || this.orgids;
|
|
|
+ getOrgPhysicalDefenseConstruction(id).then((response) => {
|
|
|
+ // console.log(response)
|
|
|
+ this.orgform = response.data;
|
|
|
+ this.orgopen = true;
|
|
|
+ this.orgtitle = "修改机构物防建设";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 提交按钮 */
|
|
|
+ submitOrgForm() {
|
|
|
+ this.orgform.orgId = this.$route.params.id;
|
|
|
+ this.$refs["orgform"].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ if (this.orgform.id != null) {
|
|
|
+ updateOrgPhysicalDefenseConstruction(this.orgform).then(
|
|
|
+ (response) => {
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
+ this.orgopen = false;
|
|
|
+ this.getOrgPhysicalDefenseConstructionInfo();
|
|
|
+ }
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ addOrgPhysicalDefenseConstruction(this.orgform).then((response) => {
|
|
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
+ this.orgopen = false;
|
|
|
+ this.getOrgPhysicalDefenseConstructionInfo();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 删除按钮操作 */
|
|
|
+ handleOrgDelete(row) {
|
|
|
+ const orgids = row.id || this.orgids;
|
|
|
+ this.$modal
|
|
|
+ .confirm('是否确认删除机构物防建设编号为"' + orgids + '"的数据项?')
|
|
|
+ .then(function () {
|
|
|
+ return delOrgPhysicalDefenseConstruction(orgids);
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.getOrgPhysicalDefenseConstructionInfo();
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
+ })
|
|
|
+ .catch(() => { });
|
|
|
+ },
|
|
|
+ saveExtend() {
|
|
|
+ let dat = {
|
|
|
+ deptId: this.deptId,
|
|
|
+ dutiesId: this.dutiesId,
|
|
|
+ premisesArea: this.premisesArea,
|
|
|
+ ownership: this.ownership,
|
|
|
+ outsideArea: this.outsideArea,
|
|
|
+ askari: this.askari,
|
|
|
+ businessLibraryType: this.businessLibraryType,
|
|
|
+ dutyMode: this.dutyMode,
|
|
|
+ remoteControl: this.remoteControl,
|
|
|
+ selfServiceBank: this.selfServiceBank,
|
|
|
+ lobbyEquipment: this.lobbyEquipment,
|
|
|
+ wallPenetratingEquipment: this.wallPenetratingEquipment,
|
|
|
+ platformBrand: this.platformBrand,
|
|
|
+ platformSupplierBrand: this.platformSupplierBrand,
|
|
|
+ constructionTime: this.constructionTime,
|
|
|
+ lastUpdateTime: this.lastUpdateTime,
|
|
|
+ };
|
|
|
+ console.log(dat);
|
|
|
+ },
|
|
|
+ nosaveExtend() { },
|
|
|
+ },
|
|
|
+ fillter: {},
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+.demo-form-inline {}
|
|
|
+
|
|
|
+.dialog-footer {}
|
|
|
+
|
|
|
+.container {}
|
|
|
+
|
|
|
+.image-container {
|
|
|
+ display: inline-block;
|
|
|
+ width: 200px;
|
|
|
+ height: 200px;
|
|
|
+ margin-right: 20px;
|
|
|
+ /* 设置与下一个div的水平间距 */
|
|
|
+}
|
|
|
+</style>
|