Explorar el Código

导入岗位和岗位技能

corn hace 7 meses
padre
commit
33c19ddbf2
Se han modificado 1 ficheros con 12 adiciones y 14 borrados
  1. 12 14
      src/views/recruit/postSkill.vue

+ 12 - 14
src/views/recruit/postSkill.vue

@@ -744,28 +744,26 @@
 					// 获取选中的文件
 					const file = this.fileList[0].raw
 					// 调用导入接口
-					// const res = await importExcel(file)
 					const formData = new FormData()
 					formData.append('file', file)
 					this.$http({
-						url: this.$http.adornUrl('admin/rule/import'),
+						// url: this.$http.adornUrl('admin/rule/importRuleClassify'),
+						url: this.$http.adornUrl('postSkill/importPostSkill'),
 						method: 'post',
 						data: formData
 					}).then(({
 						data
 					}) => {
-						if(data.code==0){
-							this.$message({
-								message: '删除成功',
-								type: 'success',
-								duration: 1500,
-								onClose: () => {
-										this.stationClass()
-										// this.stationClass2()
-									// this.dialogVisibleS = false
-								}
-							})
-						}
+						this.$message({
+							message: data.msg,
+							type: 'success',
+							duration: 1500,
+							onClose: () => {
+									this.stationClass()
+									// this.stationClass2()
+								// this.dialogVisibleS = false
+							}
+						})
 
 					})