|
@@ -0,0 +1,484 @@
|
|
|
|
+<template>
|
|
|
|
+ <div class="app-container">
|
|
|
|
+ <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
+ <el-form-item label="企业名称" prop="enterpriseName">
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="queryParams.enterpriseName"
|
|
|
|
+ placeholder="请输入企业名称"
|
|
|
|
+ clearable
|
|
|
|
+ size="small"
|
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
|
+ />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="法人代表" prop="legalRepresentative">
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="queryParams.legalRepresentative"
|
|
|
|
+ placeholder="请输入法人代表"
|
|
|
|
+ clearable
|
|
|
|
+ size="small"
|
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
|
+ />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+
|
|
|
|
+ <el-row :gutter="10" class="mb8">
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ plain
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="handleAdd"
|
|
|
|
+ v-hasPermi="['Housingconstruction:enterprise:add']"
|
|
|
|
+ >新增
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="success"
|
|
|
|
+ plain
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
+ size="mini"
|
|
|
|
+ :disabled="single"
|
|
|
|
+ @click="handleUpdate"
|
|
|
|
+ v-hasPermi="['Housingconstruction:enterprise:edit']"
|
|
|
|
+ >修改
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="danger"
|
|
|
|
+ plain
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
+ size="mini"
|
|
|
|
+ :disabled="multiple"
|
|
|
|
+ @click="handleDelete"
|
|
|
|
+ v-hasPermi="['Housingconstruction:enterprise:remove']"
|
|
|
|
+ >删除
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="warning"
|
|
|
|
+ plain
|
|
|
|
+ icon="el-icon-download"
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="handleExport"
|
|
|
|
+ v-hasPermi="['Housingconstruction:enterprise:export']"
|
|
|
|
+ >导出
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
+ </el-row>
|
|
|
|
+
|
|
|
|
+ <el-table v-loading="loading" :data="enterpriseList" @selection-change="handleSelectionChange">
|
|
|
|
+ <el-table-column type="selection" width="55" align="center"/>
|
|
|
|
+ <el-table-column label="企业名称" align="center" prop="enterpriseName"/>
|
|
|
|
+ <el-table-column label="企业行政区域" align="center" prop="enterpriseAdministrativeArea"/>
|
|
|
|
+ <el-table-column label="法人代表" align="center" prop="legalRepresentative"/>
|
|
|
|
+ <el-table-column label="登记注册地址" align="center" prop="registeredAddress"/>
|
|
|
|
+ <el-table-column label="经营类别" align="center" prop="businessCategory"/>
|
|
|
|
+ <el-table-column label="经营区域" align="center" prop="operatingArea"/>
|
|
|
|
+ <el-table-column label="发证时间" align="center" prop="issuingTime" width="180">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ parseTime(scope.row.issuingTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="许可期限开始时间" align="center" prop="licensePeriodStart"/>
|
|
|
|
+ <el-table-column label="许可期限结束时间" align="center" prop="licensePeriodEnd"/>
|
|
|
|
+ <el-table-column label="发证机关" align="center" prop="issuingAuthority"/>
|
|
|
|
+ <el-table-column label="经度" align="center" prop="longitude"/>
|
|
|
|
+ <el-table-column label="纬度" align="center" prop="latitude"/>
|
|
|
|
+ <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="handleUpdate(scope.row)"
|
|
|
|
+ v-hasPermi="['Housingconstruction:enterprise:edit']"
|
|
|
|
+ >修改
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
+ @click="handleDelete(scope.row)"
|
|
|
|
+ v-hasPermi="['Housingconstruction:enterprise:remove']"
|
|
|
|
+ >删除
|
|
|
|
+ </el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+
|
|
|
|
+ <pagination
|
|
|
|
+ v-show="total>0"
|
|
|
|
+ :total="total"
|
|
|
|
+ :page.sync="queryParams.pageNum"
|
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
|
+ @pagination="getList"
|
|
|
|
+ />
|
|
|
|
+
|
|
|
|
+ <!-- 添加或修改住建-企业信息对话框 -->
|
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body>
|
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="135px">
|
|
|
|
+ <el-row :gutter="24">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="企业名称" prop="enterpriseName">
|
|
|
|
+ <el-input v-model="form.enterpriseName" placeholder="请输入企业名称"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="企业行政区域" prop="enterpriseAdministrativeArea">
|
|
|
|
+ <el-input v-model="form.enterpriseAdministrativeArea" placeholder="请输入企业行政区域"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row :gutter="24">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="法人代表" prop="legalRepresentative">
|
|
|
|
+ <el-input v-model="form.legalRepresentative" placeholder="请输入法人代表"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="登记注册地址" prop="registeredAddress">
|
|
|
|
+ <el-input v-model="form.registeredAddress" placeholder="请输入登记注册地址"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row :gutter="24">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="发证机关" prop="issuingAuthority">
|
|
|
|
+ <el-input v-model="form.issuingAuthority" placeholder="请输入发证机关"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="发证时间" prop="issuingTime">
|
|
|
|
+ <el-date-picker clearable size="small"
|
|
|
|
+ v-model="form.issuingTime"
|
|
|
|
+ type="date"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ placeholder="选择发证时间">
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row :gutter="24">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="许可期限开始时间" prop="licensePeriodStart">
|
|
|
|
+ <el-input v-model="form.licensePeriodStart" placeholder="请输入许可期限开始时间"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="许可期限结束时间" prop="licensePeriodEnd">
|
|
|
|
+ <el-input v-model="form.licensePeriodEnd" placeholder="请输入许可期限结束时间"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row :gutter="24">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="经度" prop="longitude" @dblclick.native="showMap">
|
|
|
|
+ <el-input v-model="form.longitude" placeholder="鼠标双击选择经纬度"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="纬度" prop="latitude" @dblclick.native="showMap">
|
|
|
|
+ <el-input v-model="form.latitude" placeholder="鼠标双击选择经纬度"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row :gutter="24">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="所属部门" prop="deptId">
|
|
|
|
+ <treeselect v-model="form.deptId" :options="deptOptions" multiple:false :show-count="true"
|
|
|
|
+ placeholder="请选择部门" @select="hx" :noResultsText="'空'" :noOptionsText="'空'"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row :gutter="24">
|
|
|
|
+ <el-col :span="24">
|
|
|
|
+ <el-form-item label="经营类别" prop="businessCategory">
|
|
|
|
+ <el-input v-model="form.businessCategory" type="textarea" placeholder="请输入内容"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24">
|
|
|
|
+ <el-form-item label="经营区域" prop="operatingArea">
|
|
|
|
+ <el-input v-model="form.operatingArea" type="textarea" placeholder="请输入内容"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <el-dialog :title="titleLongitude" :visible.sync="showLongitude" append-to-body>
|
|
|
|
+ <el-input v-show="false" v-model="form.longitude" disabled></el-input>
|
|
|
|
+ <el-input v-show="false" v-model="form.latitude" disabled></el-input>
|
|
|
|
+ <supermap style="width: 100%;height: 500px;" :mapDiv="'landingMap'" :mapSite="{doubleClickZoom:false}"
|
|
|
|
+ :codes="['9fa5']" :isSideBySide="false" :showLatLng="showLatLng"></supermap>
|
|
|
|
+ <el-button type="primary" @click="showLongitude=false">确定</el-button>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <ISuperMap ref="ISuperMap" v-if="ISuperMapvisible" @send="send"/>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+import {
|
|
|
|
+ addEnterprise,
|
|
|
|
+ delEnterprise,
|
|
|
|
+ getEnterprise,
|
|
|
|
+ listEnterprise,
|
|
|
|
+ updateEnterprise
|
|
|
|
+} from "@/api/data/housingconstruction/enterprise";
|
|
|
|
+import deptselector from "@/views/components/deptselector.vue";
|
|
|
|
+import {treeselect} from "@/api/system/dept";
|
|
|
|
+import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
+import {checkLat, checkLon} from "@/api/rules/rules";
|
|
|
|
+import ISuperMap from "@/views/data/common/ISuperMap.vue";
|
|
|
|
+import supermap from "@/views/components/supermap.vue";
|
|
|
|
+import DataImageUpload from "@/components/ImageUpload/dataUpload.vue";
|
|
|
|
+
|
|
|
|
+export default {
|
|
|
|
+ name: "Enterprise",
|
|
|
|
+ components: {deptselector, Treeselect, supermap, ISuperMap,DataImageUpload},
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ titleLongitude: '',
|
|
|
|
+ showLongitude: false,
|
|
|
|
+ ISuperMapvisible: false,
|
|
|
|
+ // 遮罩层
|
|
|
|
+ loading: true,
|
|
|
|
+ // 选中数组
|
|
|
|
+ ids: [],
|
|
|
|
+ // 非单个禁用
|
|
|
|
+ single: true,
|
|
|
|
+ // 非多个禁用
|
|
|
|
+ multiple: true,
|
|
|
|
+ // 显示搜索条件
|
|
|
|
+ showSearch: true,
|
|
|
|
+ // 总条数
|
|
|
|
+ total: 0,
|
|
|
|
+ // 住建-企业信息表格数据
|
|
|
|
+ enterpriseList: [],
|
|
|
|
+ // 部门树选项
|
|
|
|
+ deptOptions: [],
|
|
|
|
+ // 弹出层标题
|
|
|
|
+ title: "",
|
|
|
|
+ // 是否显示弹出层
|
|
|
|
+ open: false,
|
|
|
|
+ // 查询参数
|
|
|
|
+ queryParams: {
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ enterpriseName: null,
|
|
|
|
+ legalRepresentative: null,
|
|
|
|
+ },
|
|
|
|
+ // 表单参数
|
|
|
|
+ form: {},
|
|
|
|
+ // 表单校验
|
|
|
|
+ rules: {
|
|
|
|
+ enterpriseName: [
|
|
|
|
+ {required: true, message: "企业名称不能为空", trigger: "blur"}
|
|
|
|
+ ],
|
|
|
|
+ enterpriseAdministrativeArea: [
|
|
|
|
+ {required: true, message: "企业行政区域不能为空", trigger: "blur"}
|
|
|
|
+ ],
|
|
|
|
+ legalRepresentative: [
|
|
|
|
+ {required: true, message: "法人代表不能为空", trigger: "blur"}
|
|
|
|
+ ],
|
|
|
|
+ registeredAddress: [
|
|
|
|
+ {required: true, message: "登记注册地址不能为空", trigger: "blur"}
|
|
|
|
+ ],
|
|
|
|
+ businessCategory: [
|
|
|
|
+ {required: true, message: "经营类别不能为空", trigger: "blur"}
|
|
|
|
+ ],
|
|
|
|
+ operatingArea: [
|
|
|
|
+ {required: true, message: "经营区域不能为空", trigger: "blur"}
|
|
|
|
+ ],
|
|
|
|
+ issuingTime: [
|
|
|
|
+ {required: true, message: "发证时间不能为空", trigger: "blur"}
|
|
|
|
+ ],
|
|
|
|
+ licensePeriodStart: [
|
|
|
|
+ {required: true, message: "许可期限开始时间不能为空", trigger: "blur"}
|
|
|
|
+ ],
|
|
|
|
+ licensePeriodEnd: [
|
|
|
|
+ {required: true, message: "许可期限结束时间不能为空", trigger: "blur"}
|
|
|
|
+ ],
|
|
|
|
+ issuingAuthority: [
|
|
|
|
+ {required: true, message: "发证机关不能为空", trigger: "blur"}
|
|
|
|
+ ],
|
|
|
|
+ longitude: [
|
|
|
|
+ {required: true, message: '经度不能为空', trigger: ['change', 'blur']},
|
|
|
|
+ {validator: checkLon, trigger: 'blur'}
|
|
|
|
+ ],
|
|
|
|
+ latitude: [
|
|
|
|
+ {required: true, message: '纬度不能为空', trigger: ['change', 'blur']},
|
|
|
|
+ {validator: checkLat, trigger: 'blur'}
|
|
|
|
+ ],
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+ this.getList();
|
|
|
|
+ this.getTreeselect();
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ showLatLng: function (lat, lng) {
|
|
|
|
+ this.form.latitude = lat
|
|
|
|
+ this.form.longitude = lng
|
|
|
|
+ },
|
|
|
|
+ send(val) {
|
|
|
|
+ if (val === true) {
|
|
|
|
+ this.ISuperMapvisible = false;
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (this.sign === 1) {
|
|
|
|
+ this.form.longitude = val.longitude;
|
|
|
|
+ this.form.latitude = val.latitude;
|
|
|
|
+ }
|
|
|
|
+ if (this.sign === 2 || this.sign === 3) this.form.longitude = val.xiantude;//this.form.longitude 换成对应的线或区域的字段
|
|
|
|
+ this.ISuperMapvisible = false
|
|
|
|
+ },
|
|
|
|
+ /** 查询部门下拉树结构 */
|
|
|
|
+ getTreeselect() {
|
|
|
|
+ treeselect().then(response => {
|
|
|
|
+ this.deptOptions = response.data;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ hx(node) {
|
|
|
|
+ this.form.dataDeptId = node.id
|
|
|
|
+ this.form.deptId = node.id
|
|
|
|
+ this.form.deptName = node.label
|
|
|
|
+ this.$refs.form.validateField("deptId")
|
|
|
|
+ },
|
|
|
|
+ showMap() {
|
|
|
|
+ this.ISuperMapvisible = true;
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.ISuperMap.init(this.sign, {
|
|
|
|
+ id: this.form.id,
|
|
|
|
+ longitude: this.form.longitude,
|
|
|
|
+ latitude: this.form.latitude,
|
|
|
|
+ xiantude: this.form.longitude//this.form.longitude换成每个页面对应线或者面对应的字段
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ /** 查询住建-企业信息列表 */
|
|
|
|
+ getList() {
|
|
|
|
+ this.loading = true;
|
|
|
|
+ listEnterprise(this.queryParams).then(response => {
|
|
|
|
+ this.enterpriseList = response.rows;
|
|
|
|
+ this.total = response.total;
|
|
|
|
+ this.loading = false;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ // 取消按钮
|
|
|
|
+ cancel() {
|
|
|
|
+ this.open = false;
|
|
|
|
+ this.reset();
|
|
|
|
+ },
|
|
|
|
+ // 表单重置
|
|
|
|
+ reset() {
|
|
|
|
+ this.form = {
|
|
|
|
+ id: null,
|
|
|
|
+ enterpriseName: null,
|
|
|
|
+ enterpriseAdministrativeArea: null,
|
|
|
|
+ legalRepresentative: null,
|
|
|
|
+ registeredAddress: null,
|
|
|
|
+ businessCategory: null,
|
|
|
|
+ operatingArea: null,
|
|
|
|
+ issuingTime: null,
|
|
|
|
+ licensePeriodStart: null,
|
|
|
|
+ licensePeriodEnd: null,
|
|
|
|
+ issuingAuthority: null,
|
|
|
|
+ longitude: null,
|
|
|
|
+ latitude: null,
|
|
|
|
+ createTime: null,
|
|
|
|
+ createBy: null,
|
|
|
|
+ createName: null,
|
|
|
|
+ updateTime: null,
|
|
|
|
+ updateBy: null,
|
|
|
|
+ updateName: null,
|
|
|
|
+ deptId: null,
|
|
|
|
+ deptName: null
|
|
|
|
+ };
|
|
|
|
+ this.resetForm("form");
|
|
|
|
+ },
|
|
|
|
+ /** 搜索按钮操作 */
|
|
|
|
+ handleQuery() {
|
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
|
+ this.getList();
|
|
|
|
+ },
|
|
|
|
+ /** 重置按钮操作 */
|
|
|
|
+ resetQuery() {
|
|
|
|
+ this.resetForm("queryForm");
|
|
|
|
+ this.handleQuery();
|
|
|
|
+ },
|
|
|
|
+ // 多选框选中数据
|
|
|
|
+ handleSelectionChange(selection) {
|
|
|
|
+ this.ids = selection.map(item => item.id)
|
|
|
|
+ this.single = selection.length !== 1
|
|
|
|
+ this.multiple = !selection.length
|
|
|
|
+ },
|
|
|
|
+ /** 新增按钮操作 */
|
|
|
|
+ handleAdd() {
|
|
|
|
+ this.reset();
|
|
|
|
+ this.open = true;
|
|
|
|
+ this.title = "添加住建-企业信息";
|
|
|
|
+ },
|
|
|
|
+ /** 修改按钮操作 */
|
|
|
|
+ handleUpdate(row) {
|
|
|
|
+ this.reset();
|
|
|
|
+ const id = row.id || this.ids
|
|
|
|
+ getEnterprise(id).then(response => {
|
|
|
|
+ this.form = response.data;
|
|
|
|
+ this.open = true;
|
|
|
|
+ this.title = "修改住建-企业信息";
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ /** 提交按钮 */
|
|
|
|
+ submitForm() {
|
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ if (this.form.id != null) {
|
|
|
|
+ updateEnterprise(this.form).then(response => {
|
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
|
+ this.open = false;
|
|
|
|
+ this.getList();
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ addEnterprise(this.form).then(response => {
|
|
|
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
|
+ this.open = false;
|
|
|
|
+ this.getList();
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ /** 删除按钮操作 */
|
|
|
|
+ handleDelete(row) {
|
|
|
|
+ const ids = row.id || this.ids;
|
|
|
|
+ this.$modal.confirm('是否确认删除选中的数据项?').then(function () {
|
|
|
|
+ return delEnterprise(ids);
|
|
|
|
+ }).then(() => {
|
|
|
|
+ this.getList();
|
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ /** 导出按钮操作 */
|
|
|
|
+ handleExport() {
|
|
|
|
+ this.download('Housingconstruction/enterprise/export', {
|
|
|
|
+ ...this.queryParams
|
|
|
|
+ }, `企业信息_${new Date().getTime()}.xlsx`)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+</script>
|