Commit 3af9f02d by xinla

/deep/更新为::v-deep

1 parent dffb6a2a
Showing 31 changed files with 343 additions and 348 deletions
<template>
<div :class="{'show':show}" class="header-search">
<div :class="{ show: show }" class="header-search">
<svg-icon class-name="search-icon" icon-class="search" @click.stop="click" />
<el-select
ref="headerSearchSelect"
......@@ -25,67 +25,67 @@
<script>
// fuse is a lightweight fuzzy-search module
// make search results more in line with expectations
import Fuse from "fuse.js";
import path from "path";
import Fuse from 'fuse.js'
import path from 'path'
export default {
name: "HeaderSearch",
name: 'HeaderSearch',
data() {
return {
search: "",
search: '',
options: [],
searchPool: [],
show: false,
fuse: undefined,
};
fuse: undefined
}
},
computed: {
routes() {
return this.$store.getters.permission_routes;
},
return this.$store.getters.permission_routes
}
},
watch: {
routes() {
this.searchPool = this.generateRoutes(this.routes);
this.searchPool = this.generateRoutes(this.routes)
},
searchPool(list) {
this.initFuse(list);
this.initFuse(list)
},
show(value) {
if (value) {
document.body.addEventListener("click", this.close);
document.body.addEventListener('click', this.close)
} else {
document.body.removeEventListener("click", this.close);
document.body.removeEventListener('click', this.close)
}
},
}
},
mounted() {
this.searchPool = this.generateRoutes(this.routes);
this.searchPool = this.generateRoutes(this.routes)
},
methods: {
click() {
this.show = !this.show;
this.show = !this.show
if (this.show) {
this.$refs.headerSearchSelect && this.$refs.headerSearchSelect.focus();
this.$refs.headerSearchSelect && this.$refs.headerSearchSelect.focus()
}
},
close() {
this.$refs.headerSearchSelect && this.$refs.headerSearchSelect.blur();
this.options = [];
this.show = false;
this.$refs.headerSearchSelect && this.$refs.headerSearchSelect.blur()
this.options = []
this.show = false
},
change(val) {
if (this.ishttp(val.path)) {
// http(s):// 路径新窗口打开
window.open(val.path, "_blank");
window.open(val.path, '_blank')
} else {
this.$router.push(val.path);
this.$router.push(val.path)
}
this.search = "";
this.options = [];
this.search = ''
this.options = []
this.$nextTick(() => {
this.show = false;
});
this.show = false
})
},
initFuse(list) {
this.fuse = new Fuse(list, {
......@@ -97,70 +97,64 @@ export default {
minMatchCharLength: 1,
keys: [
{
name: "title",
weight: 0.7,
name: 'title',
weight: 0.7
},
{
name: "path",
weight: 0.3,
},
],
});
name: 'path',
weight: 0.3
}
]
})
},
// Filter out the routes that can be displayed in the sidebar
// And generate the internationalized title
generateRoutes(routes, basePath = "/", prefixTitle = []) {
let res = [];
generateRoutes(routes, basePath = '/', prefixTitle = []) {
let res = []
for (const router of routes) {
// skip hidden router
if (router.hidden) {
continue;
continue
}
const data = {
path: !this.ishttp(router.path)
? path.resolve(basePath, router.path)
: router.path,
title: [...prefixTitle],
};
path: !this.ishttp(router.path) ? path.resolve(basePath, router.path) : router.path,
title: [...prefixTitle]
}
if (router.meta && router.meta.title) {
data.title = [...data.title, router.meta.title];
data.title = [...data.title, router.meta.title]
if (router.redirect !== "noRedirect") {
if (router.redirect !== 'noRedirect') {
// only push the routes with title
// special case: need to exclude parent router without redirect
res.push(data);
res.push(data)
}
}
// recursive child routes
if (router.children) {
const tempRoutes = this.generateRoutes(
router.children,
data.path,
data.title
);
const tempRoutes = this.generateRoutes(router.children, data.path, data.title)
if (tempRoutes.length >= 1) {
res = [...res, ...tempRoutes];
res = [...res, ...tempRoutes]
}
}
}
return res;
return res
},
querySearch(query) {
if (query !== "") {
this.options = this.fuse.search(query);
if (query !== '') {
this.options = this.fuse.search(query)
} else {
this.options = [];
this.options = []
}
},
ishttp(url) {
return url.indexOf("http://") !== -1 || url.indexOf("https://") !== -1;
},
},
};
return url.indexOf('http://') !== -1 || url.indexOf('https://') !== -1
}
}
}
</script>
<style lang="scss" scoped>
......@@ -183,7 +177,7 @@ export default {
display: inline-block;
vertical-align: middle;
/deep/ .el-input__inner {
::v-deep .el-input__inner {
border-radius: 0;
border: 0;
padding-left: 0;
......
<script>
import { getList } from '@/api/customer/tag'
import list from './list'
import { getList } from '@/api/customer/tag'
import list from './list'
export default {
components: { list },
props: {
// 添加标签显隐
visible: {
type: Boolean,
default: false
},
// title: {
// type: String,
// default: '',
// },
type: {
type: String | Number,
default: '4'
},
// 显示哪些素材类型标签
showArr: {
type: Array,
default: () => []
}
export default {
components: { list },
props: {
// 添加标签显隐
visible: {
type: Boolean,
default: false
},
data () {
return {
text: {},
image: {},
file: {}
// title: {
// type: String,
// default: '',
// },
type: {
type: String | Number,
default: '4'
},
// 显示哪些素材类型标签
showArr: {
type: Array,
default: () => []
}
},
data() {
return {
text: {},
image: {},
file: {}
}
},
watch: {},
computed: {
title() {
const titleMap = {
4: '文本',
0: '图片',
8: '图文',
9: '小程序'
}
return titleMap[this.type] || '素材'
},
watch: {},
computed: {
title () {
const titleMap = {
4: '文本',
0: '图片',
8: '图文',
9: '小程序'
}
return titleMap[this.type] || '素材'
Pvisible: {
get() {
return this.visible
},
Pvisible: {
get () {
return this.visible
},
set (val) {
this.$emit('update:visible', val)
}
},
Ptype: {
get () {
return this.type
},
set (val) {
this.$emit('update:type', val)
}
set(val) {
this.$emit('update:visible', val)
}
},
created () { },
mounted () { },
methods: {
submit () {
this.Pvisible = false
this.$emit('success', this.selectedData)
Ptype: {
get() {
return this.type
},
onChange (data) {
this.selectedData = data
set(val) {
this.$emit('update:type', val)
}
}
},
created() {},
mounted() {},
methods: {
submit() {
this.Pvisible = false
this.$emit('success', this.selectedData)
},
onChange(data) {
this.selectedData = data
}
}
}
</script>
<template>
<el-dialog :title="`选择${title}`" :visible.sync="Pvisible" width="680px" append-to-body destroy-on-close>
<el-dialog
:title="`选择${title}`"
:visible.sync="Pvisible"
width="680px"
append-to-body
destroy-on-close
>
<div>
<list v-if="showArr.length <= 1" :type="showArr[0] || type" @change="onChange"> </list>
<el-tabs v-else-if="showArr.length > 1" v-model="Ptype">
......@@ -96,18 +102,18 @@
</template>
<style lang="scss" scoped>
.user-list {
.el-row {
line-height: 26px;
}
}
.mr30 {
margin-right: 30px;
.user-list {
.el-row {
line-height: 26px;
}
}
.mr30 {
margin-right: 30px;
}
/deep/.el-dialog__body {
padding: 5px 20px;
height: 76vh;
overflow: auto;
}
::v-deep.el-dialog__body {
padding: 5px 20px;
height: 76vh;
overflow: auto;
}
</style>
<script>
import { getTree, getList } from '@/api/material'
export default {
components: {},
props: {
type: {
type: String | Number,
default: '4'
}
},
data () {
return {
loading: true, // 遮罩层
// 查询条件
query: {
pageNum: 1,
pageSize: 10,
categoryId: '',
search: '',
mediaType: '4'
},
list: [], // 列表
total: 0, // 总条数
treeData: [], // 树
// 树props
treeProps: {
children: 'children',
label: 'name'
},
// 分组props
groupProps: {
// expandTrigger: 'hover',
checkStrictly: true,
children: 'children',
label: 'name',
value: 'id',
emitPath: false
},
radio: ''
}
},
watch: {
radio (val) {
this.$emit('change', val)
import { getTree, getList } from '@/api/material'
export default {
components: {},
props: {
type: {
type: String | Number,
default: '4'
}
},
data() {
return {
loading: true, // 遮罩层
// 查询条件
query: {
pageNum: 1,
pageSize: 10,
categoryId: '',
search: '',
mediaType: '4'
},
type (val) {
this.query.mediaType = this.type
this.query.pageNum = 1
this.list = []
this.getList()
}
},
computed: {
list: [], // 列表
total: 0, // 总条数
treeData: [], // 树
// 树props
treeProps: {
children: 'children',
label: 'name'
},
// 分组props
groupProps: {
// expandTrigger: 'hover',
checkStrictly: true,
children: 'children',
label: 'name',
value: 'id',
emitPath: false
},
radio: ''
}
},
watch: {
radio(val) {
this.$emit('change', val)
},
created () {
type(val) {
this.query.mediaType = this.type
this.query.pageNum = 1
this.list = []
this.getList()
},
mounted () { },
methods: {
// 获取素材列表
getList (page) {
page && (this.query.pageNum = page)
this.loading = true
getList(this.query)
.then(({ rows, total }) => {
this.list = rows.map(i => {
i.checked = false
return i
})
this.total = +total
this.loading = false
this.$emit('listChange', this.list)
})
.catch(() => {
this.loading = false
}
},
computed: {},
created() {
this.query.mediaType = this.type
this.getList()
},
mounted() {},
methods: {
// 获取素材列表
getList(page) {
page && (this.query.pageNum = page)
this.loading = true
getList(this.query)
.then(({ rows, total }) => {
this.list = rows.map((i) => {
i.checked = false
return i
})
},
onRowClick (row, column, event) {
const evTarget = event.target.nodeName.toUpperCase(0)
if (evTarget == 'INPUT') {
return
}
this.total = +total
this.loading = false
this.$emit('listChange', this.list)
})
.catch(() => {
this.loading = false
})
},
onRowClick(row, column, event) {
const evTarget = event.target.nodeName.toUpperCase(0)
if (evTarget == 'INPUT') {
return
}
const checked = row.checked
if (!checked) {
this.list.forEach(i => i.checked = false)
}
row.checked = !checked
this.$emit('change', row.checked ? row : null)
const checked = row.checked
if (!checked) {
this.list.forEach((i) => (i.checked = false))
}
row.checked = !checked
this.$emit('change', row.checked ? row : null)
}
}
}
</script>
<template>
<div>
<template v-if="type == 4">
<el-input v-model="query.search" class="ml10 mr10 mb20" style="width: 260px;" placeholder="请输入文本内容" @keydown.enter.native="getList(1)"></el-input>
<el-input
v-model="query.search"
class="ml10 mr10 mb20"
style="width: 260px"
placeholder="请输入文本内容"
@keydown.enter.native="getList(1)"
></el-input>
</template>
<!-- 文本 -->
......@@ -142,7 +146,7 @@
<el-table-column prop="updateTime" label="最近更新时间"></el-table-column>
</el-table>
<!--
<!--
<el-radio-group
v-if="type == 0"
v-loading="loading"
......@@ -166,28 +170,35 @@
</el-radio>
</el-radio-group> -->
<el-pagination class="fr" @current-change="getList" :current-page="query.pageNum" :page-size="query.pageSize" layout="prev, pager, next" :total="total"></el-pagination>
<el-pagination
class="fr"
@current-change="getList"
:current-page="query.pageNum"
:page-size="query.pageSize"
layout="prev, pager, next"
:total="total"
></el-pagination>
</div>
</template>
<style lang="scss" scoped>
// .img-wrap {
// /deep/.el-radio__input {
// position: absolute;
// left: 50%;
// top: 50%;
// transform: translate(-50%, -50%);
// }
// }
.ma-img {
width: 120px;
height: 120px;
border-radius: 8px;
border: 1px solid #e6ebf5;
justify-content: center;
}
.img-li {
// max-width: 100%;
// height: 160px;
}
// .img-wrap {
// ::v-deep.el-radio__input {
// position: absolute;
// left: 50%;
// top: 50%;
// transform: translate(-50%, -50%);
// }
// }
.ma-img {
width: 120px;
height: 120px;
border-radius: 8px;
border: 1px solid #e6ebf5;
justify-content: center;
}
.img-li {
// max-width: 100%;
// height: 160px;
}
</style>
......@@ -262,7 +262,7 @@ export default {
<style lang="scss" scoped>
// .img-wrap {
// /deep/.el-radio__input {
// ::v-deep.el-radio__input {
// position: absolute;
// left: 50%;
// top: 50%;
......@@ -289,7 +289,7 @@ export default {
top: 0;
}
}
/deep/ .el-checkbox__label {
::v-deep .el-checkbox__label {
vertical-align: text-top;
}
.label {
......
......@@ -193,7 +193,7 @@ export default {
.nav-scrollbar {
width: calc(100% - 450px);
/deep/.el-scrollbar__view {
::v-deep.el-scrollbar__view {
white-space: nowrap;
line-height: 58px;
}
......
<template>
<el-scrollbar ref="scrollContainer" :vertical="false" class="scroll-container" @wheel.native.prevent="handleScroll">
<el-scrollbar
ref="scrollContainer"
:vertical="false"
class="scroll-container"
@wheel.native.prevent="handleScroll"
>
<slot />
</el-scrollbar>
</template>
......@@ -55,12 +60,13 @@ export default {
$scrollWrapper.scrollLeft = $scrollWrapper.scrollWidth - $containerWidth
} else {
// find preTag and nextTag
const currentIndex = tagList.findIndex(item => item === currentTag)
const currentIndex = tagList.findIndex((item) => item === currentTag)
const prevTag = tagList[currentIndex - 1]
const nextTag = tagList[currentIndex + 1]
// the tag's offsetLeft after of nextTag
const afterNextTagOffsetLeft = nextTag.$el.offsetLeft + nextTag.$el.offsetWidth + tagAndTagSpacing
const afterNextTagOffsetLeft =
nextTag.$el.offsetLeft + nextTag.$el.offsetWidth + tagAndTagSpacing
// the tag's offsetLeft before of prevTag
const beforePrevTagOffsetLeft = prevTag.$el.offsetLeft - tagAndTagSpacing
......@@ -82,7 +88,7 @@ export default {
position: relative;
overflow: hidden;
width: 100%;
/deep/ {
::v-deep {
.el-scrollbar__bar {
bottom: 0px;
}
......
......@@ -53,15 +53,15 @@ Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.download = download
Vue.prototype.handleTree = handleTree
Vue.prototype.msgSuccess = function(msg) {
Vue.prototype.msgSuccess = function (msg) {
this.$message({ showClose: true, message: msg, type: 'success' })
}
Vue.prototype.msgError = function(msg) {
Vue.prototype.msgError = function (msg) {
this.$message({ showClose: true, message: msg, type: 'error' })
}
Vue.prototype.msgInfo = function(msg) {
Vue.prototype.msgInfo = function (msg) {
this.$message.info(msg)
}
......@@ -69,10 +69,10 @@ import { pickerOptions } from '@/utils/index'
Vue.prototype.pickerOptions = pickerOptions
import VideoPlayer from 'vue-video-player'
Vue.use(VideoPlayer)
import AudioPlayer from '@liripeng/vue-audio-player'
import '@liripeng/vue-audio-player/lib/vue-audio-player.css'
// import AudioPlayer from '@liripeng/vue-audio-player'
// import '@liripeng/vue-audio-player/lib/vue-audio-player.css'
Vue.use(AudioPlayer)
// Vue.use(AudioPlayer)
import VueAMap from 'vue-amap'
Vue.use(VueAMap)
......
......@@ -179,7 +179,7 @@ export default {
form: {
taskName: '', // 任务名称
welcomeMsg: '', // 加群引导语
sendType: 0, // 发送方式
sendType: 1, // 发送方式
groupCodeId: '', // 群活码ID
tagList: [], // 标签
scopeList: [], // 员工
......@@ -252,7 +252,7 @@ export default {
getDetail(id).then(({ data }) => {
this.form.taskName = data.taskName || ''
this.form.welcomeMsg = data.welcomeMsg || ''
this.form.sendType = data.sendType || 0
this.form.sendType = data.sendType || 1
this.form.sendScope = data.sendScope || 0
this.form.sendGender = data.sendGender || 0
......
......@@ -153,7 +153,7 @@ export default {
this.$confirm('是否确认删除吗?', '警告', {
type: 'warning'
})
.then(function() {
.then(function () {
return api.remove(id)
})
.then(() => {
......@@ -187,7 +187,7 @@ export default {
this.$confirm('是否确认删除吗?', '警告', {
type: 'warning'
})
.then(function() {
.then(function () {
return api.removeDepart(id)
})
.then(() => {
......@@ -571,7 +571,7 @@ export default {
.img-wrap {
height: 340px;
overflow: auto;
/deep/.el-radio__input {
::v-deep.el-radio__input {
position: absolute;
right: 0;
}
......
......@@ -5,10 +5,9 @@
<!-- <span v-if="item.fromInfo.name">{{item.fromInfo.name}}</span> -->
<div class="mb15">
<span class="mr20">{{ item.name }}</span>
<span
:style="{ color: item.action == 'send' ? '#199ed8' : '#999' }"
>{{ item.msgTime }}</span
>
<span :style="{ color: item.action == 'send' ? '#199ed8' : '#999' }">{{
item.msgTime
}}</span>
</div>
<ChatContent :message="item"></ChatContent>
......@@ -37,7 +36,7 @@ export default {
}
</script>
<style lang="scss" scoped>
#videoPlayer /deep/ .vjs-tech {
#videoPlayer ::v-deep .vjs-tech {
height: 450px;
}
......
......@@ -6,7 +6,7 @@
<span class="fr download" @click="exportList()">下载会话</span>
</div>
</div>
<el-tabs v-model="activeTab" @tab-click="v => opened.includes(v.name) || opened.push(v.name)">
<el-tabs v-model="activeTab" @tab-click="(v) => opened.includes(v.name) || opened.push(v.name)">
<el-tab-pane v-for="(item, index) of list" :key="index" :label="item.label" :name="item.type">
<chatListClassTab
v-if="opened.includes(item.type)"
......@@ -73,10 +73,10 @@ export default {
.then(() => {
return api.exportList(this.queryChat)
})
.then(response => {
.then((response) => {
this.download(response.msg)
})
.catch(function(err) {
.catch(function (err) {
console.log(err)
})
}
......@@ -84,7 +84,7 @@ export default {
}
</script>
<style lang="scss" scoped>
/deep/ .el-tabs__header {
::v-deep .el-tabs__header {
margin: 0;
}
......
......@@ -15,11 +15,7 @@
</li>
</ul>
</div>
<div
style="margin-left:8px;line-height:60px"
class="toe"
:title="item.name"
>
<div style="margin-left: 8px; line-height: 60px" class="toe" :title="item.name">
{{ item.name }}
<!-- <p>
<span class="fr gray">{{ item.msgTime }}</span>
......@@ -95,7 +91,7 @@ export default {
display: none;
}
/deep/ .el-loading-spinner {
::v-deep .el-loading-spinner {
margin-top: 20px;
}
......
......@@ -53,7 +53,7 @@ export default {
display: none;
}
/deep/ .el-loading-spinner {
::v-deep .el-loading-spinner {
margin-top: 20px;
}
......
......@@ -29,7 +29,7 @@
<img v-if="item.avatar" :src="item.avatar" alt="头像" />
</el-col>
<el-col :span="10" v-if="item" class="toe">
<span style="line-height:40px">{{ item.customerName }}</span>
<span style="line-height: 40px">{{ item.customerName }}</span>
</el-col>
<el-col :span="10" class="ar">
<span :style="{ color: item.customerType === 1 ? '#4bde03' : '#f9a90b' }"
......@@ -203,7 +203,7 @@ export default {
}
</script>
<style lang="scss" scoped>
/deep/.el-tabs__nav-scroll {
::v-deep.el-tabs__nav-scroll {
padding-left: 15px;
}
......@@ -217,7 +217,7 @@ export default {
.el-tabs {
background: #fff;
}
/deep/ .el-tabs__header {
::v-deep .el-tabs__header {
margin: 0;
}
......
......@@ -157,7 +157,7 @@ export default {
this.loading = false
this.personList = data
})
.catch(err => {
.catch((err) => {
this.loading = false
})
} else if (this.activeName == 1) {
......@@ -167,7 +167,7 @@ export default {
this.loading = false
this.personList = data
})
.catch(err => {
.catch((err) => {
this.loading = false
})
} else {
......@@ -177,7 +177,7 @@ export default {
this.loading = false
this.personList = data
})
.catch(err => {
.catch((err) => {
this.loading = false
})
}
......@@ -212,7 +212,7 @@ export default {
// data.children.push(...rows)
let arr = node.data.children ? node.data.children.concat(rows || []) : rows || []
arr.forEach(element => {
arr.forEach((element) => {
element.isLeaf = !!element.userId
})
resolve(arr)
......@@ -236,14 +236,14 @@ export default {
}
</script>
<style lang="scss" scoped>
/deep/.el-tabs__nav-scroll {
::v-deep.el-tabs__nav-scroll {
padding-left: 15px;
}
.borderR {
border-right: 2px solid #ccc;
}
/deep/ .el-tabs__header {
::v-deep .el-tabs__header {
margin: 0;
}
.employ {
......
......@@ -217,7 +217,7 @@ export default {
.then((response) => {
this.download(response.msg)
})
.catch(function() {})
.catch(function () {})
}
}
}
......@@ -268,13 +268,13 @@ export default {
}
.noborder {
/deep/ .el-input--mini .el-input__inner {
::v-deep .el-input--mini .el-input__inner {
width: 2px;
border: none;
}
}
.emcode /deep/ em {
.emcode ::v-deep em {
color: #ff0000;
}
</style>
......@@ -32,7 +32,7 @@ export default {
}
</script>
<style lang="scss" scoped>
/deep/.pd15 {
::v-deep.pd15 {
padding: 15px;
}
</style>
......@@ -6,12 +6,14 @@
<div class="tag-input" @click="dialogVisibleSelectUser = true">
<span class="tag-place" v-if="!queryUser.length">请选择</span>
<template v-else>
<el-tag type="info" v-for="(unit, unique) in queryUser" :key="unique">{{ unit.name }}</el-tag>
<el-tag type="info" v-for="(unit, unique) in queryUser" :key="unique">{{
unit.name
}}</el-tag>
</template>
</div>
</el-form-item>
<el-form-item>
<el-input v-model="form.keyword" placeholder="搜索关键词" style="width:240px"> </el-input>
<el-input v-model="form.keyword" placeholder="搜索关键词" style="width: 240px"> </el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="getSensitiveList">查询</el-button>
......@@ -22,7 +24,7 @@
<el-col :span="8">
<div class="left-title">触发记录</div>
</el-col>
<el-col :span="16" style="text-align: right;">
<el-col :span="16" style="text-align: right">
<el-radio-group v-model="selectDate" size="small">
<el-radio-button label="昨日"></el-radio-button>
<el-radio-button label="7日"></el-radio-button>
......@@ -40,7 +42,12 @@
</el-col>
</el-row>
</div>
<el-table :data="tableData" stripe style="width: 100%" :header-cell-style="{ background: '#fff' }">
<el-table
:data="tableData"
stripe
style="width: 100%"
:header-cell-style="{ background: '#fff' }"
>
<el-table-column prop="patternWords" label="敏感词"> </el-table-column>
<el-table-column prop="content" label="内容">
<template slot-scope="{ row }">
......@@ -185,7 +192,7 @@ export default {
}
}
.noborder {
/deep/ .el-input--mini .el-input__inner {
::v-deep .el-input--mini .el-input__inner {
width: 2px;
border: none;
}
......
......@@ -8,7 +8,7 @@
>
</el-form-item>
<el-form-item>
<el-input v-model="form.patternWords" placeholder="搜索关键词" style="width:300px">
<el-input v-model="form.patternWords" placeholder="搜索关键词" style="width: 300px">
<el-button slot="prepend" icon="el-icon-search" @click="getSettingList"></el-button>
</el-input>
</el-form-item>
......@@ -72,7 +72,7 @@
<div class="sub-title">匹配词间用逗号隔开</div>
</el-form-item>
<el-form-item label="审计范围" :required="true" :error="rangeErrorMsg">
<div class="tag-input" style="width:auto;" @click="openAuditUserRange">
<div class="tag-input" style="width: auto" @click="openAuditUserRange">
<span class="tag-place" v-if="!auditUserRange.length"
>请选择<span class="prompt-title">若不选择,则默认全体成员</span></span
>
......@@ -84,7 +84,7 @@
</div>
</el-form-item>
<el-form-item label="审计人" :required="true" :error="errorMsg">
<div class="tag-input" style="width:auto;" @click="openAuditUser">
<div class="tag-input" style="width: auto" @click="openAuditUser">
<span class="tag-place" v-if="!auditUser.length"
>请选择<span class="prompt-title">请选择部门负责人</span></span
>
......@@ -302,7 +302,7 @@ export default {
background: #efefef;
padding: 18px 10px 0 10px;
}
/deep/ .add-btn {
::v-deep .add-btn {
margin-right: 10px;
}
.content {
......
......@@ -149,7 +149,7 @@ export default {
</template>
<div v-else class="timeline-time-wrap">
<ul class="infinite-list" v-infinite-scroll="getList" style="overflow:auto">
<ul class="infinite-list" v-infinite-scroll="getList" style="overflow: auto">
<template v-if="list.length">
<li v-for="(unit, i) in list" class="infinite-list-item" :key="i">
<div class="timeline-time">{{ dateFormat(unit[0].trackTime, 'yyyy-MM-dd w') }}</div>
......@@ -188,13 +188,13 @@ export default {
color: #999999;
line-height: 48px;
}
.el-timeline > .timeline-box-item:first-child /deep/ .el-timeline-item__node {
.el-timeline > .timeline-box-item:first-child ::v-deep .el-timeline-item__node {
border-radius: 0 !important;
}
.timeline-box {
padding-left: 70px;
&-item {
/deep/ .el-timeline-item__timestamp {
::v-deep .el-timeline-item__timestamp {
position: absolute;
top: 4px;
left: -45px;
......@@ -208,7 +208,7 @@ export default {
}
}
/deep/ .el-timeline-item__tail {
::v-deep .el-timeline-item__tail {
border-left-color: #3c88f0;
}
</style>
......@@ -86,8 +86,8 @@ export default {
<template>
<div>
<!-- <el-button slot="append" circle icon="el-icon-back" @click="$router.back()"></el-button>返回 -->
<div class=" flex aic mb20" @click="goRoute(customer)">
<el-image style="width: 80px; height: 80px;" :src="customer.avatar" fit="fit"></el-image>
<div class="flex aic mb20" @click="goRoute(customer)">
<el-image style="width: 80px; height: 80px" :src="customer.avatar" fit="fit"></el-image>
<div class="ml10">
<div>
{{ customer.customerName + (customer.corpName ? '-' + customer.corpName : '') }}
......@@ -102,14 +102,12 @@ export default {
{{ unit }}
</el-tag>
</template>
<div v-else>
暂无标签
</div>
<div v-else>暂无标签</div>
</div>
</div>
</div>
<el-card shadow="never" style="background-color: transparent;border:none;">
<el-card shadow="never" style="background-color: transparent; border: none">
<div slot="header" class="card-title">社交关系</div>
<el-tabs value="1">
<el-tab-pane
......@@ -177,7 +175,7 @@ export default {
}
.el-card {
/deep/.el-card__header {
::v-deep.el-card__header {
border: 0;
}
}
......
......@@ -30,7 +30,7 @@ export default {
</template>
<style lang="scss" scoped>
/deep/.el-tabs__header {
::v-deep.el-tabs__header {
margin-bottom: 0;
}
</style>
......@@ -121,9 +121,7 @@ export default {
class="image-uploader"
@update:file="handleUploadedHeadImage"
>
<div slot="tip">
注: 只支持2M以内的jpg/png格式图片
</div>
<div slot="tip">注: 只支持2M以内的jpg/png格式图片</div>
</upload>
</el-form-item>
</el-col>
......@@ -156,9 +154,7 @@ export default {
<el-col v-show="form.showTip === 1" :sm="24" :md="12">
<el-form-item label="客服二维码">
<upload :fileUrl.sync="form.customerServerQrCode" class="image-uploader">
<div slot="tip">
注: 只支持2M以内的jpg/png格式图片
</div>
<div slot="tip">注: 只支持2M以内的jpg/png格式图片</div>
</upload>
</el-form-item>
</el-col>
......@@ -180,17 +176,13 @@ export default {
<template v-if="form.activityName">
{{ form.activityName }}
</template>
<template v-else>
活码名称
</template>
<template v-else> 活码名称 </template>
</div>
<div class="preview-guide">
<template v-if="form.guide">
{{ form.guide }}
</template>
<template v-else>
这是加群引导语
</template>
<template v-else> 这是加群引导语 </template>
</div>
<div class="preview-code-box">
<div class="code-box-title">
......@@ -214,7 +206,7 @@ export default {
</template>
<style scoped lang="scss">
/deep/ .image-uploader {
::v-deep .image-uploader {
.uploader-icon {
width: 80px;
height: 80px;
......
......@@ -248,9 +248,7 @@ export default {
<div>
<div class="mid-action">
<div>
<el-button type="primary" @click="dialog = true">
新建实际群码
</el-button>
<el-button type="primary" @click="dialog = true"> 新建实际群码 </el-button>
<el-select v-model="query.status" class="ml10" @change="getRealCodes">
<el-option
v-for="option in statusOptions"
......@@ -311,14 +309,10 @@ export default {
</el-form-item>
<el-form-item label="实际群码" prop="actualGroupQrCode">
<upload :fileUrl.sync="form.actualGroupQrCode" class="image-uploader">
<div slot="tip">
注: 只支持2M以内的jpg/png格式图片
</div>
<div slot="tip">注: 只支持2M以内的jpg/png格式图片</div>
</upload>
<div>
<el-button type="text" @click="exampleDialog = true">
查看示例
</el-button>
<el-button type="text" @click="exampleDialog = true"> 查看示例 </el-button>
</div>
</el-form-item>
<el-form-item label="有效期" prop="effectTime">
......@@ -337,9 +331,7 @@ export default {
placeholder="请输入次数"
type="Number"
></el-input>
<div class="tip">
注: 不超过190
</div>
<div class="tip">注: 不超过190</div>
</el-form-item>
<el-form-item label="客户群">
<template v-if="form.chatId">
......@@ -348,13 +340,9 @@ export default {
</el-button>
</template>
<template v-else>
<el-button icon="el-icon-plus" @click="customerDialog = true">
选择客户群
</el-button>
<el-button icon="el-icon-plus" @click="customerDialog = true"> 选择客户群 </el-button>
</template>
<div class="tip">
注: 主要用于老客标签建群
</div>
<div class="tip">注: 主要用于老客标签建群</div>
</el-form-item>
</el-form>
......@@ -374,9 +362,7 @@ export default {
<el-dialog :visible.sync="exampleDialog" append-to-body width="250px">
<div class="example-code-box">
<div class="example-text">
如图所示为标准的微信群二维码:
</div>
<div class="example-text">如图所示为标准的微信群二维码:</div>
<div class="code-box-title">
<svg-icon icon-class="user" class="code-user"></svg-icon>
实际群名称
......@@ -412,7 +398,7 @@ export default {
width: 50px;
height: 50px;
}
/deep/ .image-uploader {
::v-deep .image-uploader {
.uploader-icon {
width: 80px;
height: 80px;
......
......@@ -42,21 +42,21 @@
<img :src="codeUrl" @click="getCode" class="login-code-img" />
</div>
</el-form-item>
<el-checkbox class="fr" v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;"
<el-checkbox class="fr" v-model="loginForm.rememberMe" style="margin: 0px 0px 25px 0px"
>记住密码</el-checkbox
>
<el-checkbox
v-model="isDemonstrationLogin"
@change="changeDemonAccount"
style="margin:0px 0px 25px 0px;"
style="margin: 0px 0px 25px 0px"
>演示账号登录</el-checkbox
>
<el-form-item style="width:100%;">
<el-form-item style="width: 100%">
<el-button
:loading="loading"
size="medium"
type="primary"
style="width:100%;"
style="width: 100%"
@click.native.prevent="handleLogin"
>
<span v-if="!loading">登 录</span>
......@@ -145,7 +145,7 @@ export default {
},
watch: {
$route: {
handler: function(route) {
handler: function (route) {
this.redirect = route.query && route.query.redirect
},
immediate: true
......@@ -296,7 +296,7 @@ export default {
.login-code-img {
height: 38px;
}
.login /deep/.el-dialog {
.login ::v-deep.el-dialog {
position: absolute;
top: 50%;
left: 50%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!