修复未提交公司名称字段bug
This commit is contained in:
@@ -1,63 +1,36 @@
|
||||
<template>
|
||||
<basic-container>
|
||||
<avue-crud
|
||||
:option="option"
|
||||
:table-loading="loading"
|
||||
:data="data"
|
||||
ref="crud"
|
||||
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"
|
||||
@current-change="currentChange"
|
||||
@size-change="sizeChange"
|
||||
@refresh-change="refreshChange"
|
||||
@on-load="onLoad"
|
||||
>
|
||||
<!-- <template slot="menu" slot-scope="{row}">-->
|
||||
<!-- <el-button-->
|
||||
<!-- v-if="vaildData(permission.manage_station_mainList_stop, false) && row.status !== 9"-->
|
||||
<!-- size="small"-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- @click.stop="stop(row)"-->
|
||||
<!-- type="text"-->
|
||||
<!-- >终止合作</el-button>-->
|
||||
<!-- </template>-->
|
||||
<avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" 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"
|
||||
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
|
||||
<!-- <template slot="menu" slot-scope="{row}">-->
|
||||
<!-- <el-button-->
|
||||
<!-- v-if="vaildData(permission.manage_station_mainList_stop, false) && row.status !== 9"-->
|
||||
<!-- size="small"-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- @click.stop="stop(row)"-->
|
||||
<!-- type="text"-->
|
||||
<!-- >终止合作</el-button>-->
|
||||
<!-- </template>-->
|
||||
<template slot="cityIdForm" slot-scope="{disabled}">
|
||||
<jl-city-cascader :disabled="disabled" v-model="form.cityId" filterable clearable></jl-city-cascader>
|
||||
</template>
|
||||
<template slot="authUrlIdImgForm">
|
||||
<el-image
|
||||
style="width: 100px; height: 100px"
|
||||
:src="form.authUrlId"
|
||||
:preview-src-list="[form.authUrlId]"
|
||||
></el-image>
|
||||
<el-image style="width: 100px; height: 100px" :src="form.authUrlId"
|
||||
:preview-src-list="[form.authUrlId]"></el-image>
|
||||
</template>
|
||||
<template slot="authUrlIdImgForm">
|
||||
<el-image
|
||||
style="width: 100px; height: 100px"
|
||||
:src="form.authUrlId"
|
||||
:preview-src-list="[form.authUrlId]"
|
||||
></el-image>
|
||||
<el-image style="width: 100px; height: 100px" :src="form.authUrlId"
|
||||
:preview-src-list="[form.authUrlId]"></el-image>
|
||||
</template>
|
||||
<template slot="identityUrl4IdImgForm">
|
||||
<el-image
|
||||
style="width: 100px; height: 100px"
|
||||
:src="form.identityUrl4Id"
|
||||
:preview-src-list="[form.identityUrl4Id]"
|
||||
></el-image>
|
||||
<el-image style="width: 100px; height: 100px" :src="form.identityUrl4Id"
|
||||
:preview-src-list="[form.identityUrl4Id]"></el-image>
|
||||
</template>
|
||||
<template slot="identityUrl5IdImgForm">
|
||||
<el-image
|
||||
style="width: 100px; height: 100px"
|
||||
:src="form.identityUrl5Id"
|
||||
:preview-src-list="[form.identityUrl5Id]"
|
||||
></el-image>
|
||||
<el-image style="width: 100px; height: 100px" :src="form.identityUrl5Id"
|
||||
:preview-src-list="[form.identityUrl5Id]"></el-image>
|
||||
</template>
|
||||
</avue-crud>
|
||||
</basic-container>
|
||||
@@ -283,7 +256,7 @@ export default {
|
||||
prop: "telphone",
|
||||
rules: [
|
||||
{
|
||||
required:true,
|
||||
required: true,
|
||||
validator: (rule, value, callback) => {
|
||||
if (validatenull(value)) {
|
||||
callback(new Error("请输入手机号码"));
|
||||
@@ -419,12 +392,14 @@ export default {
|
||||
row.authUrlId = getPath(row.authUrlId)
|
||||
row.identityUrl4Id = getPath(row.identityUrl4Id)
|
||||
row.identityUrl5Id = getPath(row.identityUrl5Id)
|
||||
// console.log(row, '----------------------------------');
|
||||
companyInfoAdd({
|
||||
authUrlId: row.authUrlId,
|
||||
cityId: row.cityId,
|
||||
companyAddress: row.companyAddress,
|
||||
companyName: row.companyName,
|
||||
companyTid: row.companyTid,
|
||||
comname: row.comname,
|
||||
identityUrl4Id: row.identityUrl4Id,
|
||||
identityUrl5Id: row.identityUrl5Id,
|
||||
manager: row.manager,
|
||||
@@ -449,7 +424,7 @@ export default {
|
||||
);
|
||||
},
|
||||
rowUpdate(row, index, done, loading) {
|
||||
console.log('rowUpdate')
|
||||
// console.log(row, 'rowUpdate')
|
||||
row.authUrlId = getPath(row.authUrlId)
|
||||
row.identityUrl4Id = getPath(row.identityUrl4Id)
|
||||
row.identityUrl5Id = getPath(row.identityUrl5Id)
|
||||
@@ -460,6 +435,7 @@ export default {
|
||||
companyAddress: row.companyAddress,
|
||||
companyName: row.companyName,
|
||||
companyTid: row.companyTid,
|
||||
comname: row.comname,
|
||||
identityUrl4Id: row.identityUrl4Id,
|
||||
identityUrl5Id: row.identityUrl5Id,
|
||||
manager: row.manager,
|
||||
@@ -575,5 +551,4 @@ export default {
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
<style></style>
|
||||
|
||||
Reference in New Issue
Block a user