Procházet zdrojové kódy

新增职位页面

corn před 7 měsíci
rodič
revize
828e827c5a
2 změnil soubory, kde provedl 943 přidání a 1 odebrání
  1. 1 1
      src/router/index.js
  2. 942 0
      src/views/recruit/postPreference.vue

+ 1 - 1
src/router/index.js

@@ -90,7 +90,7 @@ const mainRoutes = {
 		{path: '/messageZx', component: _import('message/messageZx'), name: 'messageZx', meta: {title: '注销信息', isTab: true}},
 		// 2024.11.25 6.2版本 新增
 		{ path: '/roomessage', component: _import('chatRecord/message'), name: 'roomessage', meta: { title: '违规列表',isTab: true} },
-		
+		{ path: '/postPreference', component: _import('recruit/postPreference'), name: 'postPreference', meta: { title: '岗位偏好设置',isTab: true} },
 		
 	],
 	beforeEnter (to, from, next) {

+ 942 - 0
src/views/recruit/postPreference.vue

@@ -0,0 +1,942 @@
+<template>
+	<div>
+		<div style="display: inline-block;">
+			<!-- <div style="position: relative;display: inline-block;margin: 5px;">
+				<span>状态:</span>
+				<el-select v-model="statusT" style="width:150px;margin-left: 10px;" @change="select()">
+					<el-option v-for="item in statesnum" :key="item.value" :label="item.label" :value="item.value">
+					</el-option>
+				</el-select>&nbsp;&nbsp;
+			</div>
+			<div style="position: relative;display: inline-block;margin: 5px;">
+				<span>状态:</span>
+				<el-select v-model="statusT" style="width:150px;margin-left: 10px;" @change="select()">
+					<el-option v-for="item in statesnum" :key="item.value" :label="item.label" :value="item.value">
+					</el-option>
+				</el-select>&nbsp;&nbsp;
+			</div>
+			<div style="position: relative;display: inline-block;margin: 5px;">
+				<span>状态:</span>
+				<el-select v-model="statusT" style="width:150px;margin-left: 10px;" @change="select()">
+					<el-option v-for="item in statesnum" :key="item.value" :label="item.label" :value="item.value">
+					</el-option>
+				</el-select>&nbsp;&nbsp;
+			</div> -->
+			<div style="position: relative;display: inline-block;margin: 5px;">
+				<span>岗位偏好名称:</span>
+				<el-input style="width: 200px;" @keydown.enter.native="select" placeholder="请输入岗位偏好名称"
+					v-model="preferenceNameT">
+				</el-input>&nbsp;&nbsp;
+			</div>
+			<el-button style='margin: 5px;' size="mini" type="primary" icon="document" @click="select">查询
+			</el-button>
+			<el-button style='margin: 5px;' size="mini" type="primary" icon="document" @click="cleans">重置
+			</el-button>
+			<!-- v-if="isAuth('autonym:pass')" -->
+			<el-button style='margin:0 0 20px 20px;' size="mini" type="primary" icon="document" @click="addClick()">添加
+			</el-button>
+			<!-- <el-button style='margin-left:15px;' size="mini" type="warning" icon="document" :disabled="!isAuth('user:daochu')" @click="exportBtn">导出Excel
+			</el-button> -->
+		</div>
+		<div style="color: orange;"> * 导出数据提示:导出数据前请进行时间或者状态等筛选,否则导出单量过多易出现卡顿或系统崩溃</div>
+		<el-table v-loading="tableDataLoading" :data="tableData.records">
+			<el-table-column prop="postPreferenceId" label="编号" width="200">
+			</el-table-column>
+			<el-table-column prop="ruleClassifyId" label="职位名称">
+			</el-table-column>
+            <el-table-column prop="preferenceName" label="岗位偏好名称" width="200">
+			</el-table-column>
+			<el-table-column prop="isUse" label="启用">
+                <template slot-scope="scope">
+                    <el-switch v-model="scope.row.isUse" @change="change(scope.row.ruleClassifyId,scope.row.isUse,scope.row)"
+                        :disabled="!isAuth('positionList:update')" :active-value="openValue"
+                        :inactive-value="closeValue" active-color="#13ce66" inactive-color="#ff4949">
+                    </el-switch>
+                </template>
+            </el-table-column>
+			<el-table-column  label="操作" width="180">
+				<template slot-scope="scope">
+					<el-button size="mini" type="primary" @click="addClick(scope.row)" style="margin: 5px;">
+						修改
+					</el-button>
+					<el-button size="mini" type="danger" @click="deleteClick(scope.row)" style="margin: 5px;">
+						删除
+					</el-button>
+				</template>
+			</el-table-column>
+		</el-table>
+		<div style="text-align: center;margin-top: 10px;">
+			<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
+				:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
+				layout="total,sizes, prev, pager, next,jumper" :total="tableData.total">
+			</el-pagination>
+		</div>
+		<!-- 添加/修改企业 -->
+		<el-dialog :title="titles" :visible.sync="dialogFormVisibleQ" center width="80%">
+			<div style="margin-bottom: 10px;">
+				<span style="width: 200px;display: inline-block;text-align: right;">企业用户:</span>
+				<el-input v-model="nickName1" @focus="userselect" style="width:45%;" placeholder="请选择企业用户">
+				</el-input>
+			</div>
+            <div style="margin-bottom: 10px;" v-if="parentId!=0&&gwType==2&&titles=='添加岗位'">
+                <span style="width: 200px;display: inline-block;text-align: right;">分类标题:</span>
+                <el-select v-model="parentIdEr" style="width:50%;" @change="select()">
+                    <el-option v-for="item in ejgwList" :key="item.ruleClassifyId" :label="item.title" :value="item.ruleClassifyId">
+                    </el-option>
+                </el-select>&nbsp;&nbsp;
+            </div>
+            <div style="margin-bottom: 10px;">
+				<span style="width: 200px;display: inline-block;text-align: right;">企业用户:</span>
+				<el-input v-model="nickName1" @focus="userselect" style="width:45%;" placeholder="请选择企业用户">
+				</el-input>
+			</div>
+            <div style="margin-bottom: 10px;">
+				<span style="width: 200px;display: inline-block;text-align: right;">企业用户:</span>
+				<el-input v-model="nickName1" @focus="userselect" style="width:45%;" placeholder="请选择企业用户">
+				</el-input>
+			</div>
+			<div style="margin-bottom: 10px;">
+				<span style="width: 200px;display: inline-block;text-align: right;">法人姓名:</span>
+				<el-input v-model="companyLegalPerson" style="width:45%;" placeholder="请输入法人姓名">
+				</el-input>
+			</div>
+
+			<div style="margin-bottom: 10px;">
+				<span style="width: 200px;display: inline-block;text-align: right;">经营范围:</span>
+                <el-button style='margin-left:15px;' plain size="mini" type="primary" icon="document" @click="qungkong">
+                    清空选项
+                </el-button>
+                        <!-- <el-input v-model="companyScope" style="width:45%;" min="0" placeholder="请输入经营范围">
+                        </el-input> -->
+                <div style="margin-left: 200px;">
+                    <span v-for="(item,index) in hangyeData" :key="index">{{item.industryName}}:
+                        <el-checkbox-group v-model="companyScope">
+                            <el-checkbox v-for="(item1,index1) in item.childrenList" :label="item1.industryName"
+                                :key="index1">
+                                {{item1.industryName}}
+                            </el-checkbox>
+                        </el-checkbox-group>
+                    </span>
+
+                </div>
+			</div>
+            <div style="margin-bottom: 10px;display:flex;">
+                <span style="width: 200px;display: inline-block;text-align: right;">状态:</span>
+                <el-radio-group v-model="preStatus">
+                    <el-radio :label="1">启用</el-radio>
+                    <el-radio :label="0">禁用</el-radio>
+                </el-radio-group>
+            </div>
+
+			<div slot="footer" class="dialog-footer" style="margin-top: 30px;text-align: center;">
+				<el-button @click="prev">取 消</el-button>
+				<el-button type="primary" @click="addmissionNoticeTo()">确 定</el-button>
+			</div>
+		</el-dialog>
+		<!-- 用户列表 -->
+		<el-dialog title="用户列表" :visible.sync="dialogFormVisible3" center>
+			<div style="margin:2% 0;display: inline-block;">
+				<el-input style="width: 150px;" @keydown.enter.native="userclick" clearable placeholder="请输入手机号"
+					v-model="phone1"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;
+				<el-input style="width: 150px;" @keydown.enter.native="userclick" clearable placeholder="请输入昵称"
+					v-model="nickName2"></el-input>
+				<el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="userclick">
+					查询
+				</el-button>
+				<el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="userclose">
+					重置
+				</el-button>
+			</div>
+			<el-table width="780px" v-loading="tableDataLoading4" :data="userIds.records">
+				<el-table-column fixed prop="nickName" width="220" label="昵称">
+					<template slot-scope="scope">
+						<span style="color: #f56c6c;">{{scope.row.userName ? scope.row.userName : '未设置'}}</span>
+					</template>
+				</el-table-column>
+				<el-table-column prop="phone" width="220" label="手机号">
+					<template slot-scope="scope">
+						<span>{{scope.row.phone ? scope.row.phone : '未绑定'}}</span>
+					</template>
+				</el-table-column>
+				<el-table-column prop="createTime" width="220" label="创建时间">
+				</el-table-column>
+				<el-table-column label="操作" fixed='right' width="120">
+					<template slot-scope="scope">
+						<el-button size="mini" type="primary" @click="confirm(scope.row)">确定
+						</el-button>
+					</template>
+				</el-table-column>
+			</el-table>
+			<div style="text-align: center;margin-top: 10px;">
+				<el-pagination @size-change="handleSizeChange2" @current-change="handleCurrentChange2"
+					:page-sizes="[5, 10, 15, 20]" :page-size="size1" :current-page="page1"
+					layout="total,sizes, prev, pager, next,jumper" :total="userIds.total">
+				</el-pagination>
+			</div>
+		</el-dialog>
+    </div>
+</template>
+
+<script>
+	import {
+	  quillEditor
+	} from 'vue-quill-editor'
+	import 'quill/dist/quill.core.css'
+	import 'quill/dist/quill.snow.css'
+	import 'quill/dist/quill.bubble.css'
+	import quillConfig from '../mission/quill-config.js'
+	export default {
+	  name: 'news',
+	  components: {
+	    quillEditor
+	  },
+		data() {
+			return {
+				limit: 10,
+				page: 1,
+				size1: 10,
+				page1: 1,
+				status: 0,
+				statusT:'',
+                openValue: 1,
+                closeValue: 2,
+				statesnum: [{
+						value: 0,
+						label: '全部'
+					},
+					{
+						value: 1,
+						label: '待审核'
+					}, {
+						value: 2,
+						label: '已通过'
+					}, {
+						value: 3,
+						label: '已拒绝'
+					}
+				],
+				classify: '',
+				userName: '',
+				tableDataLoading: false,
+				tableDataLoading4: false,
+				dialogFormVisible: false,
+				dialogFormVisibleQ: false,
+				dialogFormVisibleFp:false,
+				dialogFormVisible3: false,
+				dialogFormVisible4: false,
+				tableData: {},
+				checkBoxData: [], //多选框选择的值
+				shopId: '',
+				preferenceNameT: '',
+				companyNameT: '',
+				// 企业字段
+				titles: '添加',
+				companyId: '',
+				companyPhone: '',
+				companyName: '',
+				companyLegalPerson: '',
+				companyCreateTime:'',
+				companyPeople:'',
+				companyCertification: [],
+				companyCertificate: [],
+				companyDutyParagraph: '',
+				companyAddress: '',
+				companyRegisteredFund: '',
+				email:'',
+				companyDetails: '',
+				companyContent:'',
+				companyScope: [],
+				nickName1: '',
+				percentage: 0, //进度条
+				percentage1: 0,
+				percentageQ: 0,
+				userIds: {},
+				nickName2: '',
+				phone1: '',
+				page2:1,
+				size2:10,
+				userId:'',
+				titlesFp:'添加',
+				title:'',
+				content:'',
+				money:'',
+				invoiceId:'',
+				statusF:'',
+				invoiceType:1,
+				quillOption: quillConfig,
+
+				info: {
+					stockDate: this.getNowTime(), //日期
+				},
+				info2: {
+					stockDate2: this.getNowTime2(), //日期
+				},
+				startTime: '',
+				endTime: '',
+        hangyeData: [],
+			}
+		},
+		methods: {
+			//处理默认选中当前日期
+			getNowTime() {
+				var now = new Date()
+				var year = now.getFullYear() //得到年份
+				var month = now.getMonth() //得到月份
+				var date = now.getDate() //得到日期
+				month = month + 1
+				month = month.toString().padStart(2, '0')
+				date = date.toString().padStart(2, '0')
+				var defaultDate = `${year}-${month}-${date}`
+				return defaultDate
+				this.$set(this.info, 'stockDate', defaultDate)
+			},
+			//处理默认选中当前日期
+			getNowTime2() {
+				var now = new Date()
+				var year = now.getFullYear() //得到年份
+				var month = now.getMonth() - now.getMonth() //得到月份
+				var date = now.getDate() - now.getDate() + 1 //得到日期
+				month = month + 1
+				month = month.toString().padStart(2, '0')
+				date = date.toString().padStart(2, '0')
+				var defaultDate = `${year}-${month}-${date}`
+				return defaultDate
+				this.$set(this.info, 'stockDate', defaultDate)
+			},
+			// 多选
+			changeFun(val) {
+				this.checkBoxData = val;
+			},
+			// 详情跳转
+			updates(row) {
+				this.$router.push({
+					path: '/userDetailQ',
+					query: {
+						userId: row.userId
+					}
+				})
+			},
+			handleSizeChange(val) {
+				this.limit = val;
+				this.dataSelect()
+			},
+			handleCurrentChange(val) {
+				this.page = val;
+				this.dataSelect()
+			},
+			handleSizeChange2(val) {
+				this.size1 = val
+				this.userClass()
+			},
+			handleCurrentChange2(val) {
+				this.page1 = val
+				this.userClass()
+			},
+			handleSizeChangeF(val) {
+				this.size2 = val
+				this.userClass()
+			},
+			handleCurrentChangeF(val) {
+				this.page2 = val
+				this.userClass()
+			},
+			//服务通过
+			passClick(id) {
+				this.status = 1
+				this.content = '同意'
+				var ids = id ? [id] : this.checkBoxData.map(item => {
+					return item.id
+				})
+				this.$http({
+					url: this.$http.adornUrl(
+						`student/auditStudentAuthentication/${ids}/${this.status}/${this.content}`),
+					method: 'post',
+					data: this.$http.adornData({})
+				}).then(({
+					data
+				}) => {
+					if (data.code == 0) {
+						this.$message({
+							message: '操作成功',
+							type: 'success',
+							duration: 1500,
+							onClose: () => {
+								this.content = ''
+								this.status = ''
+								this.dataSelect()
+							}
+						})
+					} else {
+						this.$message({
+							message: data.msg,
+							type: 'error',
+							duration: 1500,
+							onClose: () => {
+								this.content = ''
+								this.status = ''
+								this.dataSelect()
+							}
+						})
+					}
+				})
+			},
+			// 查询
+			select() {
+				this.page = 1
+				this.limit = 10
+				this.dataSelect()
+			},
+			// 重置
+			cleans() {
+				this.statusT = ''
+				this.userName = ''
+				this.preferenceNameT = ''
+				this.companyNameT = ''
+				this.startTime = ''
+				this.endTime = ''
+				this.dataSelect()
+			},
+			// 获取派单数据列表
+			dataSelect() {
+				if(this.startTime!=""&&this.startTime !==null){
+					if (this.endTime == ''||this.endTime ==null) {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请选择截止时间',
+							type: 'warning'
+						});
+						return
+					}
+				}
+				if(this.endTime!=""&&this.endTime !==null){
+					if (this.startTime == ''||this.startTime ==null) {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请选择开始时间',
+							type: 'warning'
+						});
+						return
+					}
+				}
+				this.tableDataLoading = true
+				this.$http({
+					url: this.$http.adornUrl('postPreference/getPostPreferenceList'),
+					method: 'get',
+					params: this.$http.adornParams({
+						'page': this.page,
+						'limit': this.limit,
+						// 'classify1': this.statusT,
+						// 'classify2': this.userName,
+						// 'classify3': this.preferenceNameT,
+						'preferenceName': this.preferenceNameT,
+						// 'isUse': this.startTime,
+					})
+				}).then(({
+					data
+				}) => {
+					this.tableDataLoading = false
+					if(data.data&&data.data.records.length>0){
+						for(var i in data.data.records){
+							var pattern = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/
+							var phone1 = data.data.records[i].phone
+							var userName1 = data.data.records[i].userName
+							if(pattern.test(phone1)){
+								var one = phone1.slice(0, 3)
+								var two = phone1.slice(7, 11)
+								data.data.records[i].phone1 = one+'****'+two
+							}
+							if(pattern.test(userName1)){
+								var one = userName1.slice(0, 3)
+								var two = userName1.slice(7, 11)
+								data.data.records[i].userName1 = one+'****'+two
+							}
+							
+							
+						}
+					}
+					this.tableData = data.data
+				})
+			},
+			dataSelectDsh() {
+				this.$http({
+					url: this.$http.adornUrl('company/selectCompanyList'),
+					method: 'get',
+					params: this.$http.adornParams({
+						'page': this.page,
+						'limit': this.limit,
+						'status': 1,
+						'userName': this.userName,
+						'companyPhone': this.preferenceNameT,
+						'companyName': this.companyNameT
+					})
+				}).then(({
+					data
+				}) => {
+					if(data.data){
+						this.$cookie.set('numberYh', data.data.totalCount)
+					}
+				})
+			},
+			// 添加
+			addClick(row) {
+				if (row) {
+					this.titles = '修改'
+                    this.preStatus = row.isUse
+
+					this.companyId = row.companyId
+					// this.companyPhone = row.companyPhone
+					this.companyName = row.companyName
+					this.companyLegalPerson = row.companyLegalPerson
+					this.companyCreateTime = row.companyCreateTime
+					this.companyPeople = row.companyPeople
+					if(row.companyCertification){
+						this.companyCertification = row.companyCertification.split(',')
+					}
+					if(row.companyCertificate){
+						this.companyCertificate = row.companyCertificate.split(',')
+					}
+
+					this.companyDutyParagraph = row.companyDutyParagraph
+					this.companyAddress = row.companyAddress
+					this.companyRegisteredFund = row.companyRegisteredFund
+					this.email = row.email
+					this.companyDetails = row.companyDetails
+					this.companyContent = row.companyContent
+                    if(row.companyScope){
+                        this.companyScope = row.companyScope.split(',')
+                    }
+
+					this.nickName1 = row.userName
+					this.userIdss = row.userId
+					this.percentage = 100
+				} else {
+					this.titles = '添加'
+                    this.preStatus = 1
+
+
+					this.companyId = ''
+					// this.companyPhone = ''
+					this.companyName = ''
+					this.companyLegalPerson = ''
+					this.companyCreateTime = ''
+					this.companyPeople = ''
+					this.companyCertification = []
+					this.companyCertificate = []
+					this.companyDutyParagraph = ''
+					this.companyAddress = ''
+					this.companyRegisteredFund = ''
+					this.email = ''
+					this.companyDetails = ''
+					this.companyContent = ''
+					this.companyScope = []
+					this.nickName1 = ''
+					this.nickName2 = ''
+                    
+					this.phone = ''
+					this.percentage = 100
+				}
+        this.hangyeSelect()
+				this.dialogFormVisibleQ = true
+			},
+			// 获取用户列表弹框
+			userselect() {
+				this.dialogFormVisible3 = true
+				this.tableDataLoading4 = true
+				this.userClass()
+			},
+			// 获取用户列表
+			userClass() {
+				let phone = -1
+				if (this.phone) {
+					phone = this.phone
+				}
+				let nickName = -1
+				if (this.nickName) {
+					nickName = this.nickName
+				}
+				this.$http({
+					url: this.$http.adornUrl('user/getNotHasCompanyUserList'),
+					method: 'get',
+					params: this.$http.adornParams({
+						'page': this.page1,
+						'limit': this.size1,
+						'userName': this.nickName2,
+						'phone': this.phone1,
+						'isAuthentication': 0
+					})
+				}).then(({
+					data
+				}) => {
+					this.tableDataLoading4 = false
+					let returnData = data.data
+					this.userIds = returnData
+				})
+			},
+			// 查询用户列表
+			userclick() {
+				this.page = 1
+				this.tableDataLoading4 = true
+				this.userClass()
+			},
+			// 重置用户列表数据
+			userclose() {
+				this.phone1 = ''
+				this.nickName2 = ''
+				this.tableDataLoading4 = true
+
+				this.userClass()
+			},
+			// 确定用户
+			confirm(row) {
+				this.userIdss = row.userId
+				this.nickName1 = row.userName
+				this.phone = row.phone
+				// if (this.nickName == '' || this.nickName == null) {
+				// 	this.nickName = row.phone
+				// }
+				this.dialogFormVisible3 = false
+			},
+			// 确定添加
+			addmissionNoticeTo() {
+					// let photost = this.detailsImg.toString();
+					// console.log(this.userIdss, this.gameId, photost)
+					if (this.companyLegalPerson == '') {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请输入法人姓名',
+							type: 'warning'
+						});
+						return
+					}
+					if (this.companyName == '') {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请输入企业名称',
+							type: 'warning'
+						});
+						return
+					}
+
+					if (this.userIdss == '') {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请选择发布人',
+							type: 'warning'
+						});
+						return
+					}
+
+					if (this.companyLogo == '') {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请上传企业头像',
+							type: 'warning'
+						});
+						return
+					}
+					if (this.companyCertification.length == 0) {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请上传营业执照',
+							type: 'warning'
+						});
+						return
+					}
+
+					if (this.companyPeople == '') {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请输入企业规模',
+							type: 'warning'
+						});
+						return
+					}
+					if (this.companyCreateTime == '') {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请选择注册时间',
+							type: 'warning'
+						});
+						return
+					}
+					if (this.companyScope.length == 0) {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请选择经营范围',
+							type: 'warning'
+						});
+						return
+					}
+					if (this.companyAddress == '') {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请输入企业地址',
+							type: 'warning'
+						});
+						return
+					}
+					if (this.companyRegisteredFund == '') {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请输入注册资金',
+							type: 'warning'
+						});
+						return
+					}
+					if (this.companyDetails == '') {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请输入企业简介',
+							type: 'warning'
+						});
+						return
+					}
+					if (this.email == '') {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: '请输入企业邮箱',
+							type: 'warning'
+						});
+						return
+					}
+
+				let urls = ''
+				if (this.titles == '添加') {
+					urls = 'company/insertCompany'
+				} else {
+					urls = 'company/updateCompany'
+				}
+				let that = this
+				setTimeout(function() {
+					that.$http({
+						url: that.$http.adornUrl(urls),
+						method: 'post',
+						data: that.$http.adornData({
+							// params: that.$http.adornParams({
+							'companyCertification': that.companyCertification.toString(),
+							'companyCertificate': that.companyCertificate.toString(),
+							// 'phone': that.companyPhone,
+							'companyName': that.companyName,
+							'companyLegalPerson': that.companyLegalPerson,
+							'companyCreateTime':that.companyCreateTime,
+							'companyPeople':that.companyPeople,
+							'companyLogo': that.companyLogo,
+							'companyDutyParagraph': that.companyDutyParagraph,
+							'companyAddress': that.companyAddress,
+							'companyRegisteredFund': that.companyRegisteredFund,
+							'companyDetails': that.companyDetails,
+							'companyScope': that.companyScope.toString(),
+							'userId': that.userIdss,
+							'companyId': that.companyId,
+							'email':that.email,
+							'companyContent':that.companyContent
+						})
+					}).then(({
+						data
+					}) => {
+						console.log('提交结果', data)
+						if (data.code == 0) {
+							that.$message({
+								message: '操作成功',
+								type: 'success',
+								duration: 1500,
+								onClose: () => {
+									that.dataSelect()
+									that.prev()
+								}
+							})
+						} else {
+							that.$notify({
+								title: '提示',
+								duration: 1800,
+								message: data.msg,
+								type: 'warning'
+							});
+						}
+					})
+				}, 1000)
+			},
+			// 关闭添加信息弹框
+			prev() {
+				this.dialogFormVisibleQ = false
+				this.titles = '添加'
+				this.companyId = ''
+				this.companyPhone = ''
+				this.companyName = ''
+				this.companyLegalPerson = ''
+				this.companyCreateTime = ''
+				this.companyPeople = ''
+				this.companyCertification = []
+				this.companyCertificate = []
+				this.companyDutyParagraph = ''
+				this.companyAddress = ''
+				this.companyRegisteredFund = ''
+				this.email = ''
+				this.companyDetails = ''
+				this.companyContent = ''
+				this.companyScope = ''
+				this.nickName1 = ''
+				this.nickName2 = ''
+				this.phone = ''
+			},
+			// 删除
+			deleteClick(row) {
+				this.$confirm(`确定删除此条信息?`, '提示', {
+					confirmButtonText: '确定',
+					cancelButtonText: '取消',
+					type: 'warning'
+				}).then(() => {
+					this.$http({
+						url: this.$http.adornUrl('company/deleteCompany'),
+						method: 'post',
+						params: this.$http.adornParams({
+							'companyId': row.companyId
+						})
+					}).then(({
+						data
+					}) => {
+						if (data.code == 0) {
+							this.$message({
+								message: '删除成功',
+								type: 'success',
+								duration: 1500,
+								onClose: () => {
+									this.dataSelect()
+								}
+							})
+						} else {
+							this.$notify({
+								title: '提示',
+								duration: 1800,
+								message: data.msg,
+								type: 'warning'
+							});
+						}
+
+					})
+				}).catch(() => {})
+			},
+			// 导出
+			exportBtn() {
+				 var endTime=this.endTime
+				 if(this.endTime!=''){
+				 	endTime=this.endTime+" 23:59:59"
+				 }
+				this.$http({
+					url: this.$http.adornUrl('company/exportExcelCompanyList'),
+					method: 'get',
+					responseType: 'blob',
+					params: this.$http.adornParams({
+						// 'page': page,
+						// 'size': this.size,
+						'status': this.statusT,
+						'userName': this.userName,
+						'companyPhone': this.preferenceNameT,
+						'companyName': this.companyNameT,
+						'startTime': this.startTime,
+						'endTime': this.endTime,
+					})
+				}).then(({
+					data
+				}) => {
+					let blob = new Blob([data], {
+						type: 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
+					})
+					if (window.navigator.msSaveOrOpenBlob) {
+						navigator.msSaveBlob(blob)
+					} else {
+						let url = window.URL.createObjectURL(blob)
+						let elink = document.createElement('a')
+						elink.download = '企业列表.xlsx'
+						elink.style.display = 'none'
+						elink.href = url
+						document.body.appendChild(elink)
+						elink.click()
+						document.body.removeChild(elink)
+					}
+				})
+			},
+      // 获取一级行业数据
+      hangyeSelect() {
+      	this.$http({
+      		url: this.$http.adornUrl('admin/industry/getIndustryList'),
+      		method: 'get',
+      		params: this.$http.adornParams({
+      			'isEnable': 1
+      			// 'page': this.page,
+      			// 'limit': this.limit,
+      			// 'industryName':'',
+
+      		})
+      	}).then(({
+      		data
+      	}) => {
+      		if (data.code == 0) {
+      			this.tableDataLoading = false
+      			let returnData = data.data
+      			this.hangyeData = returnData
+      		} else {
+      			this.$notify({
+      				title: '提示',
+      				duration: 1800,
+      				message: data.msg,
+      				type: 'warning'
+      			});
+      		}
+
+      	})
+      },
+      // 清空经营范围
+      qungkong(){
+        this.companyScope = []
+      },
+		},
+		mounted() {
+			var statusN =  this.$route.query.status
+			if(statusN){
+				this.status = statusN
+			}else{
+				this.status = 0
+			}
+			this.dataSelect()
+		}
+	};
+</script>
+
+<style>
+
+	.dels {
+		position: absolute;
+		top: 0;
+		left: 0;
+		display: none;
+	}
+
+	.dels .el-icon-delete {
+		/* line-height: 148px; */
+		/* padding-left: 58px; */
+		font-size: 15px;
+		    color: #fff;
+		    position: relative;
+		    bottom: 10px;
+		    left: 140px;
+		    background: #999;
+		    padding: 5px;
+		    border-radius: 50%;
+
+	}
+</style>