Commit 5a248ec9 by ext.wangyuman1

朋友圈模块

2 parents 1f110bd8 f5005800
Showing 75 changed files with 531 additions and 479 deletions
**本仓库为 LinkWeChat 的前端源码库,具体说明及后端库请移步至 [LinkWeChat](https://gitee.com/LinkWeChat/link-wechat) 查看。**
**本仓库为 LinkWeChat 的前端源码库,具体项目说明及后端库请移步至 [LinkWeChat](https://gitee.com/LinkWeChat/link-wechat) 查看。**
## 更新日志
### v5.0.0
2023.06.16
1. pc 管理端由 vue cli + vue2 生态 升级为 vite+vue3 生态版本,同时 vue3-master 替换 master 成为默认分支
2. v4.8 是当前、同时也是最后一个 v4.x 的次级版本更新。 pc 管理端 vue2 版本由此 2023.06.16 日进入维护状态,并持续到 vue2 官方生命周期终止,即 2023 年 12 月 31 日。在此期间,将会提供必要的 bug 修复和安全修复,但不再提供新功能特性。在此之后,v4 在已有的分发渠道中仍然可用,但不再进行更新,包括对安全问题和浏览器兼容性问题的修复等。
3. 考虑移动端 vue3 生态的兼容性,小程序端和移动 web 端暂不升级 vue3,且暂无升级计划
4. 优化系统性能,部分 UI 和交互体验
......@@ -14,7 +14,7 @@ const envs = {
},
test: {
DOMAIN: 'https://demo.linkwechat.net',
BASE_URL: '/vue3/', // 路由基础路径
BASE_URL: '/', // 路由基础路径
BASE_API: 'https://demo.linkwechat.net/linkwechat-api',
SYSTEM_API: '/linkwechat-api',
VIEW_URL: 'https://saas.pardigital.cn/file-view/onlinePreview?url=',
......@@ -23,7 +23,7 @@ const envs = {
},
production: {
DOMAIN: 'https://demo.linkwechat.net',
BASE_URL: '/vue3/', // 路由基础路径
BASE_URL: '/', // 路由基础路径
BASE_API: 'https://demo.linkwechat.net/linkwechat-api',
VIEW_URL: 'https://saas.pardigital.cn/file-view/onlinePreview?url=',
SYSTEM_API: '/linkwechat-api',
......
......@@ -359,14 +359,14 @@ li {
}
/* 暗黑模式 Dark mode */
/* @media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
body,
img,
video {
filter: invert(1) hue-rotate(180deg);
filter: invert(1) brightness(1.5) hue-rotate(180deg);
}
不使用暗黑模式
/* 不使用暗黑模式 */
.no-dark {
position: relative;
}
......@@ -376,6 +376,6 @@ li {
display: block;
height: 100%;
width: 100%;
backdrop-filter: invert(1) hue-rotate(180deg);
backdrop-filter: invert(1) brightness(1.5) hue-rotate(180deg);
}
} */
}
......@@ -10,12 +10,15 @@ html {
--color-success: #07c160;
--color-warning: #faad14;
--color-danger: #eb5e12;
--border-radius: 8px; /* 常规圆角 */
--border-radius-small: 4px; /* 小圆角 */
--border-radius-big: 16px; /* 大圆角 */
--card-margin: 16px; /* 卡片间距 */
--top-nav-heght: 64px; /* 顶部导航条高度 */
--font-black: #1d2129; /* 通用字体黑色 */
--font-white: #fff; /* 通用字体白色 */
}
/* 项目定制原子类 */
......
import request from '@/utils/request'
const service = window.lwConfig.services.system + window.lwConfig.services.wecom + '/strategic/journey'
const service =
window.lwConfig.services.system + window.lwConfig.services.wecom + '/strategic/journey'
// import { get, post } from '@/plugins/axios'
......@@ -19,8 +20,8 @@ export function getCrowdPackDetail(id) {
// 计划列表查询接口
// name 任务名称 String 支持模糊查询
// startDate 开始日期 String YYYY-MM-DD
// endDate 结束日期 String YYYY-MM-DD
// startDate 开始日期 String yyyy-MM-dd
// endDate 结束日期 String yyyy-MM-dd
// status 状态 number 0:待完善,1:未开始,2:待运行,3:运行中,4:已暂停,5:已停止,6:正常结束,7:异常结束
// pageNum 页码 number
// pageSize 页大小 number
......
......@@ -84,3 +84,10 @@ export function crowdAnalyse(data) {
params: data,
})
}
export function deleteCategory(ids) {
return request({
url: base + '/strategic/crowd/categoryDel/' + ids,
method: 'delete',
})
}
......@@ -14,7 +14,7 @@ export default {
default: () => ({}),
},
},
components: { Voice },
components: { Voice, BaiduMap: defineAsyncComponent(() => import('@/components/common/BaiduMap')) },
data() {
return {}
},
......@@ -108,17 +108,13 @@ export default {
</video>
</template>
<div v-else-if="message.msgType === 'location'" class="msgtypecard">
<div class="card-content" style="height: 100%; width: 100%">
<el-amap
ref="map"
vid="amapDemo"
:center="[JSON.parse(message.contact).longitude, JSON.parse(message.contact).latitude]"
:zoom="14"
class="amap-demo"
style="height: 120px; width: 250px; pointer-events: none">
<el-amap-marker
:position="[JSON.parse(message.contact).longitude, JSON.parse(message.contact).latitude]"></el-amap-marker>
</el-amap>
<div class="card-content">
<BaiduMap
isDetail
isOnlyShowMap
mapWidth="300px"
mapHeight="120px"
:initData="JSON.parse(message.contact)"></BaiduMap>
</div>
<div class="card-foot">{{ content }}</div>
</div>
......@@ -193,7 +189,7 @@ export default {
}
.message-right {
@extend .mes;
color: #fff;
color: var(--font-white, #fff);
margin-right: 10px;
background-color: var(--color);
border-top-right-radius: 0;
......@@ -234,6 +230,7 @@ export default {
line-height: 1.5;
// text-indent: 10px;
color: #333;
z-index: -1;
.card--link-title {
font-size: 15px;
font-weight: 500;
......
......@@ -28,8 +28,7 @@
<el-cascader
v-model="talkForm.categoryId"
:options="treeData[0].children"
:props="groupProps"
></el-cascader>
:props="groupProps"></el-cascader>
</el-form-item>
<el-form-item
label="话术标题"
......@@ -112,8 +111,7 @@
'后重新尝试'
"
placement="top-start"
:disabled="talkList.length < maxlength"
>
:disabled="talkList.length < maxlength">
<template #reference>
<el-dropdown
@command="moveGroup"
......@@ -168,14 +166,12 @@
'后重新尝试'
"
placement="top-start"
:disabled="talkList.length < maxlength"
>
:disabled="talkList.length < maxlength">
<template #reference>
<div class="ml20">
<el-button
@click="choseCenter"
:disabled="talkList.length > maxlength || talkList.length === maxlength"
>
:disabled="talkList.length > maxlength || talkList.length === maxlength">
从素材中心选择
</el-button>
</div>
......@@ -232,8 +228,7 @@
@dialogClose="dialogClose"
:materialTalkList="talkList"
:moduleType="moduleType"
:maxlength="maxlength"
/>
:maxlength="maxlength" />
<!-- 模板库 -->
<el-dialog
:title="otherType === 2 ? '选择群发模板' : '选择欢迎语模板'"
......@@ -241,8 +236,7 @@
width="60%"
append-to-body
:close-on-click-modal="false"
v-if="welcomVisible"
>
v-if="welcomVisible">
<TemplateLibrary @changeObj="changeObj" :isGroup="otherType === 2" />
<template #footer>
<div class="dialog-footer">
......@@ -267,8 +261,7 @@
:defaultValues="selectedUserList"
v-model:visible="dialogVisibleSelectUser"
title="选择使用员工"
@success="selectedUser"
></SelectUser>
@success="selectedUser"></SelectUser>
</div>
</template>
......@@ -915,12 +908,12 @@ export default {
}
}
::v-deep .el-button.is-disabled {
color: #fff;
color: var(--font-white, #fff);
background-color: #cccccc;
border-color: #cccccc;
}
::v-deep.el-dropdown [disabled] {
color: #fff;
color: var(--font-white, #fff);
background-color: #cccccc;
border-color: #cccccc;
}
......
......@@ -242,7 +242,7 @@ export default {
border-radius: 4px;
.red-text {
font-size: 14px;
color: #fff;
color: var(--font-white, #fff);
margin-left: 56px;
width: 98px;
white-space: nowrap; // 强制一行
......
......@@ -2,7 +2,7 @@
<div
class="pagination-container"
ref="pagination"
v-if="$attrs['hide-on-single-page'] === false || $attrs.total > limit">
v-if="['false', 'undefined'].includes($attrs['hide-on-single-page'] + '') || $attrs.total > limit">
<el-pagination
v-bind="$attrs"
:background="background"
......
......@@ -2,6 +2,7 @@
<script>
export default {
name: '',
inheritAttrs: false,
props: {
modelValue: '',
// ['emoji','insertCustomerNickName']
......@@ -42,18 +43,20 @@ export default {
</script>
<template>
<el-input ref="textarea" v-model="proxyValue" type="textarea" v-bind="$attrs"></el-input>
<div class="mt10">
<SelectEmoji v-if="toolbar.includes('emoji')" @select="insertContent">
<template v-slot:default="{ emojisArr }">
<el-button>
{{ emojisArr[0].emoji }}
</el-button>
</template>
</SelectEmoji>
<el-button v-if="toolbar.includes('insertCustomerNickName')" @click="insertContent('#客户昵称#')" class="ml10">
插入客户昵称
</el-button>
<div>
<el-input ref="textarea" v-model="proxyValue" type="textarea" v-bind="$attrs"></el-input>
<div class="mt10">
<SelectEmoji v-if="toolbar.includes('emoji')" @select="insertContent">
<template v-slot:default="{ emojisArr }">
<el-button>
{{ emojisArr[0].emoji }}
</el-button>
</template>
</SelectEmoji>
<el-button v-if="toolbar.includes('insertCustomerNickName')" @click="insertContent('#客户昵称#')" class="ml10">
插入客户昵称
</el-button>
</div>
</div>
</template>
......
......@@ -716,7 +716,7 @@ export default {
width: 300px;
height: 150px;
box-sizing: border-box;
color: #fff;
color: var(--font-white, #fff);
background-color: #000;
position: relative;
padding: 0;
......@@ -750,7 +750,7 @@ export default {
top: 0;
cursor: pointer;
text-align: center;
color: #fff;
color: var(--font-white, #fff);
opacity: 0;
font-size: 20px;
transition: opacity 0.3s;
......
......@@ -28,6 +28,7 @@ const common = {
DEFAULT_H5_WORDE: env.DOMAIN + '/static/WORD.png',
DEFAULT_H5_PPT: env.DOMAIN + '/static/PPT.png',
PRIVIEW_URL: env.VIEW_URL,
BAIDU_MAP_KEY: 'GeDsF2XGs01U0bUSpFIUCmvyNoYuGC3P', // 百度地图key
MICRO_APPS: {
store: {
......@@ -42,7 +43,7 @@ const common = {
// 以下仅用于系统信息展示,不作为项目变量使用,请勿在代码中使用
const project = {
_version: 'v5.0.0-rc.2', // 当前版本信息
// _version: 'v5.0.0', // 当前版本信息
_packDateTime: __PACK_DATETIME__, // 打包时间
_env: process.env.VUE_APP_ENV, // 前端系统环境模式
}
......
......@@ -2,13 +2,13 @@
* 操作权限处理
*/
import store from '@/stores'
import stores from '@/stores'
export default {
inserted(el, binding, vnode) {
mounted(el, binding, vnode) {
const { value } = binding
const all_permission = '*:*:*'
const permissions = store && store.permissions
const permissions = stores() && stores().permissions
if (value && value instanceof Array && value.length > 0) {
const permissionFlag = value
......
......@@ -2,13 +2,13 @@
* 角色权限处理
*/
import store from '@/stores'
import stores from '@/stores'
export default {
inserted(el, binding, vnode) {
mounted(el, binding, vnode) {
const { value } = binding
const super_admin = 'admin'
const roles = store && store.roles
const roles = stores() && stores().roles
if (value && value instanceof Array && value.length > 0) {
const roleFlag = value
......
......@@ -3,7 +3,7 @@
* 使用 <div @click="search" v-preventReClick="1000">搜索</div>
*/
export default {
inserted(el, binding) {
mounted(el, binding) {
el.addEventListener('click', () => {
el.style.pointerEvents = 'none'
setTimeout(() => {
......
......@@ -70,7 +70,7 @@
<script>
import { mapState } from 'pinia'
import { appStore } from '@/stores'
import stores from '@/stores'
import SidebarItem from './SidebarItem'
......@@ -78,7 +78,7 @@ export default {
components: { SidebarItem },
computed: {
// ...mapState(['settings']),
...mapState(appStore, ['permission_routes', 'sidebarRouters', 'sidebar']),
...mapState(stores, ['permission_routes', 'sidebarRouters', 'sidebar']),
activeMenu() {
const route = this.$route
const { meta, path } = route
......@@ -187,7 +187,7 @@ export default {
background: linear-gradient(to right, var(--color) 0%, var(--color-sub) 100%);
box-shadow: 0px 13px 16px 0px rgba(7, 168, 85, 0.2);
border-radius: 8px;
color: #fff !important;
color: var(--font-white, #fff) !important;
z-index: 1;
}
......@@ -251,7 +251,7 @@ export default {
}
.card {
// color: #fff;
// color: var(--font-white, #fff);
// padding: 20px;
// background: linear-gradient(315deg, #07c160 0%, #90de45 100%);
// box-shadow: 0px 15px 20px 0px rgba(64, 64, 64, 0.12);
......
......@@ -236,7 +236,7 @@ export default {
}
&.active {
background-color: #42b983;
color: #fff;
color: var(--font-white, #fff);
border-color: #42b983;
&::before {
content: '';
......@@ -294,7 +294,7 @@ export default {
}
&:hover {
background-color: #b4bccc;
color: #fff;
color: var(--font-white, #fff);
}
}
}
......
......@@ -56,7 +56,7 @@ export default {
& .sidebar-title {
display: inline-block;
margin: 0;
color: #fff;
color: var(--font-white, #fff);
font-weight: 600;
line-height: 50px;
font-size: 14px;
......
......@@ -116,10 +116,11 @@ export default {
// }
// }
.el-menu--horizontal {
background-color: transparent;
background-color: initial;
border: none;
white-space: nowrap;
flex: 1 1 1200px;
z-index: 0;
& > .el-menu-item {
height: 38px !important;
line-height: 38px !important;
......@@ -151,8 +152,8 @@ export default {
&::after {
opacity: 1;
}
background-color: transparent;
color: #fff;
background-color: initial;
color: var(--font-white, #fff);
}
}
}
......@@ -160,7 +161,7 @@ export default {
& > .el-menu-item.is-active,
& > .el-submenu.is-active .el-submenu__title {
@extend .g-bg-lg;
color: #fff !important;
color: var(--font-white, #fff) !important;
border: 0;
}
......
......@@ -115,7 +115,7 @@
import Settings from './Settings'
import { isExternal } from '@/utils/validate'
import { mapState } from 'pinia'
import { appStore } from '@/stores'
import stores from '@/stores'
import Logo from './Logo'
// import { getCustomerServiceQrUrl } from "@/api/login";
......@@ -138,7 +138,7 @@ export default {
Settings,
},
computed: {
...mapState(appStore, ['avatar', 'name', 'permission_routes']),
...mapState(stores, ['avatar', 'name', 'permission_routes']),
},
mounted() {
// console.log(this.permission_routes)
......@@ -316,12 +316,12 @@ export default {
// background: #fff;
// color: var(--color);
.contact-us-icon {
color: #fff;
color: var(--font-white, #fff);
// color: inherit;
font-size: 30px;
}
// &:hover {
// color: #fff;
// color: var(--font-white, #fff);
// background: linear-gradient(225deg, var(--color-sub) 0%, var(--color) 100%);
// transition: all 0.3s;
// }
......
<template>
<div :class="classObj" class="app-wrapper">
<div class="top-wrap no-dark">
<div class="top-wrap">
<TopBar />
</div>
<div class="main-wrap">
......@@ -28,7 +28,7 @@ import CustomerService from './components/CustomerService'
import ResizeMixin from './mixin/ResizeHandler'
import { mapState } from 'pinia'
import { appStore } from '@/stores'
import stores from '@/stores'
export default {
name: 'Layout',
......@@ -43,7 +43,7 @@ export default {
mixins: [ResizeMixin],
computed: {
// ...mapGetters(['sidebar', 'avatar', 'device']),
...mapState(appStore, {
...mapState(stores, {
sidebar: (state) => state.app.sidebar,
device: (state) => state.app.device,
showSettings: (state) => state.settings.showSettings,
......@@ -100,6 +100,7 @@ export default {
}
.top-wrap {
height: var(--top-nav-heght);
background: #fff;
}
.main-wrap {
......
......@@ -91,7 +91,7 @@ export default {
left: 50%;
transform: translateX(-50%);
text-align: center;
// color: #fff;
// color: var(--font-white, #fff);
font-family: Arial;
font-size: 12px;
letter-spacing: 1px;
......
......@@ -99,45 +99,27 @@ Object.assign(app.config.globalProperties, methods, {
// app.use(AudioPlayer)
import Driver from 'driver.js'
import 'driver.js/dist/driver.min.css'
app.config.globalProperties.$driver = new Driver({
className: 'scoped-class',
allowClose: false, //禁止点击外部关闭
doneBtnText: '完成', // 完成按钮标题
closeBtnText: '关闭', // 关闭按钮标题
stageBackground: '#fff', // 引导对话的背景色
nextBtnText: '下一步', // 下一步按钮标题
prevBtnText: '上一步', // 上一步按钮标题
keyboardControl: false, // 禁止键盘控制
// showButtons:false
})
import VueAMap, { initAMapApiLoader } from '@vuemap/vue-amap'
import '@vuemap/vue-amap/dist/style.css'
app.use(VueAMap)
initAMapApiLoader({
key: '32396af00cd726deed804cf5b63ed2d8',
plugin: [
'AMap.Autocomplete',
'AMap.PlaceSearch',
'AMap.Scale',
'AMap.OverView',
'AMap.ToolBar',
'AMap.MapType',
'AMap.PolyEditor',
'AMap.CircleEditor',
],
})
// import Driver from 'driver.js'
// import 'driver.js/dist/driver.min.css'
// app.config.globalProperties.$driver = new Driver({
// className: 'scoped-class',
// allowClose: false, //禁止点击外部关闭
// doneBtnText: '完成', // 完成按钮标题
// closeBtnText: '关闭', // 关闭按钮标题
// stageBackground: '#fff', // 引导对话的背景色
// nextBtnText: '下一步', // 下一步按钮标题
// prevBtnText: '上一步', // 上一步按钮标题
// keyboardControl: false, // 禁止键盘控制
// // showButtons:false
// })
import directive from './directive'
app.use(directive)
// import { createPinia, defineStore } from 'pinia'
import store, { stores } from '@/stores'
import stores, { store } from '@/stores'
app.use(stores)
app.use(store)
app.use(router)
app.config.globalProperties.$store = store()
app.config.globalProperties.$store = stores()
app.mount('#app')
......@@ -6,9 +6,9 @@ import permission from './modules/permission'
import settings from './modules/settings'
import getters from './getters'
export const stores = createPinia()
export const store = createPinia()
export const appStore = defineStore('app', {
export default defineStore('app', {
state: () => ({
app: { ...app.state },
user: { ...user.state },
......@@ -25,5 +25,3 @@ export const appStore = defineStore('app', {
},
getters,
})
export default appStore
......@@ -32,7 +32,7 @@
}
// .el-message-box__btns {
// .el-button--default.el-button--primary {
// color: #fff;
// color: var(--font-white, #fff);
// }
// }
.el-button {
......@@ -59,18 +59,18 @@
.el-button--cyan:active {
background: #20b2aa;
border-color: #20b2aa;
color: #ffffff;
color: var(--font-white, #fff);
}
.el-button--cyan:focus,
.el-button--cyan:hover {
background: #48d1cc;
border-color: #48d1cc;
color: #ffffff;
color: var(--font-white, #fff);
}
.el-button--cyan {
background-color: #20b2aa;
border-color: #20b2aa;
color: #ffffff;
color: var(--font-white, #fff);
}
// .el-input.el-input--small {
......@@ -496,7 +496,7 @@
color: #86909c; // 标题颜色
}
.el-step__head.is-process {
color: #fff; // 数字颜色
color: var(--font-white, #fff); // 数字颜色
.el-step__icon.is-text {
background: var(--color);
}
......
......@@ -84,7 +84,7 @@ div:focus {
/* 拖拽列样式 */
.sortable-ghost {
opacity: 0.8;
color: #fff !important;
color: var(--font-white, #fff) !important;
background: #42b983 !important;
}
......@@ -203,7 +203,7 @@ div:focus {
&card-blue-wrap {
display: flex;
.card-blue {
color: #fff;
color: var(--font-white, #fff);
width: 200px;
height: 90px;
background: linear-gradient(90deg, #3c89f0 0%, #1364f4 100%);
......
......@@ -2,20 +2,19 @@
* 动态加载百度地图api函数
* @param {String} ak 百度地图AK,必传
*/
export default function loadBMap(ak) {
return new Promise(function(resolve, reject) {
export default function loadBMap() {
return new Promise(function (resolve, reject) {
if (typeof window.BMap !== 'undefined') {
resolve(window.BMap)
return true
}
window.onBMapCallback = function() {
window.onBMapCallback = function () {
resolve(window.BMap)
}
let script = document.createElement('script')
script.type = 'text/javascript'
script.src =
'https://api.map.baidu.com/api?v=3.0&ak=' + ak + '&callback=onBMapCallback'
script.src = 'https://api.map.baidu.com/api?v=3.0&ak=' + window.lwConfig.BAIDU_MAP_KEY + '&callback=onBMapCallback'
script.onerror = reject
document.head.appendChild(script)
})
}
\ No newline at end of file
}
import store from '@/stores'
import stores from '@/stores'
/**
* 字符权限校验
......@@ -7,7 +7,7 @@ import store from '@/stores'
*/
export function checkPermi(value) {
if (value && value instanceof Array && value.length > 0) {
const permissions = store && store.permissions
const permissions = stores() && stores().permissions
const permissionDatas = value
const hasPermission = permissions.some((permission) => {
......
import axios from 'axios'
import { ElNotification as Notification, ElMessageBox as MessageBox, ElMessage as Message } from 'element-plus'
import _store from '@/stores'
import stores from '@/stores'
import { getToken, setToken } from '@/utils/auth'
import errorCode from '@/utils/errorCode'
......@@ -34,7 +34,7 @@ service.interceptors.request.use(
// 响应拦截器
service.interceptors.response.use(
(res) => {
let store = _store()
let store = stores()
// 未设置状态码则默认成功状态
const code = res.data.code || 200
// 获取错误信息
......
......@@ -806,12 +806,12 @@ export default {
}
}
::v-deep .el-button.is-disabled {
color: #fff;
color: var(--font-white, #fff);
background-color: #cccccc;
border-color: #cccccc;
}
::v-deep.el-dropdown [disabled] {
color: #fff;
color: var(--font-white, #fff);
background-color: #cccccc;
border-color: #cccccc;
}
......
......@@ -96,7 +96,7 @@ export default {
left: 0;
top: 0;
text-align: center;
color: #fff;
color: var(--font-white, #fff);
opacity: 0;
font-size: 20px;
background-color: rgba(0, 0, 0, 0.5);
......
......@@ -530,7 +530,7 @@ export default {
.group {
font-size: 12px;
background: var(--color);
color: #fff;
color: var(--font-white, #fff);
display: block;
padding: 0 5px;
height: 24px;
......
......@@ -111,7 +111,7 @@ export default {
justify-content: space-between;
.icon-action {
font-size: 14px;
color: #fff;
color: var(--font-white, #fff);
}
}
}
......@@ -172,7 +172,7 @@ export default {
// left: 0;
// top: 0;
// text-align: center;
// color: #fff;
// color: var(--font-white, #fff);
// opacity: 0;
// font-size: 20px;
// background-color: rgba(0, 0, 0, 0.5);
......
......@@ -85,7 +85,7 @@ export default {
left: 0;
top: 0;
text-align: center;
color: #fff;
color: var(--font-white, #fff);
opacity: 0;
font-size: 20px;
background-color: rgba(0, 0, 0, 0.5);
......
......@@ -1011,7 +1011,7 @@ export default {
cursor: pointer;
z-index: 9;
font-size: 24px;
color: #fff;
color: var(--font-white, #fff);
display: none;
background: #0279de;
width: 24px;
......
......@@ -78,7 +78,7 @@ export default {
.group {
font-size: 12px;
background: var(--color);
color: #fff;
color: var(--font-white, #fff);
display: block;
padding: 0 5px;
height: 24px;
......
......@@ -191,7 +191,7 @@ export default {
.group {
font-size: 12px;
background: var(--color);
color: #fff;
color: var(--font-white, #fff);
display: block;
padding: 0 5px;
height: 24px;
......
......@@ -160,7 +160,7 @@ export default {
left: 0;
top: 0;
text-align: center;
color: #fff;
color: var(--font-white, #fff);
opacity: 0;
font-size: 20px;
background-color: rgba(0, 0, 0, 0.5);
......
......@@ -79,7 +79,7 @@ export default {
.group {
font-size: 12px;
background: var(--color);
color: #fff;
color: var(--font-white, #fff);
display: block;
padding: 0 5px;
height: 24px;
......
......@@ -189,7 +189,7 @@ export default {
.group {
font-size: 12px;
background: var(--color);
color: #fff;
color: var(--font-white, #fff);
display: block;
padding: 0 5px;
height: 24px;
......
......@@ -160,7 +160,7 @@ export default {
left: 0;
top: 0;
text-align: center;
color: #fff;
color: var(--font-white, #fff);
opacity: 0;
font-size: 20px;
background-color: rgba(0, 0, 0, 0.5);
......
......@@ -99,7 +99,7 @@ export default {
left: 0;
top: 0;
text-align: center;
color: #fff;
color: var(--font-white, #fff);
opacity: 0;
font-size: 20px;
background-color: rgba(0, 0, 0, 0.5);
......
......@@ -94,7 +94,7 @@ export default {
left: 0;
top: 0;
text-align: center;
color: #fff;
color: var(--font-white, #fff);
opacity: 0;
font-size: 20px;
background-color: rgba(0, 0, 0, 0.5);
......
......@@ -117,7 +117,7 @@ export default {
left: 0;
top: 0;
text-align: center;
color: #fff;
color: var(--font-white, #fff);
opacity: 0;
font-size: 20px;
background-color: rgba(0, 0, 0, 0.5);
......
......@@ -617,7 +617,7 @@ export default {
.group {
font-size: 12px;
background: var(--color);
color: #fff;
color: var(--font-white, #fff);
display: block;
padding: 0 5px;
height: 24px;
......
......@@ -150,7 +150,7 @@ export default {
left: 0;
top: 0;
text-align: center;
color: #fff;
color: var(--font-white, #fff);
opacity: 0;
font-size: 20px;
background-color: rgba(0, 0, 0, 0.5);
......
<script>
import MaPage from '@/views/contentCenter/components/MaPage'
import PicTitContent from '@/views/contentCenter/components/PicTitContent'
import { tsThisType } from '@babel/types'
export default {
name: 'MImageText',
components: { MaPage, PicTitContent },
data() {
return {
srcList: [],
ids: [], // 选中数组
dialogVisible: false,
currentType: 0,
poster: ''
}
import MaPage from '@/views/contentCenter/components/MaPage'
import PicTitContent from '@/views/contentCenter/components/PicTitContent'
import { tsThisType } from '@babel/types'
export default {
name: 'MImageText',
components: { MaPage, PicTitContent },
data() {
return {
srcList: [],
ids: [], // 选中数组
dialogVisible: false,
currentType: 0,
poster: '',
}
},
watch: {},
created() {},
methods: {
listChange(data) {
this.srcList = data.map((item) => item.materialUrl)
},
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id)
},
gotoSend(data) {
console.log(data)
this.dialogVisible = true
this.poster = data
},
setTypeFn(type) {
this.currentType = type
},
watch: {},
created() {},
methods: {
listChange(data) {
this.srcList = data.map((item) => item.materialUrl)
},
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id)
},
gotoSend(data) {
console.log(data)
this.dialogVisible = true
this.poster = data
},
setTypeFn(type) {
this.currentType = type
},
gotoRoute() {
if (this.currentType == 0) {
this.$router.push({
path: '/customerMaintain/groupMessage/record/add',
query: {
posterId: this.poster.id,
chatType: 1
}
})
} else if (this.currentType == 1) {
this.$router.push({
path: '/customerMaintain/groupMessage/record/add',
query: {
posterId: this.poster.id,
chatType: 2
}
})
} else if (this.currentType == 2) {
this.$router.push({
path: '/customerMaintain/friendCircle/publish',
query: {
posterId: this.poster.id
}
})
} else {
this.$router.push({
path: '/enterpriseManage/internalCollaborate/appManage',
query: {
posterId: this.poster.materialUrl
}
})
}
gotoRoute() {
if (this.currentType == 0) {
this.$router.push({
path: '/customerMaintain/groupMessage/record/add',
query: {
posterId: this.poster.id,
chatType: 1,
},
})
} else if (this.currentType == 1) {
this.$router.push({
path: '/customerMaintain/groupMessage/record/add',
query: {
posterId: this.poster.id,
chatType: 2,
},
})
} else if (this.currentType == 2) {
this.$router.push({
path: '/customerMaintain/friendCircle/publish',
query: {
posterId: this.poster.id,
},
})
} else {
this.$router.push({
path: '/enterpriseManage/internalCollaborate/appManage',
query: {
posterId: this.poster.materialUrl,
},
})
}
}
}
},
},
}
</script>
<template>
......@@ -223,80 +223,80 @@
</template>
<style lang="scss" scoped>
.unit {
margin: 0 auto;
.unit {
margin: 0 auto;
display: flex;
flex-wrap: wrap;
width: 580px;
justify-content: space-between;
.unit-item {
width: 280px;
height: 80px;
border-width: 1px;
border-style: solid;
border-color: rgba(242, 242, 242, 1);
border-radius: 5px;
display: flex;
flex-wrap: wrap;
width: 580px;
justify-content: space-between;
.unit-item {
width: 280px;
height: 80px;
border-width: 1px;
border-style: solid;
border-color: rgba(242, 242, 242, 1);
border-radius: 5px;
display: flex;
padding: 17px;
margin-bottom: 20px;
cursor: pointer;
.icon-style {
margin-right: 10px;
margin-top: 7px;
font-size: 22px;
width: 24px;
// height: 20px;
}
.item-title {
margin-top: 4px;
font-size: 16px;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #1d2129;
}
.item-text {
margin-top: 6px;
font-size: 12px;
color: #aaaaaa;
line-height: 24px;
}
&:hover {
border: 1px solid rgba(7, 193, 96, 1);
background-color: rgba(7, 193, 96, 0.09019607843137255);
}
padding: 17px;
margin-bottom: 20px;
cursor: pointer;
.icon-style {
margin-right: 10px;
margin-top: 7px;
font-size: 22px;
width: 24px;
// height: 20px;
}
.item-title {
margin-top: 4px;
font-size: 16px;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #1d2129;
}
.active_item {
.item-text {
margin-top: 6px;
font-size: 12px;
color: #aaaaaa;
line-height: 24px;
}
&:hover {
border: 1px solid rgba(7, 193, 96, 1);
background-color: rgba(7, 193, 96, 0.09019607843137255);
}
}
.img-wrap {
position: relative;
height: 0;
padding: 70% 0 0 0;
border-bottom: 1px solid #e6ebf5;
&:hover .actions {
opacity: 1;
}
.active_item {
border: 1px solid rgba(7, 193, 96, 1);
background-color: rgba(7, 193, 96, 0.09019607843137255);
}
.actions {
position: absolute;
width: 100%;
height: 50px;
left: 0;
top: 0;
text-align: center;
color: #fff;
opacity: 0;
font-size: 20px;
background-color: rgba(0, 0, 0, 0.5);
transition: opacity 0.3s;
.el-icon-EditPen {
margin-right: 20px;
}
}
.img-wrap {
position: relative;
height: 0;
padding: 70% 0 0 0;
border-bottom: 1px solid #e6ebf5;
&:hover .actions {
opacity: 1;
}
.el-image {
width: 80px;
height: 80px;
}
.actions {
position: absolute;
width: 100%;
height: 50px;
left: 0;
top: 0;
text-align: center;
color: var(--font-white, #fff);
opacity: 0;
font-size: 20px;
background-color: rgba(0, 0, 0, 0.5);
transition: opacity 0.3s;
.el-icon-EditPen {
margin-right: 20px;
}
}
.el-image {
width: 80px;
height: 80px;
}
</style>
......@@ -138,7 +138,7 @@ export default {
left: 0;
top: 0;
text-align: center;
color: #fff;
color: var(--font-white, #fff);
opacity: 0;
font-size: 20px;
background-color: rgba(0, 0, 0, 0.5);
......
......@@ -89,7 +89,7 @@ export default {
text-align: center;
line-height: 50px;
font-size: 20px;
color: #fff;
color: var(--font-white, #fff);
cursor: pointer;
font-size: 43px;
}
......
......@@ -209,7 +209,7 @@ export default {
<style lang="scss" scoped>
.list {
height: calc(100vh - 420px);
height: calc(100vh - 370px);
margin-top: 10px;
background: white;
overflow-y: scroll;
......
<template>
<div class="content">
<div class="content" style="margin-top: -13px">
<el-tabs v-model="activeName">
<el-tab-pane label="员工检索" name="1">
<employee></employee>
......@@ -14,21 +14,21 @@
</div>
</template>
<script>
import employee from './employee.vue'
import user from './customer.vue'
import global from './global.vue'
export default {
components: { employee, user, global },
data() {
return {
activeName: '1'
}
},
methods: {}
}
import employee from './employee.vue'
import user from './customer.vue'
import global from './global.vue'
export default {
components: { employee, user, global },
data() {
return {
activeName: '1',
}
},
methods: {},
}
</script>
<style lang="scss" scoped>
::v-deep.pd15 {
padding: 15px;
}
::v-deep.pd15 {
padding: 15px;
}
</style>
......@@ -100,7 +100,7 @@ export default {
text-align: center;
line-height: 50px;
font-size: 20px;
color: #fff;
color: var(--font-white, #fff);
cursor: pointer;
font-size: 43px;
}
......
......@@ -166,7 +166,7 @@ export default {
},
// 根据生日计算年龄
jsGetAge(strBirthday) {
if (strBirthday === null) {
if (!strBirthday) {
return '无'
}
let returnAge
......@@ -282,7 +282,7 @@ export default {
<el-row class="baseinfo-row" v-else-if="item.labelVal == 'age'">
<!-- 年龄 -->
<el-col :span="6">{{ item.labelName }}</el-col>
<el-col :span="18">{{ jsGetAge(portrayalSum.bkirthday) }}</el-col>
<el-col :span="18">{{ jsGetAge(portrayalSum.birthday) }}</el-col>
</el-row>
<el-row class="baseinfo-row" v-else-if="item.labelVal == 'birthday'">
<!-- 生日 -->
......@@ -453,7 +453,7 @@ export default {
line-height: 24px;
padding: 0 5px;
margin-right: 10px;
color: #fff;
color: var(--font-white, #fff);
border-radius: var(--border-radius-small);
}
.el-card {
......@@ -476,7 +476,7 @@ export default {
}
&.active {
background: var(--color);
color: #fff;
color: var(--font-white, #fff);
}
}
}
......
......@@ -256,7 +256,11 @@ export default {
</el-table-column>
<el-table-column prop="address" label="标签" align="center">
<template #default="{ row }">
<el-tag type="info" v-for="(unit, unique) in row?.tagNames.split(',')" :key="unique">{{ unit }}</el-tag>
<div v-if="row.tagNames">
<TagEllipsis :list="row.tagNames?.split(',')"></TagEllipsis>
</div>
<span v-else>无标签</span>
<!-- <el-tag type="info" v-for="(unit, unique) in row?.tagNames?.split(',')" :key="unique">{{ unit }}</el-tag> -->
<!-- <div v-for="(item, index) in row.weFlowerCustomerRels" :key="index">
<el-tag type="info" v-for="(unit, unique) in item.weFlowerCustomerTagRels" :key="unique">{{
......
......@@ -836,12 +836,12 @@ export default {
}
}
::v-deep .el-button.is-disabled {
color: #fff;
color: var(--font-white, #fff);
background-color: #cccccc;
border-color: #cccccc;
}
::v-deep.el-dropdown [disabled] {
color: #fff;
color: var(--font-white, #fff);
background-color: #cccccc;
border-color: #cccccc;
}
......
......@@ -500,14 +500,14 @@ export default {
font-size: 14px;
font-weight: 400;
color: #ffffff;
color: var(--font-white, #fff);
}
.value {
margin-top: 5px;
font-size: 18px;
font-weight: 400;
color: #ffffff;
color: var(--font-white, #fff);
}
}
......
......@@ -189,7 +189,7 @@ export default {
font-size: 14px;
font-weight: 400;
color: #ffffff;
color: var(--font-white, #fff);
}
.value {
......@@ -197,7 +197,7 @@ export default {
font-size: 18px;
font-weight: 400;
color: #ffffff;
color: var(--font-white, #fff);
}
}
</style>
......@@ -270,7 +270,7 @@ export default {
width: 175px;
height: 75px;
padding: 20px 10px 0 54px;
color: #fff;
color: var(--font-white, #fff);
line-height: 1.15;
font-size: 14px;
font-weight: 500;
......
......@@ -395,7 +395,7 @@ export default {
width: 175px;
height: 75px;
padding: 20px 10px 0 54px;
color: #fff;
color: var(--font-white, #fff);
line-height: 1.15;
font-size: 14px;
font-weight: 500;
......
......@@ -445,7 +445,7 @@ export default {
width: 175px;
height: 75px;
padding: 20px 10px 0 54px;
color: #fff;
color: var(--font-white, #fff);
line-height: 1.15;
font-size: 14px;
font-weight: 500;
......
......@@ -55,7 +55,7 @@ const layouts = {
<div>{element.url}</div>
<div
// 无图片时,占位提示
domPropsInnerHTML={
innerHTML={
element.formCodeId == 1 && !element.src
? '<div class="no-image">请在右侧控件设置中添加需要展示的图片</div>'
: ''
......@@ -231,7 +231,7 @@ $selectedColor: #f6f7ff;
background: #fff;
&:hover {
background: var(--color);
color: #fff;
color: var(--font-white, #fff);
}
}
& > .drawing-item-delete {
......@@ -241,7 +241,7 @@ $selectedColor: #f6f7ff;
background: #fff;
&:hover {
background: #f56c6c;
color: #fff;
color: var(--font-white, #fff);
}
}
}
......
......@@ -950,7 +950,7 @@ export default {
border-radius: 0 0 6px 0;
text-align: center;
line-height: 26px;
color: #fff;
color: var(--font-white, #fff);
font-size: 18px;
}
.node-label {
......
......@@ -936,7 +936,7 @@ export default {
background-color: var(--color);
text-align: center;
padding: 13px 30px;
color: #fff;
color: var(--font-white, #fff);
}
::v-deep .form3 .el-scrollbar__wrap {
......
......@@ -578,7 +578,7 @@ export default {
.el-tabs__item.is-active {
background: #1e1e1e;
border-bottom-color: #1e1e1e !important;
color: #fff;
color: var(--font-white, #fff);
}
.el-icon-EditPen {
color: #f1fa8c;
......@@ -626,7 +626,7 @@ export default {
line-height: 16px;
background: rgba(0, 0, 0, 0.2);
border-radius: 50%;
color: #fff;
color: var(--font-white, #fff);
text-align: center;
z-index: 1;
cursor: pointer;
......@@ -937,7 +937,7 @@ $selectedColor: #f6f7ff;
background: #fff;
&:hover {
background: var(--color);
color: #fff;
color: var(--font-white, #fff);
}
}
& > .drawing-item-delete {
......@@ -947,7 +947,7 @@ $selectedColor: #f6f7ff;
background: #fff;
&:hover {
background: #f56c6c;
color: #fff;
color: var(--font-white, #fff);
}
}
}
......
......@@ -8,7 +8,7 @@
<el-form label-position="right" label-width="100px">
<el-form-item style="margin-bottom: 10px" label="活码名称">{{ form.name }}</el-form-item>
<el-form-item style="margin-bottom: 10px" label="活码分组">{{ form.qrGroupName }}</el-form-item>
<el-form-item style="margin-bottom: 10px" label="自动通过标签">
<el-form-item style="margin-bottom: 10px" label="自动通过好友">
<el-switch :value="form.autoAdd" :active-value="1" :inactive-value="0" disabled></el-switch>
</el-form-item>
<el-form-item style="margin-bottom: 10px" label="新客户标签">
......
......@@ -53,7 +53,7 @@
</el-form>
</div>
<div class="g-footer-sticky bottom" v-if="roles[activeIndex]">
<!-- <el-button plain type="danger">删除</el-button> -->
<el-button plain type="danger" @click="deleteFn">删除</el-button>
<el-button type="primary" @click="edtiFn">编辑</el-button>
</div>
</div>
......
......@@ -57,7 +57,7 @@ export default {
margin: 100px auto;
.pan-back-btn {
background: #008489;
color: #fff;
color: var(--font-white, #fff);
border: none !important;
}
.pan-gif {
......
......@@ -2,44 +2,39 @@
<div class="wscn-http404-container">
<div class="wscn-http404">
<div class="pic-404">
<img class="pic-404__parent" src="@/assets/404_images/404.png" alt="404">
<img class="pic-404__child left" src="@/assets/404_images/404_cloud.png" alt="404">
<img class="pic-404__child mid" src="@/assets/404_images/404_cloud.png" alt="404">
<img class="pic-404__child right" src="@/assets/404_images/404_cloud.png" alt="404">
<img class="pic-404__parent" src="@/assets/404_images/404.png" alt="404" />
<img class="pic-404__child left" src="@/assets/404_images/404_cloud.png" alt="404" />
<img class="pic-404__child mid" src="@/assets/404_images/404_cloud.png" alt="404" />
<img class="pic-404__child right" src="@/assets/404_images/404_cloud.png" alt="404" />
</div>
<div class="bullshit">
<div class="bullshit__oops">
404错误!
</div>
<div class="bullshit__oops">404错误!</div>
<div class="bullshit__headline">
{{ message }}
</div>
<div class="bullshit__info">
对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。
</div>
<router-link to="/" class="bullshit__return-home">
返回首页
</router-link>
<router-link to="/" class="bullshit__return-home">返回首页</router-link>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'Page404',
computed: {
message() {
return '找不到网页!'
}
}
},
},
}
</script>
<style lang="scss" scoped>
.wscn-http404-container{
transform: translate(-50%,-50%);
.wscn-http404-container {
transform: translate(-50%, -50%);
position: absolute;
top: 40%;
left: 50%;
......@@ -208,7 +203,7 @@ export default {
background: #1482f0;
border-radius: 100px;
text-align: center;
color: #ffffff;
color: var(--font-white, #fff);
opacity: 0;
font-size: 14px;
line-height: 36px;
......
<script>
import { getList, getAnalysis, remove } from '@/api/intelligentShortLink'
import { touchTypeDict } from './components/mixin'
export default {
name: '',
components: {},
data() {
return {
loading: false,
cardData: [],
total: 0,
query: {
pageSize: 10,
pageNum: 1,
},
touchTypeDict,
// dictStatus: Object.freeze({
// 1: '启用',
// 2: '关闭',
// }),
import { getList, getAnalysis, remove } from '@/api/intelligentShortLink'
import * as api from '@/api/enterpriseId'
import { touchTypeDict } from './components/mixin'
export default {
name: '',
components: {},
data() {
return {
loading: false,
cardData: [],
total: 0,
query: {
pageSize: 10,
pageNum: 1
},
touchTypeDict,
// dictStatus: Object.freeze({
// 1: '启用',
// 2: '关闭',
// }),
list: [],
ids: [],
}
},
computed: {},
watch: {},
created() {
this.getList()
this.getAnalysis()
this.$store.setBusininessDesc(` <div>生成智能短链,一键跳转公众号、小程序、企业微信</div> `)
},
mounted() {
this.clipboard = new this.ClipboardJS('.copy-btn')
},
unmounted() {
this.clipboard.destroy()
},
methods: {
getAnalysis() {
this.loading = true
getAnalysis()
.then(({ data }) => {
this.cardData = [
{
title: '访问总数(pv)',
tips: '短链页面访问的总次数',
value: data.pvTotalCount,
},
{
title: '访问总人数(uv)',
tips: '短链页面访问的独立IP数',
value: data.uvTotalCount,
},
{
title: '小程序打开数',
tips: '小程序成功打开的总次数',
value: data.openTotalCount,
},
{
title: '今日访问总数(pv)',
tips: '今日短链页面访问的总次数',
value: data.pvTodayCount,
title1: '较昨日',
value1: data.pvDiff,
},
{
title: '今日访问总人数(uv)',
tips: '今日短链页面访问的独立IP数',
value: data.uvTodayCount,
title1: '较昨日',
value1: data.uvDiff,
},
{
title: '今日小程序打开数',
tips: '今日小程序成功打开的总次数',
value: data.openTodayCount,
title1: '较昨日',
value1: data.openDiff,
},
]
})
.catch((e) => {
console.log(e)
})
.finally(() => {
this.loading = false
})
list: [],
ids: [],
needMoreInfo: false,
dialogVisible: false
}
},
getList(page) {
page && (this.query.pageNum = page)
this.loading = true
getList(this.query)
.then(({ rows, total }) => {
this.list = rows
this.total = +total
})
.catch(() => {})
.finally(() => {
this.loading = false
})
computed: {},
watch: {},
created() {
this.setState()
this.getList()
this.getAnalysis()
this.$store.setBusininessDesc(` <div>生成智能短链,一键跳转公众号、小程序、企业微信</div> `)
},
resetForm() {
this.$refs['queryForm'].resetFields()
this.getList(1)
mounted() {
this.clipboard = new this.ClipboardJS('.copy-btn')
},
goRoute(row = {}, detail) {
let { id } = row
this.$router.push({
path: './' + (detail || 'addEdit'),
query: { id },
})
unmounted() {
this.clipboard.destroy()
},
remove(id) {
const ids = id || this.ids + ''
this.$confirm('是否确认删除吗?', '警告', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
.then(function () {
return remove(ids)
methods: {
cancelFn() {
this.needMoreInfo = false
this.dialogVisible = false
this.goRoute()
},
gotoSetting() {
this.$router.push({
path: '/enterpriseManage/enterpriseWechat'
})
.then(() => {
this.getList()
this.msgSuccess('删除成功')
},
setState() {
api.getDetail().then((res) => {
if (!res.data.wxAppletOriginalId || !res.data.miniAppId || !res.data.miniSecret) {
this.needMoreInfo = true
}
})
},
},
}
},
getAnalysis() {
this.loading = true
getAnalysis()
.then(({ data }) => {
this.cardData = [
{
title: '访问总数(pv)',
tips: '短链页面访问的总次数',
value: data.pvTotalCount
},
{
title: '访问总人数(uv)',
tips: '短链页面访问的独立IP数',
value: data.uvTotalCount
},
{
title: '小程序打开数',
tips: '小程序成功打开的总次数',
value: data.openTotalCount
},
{
title: '今日访问总数(pv)',
tips: '今日短链页面访问的总次数',
value: data.pvTodayCount,
title1: '较昨日',
value1: data.pvDiff
},
{
title: '今日访问总人数(uv)',
tips: '今日短链页面访问的独立IP数',
value: data.uvTodayCount,
title1: '较昨日',
value1: data.uvDiff
},
{
title: '今日小程序打开数',
tips: '今日小程序成功打开的总次数',
value: data.openTodayCount,
title1: '较昨日',
value1: data.openDiff
}
]
})
.catch((e) => {
console.log(e)
})
.finally(() => {
this.loading = false
})
},
getList(page) {
page && (this.query.pageNum = page)
this.loading = true
getList(this.query)
.then(({ rows, total }) => {
this.list = rows
this.total = +total
})
.catch(() => {})
.finally(() => {
this.loading = false
})
},
resetForm() {
this.$refs['queryForm'].resetFields()
this.getList(1)
},
goRoute(row = {}, detail) {
if (this.needMoreInfo) {
this.dialogVisible = true
return
}
let { id } = row
this.$router.push({
path: './' + (detail || 'addEdit'),
query: { id }
})
},
remove(id) {
const ids = id || this.ids + ''
this.$confirm('是否确认删除吗?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(function () {
return remove(ids)
})
.then(() => {
this.getList()
this.msgSuccess('删除成功')
})
}
}
}
</script>
<template>
......@@ -140,7 +169,8 @@ export default {
v-for="(item, index) in touchTypeDict"
:key="index"
:label="item.allName"
:value="+index"></el-option>
:value="+index"
></el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="" prop="status">
......@@ -172,7 +202,8 @@ export default {
<el-icon-copy-document
class="el-icon-copy-document copy-btn cp ml20"
title="复制"
:data-clipboard-text="row.shortLink"></el-icon-copy-document>
:data-clipboard-text="row.shortLink"
></el-icon-copy-document>
</template>
</el-table-column>
<!-- <el-table-column label="状态" align="center" prop="status">
......@@ -188,14 +219,39 @@ export default {
</el-table-column>
</el-table>
<pagination :total="total" v-model:page="query.pageNum" v-model:limit="query.pageSize" @pagination="getList()" />
<template v-if="!list.length">
<div class="tips">
智能短链需要先配置短链小程序,否则无法正常使用,<a class="link" @click="gotoSetting">去配置</a>
</div>
</template>
</div>
<el-dialog title="提示" :close-on-click-modal="false" :show-close="false" v-model="dialogVisible" width="auto">
<div style="text-align: center;">
智能短链需要先配置短链小程序,否则无法正常使用。
</div>
<template #footer>
<span class="dialog-footer">
<el-button @click="cancelFn">继续新建</el-button>
<el-button type="primary" @click="gotoSetting">去配置</el-button>
</span>
</template>
</el-dialog>
</div>
</template>
<style lang="scss" scoped>
.el-icon-copy-document {
&:hover {
.tips {
margin-top: 30px;
text-align: center;
color: #999999;
}
.link {
color: var(--color);
border-bottom: 1px solid var(--color);
}
.el-icon-copy-document {
&:hover {
color: var(--color);
}
}
}
</style>
......@@ -374,7 +374,7 @@ export default {
width: 175px;
height: 75px;
padding: 20px 10px 0 54px;
color: #fff;
color: var(--font-white, #fff);
line-height: 1.15;
font-size: 14px;
font-weight: 500;
......
......@@ -53,7 +53,7 @@
</template>
<script>
import store from '@/stores'
import stores from '@/stores'
import 'vue-cropper/dist/index.css'
import { VueCropper } from 'vue-cropper'
import { uploadAvatar } from '@/api/system/user'
......@@ -75,7 +75,7 @@ export default {
title: '修改头像',
options: {
outputType: 'png', // 裁剪生成图片的格式 jpeg, png, webp
img: store().avatar, //裁剪图片的地址
img: stores().avatar, //裁剪图片的地址
autoCrop: true, // 是否默认生成截图框
autoCropWidth: 200, // 默认生成截图框宽度
autoCropHeight: 200, // 默认生成截图框高度
......@@ -129,7 +129,7 @@ export default {
if (response.code === 200) {
this.open = false
this.options.img = response.imgUrl
store.avatar = this.options.img
stores.avatar = this.options.img
this.msgSuccess('修改成功')
}
this.visible = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!