Commit e1c04fff by xinla

mid-action类基础样式提出

1 parent 1059822f
...@@ -10,6 +10,15 @@ ...@@ -10,6 +10,15 @@
<a v-else @click.prevent="handleLink(item)">{{ item.meta.title }}</a> <a v-else @click.prevent="handleLink(item)">{{ item.meta.title }}</a>
</el-breadcrumb-item> </el-breadcrumb-item>
</transition-group> </transition-group>
<el-popover
v-if="busininessDesc"
placement="top-start"
title="引导语"
trigger="hover"
>
<div v-html="busininessDesc"></div>
<i class="el-icon-question" slot="reference"></i>
</el-popover>
</el-breadcrumb> </el-breadcrumb>
</template> </template>
...@@ -28,9 +37,15 @@ export default { ...@@ -28,9 +37,15 @@ export default {
if (route.path.startsWith('/redirect/')) { if (route.path.startsWith('/redirect/')) {
return return
} }
this.$store.state.app.busininessDesc = ''
this.getBreadcrumb() this.getBreadcrumb()
}, },
}, },
computed: {
busininessDesc() {
return this.$store.state.app.busininessDesc
},
},
created() { created() {
this.getBreadcrumb() this.getBreadcrumb()
}, },
...@@ -88,4 +103,8 @@ export default { ...@@ -88,4 +103,8 @@ export default {
cursor: text; cursor: text;
} }
} }
.el-icon-question {
color: #888;
margin-left: 10px;
}
</style> </style>
...@@ -2,15 +2,18 @@ import Cookies from 'js-cookie' ...@@ -2,15 +2,18 @@ import Cookies from 'js-cookie'
const state = { const state = {
sidebar: { sidebar: {
opened: Cookies.get('sidebarStatus') ? !!+Cookies.get('sidebarStatus') : true, opened: Cookies.get('sidebarStatus')
withoutAnimation: false ? !!+Cookies.get('sidebarStatus')
: true,
withoutAnimation: false,
}, },
device: 'desktop', device: 'desktop',
size: Cookies.get('size') || 'medium' size: Cookies.get('size') || 'medium',
busininessDesc: undefined,
} }
const mutations = { const mutations = {
TOGGLE_SIDEBAR: state => { TOGGLE_SIDEBAR: (state) => {
state.sidebar.opened = !state.sidebar.opened state.sidebar.opened = !state.sidebar.opened
state.sidebar.withoutAnimation = false state.sidebar.withoutAnimation = false
if (state.sidebar.opened) { if (state.sidebar.opened) {
...@@ -30,7 +33,10 @@ const mutations = { ...@@ -30,7 +33,10 @@ const mutations = {
SET_SIZE: (state, size) => { SET_SIZE: (state, size) => {
state.size = size state.size = size
Cookies.set('size', size) Cookies.set('size', size)
} },
SET_busininessDesc: (state, busininessDesc) => {
state.busininessDesc = busininessDesc
},
} }
const actions = { const actions = {
...@@ -45,12 +51,15 @@ const actions = { ...@@ -45,12 +51,15 @@ const actions = {
}, },
setSize({ commit }, size) { setSize({ commit }, size) {
commit('SET_SIZE', size) commit('SET_SIZE', size)
} },
setBusininessDesc({ commit }, busininessDesc) {
commit('SET_busininessDesc', busininessDesc)
},
} }
export default { export default {
namespaced: true, namespaced: true,
state, state,
mutations, mutations,
actions actions,
} }
...@@ -86,7 +86,7 @@ div:focus { ...@@ -86,7 +86,7 @@ div:focus {
visibility: hidden; visibility: hidden;
display: block; display: block;
font-size: 0; font-size: 0;
content: " "; content: ' ';
clear: both; clear: both;
height: 0; height: 0;
} }
...@@ -100,7 +100,8 @@ aside { ...@@ -100,7 +100,8 @@ aside {
display: block; display: block;
line-height: 32px; line-height: 32px;
font-size: 16px; font-size: 16px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
color: #2c3e50; color: #2c3e50;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
...@@ -126,7 +127,7 @@ aside { ...@@ -126,7 +127,7 @@ aside {
} }
.text-center { .text-center {
text-align: center text-align: center;
} }
.sub-navbar { .sub-navbar {
...@@ -137,7 +138,13 @@ aside { ...@@ -137,7 +138,13 @@ aside {
text-align: right; text-align: right;
padding-right: 20px; padding-right: 20px;
transition: 600ms ease position; transition: 600ms ease position;
background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%); background: linear-gradient(
90deg,
rgba(32, 182, 249, 1) 0%,
rgba(32, 182, 249, 1) 0%,
rgba(33, 120, 241, 1) 100%,
rgba(33, 120, 241, 1) 100%
);
.subtitle { .subtitle {
font-size: 20px; font-size: 20px;
...@@ -187,7 +194,6 @@ aside { ...@@ -187,7 +194,6 @@ aside {
} }
.el-table { .el-table {
.el-table__header-wrapper, .el-table__header-wrapper,
.el-table__fixed-header-wrapper { .el-table__fixed-header-wrapper {
th { th {
...@@ -206,22 +212,22 @@ aside { ...@@ -206,22 +212,22 @@ aside {
color: #6379bb; color: #6379bb;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
margin: 8px 10px 25px 10px; margin: 8px 10px 25px 10px;
padding-bottom: 5px padding-bottom: 5px;
} }
/** 表格布局 **/ /** 表格布局 **/
.el-table .fixed-width .el-button--mini { .el-table .fixed-width .el-button--mini {
color: #409EFF; color: #409eff;
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
width: inherit; width: inherit;
} }
.el-tree-node__content>.el-checkbox { .el-tree-node__content > .el-checkbox {
margin-right: 8px; margin-right: 8px;
} }
.list-group-striped>.list-group-item { .list-group-striped > .list-group-item {
border-left: 0; border-left: 0;
border-right: 0; border-right: 0;
border-radius: 0; border-radius: 0;
...@@ -264,22 +270,22 @@ aside { ...@@ -264,22 +270,22 @@ aside {
/* button color */ /* button color */
.el-button--cyan.is-active, .el-button--cyan.is-active,
.el-button--cyan:active { .el-button--cyan:active {
background: #20B2AA; background: #20b2aa;
border-color: #20B2AA; border-color: #20b2aa;
color: #FFFFFF; color: #ffffff;
} }
.el-button--cyan:focus, .el-button--cyan:focus,
.el-button--cyan:hover { .el-button--cyan:hover {
background: #48D1CC; background: #48d1cc;
border-color: #48D1CC; border-color: #48d1cc;
color: #FFFFFF; color: #ffffff;
} }
.el-button--cyan { .el-button--cyan {
background-color: #20B2AA; background-color: #20b2aa;
border-color: #20B2AA; border-color: #20b2aa;
color: #FFFFFF; color: #ffffff;
} }
/* text color */ /* text color */
...@@ -334,7 +340,7 @@ aside { ...@@ -334,7 +340,7 @@ aside {
/* 拖拽列样式 */ /* 拖拽列样式 */
.sortable-ghost { .sortable-ghost {
opacity: .8; opacity: 0.8;
color: #fff !important; color: #fff !important;
background: #42b983 !important; background: #42b983 !important;
} }
...@@ -342,4 +348,39 @@ aside { ...@@ -342,4 +348,39 @@ aside {
.top-right-btn { .top-right-btn {
position: relative; position: relative;
float: right; float: right;
}
\ No newline at end of file \ No newline at end of file
}
.tag-input {
width: 240px;
display: flex;
border-radius: 4px;
border: 1px solid #dcdfe6;
align-items: center;
padding: 0 15px;
overflow: hidden;
height: 32px;
background-color: #fff;
.tag-place {
color: #bbb;
font-size: 14px;
}
}
.mid-action {
display: flex;
justify-content: space-between;
padding: 10px 0;
align-items: center;
.total {
background-color: rgba(65, 133, 244, 0.1);
border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
<script> <script>
import * as api from "@/api/task"; import * as api from '@/api/task'
export default { export default {
name: 'Group', name: 'Group',
data () { data() {
return { return {
query: { query: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
taskName: "", taskName: '',
startTime: "", startTime: '',
overTime: "", overTime: '',
fissionType:2 fissionType: 2,
}, },
dateRange: [], dateRange: [],
tableData: [], tableData: [],
total:0 total: 0,
} }
},
created() {
this.getList()
},
methods: {
getList(data) {
let params = Object.assign({}, this.query, data)
api.getList(params).then(({ rows, total }) => {
this.tableData = rows
this.total = +total
})
}, },
created () { resetForm() {},
this.getList() toDetail(row) {
this.$router.push({
path: `/application/fissionDetail?id=${row.id}`,
})
}, },
methods: { newAdd() {
getList (data) { this.$router.push({
let params = Object.assign({},this.query,data) path: '/application/addFission',
api.getList(params) })
.then(({ rows, total }) => {
this.tableData = rows;
this.total = +total;
})
},
resetForm () {
},
toDetail(row){
this.$router.push({
path: `/application/fissionDetail?id=${row.id}`,
})
},
newAdd () {
this.$router.push({
path: '/application/addFission',
})
},
toEdit(row){
this.$router.push({
path: `/application/addFission?id=${row.id}`,
})
}
}, },
toEdit(row) {
this.$router.push({
path: `/application/addFission?id=${row.id}`,
})
},
},
} }
</script> </script>
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form <el-form
ref="queryForm" ref="queryForm"
:inline="true" :inline="true"
:model="query" :model="query"
label-width="100px" label-width="100px"
class="top-search" class="top-search"
size="small" size="small"
>
<el-form-item label="裂变名" prop="taskName">
<el-input v-model="query.taskName" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="添加日期">
<el-date-picker
v-model="dateRange"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
></el-date-picker>
</el-form-item>
<el-form-item label=" ">
<el-button
v-hasPermi="['customerManage:customer:query']"
type="primary"
@click="getList({ pageNum: 1 })"
>查询</el-button
> >
<el-form-item <el-button
label="裂变名" v-hasPermi="['customerManage:customer:query']"
prop="taskName" type="primary"
> @click="newAdd()"
<el-input >新增任务</el-button
v-model="query.taskName"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="添加日期">
<el-date-picker
v-model="dateRange"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
></el-date-picker>
</el-form-item>
<el-form-item label=" ">
<el-button
v-hasPermi="['customerManage:customer:query']"
type="primary"
@click="getList({pageNum:1})"
>查询</el-button>
<el-button
v-hasPermi="['customerManage:customer:query']"
type="primary"
@click="newAdd()"
>新增任务</el-button>
</el-form-item>
</el-form>
<el-table
:data="tableData"
border
style="width: 100%"
> >
<el-table-column </el-form-item>
prop="taskName" </el-form>
label="群裂变名称" <el-table :data="tableData" border style="width: 100%">
> <el-table-column prop="taskName" label="群裂变名称"> </el-table-column>
</el-table-column> <el-table-column prop="fissNum" label="裂变客户数量"> </el-table-column>
<el-table-column <el-table-column prop="fissStatus" label="活动状态">
prop="fissNum" <template slot-scope="scope">
label="裂变客户数量" <p>{{ scope.row.fissStatus === 1 ? '进行中' : '已结束' }}</p>
> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="startTime" label="活动时间">
prop="fissStatus" <template slot-scope="scope">
label="活动状态" <p>{{ scope.row.startTime }}-{{ scope.row.overTime }}</p>
> </template>
<template slot-scope="scope"> </el-table-column>
<p>{{ scope.row.fissStatus===1?'进行中':'已结束' }}</p> <el-table-column prop="operation" label="操作">
</template> <template slot-scope="scope">
</el-table-column> <el-button
<el-table-column @click="toDetail(scope.row)"
prop="startTime" v-hasPermi="['enterpriseWechat:view']"
label="活动时间" size="mini"
> type="text"
<template slot-scope="scope"> icon="el-icon-view"
<p>{{ scope.row.startTime}}-{{scope.row.overTime}}</p> >查看</el-button
</template> >
</el-table-column> <el-button
<el-table-column v-if="scope.row.fissStatus != 2"
prop="operation" @click="toEdit(scope.row)"
label="操作" v-hasPermi="['enterpriseWechat:edit']"
> size="mini"
<template slot-scope="scope"> type="text"
<el-button icon="el-icon-edit"
@click="toDetail(scope.row)" >编辑</el-button
v-hasPermi="['enterpriseWechat:view']" >
size="mini" </template>
type="text" </el-table-column>
icon="el-icon-view" </el-table>
>查看</el-button> <pagination
<el-button v-show="total > 0"
v-if="scope.row.fissStatus!=2" :total="total"
@click="toEdit(scope.row)" :page.sync="query.pageNum"
v-hasPermi="['enterpriseWechat:edit']" :limit.sync="query.pageSize"
size="mini" @pagination="getList()"
type="text" />
icon="el-icon-edit" </div>
>编辑</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="query.pageNum"
:limit.sync="query.pageSize"
@pagination="getList()"
/>
</div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped></style>
.mid-action {
display: flex;
justify-content: space-between;
margin: 10px 0;
align-items: center;
.total {
background-color: rgba(65, 133, 244, 0.1);
border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
</style>
<script> <script>
import * as api from "@/api/task"; import * as api from '@/api/task'
export default { export default {
name: 'Group', name: 'Group',
data () { data() {
return { return {
query: { query: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
taskName: "", taskName: '',
startTime: "", startTime: '',
overTime: "", overTime: '',
fissionType: 1 fissionType: 1,
}, },
dateRange: [], dateRange: [],
tableData: [], tableData: [],
total:0 total: 0,
} }
},
created() {
this.getList()
},
methods: {
getList(data) {
let params = Object.assign({}, this.query, data)
api.getList(params).then(({ rows, total }) => {
this.tableData = rows
this.total = +total
})
}, },
created () { resetForm() {},
this.getList() toDetail(row) {
this.$router.push({
path: `/application/taskDetail?id=${row.id}`,
})
}, },
methods: { newAdd() {
getList (data) { this.$router.push({
let params = Object.assign({},this.query,data) path: '/application/addTask',
api.getList(params) })
.then(({ rows, total }) => {
this.tableData = rows;
this.total = +total;
})
},
resetForm () {
},
toDetail(row){
this.$router.push({
path: `/application/taskDetail?id=${row.id}`,
})
},
newAdd () {
this.$router.push({
path: '/application/addTask',
})
},
toEdit(row){
this.$router.push({
path: `/application/addTask?id=${row.id}`,
})
}
}, },
toEdit(row) {
this.$router.push({
path: `/application/addTask?id=${row.id}`,
})
},
},
} }
</script> </script>
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form <el-form
ref="queryForm" ref="queryForm"
:inline="true" :inline="true"
:model="query" :model="query"
label-width="100px" label-width="100px"
class="top-search" class="top-search"
size="small" size="small"
>
<el-form-item label="任务名" prop="taskName">
<el-input v-model="query.taskName" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="添加日期">
<el-date-picker
v-model="dateRange"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
></el-date-picker>
</el-form-item>
<el-form-item label=" ">
<el-button
v-hasPermi="['customerManage:customer:query']"
type="primary"
@click="getList({ pageNum: 1 })"
>查询</el-button
> >
<el-form-item <el-button
label="任务名" v-hasPermi="['customerManage:customer:query']"
prop="taskName" type="primary"
> @click="newAdd()"
<el-input >新增任务</el-button
v-model="query.taskName"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="添加日期">
<el-date-picker
v-model="dateRange"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
></el-date-picker>
</el-form-item>
<el-form-item label=" ">
<el-button
v-hasPermi="['customerManage:customer:query']"
type="primary"
@click="getList({pageNum:1})"
>查询</el-button>
<el-button
v-hasPermi="['customerManage:customer:query']"
type="primary"
@click="newAdd()"
>新增任务</el-button>
</el-form-item>
</el-form>
<el-table
:data="tableData"
border
style="width: 100%"
> >
<el-table-column </el-form-item>
prop="taskName" </el-form>
label="任务活动名称" <el-table :data="tableData" border style="width: 100%">
> <el-table-column prop="taskName" label="任务活动名称"> </el-table-column>
</el-table-column> <el-table-column prop="fissNum" label="裂变客户数量"> </el-table-column>
<el-table-column <el-table-column prop="fissStatus" label="活动状态">
prop="fissNum" <template slot-scope="scope">
label="裂变客户数量" <p>{{ scope.row.fissStatus === 1 ? '进行中' : '已结束' }}</p>
> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="startTime" label="活动时间">
prop="fissStatus" <template slot-scope="scope">
label="活动状态" <p>{{ scope.row.startTime }}-{{ scope.row.overTime }}</p>
> </template>
<template slot-scope="scope"> </el-table-column>
<p>{{ scope.row.fissStatus===1?'进行中':'已结束' }}</p> <el-table-column prop="operation" label="操作">
</template> <template slot-scope="scope">
</el-table-column> <el-button
<el-table-column @click="toDetail(scope.row)"
prop="startTime" v-hasPermi="['enterpriseWechat:view']"
label="活动时间" size="mini"
> type="text"
<template slot-scope="scope"> icon="el-icon-view"
<p>{{ scope.row.startTime}}-{{scope.row.overTime}}</p> >查看</el-button
</template> >
</el-table-column> <el-button
<el-table-column v-if="scope.row.fissStatus != 2"
prop="operation" @click="toEdit(scope.row)"
label="操作" v-hasPermi="['enterpriseWechat:edit']"
> size="mini"
<template slot-scope="scope"> type="text"
<el-button icon="el-icon-edit"
@click="toDetail(scope.row)" >编辑</el-button
v-hasPermi="['enterpriseWechat:view']" >
size="mini" </template>
type="text" </el-table-column>
icon="el-icon-view" </el-table>
>查看</el-button> <pagination
<el-button v-show="total > 0"
v-if="scope.row.fissStatus!=2" :total="total"
@click="toEdit(scope.row)" :page.sync="query.pageNum"
v-hasPermi="['enterpriseWechat:edit']" :limit.sync="query.pageSize"
size="mini" @pagination="getList()"
type="text" />
icon="el-icon-edit" </div>
>编辑</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="query.pageNum"
:limit.sync="query.pageSize"
@pagination="getList()"
/>
</div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped></style>
.mid-action {
display: flex;
justify-content: space-between;
margin: 10px 0;
align-items: center;
.total {
background-color: rgba(65, 133, 244, 0.1);
border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
</style>
...@@ -16,12 +16,16 @@ ...@@ -16,12 +16,16 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-input v-model="form.keyword" placeholder="搜索关键词" style="width:300px"> <el-input
v-model="form.keyword"
placeholder="搜索关键词"
style="width:300px"
>
<el-button slot="prepend" icon="el-icon-search"></el-button> <el-button slot="prepend" icon="el-icon-search"></el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="getSensitiveList">查询</el-button> <el-button type="primary" @click="getSensitiveList">查询</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="search-content"> <div class="search-content">
...@@ -41,30 +45,41 @@ ...@@ -41,30 +45,41 @@
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
class="date-range"> class="date-range"
>
</el-date-picker> </el-date-picker>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<el-table :data="tableData" stripe style="width: 100%" <el-table
:header-cell-style="{background:'#fff'}"> :data="tableData"
<el-table-column prop="pattern_words" label="敏感词"> stripe
</el-table-column> style="width: 100%"
<el-table-column prop="content" label="内容"> :header-cell-style="{ background: '#fff' }"
</el-table-column> >
<el-table-column prop="from" label="触发者"> <el-table-column prop="pattern_words" label="敏感词"> </el-table-column>
</el-table-column> <el-table-column prop="content" label="内容"> </el-table-column>
<el-table-column prop="from" label="触发者"> </el-table-column>
<el-table-column prop="status" label="消息状态"> <el-table-column prop="status" label="消息状态">
<template slot="header" > <template slot="header">
{{floorRange}} {{ floorRange }}
<el-select size="mini" v-model="floorRange" class="noborder" @change="chechName(floorRange)"> <el-select
<el-option v-for="item in displayOptions" :key="item.value" :label="item.label" :value="item.value"> size="mini"
v-model="floorRange"
class="noborder"
@change="chechName(floorRange)"
>
<el-option
v-for="item in displayOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> </el-option>
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="msgtime" label="发送时间"> <el-table-column prop="msgtime" label="发送时间"> </el-table-column>
</el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total > 0" v-show="total > 0"
...@@ -84,10 +99,10 @@ ...@@ -84,10 +99,10 @@
</template> </template>
<script> <script>
import * as sensitiveApis from '@/api/conversation/security' import * as sensitiveApis from '@/api/conversation/security'
import SelectUser from "@/components/SelectUser" import SelectUser from '@/components/SelectUser'
export default { export default {
components: { components: {
SelectUser SelectUser,
}, },
data() { data() {
return { return {
...@@ -96,7 +111,7 @@ export default { ...@@ -96,7 +111,7 @@ export default {
pageNum: 1, pageNum: 1,
scopeType: '', scopeType: '',
auditScopeId: '', auditScopeId: '',
keyword: '' // 关键词 keyword: '', // 关键词
}, },
selectDate: '', selectDate: '',
dateRangeValue: '', // 时间选择 dateRangeValue: '', // 时间选择
...@@ -104,28 +119,29 @@ export default { ...@@ -104,28 +119,29 @@ export default {
queryUser: [], // 搜索框选择的添加人 queryUser: [], // 搜索框选择的添加人
query: { query: {
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 10,
}, },
total: 0, total: 0,
dialogVisibleSelectUser: false, // 选择添加人弹窗显隐 dialogVisibleSelectUser: false, // 选择添加人弹窗显隐
floorRange:'全部', floorRange: '全部',
displayOptions: [{ displayOptions: [
value: "0", {
label: "全部" value: '0',
label: '全部',
}, },
{ {
value: "1", value: '1',
label: "已发送" label: '已发送',
}, },
{ {
value: "2", value: '2',
label: "已撤回" label: '已撤回',
}, },
{ {
value: "3", value: '3',
label: "已删除" label: '已删除',
} },
] ],
} }
}, },
methods: { methods: {
...@@ -133,7 +149,7 @@ export default { ...@@ -133,7 +149,7 @@ export default {
if (this.queryUser.length > 0) { if (this.queryUser.length > 0) {
this.form.pageSize = this.query.pageSize this.form.pageSize = this.query.pageSize
this.form.pageNum = this.query.pageNum this.form.pageNum = this.query.pageNum
sensitiveApis.getSecurityList(this.form).then(res => { sensitiveApis.getSecurityList(this.form).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.tableData = res.rows this.tableData = res.rows
this.total = Number(res.total) this.total = Number(res.total)
...@@ -157,54 +173,40 @@ export default { ...@@ -157,54 +173,40 @@ export default {
selectedUser(list) { selectedUser(list) {
// console.log(list) // console.log(list)
this.queryUser = list this.queryUser = list
this.form.scopeType = list.map(d => d.department) + "" this.form.scopeType = list.map((d) => d.department) + ''
this.form.auditScopeId = list.map(d => d.userId) + "" this.form.auditScopeId = list.map((d) => d.userId) + ''
this.getSensitiveList() this.getSensitiveList()
} },
} },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.demo-form-inline { .demo-form-inline {
background: #efefef; background: #efefef;
padding: 18px 10px 0 10px; padding: 18px 10px 0 10px;
} }
.tag-input {
width: 240px; .search-content {
display: flex; height: 40px;
border-radius: 4px; margin-top: 15px;
border: 1px solid #dcdfe6; padding: 10px;
align-items: center; .left-title {
padding: 0 15px;
overflow: hidden;
height: 32px;
background: #fff;
.tag-place {
color: #bbb;
font-size: 14px;
}
}
.search-content {
height: 40px; height: 40px;
margin-top: 15px; line-height: 40px;
padding: 10px;
.left-title {
height: 40px;
line-height: 40px;
}
.date-range {
margin-left: 10px;
width: 300px;
}
} }
.noborder { .date-range {
/deep/ .el-input--mini .el-input__inner{ margin-left: 10px;
width: 2px; width: 300px;
border: none;
}
} }
.content { }
margin-top: 15px; .noborder {
padding: 10px; /deep/ .el-input--mini .el-input__inner {
width: 2px;
border: none;
} }
</style>
\ No newline at end of file \ No newline at end of file
}
.content {
margin-top: 15px;
padding: 10px;
}
</style>
...@@ -522,40 +522,6 @@ export default { ...@@ -522,40 +522,6 @@ export default {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.tag-input {
width: 240px;
display: flex;
border-radius: 4px;
border: 1px solid #dcdfe6;
align-items: center;
padding: 0 15px;
overflow: hidden;
height: 32px;
.tag-place {
color: #bbb;
font-size: 14px;
}
}
.mid-action {
display: flex;
justify-content: space-between;
padding: 10px 0;
align-items: center;
background: #fff;
.total {
background-color: rgba(65, 133, 244, 0.1);
border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
.el-icon-s-custom { .el-icon-s-custom {
font-size: 16px; font-size: 16px;
margin-left: 4px; margin-left: 4px;
......
...@@ -157,26 +157,6 @@ export default { ...@@ -157,26 +157,6 @@ export default {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.mid-action {
display: flex;
justify-content: space-between;
margin: 10px 0;
align-items: center;
.total {
background-color: rgba(65, 133, 244, 0.1);
border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
.info-wrap { .info-wrap {
margin-left: 20px; margin-left: 20px;
.info { .info {
......
...@@ -249,23 +249,4 @@ export default { ...@@ -249,23 +249,4 @@ export default {
.el-select { .el-select {
width: 220px; width: 220px;
} }
.mid-action {
display: flex;
justify-content: space-between;
margin: 10px 0;
align-items: center;
.total {
background-color: rgba(65, 133, 244, 0.1);
border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
</style> </style>
...@@ -257,24 +257,4 @@ export default { ...@@ -257,24 +257,4 @@ export default {
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped></style>
.mid-action {
display: flex;
justify-content: space-between;
margin: 10px 0;
align-items: center;
.total {
background-color: rgba(65, 133, 244, 0.1);
border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
</style>
...@@ -113,25 +113,6 @@ export default { ...@@ -113,25 +113,6 @@ export default {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.mid-action {
display: flex;
justify-content: space-between;
margin: 10px 0;
align-items: center;
.total {
background-color: rgba(65, 133, 244, 0.1);
border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
.el-input { .el-input {
display: table; display: table;
width: 30%; width: 30%;
......
...@@ -94,6 +94,13 @@ export default { ...@@ -94,6 +94,13 @@ export default {
this.getListTag() this.getListTag()
this.getListOrganization() this.getListOrganization()
this.getLossRemindStatus() this.getLossRemindStatus()
this.$store.dispatch(
'app/setBusininessDesc',
`
<div>开启后,当员工被客户删除时,被删除的员工将收到一条消息提醒</div>
`
)
}, },
mounted() {}, mounted() {},
methods: { methods: {
...@@ -281,14 +288,6 @@ export default { ...@@ -281,14 +288,6 @@ export default {
inactive-color="#ff4949" inactive-color="#ff4949"
@change="remindSwitch" @change="remindSwitch"
></el-switch> ></el-switch>
<el-tooltip
class="item"
effect="dark"
content="开启后,当员工被客户删除时,被删除的员工将收到一条消息提醒"
placement="top-end"
>
<i class="el-icon-warning-outline"></i>
</el-tooltip>
</div> </div>
</div> </div>
...@@ -397,40 +396,6 @@ export default { ...@@ -397,40 +396,6 @@ export default {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.tag-input {
width: 240px;
display: flex;
border-radius: 4px;
border: 1px solid #dcdfe6;
align-items: center;
padding: 0 15px;
overflow: hidden;
height: 32px;
.tag-place {
color: #bbb;
font-size: 14px;
}
}
.mid-action {
display: flex;
justify-content: space-between;
padding: 10px 0;
align-items: center;
background: #fff;
.total {
background-color: rgba(65, 133, 244, 0.1);
border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
.el-icon-s-custom { .el-icon-s-custom {
font-size: 16px; font-size: 16px;
margin-left: 4px; margin-left: 4px;
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
<template> <template>
<div class="app-container"> <div class="app-container">
<div class="mid-action"> <div class="mid-action">
<div class="total"></div> <div></div>
<div> <div>
<el-button <el-button
v-hasPermi="['customerManage:tag:add']" v-hasPermi="['customerManage:tag:add']"
...@@ -182,14 +182,4 @@ export default { ...@@ -182,14 +182,4 @@ export default {
/> />
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped></style>
.mid-action {
display: flex;
justify-content: space-between;
margin: 10px 0;
align-items: center;
.num {
color: #00f;
}
}
</style>
<template> <template>
<div class="page"> <div class="page">
<el-form <el-form :inline="true" class="top-search">
:inline="true"
class="top-search"
>
<el-form-item> <el-form-item>
<el-input <el-input
v-model="query.activityName" v-model="query.activityName"
...@@ -30,9 +27,7 @@ ...@@ -30,9 +27,7 @@
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item <el-form-item class="search-button-area">
class="search-button-area"
>
<el-button type="primary" @click="handleSearch">查询</el-button> <el-button type="primary" @click="handleSearch">查询</el-button>
<el-button @click="handleClear">清空</el-button> <el-button @click="handleClear">清空</el-button>
</el-form-item> </el-form-item>
...@@ -95,7 +90,9 @@ ...@@ -95,7 +90,9 @@
trigger="hover" trigger="hover"
:content="row.activityDesc" :content="row.activityDesc"
> >
<div slot="reference" class="table-desc overflow-ellipsis">{{ row.activityDesc }}</div> <div slot="reference" class="table-desc overflow-ellipsis">
{{ row.activityDesc }}
</div>
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
...@@ -107,33 +104,20 @@ ...@@ -107,33 +104,20 @@
width="130" width="130"
> >
<template #default="{ row }"> <template #default="{ row }">
<el-popover <el-popover placement="bottom" trigger="hover">
placement="bottom"
trigger="hover"
>
<el-image <el-image
slot="reference" slot="reference"
:src="row.codeUrl" :src="row.codeUrl"
class="code-image--small" class="code-image--small"
></el-image> ></el-image>
<el-image <el-image :src="row.codeUrl" class="code-image"> </el-image>
:src="row.codeUrl"
class="code-image"
>
</el-image>
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="实际群码总数" align="center">
label="实际群码总数"
align="center"
>
<template #default="{ row }"> <template #default="{ row }">
<el-button <el-button type="text" @click="handleRealCodeDialogOpen(row.id, -1)">
type="text"
@click="handleRealCodeDialogOpen(row.id, -1)"
>
{{ (row.actualList && row.actualList.length) || 0 }} {{ (row.actualList && row.actualList.length) || 0 }}
</el-button> </el-button>
</template> </template>
...@@ -155,10 +139,7 @@ ...@@ -155,10 +139,7 @@
<i slot="reference" class="el-icon-warning expire-icon"></i> <i slot="reference" class="el-icon-warning expire-icon"></i>
</el-popover> </el-popover>
<el-button <el-button type="text" @click="handleRealCodeDialogOpen(row.id, 0)">
type="text"
@click="handleRealCodeDialogOpen(row.id, 0)"
>
{{ row.availableCodes }} {{ row.availableCodes }}
</el-button> </el-button>
</template> </template>
...@@ -182,15 +163,17 @@ ...@@ -182,15 +163,17 @@
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column label="操作" align="center">
label="操作"
align="center"
>
<template #default="{ row }"> <template #default="{ row }">
<el-button <el-button
type="text" type="text"
size="mini" size="mini"
@click="$router.push({ path: '/drainageCode/customerGroupDetail', query: { groupCodeId: row.id } })" @click="
$router.push({
path: '/drainageCode/customerGroupDetail',
query: { groupCodeId: row.id },
})
"
> >
编辑 编辑
</el-button> </el-button>
...@@ -212,11 +195,7 @@ ...@@ -212,11 +195,7 @@
复制 复制
</el-button> </el-button>
<el-button <el-button type="text" size="mini" @click="handleRemove(row.id)">
type="text"
size="mini"
@click="handleRemove(row.id)"
>
删除 删除
</el-button> </el-button>
</template> </template>
...@@ -238,22 +217,31 @@ ...@@ -238,22 +217,31 @@
append-to-body append-to-body
width="70%" width="70%"
> >
<RealCode ref="realCode" :groupCodeId="openGroupCodeId" :status="openGroupCodeStatus"></RealCode> <RealCode
ref="realCode"
:groupCodeId="openGroupCodeId"
:status="openGroupCodeStatus"
></RealCode>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import RealCode from './realCode' import RealCode from './realCode'
import { getList, remove, downloadBatch, download } from '@/api/drainageCode/group' import {
getList,
remove,
downloadBatch,
download,
} from '@/api/drainageCode/group'
import ClipboardJS from 'clipboard' import ClipboardJS from 'clipboard'
export default { export default {
components: { components: {
RealCode RealCode,
}, },
data () { data() {
return { return {
// 搜索数据 // 搜索数据
query: { query: {
...@@ -262,7 +250,7 @@ export default { ...@@ -262,7 +250,7 @@ export default {
activityName: '', activityName: '',
createBy: '', createBy: '',
beginTime: '', beginTime: '',
endTime: '' endTime: '',
}, },
// 加载状态 // 加载状态
loading: false, loading: false,
...@@ -281,50 +269,52 @@ export default { ...@@ -281,50 +269,52 @@ export default {
// 打开实际群码的检索状态 // 打开实际群码的检索状态
openGroupCodeStatus: -1, openGroupCodeStatus: -1,
// 拷贝对象 // 拷贝对象
clipboard: null clipboard: null,
} }
}, },
methods: { methods: {
// 获取活码数据 // 获取活码数据
getGroupCodes () { getGroupCodes() {
const params = Object.assign({}, this.query) const params = Object.assign({}, this.query)
this.loading = true this.loading = true
getList(params).then((res) => { getList(params)
if (res.code === 200) { .then((res) => {
this.groupCodes = res.rows if (res.code === 200) {
this.total = parseInt(res.total) this.groupCodes = res.rows
} this.total = parseInt(res.total)
this.loading = false }
}).catch(() => { this.loading = false
this.loading = false })
}) .catch(() => {
this.loading = false
})
}, },
// 查询 // 查询
handleSearch () { handleSearch() {
this.getGroupCodes() this.getGroupCodes()
}, },
// 搜索栏清空 // 搜索栏清空
handleClear () { handleClear() {
this.searchDate = '' this.searchDate = ''
this.query = { this.query = {
activityName: '', activityName: '',
createBy: '', createBy: '',
beginTime: '', beginTime: '',
endTime: '' endTime: '',
} }
this.getGroupCodes() this.getGroupCodes()
}, },
// 批量下载 // 批量下载
handleBulkDownload () { handleBulkDownload() {
const ids = this.multiGroupCode.map(group => group.id) const ids = this.multiGroupCode.map((group) => group.id)
this.$confirm('是否确认下载所有图片吗?', '警告', { this.$confirm('是否确认下载所有图片吗?', '警告', {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -349,24 +339,31 @@ export default { ...@@ -349,24 +339,31 @@ export default {
}, },
// 批量删除 // 批量删除
handleBulkRemove () { handleBulkRemove() {
this.$confirm('确认删除当前群活码?删除操作无法撤销,请谨慎操作。', '提示', { this.$confirm(
confirmButtonText: '确定', '确认删除当前群活码?删除操作无法撤销,请谨慎操作。',
cancelButtonText: '取消', '提示',
type: 'warning', {
}).then(() => { confirmButtonText: '确定',
const ids = this.multiGroupCode.map(group => group.id) cancelButtonText: '取消',
type: 'warning',
remove(ids + '').then((res) => { }
if (res.code === 200) { )
this.getGroupCodes() .then(() => {
} else {} const ids = this.multiGroupCode.map((group) => group.id)
remove(ids + '').then((res) => {
if (res.code === 200) {
this.getGroupCodes()
} else {
}
})
}) })
}).catch(() => {}) .catch(() => {})
}, },
// 下载 // 下载
handleDownload (codeId, activityName) { handleDownload(codeId, activityName) {
const name = activityName + '.png' const name = activityName + '.png'
download(codeId).then((res) => { download(codeId).then((res) => {
...@@ -383,47 +380,54 @@ export default { ...@@ -383,47 +380,54 @@ export default {
}, },
// 删除 // 删除
handleRemove (codeId) { handleRemove(codeId) {
this.$confirm('确认删除当前群活码?删除操作无法撤销,请谨慎操作。', '提示', { this.$confirm(
confirmButtonText: '确定', '确认删除当前群活码?删除操作无法撤销,请谨慎操作。',
cancelButtonText: '取消', '提示',
type: 'warning', {
}).then(() => { confirmButtonText: '确定',
remove(codeId).then((res) => { cancelButtonText: '取消',
if (res.code === 200) { type: 'warning',
this.getGroupCodes() }
} else {} )
.then(() => {
remove(codeId).then((res) => {
if (res.code === 200) {
this.getGroupCodes()
} else {
}
})
}) })
}).catch(() => {}) .catch(() => {})
}, },
// 处理多选 // 处理多选
handleSelectionChange (val) { handleSelectionChange(val) {
this.multiGroupCode = val this.multiGroupCode = val
}, },
// 打开实际群码窗口 // 打开实际群码窗口
handleRealCodeDialogOpen (groupCodeId, status) { handleRealCodeDialogOpen(groupCodeId, status) {
this.openGroupCodeId = groupCodeId this.openGroupCodeId = groupCodeId
this.openGroupCodeStatus = status this.openGroupCodeStatus = status
this.realCodeDialog = true this.realCodeDialog = true
} },
}, },
watch: { watch: {
searchDate (dateRange) { searchDate(dateRange) {
if (!dateRange || dateRange.length !== 2) { if (!dateRange || dateRange.length !== 2) {
this.query.beginTime = '' this.query.beginTime = ''
this.query.endTime = '' this.query.endTime = ''
} else { } else {
[ this.query.beginTime, this.query.endTime ] = dateRange ;[this.query.beginTime, this.query.endTime] = dateRange
} }
}, },
// 如果实际群码弹出框关闭,刷新数据 // 如果实际群码弹出框关闭,刷新数据
realCodeDialog (val) { realCodeDialog(val) {
if (val === false) this.getGroupCodes() if (val === false) this.getGroupCodes()
} },
}, },
mounted() { mounted() {
...@@ -442,45 +446,38 @@ export default { ...@@ -442,45 +446,38 @@ export default {
}) })
}, },
created () { created() {
this.getGroupCodes() this.getGroupCodes()
}, },
destroyed () { destroyed() {
this.clipboard.destroy() this.clipboard.destroy()
}, },
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.overflow-ellipsis { .overflow-ellipsis {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.table-desc { .table-desc {
max-width: 150px; max-width: 150px;
} }
.code-image { .code-image {
width: 200px; width: 200px;
height: 200px; height: 200px;
} }
.code-image--small { .code-image--small {
width: 50px; width: 50px;
height: 50px; height: 50px;
} }
.expire-icon { .expire-icon {
color: red; color: red;
} }
.mid-action {
display: flex;
justify-content: space-between;
align-items: center;
margin: 10px 0;
}
</style> </style>
...@@ -383,24 +383,4 @@ export default { ...@@ -383,24 +383,4 @@ export default {
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped></style>
.mid-action {
display: flex;
justify-content: space-between;
margin: 10px 0;
align-items: center;
.total {
background-color: rgba(65, 133, 244, 0.1);
border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
</style>
...@@ -22,9 +22,9 @@ export default { ...@@ -22,9 +22,9 @@ export default {
total: 0, total: 0,
list: [], list: [],
wel: { wel: {
1: '员工', 1: '活码',
2: '部门员工', 2: '员工',
3: '客户', 3: '入群',
}, },
} }
}, },
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
<template> <template>
<div> <div>
<div class="mid-action"> <div class="mid-action">
<div class="total"></div> <div></div>
<div> <div>
<el-button <el-button
v-hasPermi="['wecom:tlp:add']" v-hasPermi="['wecom:tlp:add']"
...@@ -133,24 +133,4 @@ export default { ...@@ -133,24 +133,4 @@ export default {
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped></style>
.mid-action {
display: flex;
justify-content: space-between;
padding: 10px 0;
align-items: center;
.total {
background-color: rgba(65, 133, 244, 0.1);
// border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
// padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
</style>
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
<template> <template>
<div> <div>
<el-tabs :value="active" type="card"> <el-tabs :value="active">
<el-tab-pane :label="`员工欢迎语(${total1})`" name="1"> <el-tab-pane :label="`活码欢迎语(${total1})`" name="1">
<Tab ref="tab1" type="1" @total="totalChange"></Tab> <Tab ref="tab1" type="1" @total="totalChange"></Tab>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="`部门员工欢迎语(${total2})`" name="2"> <el-tab-pane :label="`员工欢迎语(${total2})`" name="2">
<Tab ref="tab2" type="2" @total="totalChange"></Tab> <Tab ref="tab2" type="2" @total="totalChange"></Tab>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="`客户群欢迎语(${total3})`" name="3"> <el-tab-pane :label="`入群欢迎语(${total3})`" name="3">
<Tab ref="tab3" type="3" @total="totalChange"></Tab> <Tab ref="tab3" type="3" @total="totalChange"></Tab>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
...@@ -34,7 +34,21 @@ export default { ...@@ -34,7 +34,21 @@ export default {
watch: {}, watch: {},
computed: {}, computed: {},
created() {}, created() {},
mounted() {}, mounted() {
this.$store.dispatch(
'app/setBusininessDesc',
`
<div>活码欢迎语:客户通过员工活码添加员工时,系统自动回复欢迎语;新建活码时也可以从活码欢迎语模板中选择。</div>
<div>员工欢迎语:客户通过搜索手机号等非员工活码方式添加员工时,系统自动回复欢迎语。</div>
<div>入群欢迎语:客户加入群聊时,系统自动回复欢迎语。</div>
`
)
},
// beforeRouteLeave(to, from, next) {
// // this.$store.dispatch(('app/setBusininessDesc', ''))
// this.$store.state.app.busininessDesc = ''
// next()
// },
methods: { methods: {
totalChange([type, total]) { totalChange([type, total]) {
this['total' + type] = total this['total' + type] = total
......
...@@ -235,24 +235,4 @@ export default { ...@@ -235,24 +235,4 @@ export default {
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped></style>
.mid-action {
display: flex;
justify-content: space-between;
margin: 10px 0;
align-items: center;
.total {
background-color: rgba(65, 133, 244, 0.1);
border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!