Commit e06d4436 authored by 邓春圆's avatar 邓春圆

编辑页面,查看页面身份证详细权限配置,查看客户详情,路由修改

parent 88ee2fdd
...@@ -291,13 +291,13 @@ export const constantRoutes = [ ...@@ -291,13 +291,13 @@ export const constantRoutes = [
name: 'perfect', name: 'perfect',
meta: {title: '完善客户',titleEn:'Perfect customers', icon: ''} meta: {title: '完善客户',titleEn:'Perfect customers', icon: ''}
}, },
{ // {
path: 'query/:customerId(\\d+)', // path: 'query/:customerId(\\d+)',
component: (resolve) => import('@/views/ecw/customer/query'), // component: (resolve) => import('@/views/ecw/customer/query'),
props: true, // props: true,
name: 'customerQuery', // name: 'customerQuery',
meta: {title: '客户详情',titleEn:'Customer details', icon: '', activeMenu: '/customer/customer'} // meta: {title: '客户详情',titleEn:'Customer details', icon: '', activeMenu: '/customer/customer'}
} // }
] ]
}, },
{ {
......
...@@ -214,10 +214,10 @@ ...@@ -214,10 +214,10 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item v-hasPermi="['ecw:customer:query-card']" :label="$t('身份证姓名')"> <el-form-item v-hasPermi="['ecw:customer:edit-card']" :label="$t('身份证姓名')">
<el-input v-model="form.carName"></el-input> <el-input v-model="form.carName"></el-input>
</el-form-item> </el-form-item>
<el-form-item v-hasPermi="['ecw:customer:query-card']" :label="$t('身份证号码')"> <el-form-item v-hasPermi="['ecw:customer:edit-card']" :label="$t('身份证号码')">
<el-input v-model="form.carNo" ></el-input> <el-input v-model="form.carNo" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
<el-image v-show="!!customer.picture" :src="customer.picture" style="width: 100px;height: 100px"></el-image> <el-image v-show="!!customer.picture" :src="customer.picture" style="width: 100px;height: 100px"></el-image>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('备注')">{{ customer.remarks }}</el-descriptions-item> <el-descriptions-item :label="$t('备注')">{{ customer.remarks }}</el-descriptions-item>
<el-descriptions-item :label="$t('身份证姓名')">{{ customer.carName }}</el-descriptions-item> <el-descriptions-item v-if="permissions.includes('ecw:customer:query-card')" :label="$t('身份证姓名')">{{ customer.carName }}</el-descriptions-item>
<el-descriptions-item :label="$t('身份证号码')">{{ customer.carName }}</el-descriptions-item> <el-descriptions-item v-if="permissions.includes('ecw:customer:query-card')" :label="$t('身份证号码')">{{ customer.carName }}</el-descriptions-item>
<!-- <el-descriptions-item :label="$t('信用等级')">{{ customer }}</el-descriptions-item>--> <!-- <el-descriptions-item :label="$t('信用等级')">{{ customer }}</el-descriptions-item>-->
</el-descriptions> </el-descriptions>
</el-card> </el-card>
...@@ -460,15 +460,13 @@ import {getCountry} from "@/api/ecw/country" ...@@ -460,15 +460,13 @@ import {getCountry} from "@/api/ecw/country"
export default { export default {
name: 'query', name: 'query',
props: {
customerId: String
},
components: { components: {
Template, Template,
CustomerFollow, CustomerFollow,
CustomerComplaint CustomerComplaint
}, },
created() { created() {
this.permissions
//获取信用类型 //获取信用类型
getCreditRulePage({page:1,rows:999,type:2}).then(r => { getCreditRulePage({page:1,rows:999,type:2}).then(r => {
this.creditTypeList = r.data.list this.creditTypeList = r.data.list
...@@ -618,6 +616,12 @@ export default { ...@@ -618,6 +616,12 @@ export default {
} }
}, },
computed: { computed: {
permissions(){
return this.$store.state.user.permissions
},
customerId(){
return this.$route.params.customerId;
},
isChinese(){ isChinese(){
return this.$i18n.locale === 'zh_CN' return this.$i18n.locale === 'zh_CN'
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment