|
@@ -2,9 +2,9 @@
|
|
|
<div class="app-container">
|
|
|
<el-form ref="form" :model="cooperationsForm" :rules="rules" label-width="100px">
|
|
|
<el-form-item label="职位名称" prop="title">
|
|
|
- <el-input v-model="cooperationsForm.title" placeholder="请输入客户名称" clearable></el-input>
|
|
|
+ <el-input v-model="cooperationsForm.title" placeholder="请输入职位名称" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="职位图片" prop="image">
|
|
|
+ <el-form-item label="职位图片" required>
|
|
|
<el-upload ref="upload" action="customize" :http-request="uploadDiscardFile" :limit="1" :before-remove="beforeRemove">
|
|
|
<el-button size="small" type="primary" :loading="loading">上传一张图片</el-button>
|
|
|
</el-upload>
|
|
@@ -45,35 +45,18 @@
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- //打开对话框
|
|
|
- openDialog(isEdit, index) {
|
|
|
- this.editing = isEdit;
|
|
|
- if (this.editing) {
|
|
|
- this.cooperationsForm.id = this.cooperations[index].id;
|
|
|
- this.cooperationsForm.title = this.cooperations[index].companyName;
|
|
|
- this.cooperationsForm.title1 = this.cooperations[index].companyName;
|
|
|
- this.cooperationsForm.introduction = this.cooperations[index].description;
|
|
|
- this.cooperationsForm.image = null;
|
|
|
- } else {
|
|
|
- this.cooperationsForm.id = null;
|
|
|
- this.cooperationsForm.title = "";
|
|
|
- this.cooperationsForm.title1 = "";
|
|
|
- this.cooperationsForm.introduction = "";
|
|
|
- this.cooperationsForm.image = null;
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
//获取合作信息
|
|
|
getCooperations() {
|
|
|
- this.loading = true;
|
|
|
request({
|
|
|
- url: "/feedback/listFeedback",
|
|
|
+ url: "/recruitment/get",
|
|
|
method: "post",
|
|
|
- params: {pageIndex:1,pageSize: 9999999}
|
|
|
+ params: {id: this.id}
|
|
|
})
|
|
|
.then(response => {
|
|
|
- this.cooperations = response.data;
|
|
|
- this.loading = false;
|
|
|
+ this.cooperationsForm.id = response.data.id;
|
|
|
+ this.cooperationsForm.title = response.data.title;
|
|
|
+ this.cooperationsForm.introduction = response.data.content;
|
|
|
+ this.cooperationsForm.image = null;
|
|
|
})
|
|
|
.catch(error => {
|
|
|
this.$message({
|
|
@@ -93,7 +76,7 @@
|
|
|
form.append("title", this.cooperationsForm.title);
|
|
|
form.append("content", this.cooperationsForm.introduction);
|
|
|
if (this.cooperationsForm.image == null && this.editing == false) {
|
|
|
- this.loading =false;
|
|
|
+ this.loading = false;
|
|
|
this.$message({
|
|
|
message: "尚未上传图片",
|
|
|
type: "error"
|