更新社区街道列表
This commit is contained in:
@@ -1,125 +1,54 @@
|
|||||||
<template>
|
<template>
|
||||||
<basic-container>
|
<basic-container>
|
||||||
<avue-crud
|
<avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="form"
|
||||||
:option="option"
|
:permission="permissionList" :before-open="beforeOpen" :before-close="beforeClose" :page.sync="page"
|
||||||
:table-loading="loading "
|
@row-update="rowUpdate" @row-save="rowSave" @search-change="searchChange" @search-reset="searchReset"
|
||||||
:data="data"
|
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
|
||||||
ref="crud"
|
@refresh-change="refreshChange" @on-load="onLoad" :upload-before="uploadBefore">
|
||||||
v-model="form"
|
|
||||||
:permission="permissionList"
|
|
||||||
:before-open="beforeOpen"
|
|
||||||
:before-close="beforeClose"
|
|
||||||
:page.sync="page"
|
|
||||||
@row-update="rowUpdate"
|
|
||||||
@row-save="rowSave"
|
|
||||||
@search-change="searchChange"
|
|
||||||
@search-reset="searchReset"
|
|
||||||
@selection-change="selectionChange"
|
|
||||||
@current-change="currentChange"
|
|
||||||
@size-change="sizeChange"
|
|
||||||
@refresh-change="refreshChange"
|
|
||||||
@on-load="onLoad"
|
|
||||||
:upload-before="uploadBefore"
|
|
||||||
>
|
|
||||||
<template slot="menuLeft">
|
<template slot="menuLeft">
|
||||||
<el-button
|
<el-button v-if="vaildData(permission.manage_compan_companyList_addUser, false)" size="small"
|
||||||
v-if="vaildData(permission.manage_compan_companyList_addUser, false)"
|
@click.stop="handleAddUser" type="primary" :disabled="selectionList.length === 0">添加账号</el-button>
|
||||||
size="small"
|
<el-button v-if="vaildData(permission.manage_compan_companyList_config, false)" size="small"
|
||||||
@click.stop="handleAddUser"
|
@click.stop="handleConfig" type="primary" :disabled="selectionList.length === 0">服务设置</el-button>
|
||||||
type="primary"
|
<el-button v-if="vaildData(permission.manage_compan_companyList_check, false)" size="small"
|
||||||
:disabled="selectionList.length === 0"
|
@click.stop="handleCheck" type="primary" :disabled="selectionList.length === 0">审核</el-button>
|
||||||
>添加账号</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
v-if="vaildData(permission.manage_compan_companyList_config, false)"
|
|
||||||
size="small"
|
|
||||||
@click.stop="handleConfig"
|
|
||||||
type="primary"
|
|
||||||
:disabled="selectionList.length === 0"
|
|
||||||
>服务设置</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
v-if="vaildData(permission.manage_compan_companyList_check, false)"
|
|
||||||
size="small"
|
|
||||||
@click.stop="handleCheck"
|
|
||||||
type="primary"
|
|
||||||
:disabled="selectionList.length === 0"
|
|
||||||
>审核</el-button
|
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="scope" slot="menu">
|
<template slot-scope="scope" slot="menu">
|
||||||
<el-button
|
<el-button type="text" size="small" @click.stop="rowStop(scope.row.id)" v-if="scope.row.status == 0 &&
|
||||||
type="text"
|
|
||||||
size="small"
|
|
||||||
@click.stop="rowStop(scope.row.id)"
|
|
||||||
v-if="
|
|
||||||
scope.row.status == 0 &&
|
|
||||||
vaildData(permission.manage_compan_companyList_stop, false)
|
vaildData(permission.manage_compan_companyList_stop, false)
|
||||||
"
|
">终止合作</el-button><!--只有已审核的企业才显示终止合作按钮-->
|
||||||
>终止合作</el-button
|
<el-button type="text" size="small" @click.stop="rowStart(scope.row.id)" v-if="scope.row.status === 9 &&
|
||||||
><!--只有已审核的企业才显示终止合作按钮-->
|
|
||||||
<el-button
|
|
||||||
type="text"
|
|
||||||
size="small"
|
|
||||||
@click.stop="rowStart(scope.row.id)"
|
|
||||||
v-if="
|
|
||||||
scope.row.status === 9 &&
|
|
||||||
vaildData(permission.manage_compan_companyList_start, false)
|
vaildData(permission.manage_compan_companyList_start, false)
|
||||||
"
|
">合作恢复</el-button>
|
||||||
>合作恢复</el-button
|
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
<template slot="cityIdForm" slot-scope="{ disabled }">
|
<template slot="cityIdForm" slot-scope="{ disabled }">
|
||||||
<jl-city-cascader
|
<jl-city-cascader :disabled="disabled" v-model="form.cityId"></jl-city-cascader>
|
||||||
:disabled="disabled"
|
|
||||||
v-model="form.cityId"
|
|
||||||
></jl-city-cascader>
|
|
||||||
</template>
|
</template>
|
||||||
<template slot="authUrlIdImgForm">
|
<template slot="authUrlIdImgForm">
|
||||||
<el-image
|
<el-image style="width: 100px; height: 100px" :src="form.authUrlId" :preview-src-list="[form.authUrlId]">
|
||||||
style="width: 100px; height: 100px"
|
|
||||||
:src="form.authUrlId"
|
|
||||||
:preview-src-list="[form.authUrlId]"
|
|
||||||
>
|
|
||||||
</el-image>
|
</el-image>
|
||||||
</template>
|
</template>
|
||||||
<template slot="identityUrl4IdImgForm">
|
<template slot="identityUrl4IdImgForm">
|
||||||
<el-image
|
<el-image style="width: 100px; height: 100px" :src="form.identityUrl4Id"
|
||||||
style="width: 100px; height: 100px"
|
:preview-src-list="[form.identityUrl4Id]"></el-image>
|
||||||
:src="form.identityUrl4Id"
|
|
||||||
:preview-src-list="[form.identityUrl4Id]"
|
|
||||||
></el-image>
|
|
||||||
</template>
|
</template>
|
||||||
<template slot="identityUrl5IdImgForm">
|
<template slot="identityUrl5IdImgForm">
|
||||||
<el-image
|
<el-image style="width: 100px; height: 100px" :src="form.identityUrl5Id"
|
||||||
style="width: 100px; height: 100px"
|
:preview-src-list="[form.identityUrl5Id]"></el-image>
|
||||||
:src="form.identityUrl5Id"
|
|
||||||
:preview-src-list="[form.identityUrl5Id]"
|
|
||||||
></el-image>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template slot="signSrcUrlForm">
|
<template slot="signSrcUrlForm">
|
||||||
<el-image
|
<el-image style="width: 100px; height: 100px" :src="form.signSrcUrl"
|
||||||
style="width: 100px; height: 100px"
|
:preview-src-list="[form.signSrcUrl]"></el-image>
|
||||||
:src="form.signSrcUrl"
|
|
||||||
:preview-src-list="[form.signSrcUrl]"
|
|
||||||
></el-image>
|
|
||||||
</template>
|
</template>
|
||||||
<template slot="letterOfAttorneyUrlForm">
|
<template slot="letterOfAttorneyUrlForm">
|
||||||
<el-image
|
<el-image style="width: 100px; height: 100px" :src="form.letterOfAttorneyUrl"
|
||||||
style="width: 100px; height: 100px"
|
:preview-src-list="[form.letterOfAttorneyUrl]"></el-image>
|
||||||
:src="form.letterOfAttorneyUrl"
|
|
||||||
:preview-src-list="[form.letterOfAttorneyUrl]"
|
|
||||||
></el-image>
|
|
||||||
</template>
|
</template>
|
||||||
<template slot="motoleyUrlImgForm">
|
<template slot="motoleyUrlImgForm">
|
||||||
<div v-if="imgList.length > 0">
|
<div v-if="imgList.length > 0">
|
||||||
<span v-for="(item, index) in imgList" :key="index" class="motoley-img">
|
<span v-for="(item, index) in imgList" :key="index" class="motoley-img">
|
||||||
<el-image
|
<el-image style="width: 100px; height: 100px" :src="item.url" :preview-src-list="[item.url]"></el-image>
|
||||||
style="width: 100px; height: 100px"
|
|
||||||
:src="item.url"
|
|
||||||
:preview-src-list="[item.url]"
|
|
||||||
></el-image>
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -129,20 +58,10 @@
|
|||||||
<company-record :data="row"></company-record>
|
<company-record :data="row"></company-record>
|
||||||
</template>
|
</template>
|
||||||
<template slot="motoleyUrlForm">
|
<template slot="motoleyUrlForm">
|
||||||
<el-upload
|
<el-upload class="companyList-upload" list-type="picture-card" :auto-upload="true" :file-list="imgList" :limit="5"
|
||||||
class="companyList-upload"
|
:action="mutiPutFile" :on-preview="handlePictureCardPreview" :on-exceed="handleImgLimit"
|
||||||
list-type="picture-card"
|
:on-success="handleImgSuccess" :on-remove="handleImgRemove" :before-remove="beforeRemove"
|
||||||
:auto-upload="true"
|
:before-upload="beforeAvatarUpload">
|
||||||
:file-list="imgList"
|
|
||||||
:limit="5"
|
|
||||||
:action="mutiPutFile"
|
|
||||||
:on-preview="handlePictureCardPreview"
|
|
||||||
:on-exceed="handleImgLimit"
|
|
||||||
:on-success="handleImgSuccess"
|
|
||||||
:on-remove="handleImgRemove"
|
|
||||||
:before-remove="beforeRemove"
|
|
||||||
:before-upload="beforeAvatarUpload"
|
|
||||||
>
|
|
||||||
<i slot="default" class="el-icon-plus avue-upload__icon"></i>
|
<i slot="default" class="el-icon-plus avue-upload__icon"></i>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</template>
|
</template>
|
||||||
@@ -173,18 +92,9 @@
|
|||||||
|
|
||||||
<!--保证金状态搜索栏trialOn-->
|
<!--保证金状态搜索栏trialOn-->
|
||||||
<template slot="trialOnSearch">
|
<template slot="trialOnSearch">
|
||||||
<el-select
|
<el-select v-model="query.trialOn" placeholder="保证金" @change="selectTrailTyepChange">
|
||||||
v-model="query.trialOn"
|
<el-option v-for="(item, index) in bondList" :key="index" :label="item.label" :value="item.value">{{ item.label
|
||||||
placeholder="保证金"
|
}}</el-option>
|
||||||
@change="selectTrailTyepChange"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="(item, index) in bondList"
|
|
||||||
:key="index"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
>{{ item.label }}</el-option
|
|
||||||
>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</avue-crud>
|
</avue-crud>
|
||||||
@@ -296,20 +206,6 @@ export default {
|
|||||||
dialogType: "drawer",
|
dialogType: "drawer",
|
||||||
dialogFullscreen: true,
|
dialogFullscreen: true,
|
||||||
column: [
|
column: [
|
||||||
{
|
|
||||||
label: "创建日期",
|
|
||||||
prop: "createTime",
|
|
||||||
type: "datetime",
|
|
||||||
format: "yyyy-MM-dd",
|
|
||||||
display: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "审核日期",
|
|
||||||
prop: "reviewTime",
|
|
||||||
type: "datetime",
|
|
||||||
format: "yyyy-MM-dd",
|
|
||||||
display: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: "公司名称",
|
label: "公司名称",
|
||||||
prop: "companyName",
|
prop: "companyName",
|
||||||
@@ -332,139 +228,181 @@ export default {
|
|||||||
value: "stationId",
|
value: "stationId",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// type: "input",
|
||||||
|
// label: "所在地区",
|
||||||
|
// display: false,
|
||||||
|
// prop: "cityId",
|
||||||
|
// dicData: [
|
||||||
|
// {
|
||||||
|
// label: "男",
|
||||||
|
// value: 1,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "女",
|
||||||
|
// value: 2,
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
label: "企业状态",
|
type: "tree",
|
||||||
prop: "status",
|
label: "所属行业",
|
||||||
type: "select",
|
|
||||||
search: true,
|
|
||||||
dicData: companyStatus,
|
|
||||||
display: false,
|
display: false,
|
||||||
span: 24,
|
prop: "tradeId",
|
||||||
searchSpan: 4,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "商保状态",
|
type: "tree",
|
||||||
prop: "insuranceOn",
|
label: "联系人姓名",
|
||||||
type: "select",
|
display: false,
|
||||||
|
prop: "masterName",
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// label: "企业状态",
|
||||||
|
// prop: "status",
|
||||||
|
// type: "select",
|
||||||
// search: true,
|
// search: true,
|
||||||
// searchslot:false,
|
// dicData: companyStatus,
|
||||||
|
// display: false,
|
||||||
|
// span: 24,
|
||||||
// searchSpan: 4,
|
// searchSpan: 4,
|
||||||
dicData: [
|
// },
|
||||||
|
// {
|
||||||
|
// label: "商保状态",
|
||||||
|
// prop: "insuranceOn",
|
||||||
|
// type: "select",
|
||||||
|
// // search: true,
|
||||||
|
// // searchslot:false,
|
||||||
|
// // searchSpan: 4,
|
||||||
|
// dicData: [
|
||||||
|
// {
|
||||||
|
// label: "停用",
|
||||||
|
// value: 0,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "启用",
|
||||||
|
// value: 1,
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// display: false,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "先开票",
|
||||||
|
// prop: "invoiceOn",
|
||||||
|
// type: "select",
|
||||||
|
// dicData: [
|
||||||
|
// {
|
||||||
|
// label: "停用",
|
||||||
|
// value: 0,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "启用",
|
||||||
|
// value: 1,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "-",
|
||||||
|
// value: -1,
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// display: false,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "银联代发",
|
||||||
|
// prop: "payType",
|
||||||
|
// type: "select",
|
||||||
|
// dicData: [
|
||||||
|
// {
|
||||||
|
// label: "停用",
|
||||||
|
// value: 0,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "启用",
|
||||||
|
// value: 1,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "-",
|
||||||
|
// value: -1,
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// display: false,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "保证金",
|
||||||
|
// prop: "trialOn",
|
||||||
|
// type: "select",
|
||||||
|
// // search: true,
|
||||||
|
// // searchslot:false,
|
||||||
|
// // searchLabelWidth: 66,
|
||||||
|
// // searchSpan: 5,
|
||||||
|
// dicData: [
|
||||||
|
// {
|
||||||
|
// label: "已缴",
|
||||||
|
// value: 0,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "未缴",
|
||||||
|
// value: 1,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "免缴",
|
||||||
|
// value: 2,
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// display: false,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "签订合同",
|
||||||
|
// prop: "isSign",
|
||||||
|
// dicData: [
|
||||||
|
// {
|
||||||
|
// label: "未签",
|
||||||
|
// value: 0,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "已签",
|
||||||
|
// value: 1,
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// display: false,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label:'电子合同',
|
||||||
|
// prop:'contractOn',
|
||||||
|
// type:'select',
|
||||||
|
// dicData:[
|
||||||
|
// {
|
||||||
|
// label:'关闭',
|
||||||
|
// value:0
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label:'开启',
|
||||||
|
// value:1
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// display:false,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "服务费",
|
||||||
|
// prop: "serveCost",
|
||||||
|
// slot: true,
|
||||||
|
// display: false,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "驳回原因",
|
||||||
|
// prop: "remarks",
|
||||||
|
// display: false,
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
label: "停用",
|
label: "创建日期",
|
||||||
value: 0,
|
prop: "createTime",
|
||||||
},
|
type: "datetime",
|
||||||
{
|
format: "yyyy-MM-dd",
|
||||||
label: "启用",
|
|
||||||
value: 1,
|
|
||||||
}
|
|
||||||
],
|
|
||||||
display: false,
|
display: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "先开票",
|
label: "审核日期",
|
||||||
prop: "invoiceOn",
|
prop: "reviewTime",
|
||||||
type: "select",
|
type: "datetime",
|
||||||
dicData: [
|
format: "yyyy-MM-dd",
|
||||||
{
|
|
||||||
label: "停用",
|
|
||||||
value: 0,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "启用",
|
|
||||||
value: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "-",
|
|
||||||
value: -1,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
display: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "银联代发",
|
|
||||||
prop: "payType",
|
|
||||||
type: "select",
|
|
||||||
dicData: [
|
|
||||||
{
|
|
||||||
label: "停用",
|
|
||||||
value: 0,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "启用",
|
|
||||||
value: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "-",
|
|
||||||
value: -1,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
display: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "保证金",
|
|
||||||
prop: "trialOn",
|
|
||||||
type: "select",
|
|
||||||
// search: true,
|
|
||||||
// searchslot:false,
|
|
||||||
// searchLabelWidth: 66,
|
|
||||||
// searchSpan: 5,
|
|
||||||
dicData: [
|
|
||||||
{
|
|
||||||
label: "已缴",
|
|
||||||
value: 0,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "未缴",
|
|
||||||
value: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "免缴",
|
|
||||||
value: 2,
|
|
||||||
}
|
|
||||||
],
|
|
||||||
display: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "签订合同",
|
|
||||||
prop: "isSign",
|
|
||||||
dicData: [
|
|
||||||
{
|
|
||||||
label: "未签",
|
|
||||||
value: 0,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "已签",
|
|
||||||
value: 1,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
display: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label:'电子合同',
|
|
||||||
prop:'contractOn',
|
|
||||||
type:'select',
|
|
||||||
dicData:[
|
|
||||||
{
|
|
||||||
label:'关闭',
|
|
||||||
value:0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label:'开启',
|
|
||||||
value:1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
display:false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "服务费",
|
|
||||||
prop: "serveCost",
|
|
||||||
slot: true,
|
|
||||||
display: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "驳回原因",
|
|
||||||
prop: "remarks",
|
|
||||||
display: false,
|
display: false,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -1156,13 +1094,16 @@ export default {
|
|||||||
height: 178px;
|
height: 178px;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.companyList-upload .el-input__inner {
|
.companyList-upload .el-input__inner {
|
||||||
border: 1px solid #DCDFE6;
|
border: 1px solid #DCDFE6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.companyList-upload .el-upload-list--picture-card .el-upload-list__item {
|
.companyList-upload .el-upload-list--picture-card .el-upload-list__item {
|
||||||
width: 178px;
|
width: 178px;
|
||||||
height: 178px;
|
height: 178px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.motoley-img {
|
.motoley-img {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
// target: 'http://192.168.3.104:8000', // 本地服务接口地址
|
// target: 'http://192.168.3.104:8000', // 本地服务接口地址
|
||||||
target: "http://39.98.184.58:8000", // 阿里云后台地址
|
// target: "http://39.98.184.58: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: {
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
network-timeout 600000
|
|
||||||
Reference in New Issue
Block a user