flat: 邀请码暂存
This commit is contained in:
@@ -101,3 +101,26 @@ export const stationModify =
|
|||||||
data: params
|
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
|
||||||
|
})
|
||||||
|
|||||||
@@ -55,8 +55,8 @@ export const enable =
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export const putFile =
|
export const putFile = (type) => `/api/jobslink-api/resource/file/save?Jobslink-Auth=${getToken()}?bussinessType=${type || 11}`
|
||||||
`/api/jobslink-api/resource/file/save?Jobslink-Auth=${getToken()}?bussinessType=11`
|
|
||||||
|
|
||||||
export const putFileFun = (file, onUploadProgress) => {
|
export const putFileFun = (file, onUploadProgress) => {
|
||||||
const data = new FormData();
|
const data = new FormData();
|
||||||
|
|||||||
@@ -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()}`
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ export default {
|
|||||||
prop: "content",
|
prop: "content",
|
||||||
component: "AvueUeditor",
|
component: "AvueUeditor",
|
||||||
options: {
|
options: {
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
props: {
|
props: {
|
||||||
url: "msg",
|
url: "msg",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ export default {
|
|||||||
label: "广告图",
|
label: "广告图",
|
||||||
prop: "image",
|
prop: "image",
|
||||||
type: "upload",
|
type: "upload",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
span: 12,
|
span: 12,
|
||||||
showFileList: false,
|
showFileList: false,
|
||||||
listType: "picture-img",
|
listType: "picture-img",
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ export default {
|
|||||||
loading: false,
|
loading: false,
|
||||||
visible: false,
|
visible: false,
|
||||||
operation: false,
|
operation: false,
|
||||||
mutiPutFile:putFile,
|
mutiPutFile: putFile(),
|
||||||
form: { serveCost: 0, serveUnit: 0 },
|
form: { serveCost: 0, serveUnit: 0 },
|
||||||
wageUnitCategory: {
|
wageUnitCategory: {
|
||||||
0: "元/人·次",
|
0: "元/人·次",
|
||||||
@@ -249,7 +249,7 @@ export default {
|
|||||||
},
|
},
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "authUrlId",
|
prop: "authUrlId",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -277,7 +277,7 @@ export default {
|
|||||||
tip: '上传图片大小限制2M以内',
|
tip: '上传图片大小限制2M以内',
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "identityUrl4Id",
|
prop: "identityUrl4Id",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -304,7 +304,7 @@ export default {
|
|||||||
tip: '上传图片大小限制2M以内',
|
tip: '上传图片大小限制2M以内',
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "identityUrl5Id",
|
prop: "identityUrl5Id",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -331,7 +331,7 @@ export default {
|
|||||||
tip: '上传图片大小限制2M以内',
|
tip: '上传图片大小限制2M以内',
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "signSrcUrl",
|
prop: "signSrcUrl",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -358,7 +358,7 @@ export default {
|
|||||||
tip: '上传图片大小限制2M以内',
|
tip: '上传图片大小限制2M以内',
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "letterOfAttorneyUrl",
|
prop: "letterOfAttorneyUrl",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ export default {
|
|||||||
value: 2,
|
value: 2,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
mutiPutFile: putFile,
|
mutiPutFile: putFile(),
|
||||||
imgList: [],
|
imgList: [],
|
||||||
form: {},
|
form: {},
|
||||||
selectionList: [],
|
selectionList: [],
|
||||||
@@ -596,7 +596,7 @@ export default {
|
|||||||
// accept,
|
// accept,
|
||||||
// size: "small",
|
// size: "small",
|
||||||
// prop: "identityUrl4Id",
|
// prop: "identityUrl4Id",
|
||||||
// action: putFile,
|
// action: putFile(),
|
||||||
// viewDisplay: false,
|
// viewDisplay: false,
|
||||||
// rules: [
|
// rules: [
|
||||||
// {
|
// {
|
||||||
@@ -623,7 +623,7 @@ export default {
|
|||||||
// accept,
|
// accept,
|
||||||
// size: "small",
|
// size: "small",
|
||||||
// prop: "identityUrl5Id",
|
// prop: "identityUrl5Id",
|
||||||
// action: putFile,
|
// action: putFile(),
|
||||||
// viewDisplay: false,
|
// viewDisplay: false,
|
||||||
// rules: [
|
// rules: [
|
||||||
// {
|
// {
|
||||||
@@ -650,7 +650,7 @@ export default {
|
|||||||
// data: [],
|
// data: [],
|
||||||
// size: "small",
|
// size: "small",
|
||||||
// prop: "authUrlId",
|
// prop: "authUrlId",
|
||||||
// action: putFile,
|
// action: putFile(),
|
||||||
// viewDisplay: false,
|
// viewDisplay: false,
|
||||||
// rules: [
|
// rules: [
|
||||||
// {
|
// {
|
||||||
@@ -678,7 +678,7 @@ export default {
|
|||||||
// data: [],
|
// data: [],
|
||||||
// size: "small",
|
// size: "small",
|
||||||
// prop: "signSrcUrl",
|
// prop: "signSrcUrl",
|
||||||
// action: putFile,
|
// action: putFile(),
|
||||||
// viewDisplay: false,
|
// viewDisplay: false,
|
||||||
// rules: [
|
// rules: [
|
||||||
// {
|
// {
|
||||||
@@ -705,7 +705,7 @@ export default {
|
|||||||
// accept,
|
// accept,
|
||||||
// size: "small",
|
// size: "small",
|
||||||
// prop: "letterOfAttorneyUrl",
|
// prop: "letterOfAttorneyUrl",
|
||||||
// action: putFile,
|
// action: putFile(),
|
||||||
// viewDisplay: false,
|
// viewDisplay: false,
|
||||||
// rules: [
|
// rules: [
|
||||||
// {
|
// {
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ export default {
|
|||||||
tenantId: null,
|
tenantId: null,
|
||||||
serviceData: [],
|
serviceData: [],
|
||||||
record:[],
|
record:[],
|
||||||
mutiPutFile:putFile,
|
mutiPutFile: putFile(),
|
||||||
imgList:[],
|
imgList:[],
|
||||||
option: {
|
option: {
|
||||||
labelWidth: 200,
|
labelWidth: 200,
|
||||||
@@ -217,7 +217,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "identityUrl4Id",
|
prop: "identityUrl4Id",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -244,7 +244,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "identityUrl5Id",
|
prop: "identityUrl5Id",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -272,7 +272,7 @@ export default {
|
|||||||
data: [],
|
data: [],
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "authUrlId",
|
prop: "authUrlId",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -301,7 +301,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "letterOfAttorneyUrl",
|
prop: "letterOfAttorneyUrl",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -349,7 +349,7 @@ export default {
|
|||||||
data: [],
|
data: [],
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "signSrcUrl",
|
prop: "signSrcUrl",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
|
|
||||||
rules: [
|
rules: [
|
||||||
@@ -378,7 +378,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "templateUrl",
|
prop: "templateUrl",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -354,7 +354,7 @@ export default {
|
|||||||
tenantId: null,
|
tenantId: null,
|
||||||
serviceData: [],
|
serviceData: [],
|
||||||
record:[],
|
record:[],
|
||||||
mutiPutFile:putFile,
|
mutiPutFile: putFile(),
|
||||||
imgList:[],
|
imgList:[],
|
||||||
option: {
|
option: {
|
||||||
labelWidth: 200,
|
labelWidth: 200,
|
||||||
@@ -377,7 +377,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "identityUrl4Id",
|
prop: "identityUrl4Id",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -403,7 +403,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "identityUrl5Id",
|
prop: "identityUrl5Id",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -430,7 +430,7 @@ export default {
|
|||||||
data: [],
|
data: [],
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "authUrlId",
|
prop: "authUrlId",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -458,7 +458,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "letterOfAttorneyUrl",
|
prop: "letterOfAttorneyUrl",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -504,7 +504,7 @@ export default {
|
|||||||
data: [],
|
data: [],
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "signSrcUrl",
|
prop: "signSrcUrl",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -531,7 +531,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "templateUrl",
|
prop: "templateUrl",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ export default {
|
|||||||
},
|
},
|
||||||
imgList:[],
|
imgList:[],
|
||||||
showMore: false,
|
showMore: false,
|
||||||
mutiPutFile:putFile,
|
mutiPutFile: putFile(),
|
||||||
option: {
|
option: {
|
||||||
labelWidth: 200,
|
labelWidth: 200,
|
||||||
menuBtn:false,
|
menuBtn:false,
|
||||||
@@ -511,7 +511,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "identityUrl4Id",
|
prop: "identityUrl4Id",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -531,7 +531,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "identityUrl5Id",
|
prop: "identityUrl5Id",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
// tip:'上传图片大小限制2M以内',
|
// tip:'上传图片大小限制2M以内',
|
||||||
},
|
},
|
||||||
@@ -552,7 +552,7 @@ export default {
|
|||||||
data: [],
|
data: [],
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "authUrlId",
|
prop: "authUrlId",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
// tip:'上传图片大小限制2M以内',
|
// tip:'上传图片大小限制2M以内',
|
||||||
},
|
},
|
||||||
@@ -573,7 +573,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "letterOfAttorneyUrl",
|
prop: "letterOfAttorneyUrl",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
// tip:'上传图片大小限制2M以内',
|
// tip:'上传图片大小限制2M以内',
|
||||||
},
|
},
|
||||||
@@ -594,7 +594,7 @@ export default {
|
|||||||
data: [],
|
data: [],
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "signSrcUrl",
|
prop: "signSrcUrl",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
// tip:'上传图片大小限制2M以内',
|
// tip:'上传图片大小限制2M以内',
|
||||||
},
|
},
|
||||||
@@ -615,7 +615,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "templateUrl",
|
prop: "templateUrl",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
// tip:'上传图片大小限制2M以内',
|
// tip:'上传图片大小限制2M以内',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -159,7 +159,7 @@
|
|||||||
label: "首页图",
|
label: "首页图",
|
||||||
prop: "headPic",
|
prop: "headPic",
|
||||||
type: "upload",
|
type: "upload",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
span: 12,
|
span: 12,
|
||||||
showFileList: false,
|
showFileList: false,
|
||||||
listType: "picture-img",
|
listType: "picture-img",
|
||||||
|
|||||||
@@ -136,7 +136,7 @@
|
|||||||
label: "首页图",
|
label: "首页图",
|
||||||
prop: "headPic",
|
prop: "headPic",
|
||||||
type: "upload",
|
type: "upload",
|
||||||
action: putFile,
|
action: putFile(),
|
||||||
span: 12,
|
span: 12,
|
||||||
showFileList: false,
|
showFileList: false,
|
||||||
listType: "picture-img",
|
listType: "picture-img",
|
||||||
|
|||||||
@@ -2,597 +2,229 @@
|
|||||||
<basic-container>
|
<basic-container>
|
||||||
<avue-crud
|
<avue-crud
|
||||||
ref="crud"
|
ref="crud"
|
||||||
:option="option"
|
@date-change="dateChange"
|
||||||
:data="data"
|
|
||||||
@on-load="onLoad"
|
|
||||||
:page.sync="page"
|
|
||||||
:permission="permissionList"
|
|
||||||
@row-save="rowSave"
|
|
||||||
@current-change="currentChange"
|
@current-change="currentChange"
|
||||||
@size-change="sizeChange"
|
@size-change="sizeChange"
|
||||||
@row-update="rowUpdate"
|
@on-load="onLoad"
|
||||||
@refresh-change="refreshChange"
|
:option="option"
|
||||||
|
:data="inviteCodeList"
|
||||||
|
:page.sync="page"
|
||||||
@search-change="searchChange"
|
@search-change="searchChange"
|
||||||
|
@refresh-change="refreshChange"
|
||||||
@search-reset="searchReset"
|
@search-reset="searchReset"
|
||||||
v-model="form"
|
|
||||||
:table-loading="loading"
|
|
||||||
>
|
>
|
||||||
<template slot="status" slot-scope="{ row }">{{ row.status }}</template>
|
|
||||||
<template slot="menuLeft">
|
<template slot="menuLeft">
|
||||||
<el-button
|
<el-button
|
||||||
v-if="vaildData(permission.manage_station_inviteCode_upload, false)"
|
|
||||||
size="small"
|
size="small"
|
||||||
@click.stop="handleImport"
|
@click.stop="distributionCodeDialog = true"
|
||||||
type="primary"
|
type="primary"
|
||||||
>批量上传</el-button
|
>新增邀请码</el-button>
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
size="small"
|
|
||||||
@click.stop="distributionCode"
|
|
||||||
type="primary"
|
|
||||||
>分配邀请码</el-button
|
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:menu="{ row }">
|
<template slot="isEnabled" slot-scope="{ row }">
|
||||||
<el-button
|
<el-switch
|
||||||
type="text"
|
:value="row.isEnabled"
|
||||||
size="small"
|
:active-value="1"
|
||||||
@click.stop="rowEdit(row)"
|
:inactive-value="0"
|
||||||
v-if="
|
active-color="#13ce66"
|
||||||
row.status === '未绑定' &&
|
inactive-color="#ff4949"
|
||||||
vaildData(permission.manage_station_inviteCode_edit, false)
|
@change="changeEnabled(row)">
|
||||||
"
|
</el-switch>
|
||||||
>绑定</el-button
|
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</avue-crud>
|
</avue-crud>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="批量上传"
|
title="新增邀请码"
|
||||||
append-to-body
|
|
||||||
:visible.sync="excelBox"
|
|
||||||
width="555px"
|
|
||||||
>
|
|
||||||
<avue-form
|
|
||||||
:option="excelOption"
|
|
||||||
v-model="excelForm"
|
|
||||||
:upload-after="uploadAfter"
|
|
||||||
:upload-before="beforeAvatarUpload"
|
|
||||||
:upload-error="uploadError"
|
|
||||||
>
|
|
||||||
<template slot="excelTemplate">
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
@click="handleTemplate()"
|
|
||||||
:loading="templateLoading"
|
|
||||||
>
|
|
||||||
点击下载
|
|
||||||
<i class="el-icon-download el-icon--right"></i>
|
|
||||||
</el-button>
|
|
||||||
</template>
|
|
||||||
</avue-form>
|
|
||||||
</el-dialog>
|
|
||||||
|
|
||||||
<!-- 分配邀请码 -->
|
|
||||||
<el-dialog
|
|
||||||
title="分配邀请码"
|
|
||||||
:visible.sync="distributionCodeDialog"
|
:visible.sync="distributionCodeDialog"
|
||||||
append-to-body
|
append-to-body
|
||||||
width="30%">
|
width="30%">
|
||||||
<el-form :model="inviteCodeForm" :rules="inviteCodeRules" ref="inviteCode" label-width="100px" class="demo-ruleForm">
|
<el-form :model="inviteCodeForm" :rules="inviteCodeRules" filterable ref="inviteCode" label-width="100px" class="demo-ruleForm">
|
||||||
<el-form-item label="工作站:" prop="stationId">
|
<el-form-item label="企业:" prop="companyId">
|
||||||
<el-select v-model="inviteCodeForm.stationId" placeholder="请选择" @change="inviteCodeName"
|
<el-select v-model="inviteCodeForm.inviteCompanyId" placeholder="请选择" style="width: 260px" >
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in stationIdList"
|
v-for="item in enterpriseList"
|
||||||
:key="item.stationId"
|
:key="item.id"
|
||||||
:label="item.stationName"
|
:label="item.companyName"
|
||||||
:value="item.stationId">
|
:value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="分配数量:" prop="strip">
|
<el-form-item label="名称:" prop="realName" >
|
||||||
<span class="inviteCodeStrip"
|
<el-input style="width: 260px" v-model="inviteCodeForm.realName" placeholder="请输入名称" ></el-input>
|
||||||
:class="{'inviteCodeStripActive': inviteCodeForm.count === 5}"
|
</el-form-item>
|
||||||
style="margin-right: 10px;"
|
<el-form-item label="身份证:" prop="idNumber" >
|
||||||
@click="inviteCodeForm.count = 5">5</span>
|
<el-input style="width: 260px" v-model="inviteCodeForm.idNumber" placeholder="请输入身份证" ></el-input>
|
||||||
<span class="inviteCodeStrip"
|
</el-form-item>
|
||||||
:class="{'inviteCodeStripActive':
|
<el-form-item label="手机号:" prop="phone" >
|
||||||
inviteCodeForm.count === 10}"
|
<el-input style="width: 260px" v-model="inviteCodeForm.phone" placeholder="请输入手机号" ></el-input>
|
||||||
@click="inviteCodeForm.count = 10">10</span>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="inviteCodeClose">取 消</el-button>
|
<el-button @click="distributionCodeDialog = false">取 消</el-button>
|
||||||
<el-button type="primary" @click="inviteCodeSubmit">确 定</el-button>
|
<el-button type="primary" @click="inviteCodeSubmit">确 定</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<el-dialog
|
|
||||||
title="分配邀请码"
|
|
||||||
:visible.sync="qRCodeDialog"
|
|
||||||
append-to-body
|
|
||||||
width="30%">
|
|
||||||
<div>
|
|
||||||
<p>您当前选择了 <span style="color: red;">{{inviteCodeForm.count}}</span> 条邀请码,确定分配给 <span style="color:red;">{{inviteCodeFormName}}</span> 吗?</p>
|
|
||||||
</div>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="qRCodeDialog = false">取 消</el-button>
|
|
||||||
<el-button type="primary" :loading="codeLoading" @click="qRCodeDialogOk">确 定</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</basic-container>
|
</basic-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import { getList, add, edit, importInviteCode, inviteAllocation } from "@/api/manage/inviteCode";
|
|
||||||
import { check18IdCardNo, isExcel, isMobile } from "@/util/validate";
|
import { check18IdCardNo, isExcel, isMobile } from "@/util/validate";
|
||||||
import { getTemplate } from "@/api/resource/template";
|
import {
|
||||||
import { getStationDic, StationDic } from "@/api/manage/station";
|
getEnterpriseList,
|
||||||
import { excelAccept } from "@/common/accept";
|
saveEnterpriseItem,
|
||||||
|
getInvitationCodeList,
|
||||||
|
getInvitationStatusUpdate
|
||||||
export default {
|
} from "@/api/manage/station";
|
||||||
name: "manage_station_inviteCode",
|
import { Message } from "element-ui";
|
||||||
data() {
|
const inviteCodeRules = {
|
||||||
const validateMobile = (rule, value, callback) => {
|
|
||||||
if (value == "") {
|
|
||||||
callback(new Error("请输入手机号"));
|
|
||||||
} else {
|
|
||||||
if (isMobile(value)) {
|
|
||||||
callback();
|
|
||||||
} else {
|
|
||||||
callback(new Error("手机号格式不正确"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
const validateIdNum = (rule, value, callback) => {
|
|
||||||
if (value == "") {
|
|
||||||
callback(new Error("请输入身份证"));
|
|
||||||
} else {
|
|
||||||
if (check18IdCardNo(value)) {
|
|
||||||
callback();
|
|
||||||
} else {
|
|
||||||
callback(new Error("身份证格式不正确"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
return {
|
|
||||||
inviteCodeForm: {
|
|
||||||
count: 5
|
|
||||||
},
|
|
||||||
inviteCodeRules: {
|
|
||||||
stationId: [
|
stationId: [
|
||||||
{ required: true, message: '请选择工作站', trigger: 'blur' }
|
{ required: true, message: '请选择企业', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
count: [
|
realName: [
|
||||||
{ required: true, message: '请选择数量', trigger: 'blur' }
|
{ required: true, message: '请输入名称', trigger: 'blur'}
|
||||||
],
|
],
|
||||||
},
|
phone: [
|
||||||
stationIdList: [],
|
{ required: true, message: '请输入手机号', trigger: 'blur', pattern: /^1[3-9]{1}\d{9}/}
|
||||||
distributionCodeDialog: false,
|
],
|
||||||
qRCodeDialog: false,
|
idNumber: [
|
||||||
inviteCodeFormName: '',
|
{ required: true, message: '请输入身份证', trigger: 'blur', pattern: /^[1-9]\d{5}(19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2]\d|3[0-1])\d{3}[\dX]$/}
|
||||||
searchTxt: "",
|
],
|
||||||
excelBox: false,
|
}
|
||||||
excelForm: {},
|
const curdOptions = {
|
||||||
|
dateBtn: false,
|
||||||
query: {},
|
addBtn: false,
|
||||||
file: {},
|
editBtn: false,
|
||||||
option: {
|
delBtn: false,
|
||||||
|
height: "auto",
|
||||||
|
menu:false,
|
||||||
|
searchMenuSpan: 48,
|
||||||
index: true,
|
index: true,
|
||||||
indexLabel: "序号",
|
indexLabel: "序号",
|
||||||
idKey: "id",
|
column: [{
|
||||||
delBtn: false,
|
label: '企业名称',
|
||||||
border: true,
|
prop: 'companyName',
|
||||||
editBtn: false,
|
|
||||||
searchShow: true,
|
|
||||||
searchMenuSpan: 4,
|
|
||||||
loading:true,
|
|
||||||
column: [
|
|
||||||
{
|
|
||||||
label: "所属分组",
|
|
||||||
prop: "groupType",
|
|
||||||
search: true,
|
search: true,
|
||||||
searchSpan: 4,
|
}, {
|
||||||
type: "select",
|
label: '邀请码',
|
||||||
rules: [
|
prop: 'inviteCode',
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: "请选择所属分组",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
dicData: [
|
|
||||||
{
|
|
||||||
label: "企嘉云",
|
|
||||||
value: 0,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "人保",
|
|
||||||
value: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "灯塔中心",
|
|
||||||
value: 3,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
type: "tree",
|
|
||||||
label: "所属工作站",
|
|
||||||
prop: "stationId",
|
|
||||||
//display: false,
|
|
||||||
search: true,
|
search: true,
|
||||||
searchSpan: 4,
|
},{
|
||||||
searchLabelWidth: 87,
|
label: '手机号',
|
||||||
dicUrl: getStationDic(),
|
prop: 'phone',
|
||||||
props: {
|
|
||||||
label: "stationName",
|
|
||||||
value: "stationId",
|
|
||||||
},
|
|
||||||
dicFormatter(resp) {
|
|
||||||
return resp.data;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "邀请码",
|
|
||||||
prop: "inviteCode",
|
|
||||||
search: true,
|
search: true,
|
||||||
searchSpan: 4,
|
},{
|
||||||
rules: [
|
label: '身份证',
|
||||||
{
|
prop: 'idNumber',
|
||||||
required: true,
|
|
||||||
message: "请输入邀请码",
|
|
||||||
trigger: "blur",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
|
|
||||||
editDisabled: true,
|
|
||||||
maxlength:14,
|
|
||||||
showWordLimit:true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "姓名",
|
|
||||||
prop: "realName",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "身份证号",
|
|
||||||
prop: "idNumber",
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
validator: validateIdNum,
|
|
||||||
trigger: "blur",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "手机号",
|
|
||||||
prop: "phone",
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
validator: validateMobile,
|
|
||||||
trigger: "blur",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "状态",
|
|
||||||
prop: "status",
|
|
||||||
search: true,
|
search: true,
|
||||||
searchSpan: 4,
|
formatter:(_,value,label) => value
|
||||||
type: "select",
|
},{
|
||||||
dicData: [
|
label: '启用状态',
|
||||||
{
|
prop: 'isEnabled',
|
||||||
label: "已绑定",
|
|
||||||
value: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "未绑定",
|
|
||||||
value: 0,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
display: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "是否分配",
|
|
||||||
prop: "isEnabled",
|
|
||||||
search: true,
|
|
||||||
searchSpan: 4,
|
|
||||||
type: "select",
|
|
||||||
dicData: [
|
|
||||||
{
|
|
||||||
label: "已分配",
|
|
||||||
value: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "未分配",
|
|
||||||
value: 0,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
display: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "备注",
|
|
||||||
prop: "remarks",
|
|
||||||
display: false,
|
|
||||||
hide: true,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
data: [],
|
|
||||||
page: {
|
|
||||||
currentPage: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
total: 0,
|
|
||||||
},
|
|
||||||
codeLoading: false
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
created() {
|
|
||||||
StationDic().then(res => {
|
|
||||||
this.stationIdList = res.data.data
|
|
||||||
})
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
...mapGetters(["permission"]),
|
|
||||||
permissionList() {
|
|
||||||
return {
|
|
||||||
addBtn: this.vaildData(
|
|
||||||
this.permission.manage_station_inviteCode_add,
|
|
||||||
false
|
|
||||||
),
|
|
||||||
};
|
|
||||||
},
|
|
||||||
excelOption() {
|
|
||||||
return {
|
|
||||||
submitBtn: false,
|
|
||||||
emptyBtn: false,
|
|
||||||
templateLoading: false,
|
|
||||||
column: [
|
|
||||||
{
|
|
||||||
label: "文件上传",
|
|
||||||
prop: "excelFile",
|
|
||||||
type: "upload",
|
|
||||||
drag: true,
|
|
||||||
loadText: "文件上传中,请稍等",
|
|
||||||
span: 24,
|
|
||||||
propsHttp: {
|
|
||||||
res: "data",
|
|
||||||
},
|
|
||||||
accept: excelAccept,
|
|
||||||
tip: "请上传 .xls,.xlsx 标准格式文件",
|
|
||||||
action: importInviteCode(),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "数据覆盖",
|
|
||||||
prop: "isCovered",
|
|
||||||
type: "switch",
|
|
||||||
align: "center",
|
|
||||||
width: 80,
|
|
||||||
dicData: [
|
|
||||||
{
|
|
||||||
label: "否",
|
|
||||||
value: 0,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "是",
|
|
||||||
value: 1,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
value: 0,
|
|
||||||
slot: true,
|
slot: true,
|
||||||
rules: [
|
width: 100
|
||||||
{
|
}]
|
||||||
required: true,
|
}
|
||||||
message: "请选择是否覆盖",
|
const page = {
|
||||||
trigger: "blur",
|
pageSize: 10,
|
||||||
},
|
currentPage: 1,
|
||||||
],
|
total: 0,
|
||||||
},
|
}
|
||||||
{
|
export default {
|
||||||
label: "模板下载",
|
name: "manage_station_inviteCode",
|
||||||
prop: "excelTemplate",
|
data(){
|
||||||
formslot: true,
|
return {
|
||||||
span: 24,
|
distributionCodeDialog: false,
|
||||||
},
|
inviteCodeRules: Object.assign({}, inviteCodeRules),
|
||||||
],
|
enterpriseList: [], // 企业列表
|
||||||
};
|
inviteCodeForm: {},
|
||||||
},
|
inviteCodeList:[],
|
||||||
},
|
option: Object.assign({}, curdOptions),
|
||||||
mounted() {},
|
page: Object.assign({}, page),
|
||||||
watch: {},
|
searchData: {},
|
||||||
methods: {
|
|
||||||
inviteCodeName (v) {
|
|
||||||
var inviteCodeFormName = this.stationIdList.find(e => {
|
|
||||||
return e.stationId === v
|
|
||||||
})
|
|
||||||
this.inviteCodeFormName = inviteCodeFormName.stationName
|
|
||||||
},
|
|
||||||
qRCodeDialogOk () {
|
|
||||||
this.codeLoading = true
|
|
||||||
inviteAllocation(this.inviteCodeForm).then(() => {
|
|
||||||
this.$message.success('分配成功')
|
|
||||||
this.refreshChange()
|
|
||||||
this.codeLoading = false
|
|
||||||
this.qRCodeDialog = false
|
|
||||||
this.distributionCodeDialog = false
|
|
||||||
}).catch(() => {
|
|
||||||
this.codeLoading = false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
inviteCodeSubmit (){
|
|
||||||
this.$refs['inviteCode'].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.qRCodeDialog = true
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
inviteCodeClose(){
|
|
||||||
this.distributionCodeDialog = false
|
|
||||||
},
|
|
||||||
distributionCode(){
|
|
||||||
this.distributionCodeDialog = true
|
|
||||||
},
|
|
||||||
handleImport() {
|
|
||||||
this.excelBox = true;
|
|
||||||
},
|
|
||||||
handleTemplate() {
|
|
||||||
this.templateLoading = true;
|
|
||||||
getTemplate("yqm")
|
|
||||||
.then((rep) => {
|
|
||||||
this.templateLoading = false;
|
|
||||||
window.open(rep.data.data);
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.templateLoading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
beforeAvatarUpload(file, done, loading) {
|
|
||||||
this.file = file;
|
|
||||||
if (!isExcel(file)) {
|
|
||||||
loading();
|
|
||||||
this.$message.error("上传参保信息只能是 .xls,.xlsx 标准格式文件!");
|
|
||||||
} else {
|
|
||||||
done();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
uploadAfter(res, done) {
|
created() {
|
||||||
if (!(res instanceof Error)) {
|
this.getList() // 企业
|
||||||
this.excelBox = false;
|
|
||||||
}
|
|
||||||
this.refreshChange();
|
|
||||||
done();
|
|
||||||
},
|
},
|
||||||
uploadError(error) {
|
methods:{
|
||||||
if (error) {
|
async onLoad() {
|
||||||
this.$message.error(error);
|
this.getInvitationCode()
|
||||||
|
},
|
||||||
|
currentChange(page) {
|
||||||
|
this.page.currentPage = page
|
||||||
|
},
|
||||||
|
sizeChange(size) {
|
||||||
|
this.page.pageSize = size
|
||||||
|
},
|
||||||
|
async changeEnabled(row) {
|
||||||
|
const isEnabled = row.isEnabled ? 0 : 1
|
||||||
|
let params = { id: row.id, isEnabled }
|
||||||
|
console.log(params)
|
||||||
|
let resData = await getInvitationStatusUpdate(params)
|
||||||
|
if(resData.data.code === 200){
|
||||||
|
this.$message.success('状态修改成功');
|
||||||
|
this.getInvitationCode()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
searchInfo() {
|
refreshChange(){
|
||||||
this.onLoad(this.page);
|
this.getInvitationCode('refresh')
|
||||||
},
|
|
||||||
rowSave(row, done,loading) {
|
|
||||||
this.$refs.crud.validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
add(
|
|
||||||
row.inviteCode,
|
|
||||||
row.realName,
|
|
||||||
row.idNumber,
|
|
||||||
row.phone,
|
|
||||||
row.groupType,
|
|
||||||
row.remarks,
|
|
||||||
row.stationId
|
|
||||||
).then(
|
|
||||||
() => {
|
|
||||||
this.$message.success('添加成功')
|
|
||||||
done();
|
|
||||||
this.onLoad(this.page);
|
|
||||||
},
|
|
||||||
(error) => {
|
|
||||||
window.console.log(error);
|
|
||||||
loading()
|
|
||||||
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
rowEdit(row) {
|
|
||||||
this.$refs.crud.rowEdit(row);
|
|
||||||
},
|
|
||||||
rowUpdate(row, index, done, loading) {
|
|
||||||
if (row.status == "已绑定") {
|
|
||||||
row.status = 1;
|
|
||||||
} else {
|
|
||||||
row.status = 0;
|
|
||||||
}
|
|
||||||
this.$refs.crud.validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
edit(
|
|
||||||
row.id,
|
|
||||||
row.inviteCode,
|
|
||||||
row.realName,
|
|
||||||
row.idNumber,
|
|
||||||
row.phone,
|
|
||||||
row.groupType,
|
|
||||||
row.remarks,
|
|
||||||
row.status,
|
|
||||||
row.stationId
|
|
||||||
).then(
|
|
||||||
() => {
|
|
||||||
this.$message.success('绑定成功')
|
|
||||||
done(row);
|
|
||||||
this.onLoad(this.page);
|
|
||||||
},
|
|
||||||
(error) => {
|
|
||||||
window.console.log(error);
|
|
||||||
loading();
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
currentChange(currentPage) {
|
|
||||||
this.page.currentPage = currentPage;
|
|
||||||
},
|
|
||||||
sizeChange(pageSize) {
|
|
||||||
this.page.pageSize = pageSize;
|
|
||||||
},
|
|
||||||
refreshChange() {
|
|
||||||
this.onLoad(this.page);
|
|
||||||
},
|
|
||||||
searchChange(params, done) {
|
|
||||||
this.query = params;
|
|
||||||
this.page.currentPage = 1;
|
|
||||||
this.onLoad(this.page, params);
|
|
||||||
done();
|
|
||||||
},
|
},
|
||||||
searchReset() {
|
searchReset() {
|
||||||
this.query = {};
|
this.searchData = {};
|
||||||
this.onLoad(this.page);
|
this.getInvitationCode('refresh')
|
||||||
},
|
},
|
||||||
onLoad(page, params = {}) {
|
searchChange(params, done) {
|
||||||
this.loading=true;
|
this.searchData = params;
|
||||||
getList(
|
this.getInvitationCode('refresh').then(() => done())
|
||||||
page.currentPage,
|
},
|
||||||
page.pageSize,
|
getInvitationCode(type = 'add') {
|
||||||
Object.assign(this.query, params)
|
return new Promise(async (resolve, reject) => {
|
||||||
).then((res) => {
|
if(type === 'refresh') {
|
||||||
const data = res.data.data;
|
this.page.currentPage = 1
|
||||||
for (const key in data.records) {
|
}
|
||||||
if (data.records[key].status == "1") {
|
let params = {
|
||||||
data.records[key].status = "已绑定";
|
...this.searchData,
|
||||||
|
current: this.page.currentPage,
|
||||||
|
size: this.page.pageSize,
|
||||||
|
}
|
||||||
|
let resData = await getInvitationCodeList(params)
|
||||||
|
if(resData.data.code === 200){
|
||||||
|
const { size, records, current, total } = resData.data.data
|
||||||
|
this.inviteCodeList = records
|
||||||
|
this.page = { pageSize: size, currentPage: current, total }
|
||||||
|
resolve()
|
||||||
} else {
|
} else {
|
||||||
data.records[key].status = "未绑定";
|
reject()
|
||||||
|
this.$message.error('拉取失败');
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async inviteCodeSubmit() {
|
||||||
|
const companyName = this.enterpriseList.filter((item) => item.id === this.inviteCodeForm.inviteCompanyId)[0].companyName;
|
||||||
|
let params = {
|
||||||
|
...this.inviteCodeForm,
|
||||||
|
companyName: companyName
|
||||||
|
}
|
||||||
|
let resData = await saveEnterpriseItem(params)
|
||||||
|
if(resData.data.code === 200){
|
||||||
|
const { code, data } = resData.data
|
||||||
|
this.distributionCodeDialog = false
|
||||||
|
this.getInvitationCode('refresh')
|
||||||
|
this.$message.success('提交成功');
|
||||||
|
} else {
|
||||||
|
this.$message.error('创建失败');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async getList() {
|
||||||
|
let params = {}
|
||||||
|
let resData = await getEnterpriseList(params)
|
||||||
|
if(resData.data.code === 200){
|
||||||
|
const { code, data } = resData.data
|
||||||
|
this.enterpriseList = data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.data = data.records;
|
}
|
||||||
this.page.total = data.total;
|
}
|
||||||
this.loading=false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.inviteCodeStrip{
|
|
||||||
display: inline-block;
|
|
||||||
width: 30px;
|
|
||||||
height: 30px;
|
|
||||||
line-height: 30px;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 10px;
|
|
||||||
border: 1px solid #e3e3e3;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
.inviteCodeStripActive {
|
|
||||||
color: #FFFFFF;
|
|
||||||
background-color: #409EFF;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -19,15 +19,15 @@
|
|||||||
@refresh-change="refreshChange"
|
@refresh-change="refreshChange"
|
||||||
@on-load="onLoad"
|
@on-load="onLoad"
|
||||||
>
|
>
|
||||||
<template slot="menu" slot-scope="{row}">
|
<!-- <template slot="menu" slot-scope="{row}">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
v-if="vaildData(permission.manage_station_mainList_stop, false) && row.status !== 9"
|
<!-- v-if="vaildData(permission.manage_station_mainList_stop, false) && row.status !== 9"-->
|
||||||
size="small"
|
<!-- size="small"-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
@click.stop="stop(row)"
|
<!-- @click.stop="stop(row)"-->
|
||||||
type="text"
|
<!-- type="text"-->
|
||||||
>终止合作</el-button>
|
<!-- >终止合作</el-button>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
<template slot="cityIdForm" slot-scope="{disabled}">
|
<template slot="cityIdForm" slot-scope="{disabled}">
|
||||||
<jl-city-cascader :disabled="disabled" v-model="form.cityId" filterable clearable></jl-city-cascader>
|
<jl-city-cascader :disabled="disabled" v-model="form.cityId" filterable clearable></jl-city-cascader>
|
||||||
</template>
|
</template>
|
||||||
@@ -304,8 +304,8 @@ export default {
|
|||||||
listType: "picture-img",
|
listType: "picture-img",
|
||||||
multiple: false,
|
multiple: false,
|
||||||
propsHttp: {
|
propsHttp: {
|
||||||
res: "data",
|
// res: "data",
|
||||||
url: "link",
|
url: "msg",
|
||||||
},
|
},
|
||||||
canvasOption: {},
|
canvasOption: {},
|
||||||
headers: [],
|
headers: [],
|
||||||
@@ -313,7 +313,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "identityUrl4Id",
|
prop: "identityUrl4Id",
|
||||||
action: putFile,
|
action: putFile(5),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -324,8 +324,8 @@ export default {
|
|||||||
listType: "picture-img",
|
listType: "picture-img",
|
||||||
multiple: false,
|
multiple: false,
|
||||||
propsHttp: {
|
propsHttp: {
|
||||||
res: "data",
|
// res: "data",
|
||||||
url: "link",
|
url: "msg",
|
||||||
},
|
},
|
||||||
canvasOption: {},
|
canvasOption: {},
|
||||||
headers: [],
|
headers: [],
|
||||||
@@ -333,7 +333,7 @@ export default {
|
|||||||
accept,
|
accept,
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "identityUrl5Id",
|
prop: "identityUrl5Id",
|
||||||
action: putFile,
|
action: putFile(5),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -344,8 +344,8 @@ export default {
|
|||||||
listType: "picture-img",
|
listType: "picture-img",
|
||||||
multiple: false,
|
multiple: false,
|
||||||
propsHttp: {
|
propsHttp: {
|
||||||
res: "data",
|
// res: "data",
|
||||||
url: "link",
|
url: "msg",
|
||||||
},
|
},
|
||||||
accept,
|
accept,
|
||||||
canvasOption: {},
|
canvasOption: {},
|
||||||
@@ -353,7 +353,7 @@ export default {
|
|||||||
data: [],
|
data: [],
|
||||||
size: "small",
|
size: "small",
|
||||||
prop: "authUrlId",
|
prop: "authUrlId",
|
||||||
action: putFile,
|
action: putFile(5),
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
},
|
},
|
||||||
// 图片预览
|
// 图片预览
|
||||||
@@ -468,7 +468,7 @@ export default {
|
|||||||
percent: row.percent,
|
percent: row.percent,
|
||||||
stationId: row.stationId,
|
stationId: row.stationId,
|
||||||
telphone: row.telphone,
|
telphone: row.telphone,
|
||||||
authType: 2
|
authType: 0
|
||||||
}).then(
|
}).then(
|
||||||
() => {
|
() => {
|
||||||
this.$message({
|
this.$message({
|
||||||
@@ -502,7 +502,7 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
var params = {
|
var params = {
|
||||||
id: this.form.id,
|
id: this.form.id,
|
||||||
authType: 2
|
authType: 0
|
||||||
}
|
}
|
||||||
companyDetail(params).then((res) => {
|
companyDetail(params).then((res) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
@@ -553,7 +553,7 @@ export default {
|
|||||||
var params = {
|
var params = {
|
||||||
companyId: row.id,
|
companyId: row.id,
|
||||||
flag: 0,
|
flag: 0,
|
||||||
authType: 2
|
authType: 0
|
||||||
}
|
}
|
||||||
stationStop(params)
|
stationStop(params)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
@@ -502,7 +502,7 @@ export default {
|
|||||||
// prop: "headPic",
|
// prop: "headPic",
|
||||||
// type: "upload",
|
// type: "upload",
|
||||||
// hide: true,
|
// hide: true,
|
||||||
// action: putFile,
|
// action: putFile(),
|
||||||
// span: 12,
|
// span: 12,
|
||||||
// showFileList: false,
|
// showFileList: false,
|
||||||
// listType: "picture-img",
|
// listType: "picture-img",
|
||||||
@@ -526,7 +526,7 @@ export default {
|
|||||||
// prop: "headPic",
|
// prop: "headPic",
|
||||||
// type: "upload",
|
// type: "upload",
|
||||||
// hide: true,
|
// hide: true,
|
||||||
// action: putFile,
|
// action: putFile(),
|
||||||
// span: 12,
|
// span: 12,
|
||||||
// showFileList: false,
|
// showFileList: false,
|
||||||
// listType: "picture-img",
|
// listType: "picture-img",
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
// target: 'http://localhost:8000', // 本地服务接口地址
|
// 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.104:8000", // 本地
|
||||||
// target: 'http://192.168.3.111:8000',
|
target: 'http://192.168.3.111:8000',
|
||||||
ws: true,
|
ws: true,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|||||||
Reference in New Issue
Block a user