Commit 4d881832 authored by 黄奎's avatar 黄奎

页面修改

parent c4c95c6d
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<categoryEdit-form v-if="isShowCategoryForm" :customerObj="customerObj" @close="closeCustomForm" <categoryEdit-form v-if="isShowCategoryForm" :customerObj="customerObj" @close="closeCustomForm"
@success="refreshQuestion"> @success="refreshQuestion">
</categoryEdit-form> </categoryEdit-form>
<peerRight v-if="isShowDetailForm" :rowId="curRowId" @close="closeCustomForm" :auth="AuthorityObj" @success="refreshQuestion"></peerRight> <peerRight v-if="isShowDetailForm" :CategoryId="CategoryId" @close="closeCustomForm" :auth="AuthorityObj" @success="refreshQuestion"></peerRight>
</div> </div>
</template> </template>
<script> <script>
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
isShowRebate: false //是否显示返佣 isShowRebate: false //是否显示返佣
}, },
isShowDetailForm:false, isShowDetailForm:false,
curRowId:0 CategoryId:0
}; };
}, },
created() { created() {
...@@ -204,8 +204,7 @@ ...@@ -204,8 +204,7 @@
}, },
//客户详情 //客户详情
showDetail(row) { showDetail(row) {
console.log(row); this.CategoryId = row.CategoryId;
this.curRowId = row.CategoryId;
this.isShowDetailForm = true; this.isShowDetailForm = true;
} }
} }
......
<template> <template>
<q-dialog <q-dialog v-model="persistent" maximized full-height seamless position="right" @hide="closeAuditCustomerForm">
v-model="persistent"
maximized
full-height
seamless
position="right"
@hide="closeAuditCustomerForm"
>
<div class="info-content-component"> <div class="info-content-component">
<div class="info-head flex items-center"> <div class="info-head flex items-center">
<div class="flex items-center"> <div class="flex items-center">
...@@ -23,34 +16,36 @@ ...@@ -23,34 +16,36 @@
<baseInfo :Data="detailData" @confirm="saveBaseInfo"></baseInfo> <baseInfo :Data="detailData" @confirm="saveBaseInfo"></baseInfo>
</div> </div>
<div class="detail-log"> <div class="detail-log">
<right :Id="rowId"></right> <right :Id="CategoryId"></right>
</div> </div>
</div> </div>
</div> </div>
<div <div class="dialog-out-close" @click="closeAuditCustomerForm"
class="dialog-out-close" style="height:40px !important;border-top-left-radius: 4px !important;border-bottom-left-radius: 4px !important;">
@click="closeAuditCustomerForm"
style="height:40px !important;border-top-left-radius: 4px !important;border-bottom-left-radius: 4px !important;"
>
<q-icon name="iconfont icon-jujue1" size="26px" /> <q-icon name="iconfont icon-jujue1" size="26px" />
</div> </div>
</q-dialog> </q-dialog>
</template> </template>
<script> <script>
import { GetCustomer, SetCustomer ,RemoveCustomer,setCustomerCareOf} from "../../../api/sale/peemanagement"; import {
import { GetCustomer,
SetCustomer,
RemoveCustomer,
setCustomerCareOf
} from "../../../api/sale/peemanagement";
import {
queryCustomerCategory, queryCustomerCategory,
saveCustomerCategory saveCustomerCategory
} from "../../../api/users/user" } from "../../../api/users/user"
import baseInfo from "./baseInfo.vue"; import baseInfo from "./baseInfo.vue";
import right from "./conRight.vue"; import right from "./conRight.vue";
export default { export default {
components: { components: {
baseInfo, baseInfo,
right right
}, },
props: { props: {
rowId: { CategoryId: {
type: Number, type: Number,
default: 0 default: 0
}, },
...@@ -92,7 +87,7 @@ export default { ...@@ -92,7 +87,7 @@ export default {
}; };
queryCustomerCategory(msg).then(res => { queryCustomerCategory(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
console.log(res,'数据'); console.log(res, '数据');
this.detailData = res.Data; this.detailData = res.Data;
} }
}); });
...@@ -102,14 +97,14 @@ export default { ...@@ -102,14 +97,14 @@ export default {
}, },
saveBaseInfo(obj) { saveBaseInfo(obj) {
this.detailData[obj.field] = obj.val; this.detailData[obj.field] = obj.val;
console.log(this.detailData,'this.detailData'); console.log(this.detailData, 'this.detailData');
let msg = { let msg = {
CategoryName:this.detailData.CategoryName, CategoryName: this.detailData.CategoryName,
CatetoryType:this.detailData.CatetoryType, CatetoryType: this.detailData.CatetoryType,
CategoryId:this.detailData.CategoryId, CategoryId: this.detailData.CategoryId,
linkMan:'', linkMan: '',
linkTel:'' linkTel: ''
} }
saveCustomerCategory(msg).then(res => { saveCustomerCategory(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
...@@ -166,10 +161,10 @@ export default { ...@@ -166,10 +161,10 @@ export default {
}); });
}, },
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.info-content-component { .info-content-component {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 1010px; width: 1010px;
...@@ -212,5 +207,5 @@ export default { ...@@ -212,5 +207,5 @@ export default {
overflow: hidden; overflow: hidden;
} }
} }
} }
</style> </style>
\ No newline at end of file
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