diff --git a/src/api/manage/station.js b/src/api/manage/station.js
index ab18708..f2914a0 100644
--- a/src/api/manage/station.js
+++ b/src/api/manage/station.js
@@ -101,3 +101,26 @@ export const stationModify =
data: params
})
}
+
+ export const getEnterpriseList = (params) => request({
+ url: '/api/jobslink-api/tenant/company/allInviteCompany',
+ method: 'get',
+ params
+ })
+
+ export const saveEnterpriseItem = (params) => request({
+ url: '/api/jobslink-api/tenant/invite/save',
+ method: 'post',
+ data: params
+ })
+ export const getInvitationCodeList = (params) => request({
+ url: '/api/jobslink-api/tenant/invite/list',
+ method: 'get',
+ params
+ })
+
+ export const getInvitationStatusUpdate = (params) => request({
+ url: '/api/jobslink-api/tenant/invite/update',
+ method: 'post',
+ data: params
+ })
diff --git a/src/api/resource/oss.js b/src/api/resource/oss.js
index 87ad767..d120f38 100644
--- a/src/api/resource/oss.js
+++ b/src/api/resource/oss.js
@@ -55,8 +55,8 @@ export const enable =
})
}
-export const putFile =
- `/api/jobslink-api/resource/file/save?Jobslink-Auth=${getToken()}?bussinessType=11`
+export const putFile = (type) => `/api/jobslink-api/resource/file/save?Jobslink-Auth=${getToken()}?bussinessType=${type || 11}`
+
export const putFileFun = (file, onUploadProgress) => {
const data = new FormData();
diff --git a/src/api/tenant/company.js b/src/api/tenant/company.js
index c8aa7d7..29e6abc 100644
--- a/src/api/tenant/company.js
+++ b/src/api/tenant/company.js
@@ -37,4 +37,4 @@ export const getBaseDetail = () => {
})
}
-export const putFile = `/api/jobslink-api/resource/oss/endpoint/put-file?Jobslink-Auth=${getToken()}`
+export const putFile = () => `/api/jobslink-api/resource/oss/endpoint/put-file?Jobslink-Auth=${getToken()}`
diff --git a/src/views/desk/notice.vue b/src/views/desk/notice.vue
index a83d64a..3b53881 100644
--- a/src/views/desk/notice.vue
+++ b/src/views/desk/notice.vue
@@ -192,7 +192,7 @@ export default {
prop: "content",
component: "AvueUeditor",
options: {
- action: putFile,
+ action: putFile(),
props: {
url: "msg",
},
diff --git a/src/views/manage/advertisement/advertisementBody.vue b/src/views/manage/advertisement/advertisementBody.vue
index db0c506..a7c50dd 100644
--- a/src/views/manage/advertisement/advertisementBody.vue
+++ b/src/views/manage/advertisement/advertisementBody.vue
@@ -154,7 +154,7 @@ export default {
label: "广告图",
prop: "image",
type: "upload",
- action: putFile,
+ action: putFile(),
span: 12,
showFileList: false,
listType: "picture-img",
diff --git a/src/views/manage/company/companyCheck.vue b/src/views/manage/company/companyCheck.vue
index be778cd..885be63 100644
--- a/src/views/manage/company/companyCheck.vue
+++ b/src/views/manage/company/companyCheck.vue
@@ -91,7 +91,7 @@ export default {
loading: false,
visible: false,
operation: false,
- mutiPutFile:putFile,
+ mutiPutFile: putFile(),
form: { serveCost: 0, serveUnit: 0 },
wageUnitCategory: {
0: "元/人·次",
@@ -249,7 +249,7 @@ export default {
},
size: "small",
prop: "authUrlId",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
rules: [
{
@@ -277,7 +277,7 @@ export default {
tip: '上传图片大小限制2M以内',
size: "small",
prop: "identityUrl4Id",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
rules: [
{
@@ -304,7 +304,7 @@ export default {
tip: '上传图片大小限制2M以内',
size: "small",
prop: "identityUrl5Id",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
rules: [
{
@@ -331,7 +331,7 @@ export default {
tip: '上传图片大小限制2M以内',
size: "small",
prop: "signSrcUrl",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
rules: [
{
@@ -358,7 +358,7 @@ export default {
tip: '上传图片大小限制2M以内',
size: "small",
prop: "letterOfAttorneyUrl",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
rules: [
{
diff --git a/src/views/manage/company/companyList.vue b/src/views/manage/company/companyList.vue
index 82d41c7..5079994 100644
--- a/src/views/manage/company/companyList.vue
+++ b/src/views/manage/company/companyList.vue
@@ -191,7 +191,7 @@ export default {
value: 2,
},
],
- mutiPutFile: putFile,
+ mutiPutFile: putFile(),
imgList: [],
form: {},
selectionList: [],
@@ -596,7 +596,7 @@ export default {
// accept,
// size: "small",
// prop: "identityUrl4Id",
- // action: putFile,
+ // action: putFile(),
// viewDisplay: false,
// rules: [
// {
@@ -623,7 +623,7 @@ export default {
// accept,
// size: "small",
// prop: "identityUrl5Id",
- // action: putFile,
+ // action: putFile(),
// viewDisplay: false,
// rules: [
// {
@@ -650,7 +650,7 @@ export default {
// data: [],
// size: "small",
// prop: "authUrlId",
- // action: putFile,
+ // action: putFile(),
// viewDisplay: false,
// rules: [
// {
@@ -678,7 +678,7 @@ export default {
// data: [],
// size: "small",
// prop: "signSrcUrl",
- // action: putFile,
+ // action: putFile(),
// viewDisplay: false,
// rules: [
// {
@@ -705,7 +705,7 @@ export default {
// accept,
// size: "small",
// prop: "letterOfAttorneyUrl",
- // action: putFile,
+ // action: putFile(),
// viewDisplay: false,
// rules: [
// {
diff --git a/src/views/manage/company/examineDialog/ExamineDialog.vue b/src/views/manage/company/examineDialog/ExamineDialog.vue
index 24b2f27..38a9b43 100644
--- a/src/views/manage/company/examineDialog/ExamineDialog.vue
+++ b/src/views/manage/company/examineDialog/ExamineDialog.vue
@@ -1,10 +1,10 @@
-
-
-
+
下载全部
- {
-
+
});
}else{
review(this.companyId,status,'').then((res) => {
@@ -443,10 +443,10 @@ export default {
this.$emit("refresh")
});
}
-
+
},
/*多张图片上传*/
-
+
handleImgLimit(){
this.$message.warning('当前最多上传4张图片');
},
@@ -466,7 +466,7 @@ export default {
else{
this.$message.error('上传失败');
}
-
+
},
handleImgRemove(file){
let index=0;
@@ -535,8 +535,8 @@ export default {
})
});
this.getConfig();
-
-
+
+
},
handleClick(tab, event) {
console.log(tab, event);
@@ -586,11 +586,11 @@ export default {
line-height: 50px;
}
.examineDialog .serviceInfo li div{
- width: 60%;
- margin-left: 20px;
+ width: 60%;
+ margin-left: 20px;
}
.examineDialog .serviceInfo li span{
- color: #409EFF;
+ color: #409EFF;
}
.examineDialog .serviceChargeInfo .tips{
line-height: 30px;
diff --git a/src/views/manage/company/examineDialog/ExamineDialogSus.vue b/src/views/manage/company/examineDialog/ExamineDialogSus.vue
index 91a8ebe..0d4e3ef 100644
--- a/src/views/manage/company/examineDialog/ExamineDialogSus.vue
+++ b/src/views/manage/company/examineDialog/ExamineDialogSus.vue
@@ -1,10 +1,10 @@
-
- 保存
下载全部
-
-
+
+
- 保存
下载全部
-
+
@@ -354,7 +354,7 @@ export default {
tenantId: null,
serviceData: [],
record:[],
- mutiPutFile:putFile,
+ mutiPutFile: putFile(),
imgList:[],
option: {
labelWidth: 200,
@@ -377,7 +377,7 @@ export default {
accept,
size: "small",
prop: "identityUrl4Id",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
rules: [
{
@@ -403,7 +403,7 @@ export default {
accept,
size: "small",
prop: "identityUrl5Id",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
rules: [
{
@@ -430,7 +430,7 @@ export default {
data: [],
size: "small",
prop: "authUrlId",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
rules: [
{
@@ -440,7 +440,7 @@ export default {
],
// tip:'上传图片大小限制2M以内',
},
-
+
{
type: "upload",
label: "授权委托书",
@@ -458,7 +458,7 @@ export default {
accept,
size: "small",
prop: "letterOfAttorneyUrl",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
rules: [
{
@@ -504,7 +504,7 @@ export default {
data: [],
size: "small",
prop: "signSrcUrl",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
rules: [
{
@@ -531,7 +531,7 @@ export default {
accept,
size: "small",
prop: "templateUrl",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
rules: [
{
@@ -621,7 +621,7 @@ export default {
this.$emit('refresh')
}else{
this.$message.error(res.data.msg)
- }
+ }
})
})
.catch(() => {});
@@ -686,7 +686,7 @@ export default {
// this.$message({
// type: 'info',
// message: '已取消删除'
- // });
+ // });
});
}else{
if(row.type == 3 && row.value == 1){
@@ -707,7 +707,7 @@ export default {
// this.$message({
// type: 'info',
// message: '已取消删除'
- // });
+ // });
});
}else{
setConfig(data)
@@ -719,9 +719,9 @@ export default {
this.getConfig();
});
}
-
+
}
-
+
},
/*免缴保证金*/
configPay(row, type) {
@@ -753,7 +753,7 @@ export default {
if(formName){
this.$refs[formName].validate((valid) => {
if (valid) {
- this.saveUpdate(flag);
+ this.saveUpdate(flag);
} else {
console.log('error submit!!');
return false;
@@ -762,8 +762,8 @@ export default {
}else{
this.saveUpdate(flag);
}
-
-
+
+
},
saveUpdate(flag){
this.companyInfo.authUrlId = getPath(this.companyInfo.authUrlId);
@@ -772,7 +772,7 @@ export default {
this.companyInfo.remarks = '修改';
update(this.companyInfo).then(
() => {
- this.openDialog(this.row);
+ this.openDialog(this.row);
this.$message({
type: "success",
message: "操作成功!",
@@ -791,7 +791,7 @@ export default {
this.openDialog(this.row,this.entranceFlag);
this[flag] = true;
this.btnShowFlag = false;
-
+
},
//终止合作
stopHandelClick(){
@@ -808,14 +808,14 @@ export default {
this.$emit('refresh')
}else{
this.$message.error(res.data.msg)
- }
+ }
})
}).catch(() => {
-
+
});
},
/*多张图片上传*/
-
+
handleImgLimit(){
this.$message.warning('当前最多上传4张图片');
},
@@ -835,7 +835,7 @@ export default {
else{
this.$message.error('上传失败');
}
-
+
},
handleImgRemove(file){
let index=0;
@@ -905,8 +905,8 @@ export default {
})
});
this.getConfig();
-
-
+
+
},
handleClick(tab, event) {
console.log(tab, event);
@@ -995,11 +995,11 @@ export default {
line-height: 50px;
}
.examineDialog .serviceInfo li div{
- width: 60%;
- margin-left: 20px;
+ width: 60%;
+ margin-left: 20px;
}
.examineDialog .serviceInfo li span{
- color: #409EFF;
+ color: #409EFF;
}
.examineDialog .serviceChargeInfo .tips{
line-height: 30px;
diff --git a/src/views/manage/company/examineDialog/checkDialog.vue b/src/views/manage/company/examineDialog/checkDialog.vue
index 281002d..f666f13 100644
--- a/src/views/manage/company/examineDialog/checkDialog.vue
+++ b/src/views/manage/company/examineDialog/checkDialog.vue
@@ -339,7 +339,7 @@ export default {
},
imgList:[],
showMore: false,
- mutiPutFile:putFile,
+ mutiPutFile: putFile(),
option: {
labelWidth: 200,
menuBtn:false,
@@ -511,7 +511,7 @@ export default {
accept,
size: "small",
prop: "identityUrl4Id",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
},
{
@@ -531,7 +531,7 @@ export default {
accept,
size: "small",
prop: "identityUrl5Id",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
// tip:'上传图片大小限制2M以内',
},
@@ -552,7 +552,7 @@ export default {
data: [],
size: "small",
prop: "authUrlId",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
// tip:'上传图片大小限制2M以内',
},
@@ -573,7 +573,7 @@ export default {
accept,
size: "small",
prop: "letterOfAttorneyUrl",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
// tip:'上传图片大小限制2M以内',
},
@@ -594,7 +594,7 @@ export default {
data: [],
size: "small",
prop: "signSrcUrl",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
// tip:'上传图片大小限制2M以内',
},
@@ -615,7 +615,7 @@ export default {
accept,
size: "small",
prop: "templateUrl",
- action: putFile,
+ action: putFile(),
viewDisplay: false,
// tip:'上传图片大小限制2M以内',
},
diff --git a/src/views/manage/jlhome/article/allArticle/addNews.vue b/src/views/manage/jlhome/article/allArticle/addNews.vue
index f3e3ade..785362b 100644
--- a/src/views/manage/jlhome/article/allArticle/addNews.vue
+++ b/src/views/manage/jlhome/article/allArticle/addNews.vue
@@ -159,7 +159,7 @@
label: "首页图",
prop: "headPic",
type: "upload",
- action: putFile,
+ action: putFile(),
span: 12,
showFileList: false,
listType: "picture-img",
diff --git a/src/views/manage/jlhome/news/addNews.vue b/src/views/manage/jlhome/news/addNews.vue
index fb7ec54..7f6bd46 100644
--- a/src/views/manage/jlhome/news/addNews.vue
+++ b/src/views/manage/jlhome/news/addNews.vue
@@ -136,7 +136,7 @@
label: "首页图",
prop: "headPic",
type: "upload",
- action: putFile,
+ action: putFile(),
span: 12,
showFileList: false,
listType: "picture-img",
diff --git a/src/views/manage/station/inviteCode.vue b/src/views/manage/station/inviteCode.vue
index 354a6e1..cedf659 100644
--- a/src/views/manage/station/inviteCode.vue
+++ b/src/views/manage/station/inviteCode.vue
@@ -2,597 +2,229 @@
- {{ row.status }}
批量上传
- 分配邀请码
+ >新增邀请码
-
- 绑定
+
+
+
+
-
-
-
- 点击下载
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ v-for="item in enterpriseList"
+ :key="item.id"
+ :label="item.companyName"
+ :value="item.id">
-
- 5
- 10
+
+
+
+
+
+
+
+
-
-
-
-
您当前选择了 {{inviteCodeForm.count}} 条邀请码,确定分配给 {{inviteCodeFormName}} 吗?
-
-
-
-
diff --git a/src/views/manage/station/mainList.vue b/src/views/manage/station/mainList.vue
index 5fb81c0..cd4f1c6 100644
--- a/src/views/manage/station/mainList.vue
+++ b/src/views/manage/station/mainList.vue
@@ -19,15 +19,15 @@
@refresh-change="refreshChange"
@on-load="onLoad"
>
-
- 终止合作
-
+
+
+
+
+
+
+
+
+
@@ -304,8 +304,8 @@ export default {
listType: "picture-img",
multiple: false,
propsHttp: {
- res: "data",
- url: "link",
+ // res: "data",
+ url: "msg",
},
canvasOption: {},
headers: [],
@@ -313,7 +313,7 @@ export default {
accept,
size: "small",
prop: "identityUrl4Id",
- action: putFile,
+ action: putFile(5),
viewDisplay: false,
},
{
@@ -324,8 +324,8 @@ export default {
listType: "picture-img",
multiple: false,
propsHttp: {
- res: "data",
- url: "link",
+ // res: "data",
+ url: "msg",
},
canvasOption: {},
headers: [],
@@ -333,7 +333,7 @@ export default {
accept,
size: "small",
prop: "identityUrl5Id",
- action: putFile,
+ action: putFile(5),
viewDisplay: false,
},
{
@@ -344,8 +344,8 @@ export default {
listType: "picture-img",
multiple: false,
propsHttp: {
- res: "data",
- url: "link",
+ // res: "data",
+ url: "msg",
},
accept,
canvasOption: {},
@@ -353,7 +353,7 @@ export default {
data: [],
size: "small",
prop: "authUrlId",
- action: putFile,
+ action: putFile(5),
viewDisplay: false,
},
// 图片预览
@@ -468,7 +468,7 @@ export default {
percent: row.percent,
stationId: row.stationId,
telphone: row.telphone,
- authType: 2
+ authType: 0
}).then(
() => {
this.$message({
@@ -502,7 +502,7 @@ export default {
this.loading = true;
var params = {
id: this.form.id,
- authType: 2
+ authType: 0
}
companyDetail(params).then((res) => {
this.loading = false;
@@ -553,7 +553,7 @@ export default {
var params = {
companyId: row.id,
flag: 0,
- authType: 2
+ authType: 0
}
stationStop(params)
.then(() => {
diff --git a/src/views/tenant/main/policy/index.vue b/src/views/tenant/main/policy/index.vue
index 9852459..ccce405 100644
--- a/src/views/tenant/main/policy/index.vue
+++ b/src/views/tenant/main/policy/index.vue
@@ -502,7 +502,7 @@ export default {
// prop: "headPic",
// type: "upload",
// hide: true,
- // action: putFile,
+ // action: putFile(),
// span: 12,
// showFileList: false,
// listType: "picture-img",
@@ -526,7 +526,7 @@ export default {
// prop: "headPic",
// type: "upload",
// hide: true,
- // action: putFile,
+ // action: putFile(),
// span: 12,
// showFileList: false,
// listType: "picture-img",
diff --git a/vue.config.js b/vue.config.js
index 684f0d2..2b04951 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -24,9 +24,9 @@ module.exports = {
proxy: {
"/api": {
// target: 'http://localhost:8000', // 本地服务接口地址
- target: "http://39.98.184.58:8000", // 阿里云后台地址
+ // target: "http://39.98.184.58:8000", // 阿里云后台地址
// target: "http://192.168.3.104:8000", // 本地
- // target: 'http://192.168.3.111:8000',
+ target: 'http://192.168.3.111:8000',
ws: true,
changeOrigin: true,
pathRewrite: {