Sfoglia il codice sorgente

添加职业技能管理页面

cornyuan 7 mesi fa
parent
commit
407bf5c31f
3 ha cambiato i file con 661 aggiunte e 290 eliminazioni
  1. 1 0
      src/router/index.js
  2. 522 0
      src/views/department/department.vue
  3. 138 290
      src/views/recruit/postSkill.vue

+ 1 - 0
src/router/index.js

@@ -92,6 +92,7 @@ const mainRoutes = {
 		{ path: '/roomessage', component: _import('chatRecord/message'), name: 'roomessage', meta: { title: '违规列表',isTab: true} },
 		{ path: '/postPreference', component: _import('recruit/postPreference'), name: 'postPreference', meta: { title: '岗位偏好设置',isTab: true} },
 		{ path: '/postSkill', component: _import('recruit/postSkill'), name: 'postSkill', meta: { title: '岗位技能设置',isTab: true} },
+		{ path: '/department', component: _import('department/department'), name: 'department', meta: { title: '部门设置',isTab: true} },
 	],
 	beforeEnter (to, from, next) {
 		let token = Vue.cookie.get('token')

+ 522 - 0
src/views/department/department.vue

@@ -0,0 +1,522 @@
+<template>
+	<div>
+	<el-tabs v-model="activeName" @tab-click="handleClick">
+		<div style="float: left;margin-left:1%;margin-bottom: 1%;">
+			<el-button style='margin: 10px 0;' :disabled="!isAuth('app:add')" size="mini" type="primary"
+				icon="document" @click="addUpgrade">添加部门</el-button>
+		</div>
+		<el-table v-loading="tableDataLoading" :data="upgradeData1.records">
+			<el-table-column fixed prop="departmentId" label="部门编号" width="100">  
+			</el-table-column>
+			<el-table-column prop="departmentName" label="部门名称">
+			</el-table-column>
+			<el-table-column prop="sort" label="排序"  width="80">
+					</el-table-column>
+
+			<!-- <div style="margin-bottom: 10px;display:flex;">
+				<span style="width: 200px;display: inline-block;text-align: right;">排序:</span>
+				<el-input-number size="medium" v-model="sort"></el-input-number>
+			</div> -->
+
+			<el-table-column prop="isEnable" label="启用">
+                <template slot-scope="scope">
+                    <el-switch v-model="scope.row.isEnable" @change="change(scope.row.departmentId,scope.row.isEnable,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 prop="updateTime" label="更新时间" width="200">
+			</el-table-column>
+			<el-table-column label="操作" width="200">
+				<template slot-scope="scope">
+					<el-button size="mini" type="primary" :disabled="!isAuth('app:update')"
+						@click="upgradebj(scope.$index, scope.row)">编辑
+					</el-button>
+					<el-button size="mini" type="danger" :disabled="!isAuth('app:delete')"
+						@click="upgradelete(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="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
+				layout="total,sizes, prev, pager, next,jumper" :total="upgradeData1.total">
+			</el-pagination>
+		</div>
+		<!-- 添加升级弹框 -->
+		<el-dialog title="添加升级" :visible.sync="dialogFormVisible3" center>
+			<div style="margin-bottom: 10px;">
+				<span style="width: 200px;display: inline-block;text-align: right;"><i
+						style="color: #f56c6c;margin-right: 2px;">*</i>部门名称:</span>
+				<el-input style="width: 50%;" v-model="departmentName" placeholder="请输入统一地址"></el-input>
+			</div>
+			<div style="margin-bottom: 10px;display:flex;">
+				<span style="width: 200px;display: inline-block;text-align: right;">排序:</span>
+				<el-input-number size="medium" v-model="sort"></el-input-number>
+			</div>
+			<div style="margin-bottom: 10px;display:flex;">
+				<span style="width: 200px;display: inline-block;text-align: right;">状态:</span>
+				<el-radio-group v-model="isEnable">
+					<el-radio :label="1">启用</el-radio>
+					<el-radio :label="2">禁用</el-radio>
+				</el-radio-group>
+			</div>
+			<div slot="footer" class="dialog-footer">
+				<el-button @click="dialogFormVisible3 = false">取 消</el-button>
+				<el-button type="primary" @click="upgradaddTo()">确 定</el-button>
+			</div>
+		</el-dialog>
+		<!-- 修改升级弹框 -->
+		<el-dialog title="修改" :visible.sync="dialogFormVisible4" center>
+			<el-form :model="formupgrad">
+				<el-form-item label="统一地址:" :label-width="formLabelWidth">
+					<el-input v-model="formupgrad.wgtUrl" style="width:65%;"></el-input>
+				</el-form-item>
+				<el-form-item label="安卓地址:" :label-width="formLabelWidth">
+					<el-input v-model="formupgrad.androidWgtUrl" style="width:65%;"></el-input>
+				</el-form-item>
+				<el-form-item label="苹果地址:" :label-width="formLabelWidth">
+					<el-input v-model="formupgrad.iosWgtUrl" style="width:65%;"></el-input>
+				</el-form-item>
+				<el-form-item label="安卓版本号:" :label-width="formLabelWidth">
+					<el-input v-model="formupgrad.version" style="width:65%;"></el-input>
+				</el-form-item>
+				<el-form-item label="ios版本号:" :label-width="formLabelWidth">
+					<el-input v-model="formupgrad.iosVersion" style="width:65%;"></el-input>
+				</el-form-item>
+				<el-form-item label="升级方式:" :label-width="formLabelWidth">
+					<el-select v-model="formupgrad.method" placeholder="请选择升级方式" style="width:65%;">
+						<el-option v-for="item in methods" :key="item.value" :label="item.label" :value="item.value">
+						</el-option>
+					</el-select>
+				</el-form-item>
+				<el-form-item label="升级内容:" :label-width="formLabelWidth">
+					<el-input v-model="formupgrad.des" style="width:65%;"></el-input>
+				</el-form-item>
+			</el-form>
+			<div slot="footer" class="dialog-footer">
+				<el-button @click="dialogFormVisible4 = false">取 消</el-button>
+				<el-button type="primary" @click="upgradbjTo()">确 定</el-button>
+			</div>
+		</el-dialog>
+
+	</el-tabs>
+	</div>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				limit: 10,
+				page: 1,
+				openValue: 1,
+				closeValue: 2,
+				state: 1,
+				url: '',
+				title: '',
+				type: '',
+				id: '',
+				nav: '',
+				keyword: '',
+				image_url: '',
+				androidWgtUrl: '',
+				iosWgtUrl: '',
+				wgtUrl: '',
+				version: '',
+				iosVersion: '',
+				des: '',
+				checkBoxData: [], //多选框选择的值
+				method: 'false',
+				methods: [{
+						value: 'false',
+						label: '普通升级'
+					},
+					{
+						value: 'true',
+						label: '强制升级'
+					}
+				],
+				formupgrad: {
+					id: '',
+					androidWgtUrl: '',
+					iosWgtUrl: '',
+					wgtUrl: '',
+					version: '',
+					des: '',
+					method: '',
+					iosVersion: ''
+				},
+				formLabelWidth: '200px',
+				activeName: 'first',
+				tableDataLoading: true,
+				dialogFormVisible3: false,
+				dialogFormVisible4:false,
+				tableData: [],
+				homeData: [],
+				choicenData2: [],
+				upgradeData: [],
+				upgradeData1: [],
+				choicenData: [],
+				types: [{
+						value: 'word',
+						label: '文字'
+					},
+					{
+						value: 'url',
+						label: '链接'
+					}
+				],
+				bannerData: [],
+				form1: {
+					id: '',
+					url: '',
+					image_url: ''
+				},
+				form: {
+					id: '',
+					title: '',
+					url: '',
+					type: '',
+					state: '',
+					types: [{
+							value: 'word',
+							label: '文字'
+						},
+						{
+							value: 'url',
+							label: '链接'
+						}
+					],
+				},
+				formcomp: {
+					id: '',
+					state: '',
+					title: '',
+					url: '',
+					image_url: ''
+				}
+			}
+		},
+		methods: {
+
+			handleSizeChange2(val) {
+				this.limit = val;
+				this.upgradeSelect()
+			},
+			handleCurrentChange2(val) {
+				this.page = val;
+				this.upgradeSelect()
+			},
+
+			handleClick(tab, event) {
+				this.upgradeSelect()
+			},
+			// 添加升级弹框
+			addUpgrade() {
+				this.dialogFormVisible3 = true
+			},
+			// 添加升级
+			upgradaddTo() {
+				if (this.wgtUrl == '') {
+					this.$notify({
+						title: '提示',
+						duration: 1800,
+						message: '请输入统一地址',
+						type: 'warning'
+					});
+					return
+				}
+				if (this.androidWgtUrl == '') {
+					this.$notify({
+						title: '提示',
+						duration: 1800,
+						message: '请输入安卓地址',
+						type: 'warning'
+					});
+					return
+				}
+				if (this.iosWgtUrl == '') {
+					this.$notify({
+						title: '提示',
+						duration: 1800,
+						message: '请输入苹果地址',
+						type: 'warning'
+					});
+					return
+				}
+
+				if (this.version == '') {
+					this.$notify({
+						title: '提示',
+						duration: 1800,
+						message: '请输入安卓版本号',
+						type: 'warning'
+					});
+					return
+				}
+				if (this.iosVersion == '') {
+					this.$notify({
+						title: '提示',
+						duration: 1800,
+						message: '请输入苹果版本号',
+						type: 'warning'
+					});
+					return
+				}
+
+				if (this.method == '') {
+					this.$notify({
+						title: '提示',
+						duration: 1800,
+						message: '请选择升级方式',
+						type: 'warning'
+					});
+					return
+				}
+				if (this.des == '') {
+					this.$notify({
+						title: '提示',
+						duration: 1800,
+						message: '请输入升级内容',
+						type: 'warning'
+					});
+					return
+				}
+				this.$http({
+					url: this.$http.adornUrl('appinfo/save'),
+					method: 'post',
+					data: this.$http.adornData({
+						'androidWgtUrl': this.androidWgtUrl,
+						'iosWgtUrl': this.iosWgtUrl,
+						'wgtUrl': this.wgtUrl,
+						'version': this.version,
+						'iosVersion': this.iosVersion,
+						'method': this.method,
+						'des': this.des
+					})
+				}).then(({
+					data
+				}) => {
+					this.dialogFormVisible3 = false
+					this.$message({
+						message: '操作成功',
+						type: 'success',
+						duration: 1500,
+						onClose: () => {
+							this.upgradeSelect()
+						}
+					})
+				})
+			},
+			// 启用与否
+			change(id, status,row) {
+				this.$http({
+					url: this.$http.adornUrl('department/updateDepartmentById'),
+					method: 'post',
+					// data: this.$http.adornData({
+					params: this.$http.adornParams({
+						'departmentId': id,
+						'isEnable': status,
+						// 'title':row.title,
+						'departmentName':row.departmentName,
+						'sort':row.sort,
+
+					})
+				}).then(({
+					data
+				}) => {
+					if(data.code==0){
+						this.$message({
+							message: '操作成功',
+							type: 'success',
+							duration: 1500,
+							onClose: () => {
+								// if(row.parentId==0){
+								// 	this.classSelect()
+								// }else{
+								// 	this.stationClass()
+								// 	this.stationClass2()
+								// }
+								this.dialogVisibleS = false
+							}
+						})
+					}else{
+							this.$message({
+								message: data.msg,
+								type: 'warning',
+								duration: 1500,
+								onClose: () => {
+									// if(row.parentId==0){
+									// 	this.classSelect()
+									// }else{
+									// 	this.stationClass()
+									// 	this.stationClass2()
+									// }
+								}
+							})
+						}
+
+				})
+			},
+			// 修改升级弹框
+			upgradebj(index, rows) {
+				this.dialogFormVisible4 = true;
+				this.formupgrad.androidWgtUrl = rows.androidWgtUrl;
+				this.formupgrad.id = rows.id;
+				this.formupgrad.iosWgtUrl = rows.iosWgtUrl;
+				this.formupgrad.wgtUrl = rows.wgtUrl;
+				this.formupgrad.version = rows.version;
+				this.formupgrad.iosVersion = rows.iosVersion;
+				this.formupgrad.des = rows.des;
+				this.formupgrad.method = rows.method;
+			},
+			// 修改升级
+			upgradbjTo() {
+				this.$http({
+					url: this.$http.adornUrl('appinfo/save'),
+					method: 'post',
+					data: this.$http.adornData({
+						'id': this.formupgrad.id,
+						'androidWgtUrl': this.formupgrad.androidWgtUrl,
+						'iosWgtUrl': this.formupgrad.iosWgtUrl,
+						'wgtUrl': this.formupgrad.wgtUrl,
+						'version': this.formupgrad.version,
+						'iosVersion': this.formupgrad.iosVersion,
+						'des': this.formupgrad.des,
+						'method': this.formupgrad.method,
+					})
+				}).then(({
+					data
+				}) => {
+					this.dialogFormVisible4 = false
+					this.$message({
+						message: '操作成功',
+						type: 'success',
+						duration: 1500,
+						onClose: () => {
+							this.upgradeSelect()
+						}
+					})
+				})
+			},
+			// 删除升级
+			upgradelete(row) {
+				let delid = row.id
+				this.id = delid
+				this.$confirm(`确定删除此条信息?`, '提示', {
+					confirmButtonText: '确定',
+					cancelButtonText: '取消',
+					type: 'warning'
+				}).then(() => {
+					this.$http({
+						url: this.$http.adornUrl(`appinfo/delete/${this.id}`),
+						method: 'get',
+						params: this.$http.adornParams({})
+					}).then(({
+						data
+					}) => {
+						this.$message({
+							message: '删除成功',
+							type: 'success',
+							duration: 1500,
+							onClose: () => {
+								this.name = '';
+								this.upgradeSelect()
+							}
+						})
+					})
+				}).catch(() => {})
+			},
+
+			// 升级配置数据列表
+			upgradeSelect() {
+				this.tableDataLoading = true
+				this.$http({
+					url: this.$http.adornUrl(`department/selectDepartmentList?page=${this.page}&limit=${this.limit}`),
+					method: 'get',
+					params: this.$http.adornParams({})
+				}).then(({
+					data
+				}) => {
+					this.tableDataLoading = false
+					let returnData = data.data;
+					this.upgradeData1 = returnData
+				})
+			},
+
+		},
+		mounted() {
+			console.log('···························')
+			this.upgradeSelect()
+		}
+	};
+</script>
+
+<style>
+	.customWidth {
+		width: 80% !important;
+	}
+
+	.adver_main.box {
+		display: block;
+		max-width: 100%;
+		text-align: center;
+		border: 1px dotted rgba(67, 79, 103, .4);
+	}
+
+	.cards {
+		padding: 0 8px;
+		margin-bottom: 15px;
+	}
+
+	.adver_main.box a {
+		display: flex;
+		justify-content: center;
+		height: 150px;
+		line-height: 150px;
+		text-decoration: none
+	}
+
+	.bannerManin {
+		border: 1px solid #e8e8e8;
+		font-size: 14px;
+		padding: 0 24px;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		height: 113px;
+		color: rgba(0, 0, 0, .65);
+	}
+
+	.bannerManin span {
+		display: inline-block;
+		margin-left: 5px;
+	}
+
+	.bannerManin img {
+		width: 48px;
+		height: 48px;
+		border-radius: 50%;
+	}
+
+	.bannerbtn {
+		display: flex;
+		border-top: none !important;
+		border: 1px solid #e8e8e8;
+		padding: 11px;
+		font-size: 14px;
+		color: #3E8EF7;
+	}
+
+	.bannerbtn a {
+		flex: 1;
+		text-align: center;
+		color: #3E8EF7 !important;
+		text-decoration: none;
+	}
+</style>

+ 138 - 290
src/views/recruit/postSkill.vue

@@ -1,7 +1,5 @@
 <template>
 	<div>
-		<!-- <el-tabs v-model="activeName" @tab-click="handleClick">
-			<el-tab-pane label="岗位分类" name="first"> -->
 				<div style="width: 100%;text-align: right;">
 					<el-button style="margin-bottom: 20px;" size="mini" type="primary" @click="cancel">刷新
 					</el-button>
@@ -11,13 +9,13 @@
 				</div>
 				<!-- 职业方向-->
 				<el-table v-loading="tableDataLoading" :data="tableData.records">
-					<el-table-column prop="postSkillId" label="编号" width="120">
+					<el-table-column prop="postSkillId" label="编号" width="160">
 					</el-table-column>
 					<el-table-column prop="postSkillName" label="职业方向">
 					</el-table-column>
 					<el-table-column prop="sort" label="排序">
 					</el-table-column>
-					<el-table-column prop="isEnable" label="状态">
+					<el-table-column prop="isEnable" label="状态" >
 						<template slot-scope="scope">
 							<el-switch v-model="scope.row.isEnable" @change="change(scope.row.postSkillId,scope.row.isEnable,scope.row)"
 								:disabled="!isAuth('positionList:update')" :active-value="openValue2"
@@ -25,9 +23,11 @@
 							</el-switch>
 						</template>
 					</el-table-column>
-					<el-table-column prop="ruleClassifyId" label="岗位ID" width="160">
+					<!-- <el-table-column prop="ruleClassifyId"  label="岗位ID" width="160">
+					</el-table-column> -->
+					<el-table-column prop="ruleClassifyName" label="岗位名称" >
 					</el-table-column>
-					<el-table-column prop="updateTime" label="更新时间" width="160">
+					<el-table-column prop="updateTime" label="更新时间" width="180">
 					</el-table-column>
 					<el-table-column label="操作" prop="id" width="150" fixed='right' align="center">
 						<template slot-scope="scope">
@@ -58,25 +58,28 @@
 					</el-button>
 				</div>
 				<el-table v-loading="tableDataLoading4" :data="stationList.records">
-					<el-table-column prop="ruleClassifyId" label="编号" width="80">
+					<el-table-column prop="postSkillId" label="编号" width="160">
 					</el-table-column>
-					<el-table-column prop="title" label="二级岗位名称" width="150">
+					<el-table-column prop="postSkillName" label="职业技能">
 					</el-table-column>
 					<el-table-column prop="sort" label="排序">
 					</el-table-column>
-					<el-table-column prop="status" label="状态">
+					<el-table-column prop="isEnable" label="状态">
 						<template slot-scope="scope">
-							<el-switch v-model="scope.row.status" @change="change(scope.row.ruleClassifyId,scope.row.status,scope.row)"
+							<el-switch v-model="scope.row.isEnable" @change="change(scope.row.postSkillId,scope.row.isEnable,scope.row)"
 								:disabled="!isAuth('positionList:update')" :active-value="openValue2"
 								:inactive-value="closeValue2" active-color="#13ce66" inactive-color="#ff4949">
 							</el-switch>
 						</template>
 					</el-table-column>
+					<!-- <el-table-column prop="ruleClassifyId" label="岗位ID" >
+					</el-table-column> -->
+					<el-table-column prop="ruleClassifyName" label="岗位名称" >
+					</el-table-column>
+					<el-table-column prop="updateTime" label="更新时间" width="180">
+					</el-table-column>
 					<el-table-column label="操作" fixed='right' width="180">
 						<template slot-scope="scope">
-							<!-- <el-button size="mini" type="primary" style="margin: 5px;"
-								@click="classList(scope.row,3)">三级岗位列表
-							</el-button> -->
 							<el-button size="mini" type="primary" :disabled="!isAuth('positionList:update')"
 								@click="classAdd(0,scope.row,2)">修改
 							</el-button>
@@ -93,63 +96,28 @@
 					</el-pagination>
 				</div>
 			</el-dialog>
-			   <!-- 三级岗位列表
-			<el-dialog title="三级岗位列表" :visible.sync="dialogVisibleS" width="70%" center>
-				<el-table v-loading="tableDataLoading4" :data="stationListS">
-					<el-table-column prop="ruleClassifyId" label="编号" width="80">
-					</el-table-column>
-					<el-table-column prop="ruleClassifyName" label="三级岗位名称" width="150">
-					</el-table-column>
-					<el-table-column prop="price" label="价格">
-					</el-table-column>
-					<el-table-column prop="memberPrice" label="会员价格">
-					</el-table-column>
-					<el-table-column prop="sort" label="排序">
-					</el-table-column>
-					<el-table-column prop="status" label="状态">
-						<template slot-scope="scope">
-							<el-switch v-model="scope.row.status" @change="change(scope.row.ruleClassifyId,scope.row.status,scope.row)"
-								:disabled="!isAuth('positionList:update')" :active-value="openValue2"
-								:inactive-value="closeValue2" 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" :disabled="!isAuth('positionList:update')"
-								@click="classAdd(0,scope.row,3)">修改
-							</el-button>
-							<el-button size="mini" type="danger" :disabled="!isAuth('positionList:delete')"
-								@click="stationDelete(scope.row)">删除
-							</el-button>
-						</template>
-					</el-table-column>
-				</el-table>
-			</el-dialog> -->
-			<!-- 添加、修改岗位岗位 -->
+			<!-- 添加、修改职业技能 -->
 			<el-dialog :title="titles" :visible.sync="dialogFormVisible9" center>
-				<!-- <div style="margin-bottom: 10px;" v-if="parentId!=0&&titles=='添加岗位'">
-					<span style="width: 200px;display: inline-block;text-align: right;">岗位类型:</span>
-					<el-radio-group v-model="gwType" >
-						<el-radio :label="1">二级岗位</el-radio>
-						<el-radio :label="2">三级岗位</el-radio>
-					</el-radio-group>
-				</div> -->
-				<!-- <div style="margin-bottom: 10px;" v-if="parentId!=0&&gwType==1">
-					<span style="width: 200px;display: inline-block;text-align: right;">分类标题:</span>
-					<el-input style="width:50%;" v-model="titleGw" type="text" disabled 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;">行业ID:</span>
-					<el-input style="width:50%;" v-model="ruleClassifyId" type="text" placeholder="请输入岗位名称"></el-input>
+				<div style="margin-bottom: 10px;position: relative;">
+					<div style="width: 200px;display: inline-block;text-align: right;position: absolute;top: 0;">所属岗位:</div>
+					<div class="ruleitem" style="display: inline-block;margin-left: 200px;">
+						<div>
+							<span>一级岗位分类:<el-radio v-for="(item,index) in yijiData" :key="index" v-model="yijiid"
+									:label="item.ruleClassifyId"
+									@change="yijiBtn(yijiid)">{{item.ruleClassifyName}}</el-radio></span>
+						</div>
+						<div v-if="yijiid!=''">
+							<span>二级级岗位分类:<el-radio v-for="(item,index) in erjiData" :key="index" v-model="erjiId"
+									:label="item.ruleClassifyId"
+									@change="erjiBtn(erjiId)">{{item.title}}</el-radio></span>
+						</div>
+						<div v-if="erjiId!=''">
+							<span>岗位名称:<el-radio v-for="(item,index) in sanjiData" :key="index" v-model="sanjiTypr"
+									:label="item.ruleClassifyId">{{item.ruleClassifyName}}</el-radio></span>
+						</div>
+					</div>
 				</div>
+
 				<div style="margin-bottom: 10px;" v-if="parentId==0">
 					<span style="width: 200px;display: inline-block;text-align: right;">职业方向名称:</span>
 					<el-input style="width:50%;" v-model="postSkillName" type="text" placeholder="请输入职业方向名称"></el-input>
@@ -158,15 +126,6 @@
 					<span style="width: 200px;display: inline-block;text-align: right;">职业技能名称:</span>
 					<el-input style="width:50%;" v-model="postSkillName" type="text" placeholder="请输入职业技能名称"></el-input>
 				</div>
-				<!-- <div style="margin-bottom: 10px;display:flex;" v-if="gwType==2">
-					<span style="width: 200px;display: inline-block;text-align: right;">价格:</span>
-					<el-input style="width:50%;" v-model="price" type="text" placeholder="请输入价格"></el-input>
-				</div>
-				<div style="margin-bottom: 10px;display:flex;" v-if="gwType==2">
-					<span style="width: 200px;display: inline-block;text-align: right;">会员价格:</span>
-					<el-input style="width:50%;" v-model="memberPrice" type="text" placeholder="请输入会员价格"></el-input>
-				</div> -->
-
 
 				<div style="margin-bottom: 10px;display:flex;">
 					<span style="width: 200px;display: inline-block;text-align: right;">排序:</span>
@@ -184,18 +143,6 @@
 					<el-button type="primary" @click="refuseto1()">确 定</el-button>
 				</div>
 			</el-dialog>
-			<!-- 添加、修改专业 -->
-			<el-dialog :title="titles" :visible.sync="dialogVisibleGw" center>
-				<div style="margin-bottom: 10px;">
-					<span style="width: 200px;display: inline-block;text-align: right;">专业名称:</span>
-					<el-input style="width:50%;" v-model="rulePostName" type="text" placeholder="请输入专业名称"></el-input>
-				</div>
-
-				<div slot="footer" class="dialog-footer">
-					<el-button @click="dialogVisibleGw = false">取 消</el-button>
-					<el-button type="primary" @click="refusetoList()">确 定</el-button>
-				</div>
-			</el-dialog>
 
 		<!-- </el-tabs> -->
 	</div>
@@ -222,37 +169,26 @@
 				dialogFormVisible9: false,
 				status: '', //状态0待审核  1上架  2下架 3驳回 (修改添加不传)
 				dialogVisible: false,
-				// dialogVisibleS:false,
-				dialogVisibleGw: false,
 				tableData: {},
 				titles: '添加服务分类',
-				renwuTitles: '添加服务',
-				// ruleClassifyName:'',
 				ruleClassifyId: '',
 				sort:1,
 				gameStatus: 1,
 				stationList:{},
-				stationListS:[],
-				rulePostId:'',//岗位id
-				rulePostName:'',//岗位名称
-				// price:'',//价格
-				// memberPrice:'',//会员价格
-				// accurateMemberPrice:'',//精准服务定制化价格
-				// customizationPrice:'',//定制化价格
-				// customizationMemberPrice:'',//定制化会员价格
-				// offlinePrice:'',
-				// offlineMemberPrice:'',
-				rulePostNameT:'',
 				postSkillId:'',
 				postSkillName:'',
-				classifyBy:1,
 				flname:'',
 				parentId:0,
-				// titleGw:'',
-				// gwType:0,
-				ejgwList:[],
 				parentIdEr:'',
 				postSkillIdT: '',
+				ruleClassifyName: '',
+				yijiid: '',
+				erjiId: '',
+				yijiData: [],
+				erjiData: [],
+				sanjiData: [],
+				erjiTypr: true,
+				sanjiTypr: '',
 			}
 		},
 		methods: {
@@ -318,39 +254,19 @@
 			// 添加服务分类
 			classAdd(index,row,jibie) {  // index 1添加职业方向 2添加职业技能, 0修改   // jibie 1职业方向 2职业技能
 				console.log(index,'row', row)
-
+				this.classSelectYiji();
 				if (index==0) {
 					this.titles = '修改职业方向'
 					this.postSkillName = row.postSkillName
 					this.postSkillId = row.postSkillId
 					this.sort = row.sort
-					// this.isEnable = row.isEnable
 					this.parentId = row.parentId;
 					this.gameStatus = row.isEnable
 					this.ruleClassifyId = row.ruleClassifyId
-					// this.ruleClassifyName = row.ruleClassifyName
-					// this.ruleClassifyId = row.ruleClassifyId
-					// this.price = row.price
-					// this.memberPrice = row.memberPrice
-					// this.accurateMemberPrice = row.accurateMemberPrice
-					// this.customizationPrice = row.customizationPrice
-					// this.customizationMemberPrice = row.customizationMemberPrice
-					// this.offlinePrice = row.offlinePrice
-					// this.offlineMemberPrice = row.offlineMemberPrice
-					
-					// this.parentId = row.parentId
-					// if(row.title){
-					// 	this.titleGw = row.title
-					// 	this.titles = '修改职业技能'
-					// }
+
 					if(jibie==2){
-						// this.gwType=1
-						// this.ruleClassifyName = row.title
 						this.titles = '修改职业技能'	
 					}
-					// if(jibie==3){
-					// 	this.gwType=2
-					// }
 
 				} else {
 					this.titles = '添加职业方向'
@@ -367,19 +283,88 @@
 					this.postSkillName = ''
 					this.sort = 1
 					this.gameStatus = 1
-					// this.ruleClassifyName = ''
-					// this.price = ''
-					// this.memberPrice = ''
-					// this.accurateMemberPrice = ''
-					// this.customizationPrice = ''
-					// this.customizationMemberPrice = ''
-					// this.offlinePrice = ''
-					// this.offlineMemberPrice = ''
-					// this.gwType=0
+
 				}
 				this.dialogFormVisible9 = true
 
 			},
+			// 获取一级岗位数据
+			classSelectYiji() {
+				this.$http({
+					url: this.$http.adornUrl('admin/rule/adminGetClassifyList'),
+					method: 'get',
+					params: this.$http.adornParams({
+
+					})
+				}).then(({
+					data
+				}) => {
+					if (data.code == 0) {
+						this.tableDataLoading = false
+						let returnData = data.data
+						this.yijiData = returnData.records
+						// this.erjiTypr = false
+						if (this.title == '修改') {
+							this.classSelectErT()
+						}
+					} else {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: data.msg,
+							type: 'warning'
+						});
+					}
+
+				})
+			},
+			// 获取二级岗位数据
+			classSelectErT() {
+				this.$http({
+					url: this.$http.adornUrl('admin/rule/adminGetParentId'),
+					method: 'get',
+					params: this.$http.adornParams({
+						'parentId': this.yijiid,
+						'industryName': '',
+					})
+				}).then(({
+					data
+				}) => {
+					if (data.code == 0) {
+						this.tableDataLoading = false
+						let returnData = data.data
+						this.erjiData = returnData.records
+					} else {
+						this.$notify({
+							title: '提示',
+							duration: 1800,
+							message: data.msg,
+							type: 'warning'
+						});
+					}
+
+				})
+			},
+			// 选择一级岗位分类
+			yijiBtn(yijiid) {
+				this.erjiId = ''
+				this.sanjiTypr = ''
+				this.classSelectErT()
+			},
+			// 选择二级岗位分类
+			erjiBtn(erjiId) {
+				this.sanjiTypr = ''
+				for (var i in this.erjiData) {
+					if (this.erjiId == this.erjiData[i].ruleClassifyId) {
+						if (this.erjiData[i].childrens) {
+							this.sanjiData = this.erjiData[i].childrens
+						} else {
+							this.sanjiData = []
+						}
+
+					}
+				}
+			},
 			// 启用与否
 			change(id, isEnable,row) {
 				this.$http({
@@ -408,9 +393,7 @@
 									this.classSelect()
 								}else{
 									this.stationClass()
-									this.stationClass2()
 								}
-								// this.dialogVisibleS = false
 							}
 						})
 					}else{
@@ -423,7 +406,7 @@
 										this.classSelect()
 									}else{
 										this.stationClass()
-										this.stationClass2()
+										// this.stationClass2()
 									}
 								}
 							})
@@ -433,35 +416,27 @@
 			},
 			// 提交修改、添加服务分类
 			refuseto1() {
-				// if (this.parentId!=0) {
-				// 	if (this.gwType == 0) {
-				// 		this.$notify({
-				// 			title: '提示',
-				// 			duration: 1800,
-				// 			message: '请选择岗位类型',
-				// 			type: 'warning'
-				// 		})
-				// 		return
-				// 	}
-				// }
-				if (this.ruleClassifyId == '') {
+
+				if (this.postSkillName == '' && this.parentId==0) {
 					this.$notify({
 						title: '提示',
 						duration: 1800,
-						message: '请输入岗位名称',
+						message: '请输入职业方向名称',
 						type: 'warning'
 					})
 					return
 				}
-				if (this.postSkillName == '' && this.parentId==0) {
+
+				if (this.sanjiTypr == '') {
 					this.$notify({
 						title: '提示',
 						duration: 1800,
-						message: '请输入职业方向名称',
+						message: '请选择所属岗位',
 						type: 'warning'
-					})
+					});
 					return
 				}
+
 				if (this.postSkillName == '' && this.parentId!=0) {
 					this.$notify({
 						title: '提示',
@@ -471,26 +446,6 @@
 					})
 					return
 				}
-				// if(this.parentId!=0&&this.gwType==2){
-				// 	if (this.price === '') {
-				// 		this.$notify({
-				// 			title: '提示',
-				// 			duration: 1800,
-				// 			message: '请输入价格',
-				// 			type: 'warning'
-				// 		})
-				// 		return
-				// 	}
-				// 	if (this.memberPrice === '') {
-				// 		this.$notify({
-				// 			title: '提示',
-				// 			duration: 1800,
-				// 			message: '请输入会员价格',
-				// 			type: 'warning'
-				// 		})
-				// 		return
-				// 	}
-				// }
 
 				if (this.sort === '') {
 					this.$notify({
@@ -501,18 +456,6 @@
 					})
 					return
 				}
-				// if(this.gwType==1&&this.parentId!==0){
-				// 	this.titleGw = this.ruleClassifyName
-				// 	this.ruleClassifyName = ''
-				// 	console.log('···········1')
-				// }else{
-				// 	this.titleGw = ''
-				// }
-				// if(this.gwType==2&&this.titles == '添加岗位'){
-				// 	var parentId = this.parentIdEr
-				// }else{
-				// 	var parentId = this.parentId
-				// }
 
 					if (this.titles == '添加职业方向' || this.titles == '添加职业技能') {
 						var urls = 'postSkill/addPostSkill'
@@ -522,15 +465,10 @@
 					this.$http({
 						url: this.$http.adornUrl(urls),
 						method: 'post',
-						// data: this.$http.adornData({
 						params: this.$http.adornParams({
-							// 'title':this.titleGw,
-							// 'ruleClassifyName': this.ruleClassifyName,
 							'isEnable': this.gameStatus,
 							'sort': this.sort,
-							'ruleClassifyId': this.ruleClassifyId,
-							// 'price': this.price,
-							// 'memberPrice': this.memberPrice,
+							'ruleClassifyId': this.sanjiTypr,
 							'parentId':this.parentId,
 							'postSkillName': this.postSkillName,
 							'postSkillId': this.postSkillId
@@ -549,9 +487,7 @@
 										this.classSelect()
 									}else{
 										this.stationClass()
-										this.stationClass2()
 									}
-									// this.dialogVisibleS = false
 								}
 							})
 						}else{
@@ -609,16 +545,10 @@
 			classList(row,index){
 
 				if(index==2){
-					// this.titleGw = row.ruleClassifyName
 					this.postSkillIdT = row.postSkillId
 					this.stationClass()
-					// this.stationClass2()
 					this.dialogVisible = true
 				}
-				// else{
-				// 	this.stationListS = row.childrens
-				// 	// this.dialogVisibleS = true
-				// }
 
 			},
 			stationlick(){
@@ -629,7 +559,7 @@
 			stationClass() {
         	this.tableDataLoading4 = true
 				this.$http({
-					url: this.$http.adornUrl('admin/rule/adminGetParentId'),
+					url: this.$http.adornUrl('postSkill/selectPostSkillList'),
 					method: 'get',
 					params: this.$http.adornParams({
 						'page': this.page1,
@@ -648,89 +578,7 @@
 					this.stationList = returnData
 				})
 			},
-			// 获取岗位列表2
-			stationClass2() {
-				this.$http({
-					url: this.$http.adornUrl('admin/rule/adminGetParentId'),
-					method: 'get',
-					params: this.$http.adornParams({
-						'page': 1,
-						'limit': 50,
-						'parentId': this.postSkillIdT
-					})
-				}).then(({
-					data
-				}) => {
-					let returnData = data.data
-					this.ejgwList = returnData.records
-				})
-			},
-			// 添加/修改岗位
-			stationAdd(row){
-				if (row) {
-					this.titles = '修改专业'
-					this.rulePostId = row.rulePostId
-					this.rulePostName = row.rulePostName
-
-
-				} else {
-					this.titles = '添加专业'
-					this.rulePostId = ''
-					this.rulePostName = ''
-
-				}
-				this.dialogVisibleGw = true
-			},
-			// 提交添加/修改岗位
-			refusetoList(){
-				if (this.rulePostName == '') {
-					this.$notify({
-						title: '提示',
-						duration: 1800,
-						message: '请输入岗位名称',
-						type: 'warning'
-					})
-					return
-				}
 
-					if (this.titles == '添加专业') {
-						var urls = 'rule/insertRulePost'
-					} else {
-						var urls = 'rule/updateRulePost'
-					}
-					this.$http({
-						url: this.$http.adornUrl(urls),
-						method: 'post',
-						data: this.$http.adornData({
-							'rulePostId': this.rulePostId,
-							'rulePostName': this.rulePostName,
-							'ruleClassifyId': this.ruleClassifyId,
-						})
-					}).then(({
-						data
-					}) => {
-						if(data.code==0){
-							this.dialogVisibleGw = false
-							this.$message({
-								message: '操作成功',
-								type: 'success',
-								duration: 1500,
-								onClose: () => {
-									this.stationClass()
-								}
-							})
-						}else{
-							this.$message({
-								message: data.msg,
-								type: 'warning',
-								duration: 1500,
-								onClose: () => {
-								}
-							})
-						}
-
-					})
-			},
 			// 删除岗位
 			stationDelete(row){
 				this.$confirm(`确定删除此条信息?`, '提示', {
@@ -739,10 +587,10 @@
 					type: 'warning'
 				}).then(() => {
 					this.$http({
-						url: this.$http.adornUrl('admin/rule/deleteClassify'),
+						url: this.$http.adornUrl('postSkill/deletePostSkill'),
 						method: 'get',
 						params: this.$http.adornParams({
-							'intentionId': row.ruleClassifyId
+							'postSkillId': row.postSkillId
 						})
 					}).then(({
 						data
@@ -754,7 +602,7 @@
 								duration: 1500,
 								onClose: () => {
 										this.stationClass()
-										this.stationClass2()
+										// this.stationClass2()
 									// this.dialogVisibleS = false
 								}
 							})