Commit 22f2ba1e authored by 黄奎's avatar 黄奎

页面修改

parent f5b46909
...@@ -111,6 +111,10 @@ ...@@ -111,6 +111,10 @@
sticky: { sticky: {
type: String, type: String,
default: "" default: ""
},
loading: {
type: Boolean,
default: false,
} }
}, },
components: { components: {
...@@ -134,7 +138,7 @@ ...@@ -134,7 +138,7 @@
}, },
{ {
name: "CategoryName", name: "CategoryName",
label: "同名称", label: "同名称",
field: "CategoryName", field: "CategoryName",
align: "left" align: "left"
}, },
...@@ -231,9 +235,9 @@ ...@@ -231,9 +235,9 @@
this.getEmployeeList(); this.getEmployeeList();
}, },
mounted() { mounted() {
if(this.dataList&&this.dataList.length>0){ if (this.dataList && this.dataList.length > 0) {
this.dataList.forEach(x=>{ this.dataList.forEach(x => {
if(x.CustomerType==4){ if (x.CustomerType == 4) {
x.CategoryName = x.EnterpriseName x.CategoryName = x.EnterpriseName
} }
}) })
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
</style> </style>
<template> <template>
<div class="b2bcustomlist"> <div class="b2bcustomlist">
<q-table :pagination="pageMsg" :loading="loading" no-data-label="暂无相关数据" flat <q-table :pagination="pageMsg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table"
class="sticky-column-table" separator="none" :data="dataList" :columns="columns" row-key="CustomerId"> separator="none" :data="dataList" :columns="columns" row-key="CustomerId">
<template v-slot:top> <template v-slot:top>
<q-space /> <q-space />
<div class="page-option"> <div class="page-option">
...@@ -41,8 +41,10 @@ ...@@ -41,8 +41,10 @@
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" @click="EditCustom(props.row)" style="font-weight:400" label="修改" /> <q-btn flat size="xs" icon="edit" color="accent" @click="EditCustom(props.row)" style="font-weight:400"
<q-btn flat size="xs" icon="delete" @click="RemoveCustomer(props.row)" color="negative" style="font-weight:400" label="删除" /> label="修改" />
<q-btn flat size="xs" icon="delete" @click="RemoveCustomer(props.row)" color="negative"
style="font-weight:400" label="删除" />
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
...@@ -52,7 +54,8 @@ ...@@ -52,7 +54,8 @@
<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" :CategoryId="CategoryId" @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>
...@@ -66,6 +69,10 @@ ...@@ -66,6 +69,10 @@
dataList: { dataList: {
type: Array, type: Array,
default: null default: null
},
loading: {
type: Boolean,
default: false,
} }
}, },
components: { components: {
...@@ -127,7 +134,7 @@ ...@@ -127,7 +134,7 @@
loading: false, loading: false,
isShowCategoryForm: false, isShowCategoryForm: false,
customerObj: null, //传入参数 customerObj: null, //传入参数
tabId:1, tabId: 1,
//权限设置 //权限设置
AuthorityObj: { AuthorityObj: {
isShowEdit: false, //是否显示新增修改按钮 isShowEdit: false, //是否显示新增修改按钮
...@@ -135,15 +142,14 @@ ...@@ -135,15 +142,14 @@
isShowBankBook: false, //是否显示幸福存折 isShowBankBook: false, //是否显示幸福存折
isShowRebate: false //是否显示返佣 isShowRebate: false //是否显示返佣
}, },
isShowDetailForm:false, isShowDetailForm: false,
CategoryId:0 CategoryId: 0
}; };
}, },
created() { created() {
}, },
mounted() { mounted() {},
},
methods: { methods: {
//新增或者修改客户 //新增或者修改客户
EditCustom(obj) { EditCustom(obj) {
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
:options="customList" class="col-6 q-pr-lg q-pb-lg" v-model="objOption.CategoryId" clearable emit-value map-options /> :options="customList" class="col-6 q-pr-lg q-pb-lg" v-model="objOption.CategoryId" clearable emit-value map-options />
<template v-if="objOption.CustomerType!=4"> <template v-if="objOption.CustomerType!=4">
<div class="col-6" v-if="!isShowEdit"> <div class="col-6" v-if="!isShowEdit">
<q-btn label="立即添加" @click="isShowEdit=true" size="sm" color="primary" /> <q-btn label="立即添加同行" @click="isShowEdit=true" size="sm" color="primary" />
</div> </div>
<div class="col-6" v-if="isShowEdit" style="position:relative"> <div class="col-6" v-if="isShowEdit" style="position:relative">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.CategoryName" lazy-rules <q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.CategoryName" lazy-rules
......
This diff is collapsed.
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<q-input @input="resetSearch" filled clearable v-model="msg.CustomerName" label="联系人" maxlength="20" /> <q-input @input="resetSearch" filled clearable v-model="msg.CustomerName" label="联系人" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @input="resetSearch" filled clearable v-model="msg.CategoryName" label="同名称" maxlength="20" /> <q-input @input="resetSearch" filled clearable v-model="msg.CategoryName" label="同名称" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @input="resetSearch" filled clearable v-model="msg.ContactNumber" label="电话" maxlength="20" /> <q-input @input="resetSearch" filled clearable v-model="msg.ContactNumber" label="电话" maxlength="20" />
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<q-input @input="resetSearch" filled clearable v-model="msg.CustomerName" label="联系人" maxlength="20" /> <q-input @input="resetSearch" filled clearable v-model="msg.CustomerName" label="联系人" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @input="resetSearch" filled clearable v-model="msg.CategoryName" label="同名称" maxlength="20" /> <q-input @input="resetSearch" filled clearable v-model="msg.CategoryName" label="同名称" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @input="resetSearch" filled clearable v-model="msg.ContactNumber" label="电话" maxlength="20" /> <q-input @input="resetSearch" filled clearable v-model="msg.ContactNumber" label="电话" maxlength="20" />
......
This diff is collapsed.
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<stulist :dataList="data" @success="refreshPage" ref="stuList"> <stulist :dataList="data" @success="refreshPage" :loading="loading" ref="stuList">
</stulist> </stulist>
<div class="row" style="justify-content: flex-end;padding: 5px 20px"> <div class="row" style="justify-content: flex-end;padding: 5px 20px">
<q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end" <q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end"
......
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