lion 3 years ago
parent 94fbbb6d85
commit 79e2a96dba

@ -76,6 +76,7 @@ export default {
this.$emit('updateshow',this.dialogVisible) this.$emit('updateshow',this.dialogVisible)
}, },
handleSuccess(response, file) { handleSuccess(response, file) {
console.log("response",response)
const uid = file.uid const uid = file.uid
const objKeyArr = Object.keys(this.listObj) const objKeyArr = Object.keys(this.listObj)
for (let i = 0, len = objKeyArr.length; i < len; i++) { for (let i = 0, len = objKeyArr.length; i < len; i++) {

@ -83,7 +83,7 @@ export default {
// assignment toolbar // assignment toolbar
editor.ui.registry.addButton('assignment', { editor.ui.registry.addButton('assignment', {
text: `<i class="el-icon-position" style="font-size: 16px">上传</i>`, text: `<i class="el-icon-position" style="font-size: 16px">上传</i>`,
tooltip: '图片上传', // tooltip: '',
onAction: () => { onAction: () => {
this.showImg = true this.showImg = true
// _this.showEdit = true // _this.showEdit = true

@ -15,8 +15,13 @@
:hide-on-click="false" :hide-on-click="false"
> >
<div class="message-wrapper"> <div class="message-wrapper">
<el-badge :value="noticeData.length>0?noticeData.length:''" :max="99" class="item">
<i class="el-icon-chat-dot-square" /> <i class="el-icon-chat-dot-square" />
<span>消息中心</span> <span>消息中心</span>
</el-badge>
</div> </div>
<template v-slot:dropdown> <template v-slot:dropdown>
<el-dropdown-menu class="message-dropdown"> <el-dropdown-menu class="message-dropdown">
@ -46,7 +51,7 @@
<el-dropdown-item :divided="!index"> <el-dropdown-item :divided="!index">
<div style="display: flex; align-items: center"> <div style="display: flex; align-items: center">
<div v-for="(value, key) in item.data"> <div v-for="(value, key) in item.data">
{{ key }} : {{ value }} {{timeymd(item.created_at)}} {{ key }} : {{ value }}
</div> </div>
<Button <Button
style="margin-left: 10px;" style="margin-left: 10px;"
@ -59,6 +64,7 @@
</div> </div>
</el-dropdown-item> </el-dropdown-item>
</template> </template>
<!-- <li>查看更多消息</li> -->
</template> </template>
<template v-else> <template v-else>
<div style="text-align: center;color: rgb(140,140,140);padding: 10px 0;">暂无通知</div> <div style="text-align: center;color: rgb(140,140,140);padding: 10px 0;">暂无通知</div>
@ -177,6 +183,10 @@ export default {
...mapGetters(["sidebar", "avatar"]), ...mapGetters(["sidebar", "avatar"]),
}, },
methods: { methods: {
timeymd(start){
return this.$moment(start).format('YYYY-MM-DD')
},
toggleMessage(item){ toggleMessage(item){
if(item.read_at) return if(item.read_at) return
toggleRead({ toggleRead({
@ -211,7 +221,11 @@ export default {
}, },
}; };
</script> </script>
<style scoped>
/deep/ .el-badge__content.is-fixed{
top:13px;
}
</style>
<style lang="scss" scoped> <style lang="scss" scoped>
.navbar { .navbar {
height: 50px; height: 50px;
@ -296,10 +310,10 @@ export default {
height: 100%; height: 100%;
padding: 0 6px; padding: 0 6px;
& > i { i {
font-weight: 600; font-weight: 600;
} }
& > span { span {
font-weight: 600; font-weight: 600;
padding-left: 6px; padding-left: 6px;

@ -314,6 +314,10 @@
<!-- shopId选择--> <!-- shopId选择-->
<Modal v-model="isShowShops" title="关联方选择"> <Modal v-model="isShowShops" title="关联方选择">
<div class="searchCompanys">
<el-input type="text" @keyup.enter.native="getCompanys" v-model="companykeyword" placeholder="请输入关键词查找商户"></el-input>
<el-button type="primary" @click="getCompanys"></el-button>
</div>
<Table <Table
highlight-row highlight-row
ref="currentRowTable" ref="currentRowTable"
@ -341,7 +345,7 @@ export default {
type:'add', type:'add',
id:'', id:'',
action:`${process.env.VUE_APP_BASE_API}api/admin/upload-file`, action:`${process.env.VUE_APP_BASE_API}api/admin/upload-file`,
companykeyword:"",
form:{ form:{
activeName:"", activeName:"",
company_ids:[], company_ids:[],
@ -510,7 +514,8 @@ export default {
async getCompanys(){ async getCompanys(){
const res = await companyIndex({ const res = await companyIndex({
page_size:10, page_size:10,
page:this.companyPageIndex page:this.companyPageIndex,
keyword:this.companykeyword
}) })
this.shops = res.rows this.shops = res.rows
this.shopTotal = res.total this.shopTotal = res.total
@ -718,4 +723,12 @@ export default {
::v-deep .el-input-number .el-input__inner{ ::v-deep .el-input-number .el-input__inner{
text-align: left !important; text-align: left !important;
} }
.searchCompanys{
display: flex;
justify-content: space-between;
margin-bottom:16px;
.el-input{
width:80%
}
}
</style> </style>

@ -37,7 +37,7 @@
<div class="select-content-item"> <div class="select-content-item">
<div class="select-content-item-label">订单状态</div> <div class="select-content-item-label">订单状态</div>
<div> <div>
<template v-for="(value,key) of orderItemStates"> <template v-for="(value,key) of orderStates">
<!-- <el-tag size="small" v-if="key!='unpaid'" --> <!-- <el-tag size="small" v-if="key!='unpaid'" -->
<el-tag size="small" <el-tag size="small"
:effect="select.orderStates.key === key ? 'dark' : 'plain'" :effect="select.orderStates.key === key ? 'dark' : 'plain'"
@ -381,7 +381,7 @@
}, },
{ {
prop: "state_name", prop: "order_state_name",
label: "状态", label: "状态",
width: 120 width: 120
} }

@ -195,7 +195,7 @@
<Modal v-model="isShowMerchantSelect" title="所属商户选择"> <Modal v-model="isShowMerchantSelect" title="所属商户选择">
<div class="searchMerchants"> <div class="searchMerchants">
<el-input type="text" v-model="merchantKeyword" placeholder="请输入关键词查找商户"></el-input> <el-input type="text" @keyup.enter.native="searchMerchants" v-model="merchantKeyword" placeholder="请输入关键词查找商户"></el-input>
<el-button type="primary" @click="searchMerchants"></el-button> <el-button type="primary" @click="searchMerchants"></el-button>
</div> </div>
<Table size="small" highlight-row ref="currentRowTable" :columns="merchantTable" :data="merchants" <Table size="small" highlight-row ref="currentRowTable" :columns="merchantTable" :data="merchants"

Loading…
Cancel
Save