Commit 32c9596d by 前端

Merge branch 'v3.0.0' into 'master'

fixed

See merge request !39
2 parents 01cee348 4a3f312e
......@@ -31,11 +31,7 @@ const getFollower = params => {
const querylabeltree = params => {
params.method = 'scrm.api.datahub.labelgroup.queryLabelTree'
params.sessionId = session
<<<<<<< HEAD
return http({
=======
return http_tag({
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
url: '/rop-scrm-datahub/router',
method: 'POST',
data: params,
......@@ -44,11 +40,7 @@ const querylabeltree = params => {
}
const queryCrowdtree = params => {
params.method = 'scrm.api.datahub.user.queryCrowdTree'
<<<<<<< HEAD
return http({
=======
return http_tag({
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
url: '/rop-scrm-datahub/router',
method: 'POST',
data: params,
......
img {
width: 100%;
height: 100%;
vertical-align: top;
width: 100%;
height: 100%;
vertical-align: top;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-hide-2 {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.scrm-textRight {
position: relative;
text-align: right;
position: relative;
text-align: right;
}
.scrm-textCenter {
text-align: center;
text-align: center;
}
.scrm-c3 {
color: #333333;
color: #333333;
}
.scrm-f12 {
font-size: 12px;
font-size: 12px;
}
.scrm-f13 {
font-size: 13px;
font-size: 13px;
}
.scrm-f14 {
font-size: 14px;
font-size: 14px;
}
.scrm-f15 {
font-size: 15px;
font-size: 15px;
}
.scrm-f16 {
font-size: 16px;
font-size: 16px;
}
.scrm-f18 {
font-size: 18px;
font-size: 18px;
}
.scrm-f20 {
font-size: 20px;
font-size: 20px;
}
.scrm-f22 {
font-size: 22px;
font-size: 22px;
}
.scrm-f24 {
font-size: 24px;
font-size: 24px;
}
.scrm-m10 {
margin: 10px;
margin: 10px;
}
.scrm-m20 {
margin: 20px;
margin: 20px;
}
.scrm-ml10 {
margin-left: 10px;
margin-left: 10px;
}
.scrm-ml20 {
margin-left: 20px;
margin-left: 20px;
}
.scrm-mr10 {
margin-right: 10px;
margin-right: 10px;
}
.scrm-mr20 {
margin-right: 20px;
margin-right: 20px;
}
.scrm-p10 {
padding: 10px;
padding: 10px;
}
.scrm-p20 {
padding: 20px;
padding: 20px;
}
.scrm-box-f {
background: #ffffff;
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
}
.scrm-flex {
display: flex;
}
.task_icon {
position: relative;
&::after {
content: '';
position: absolute;
top: 8px;
left: -10px;
width: 6px;
height: 6px;
border-radius: 4px;
}
}
.green-icon {
&::after {
background: #2cca74;
}
}
.yellow-icon {
&::after {
background: #fdb757;
}
display: flex;
}
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 4px;
/*滚动条整体样式*/
width: 6px;
height: 4px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
.glsx-table .line-ellipsis {
display: inline;
display: inline;
}
.el-form--inline .el-form-item {
margin-right: 0px;
margin-right: 0px;
}
.el-tag {
color: #666 !important;
font-size: 14px !important;
color: #666 !important;
font-size: 14px !important;
}
.el-tag.el-tag--info {
background: #fafbfe !important;
border: 1px solid #e8e8ea !important;
border-radius: 4px;
background: #fafbfe !important;
border: 1px solid #e8e8ea !important;
border-radius: 4px;
}
.el-tag.el-tag--info.el-tag--plain {
background: transparent !important;
background: transparent !important;
}
.el-dialog__title {
height: 30px;
display: block;
height: 30px;
display: block;
}
.el-table--enable-row-hover .el-table__body tr:hover {
background: #f4f3ff !important;
background: #f4f3ff !important;
}
.el-table tbody tr:hover > td {
background: #f4f3ff !important;
}
.el-message-box .el-message-box__title,
.el-message-box .el-message-box__headerbtn {
// display: none;
}
.el-message-box__content {
text-align: center;
padding: 50px 0px 50px;
}
.el-message-box__status.el-icon-warning {
// display: none;
}
.el-message-box__btns {
text-align: center;
padding: 20px 0px 10px;
border-top: 1px solid #e6e6e6;
}
.el-message-box__btns button:nth-child(2) {
margin-left: 40px;
}
.el-message-box__status + .el-message-box__message {
padding: 0px 10px;
}
.el-message-box--center {
padding: 0px;
}
.el-message--info {
height: 40px;
background: #e6e9ff;
border: 1px solid #5850ff;
border-radius: 4px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
}
.el-message .el-icon-info {
color: #5850ff;
font-size: 16px;
}
.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
box-shadow: none !important;
background: #f4f3ff !important;
}
.el-message-box .el-message-box__title,.el-message-box .el-message-box__headerbtn {
display: none;
......

2.93 KB | W: | H:

1.84 KB | W: | H:

src/assets/img/channel/count1.png
src/assets/img/channel/count1.png
src/assets/img/channel/count1.png
src/assets/img/channel/count1.png
  • 2-up
  • Swipe
  • Onion skin

2.91 KB | W: | H:

1.95 KB | W: | H:

src/assets/img/channel/count2.png
src/assets/img/channel/count2.png
src/assets/img/channel/count2.png
src/assets/img/channel/count2.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -26,10 +26,7 @@ export default {
},
filters: {
ellipsis(value,that) {
<<<<<<< HEAD
=======
console.log(value,that)
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
if (value.length > that.textLength) {
that.tooltipStatus = true
return value.slice(0, that.textLength) + '...'
......
<template>
<div class="tag-main">
<<<<<<< HEAD
<el-dialog bigTitle="选择标签" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
=======
<el-dialog title="选择标签" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="tag-panel">
<div class="tag-panel-select">
<div class="tag-title">预选标签</div>
......
......@@ -7,11 +7,7 @@
-->
<template>
<div>
<<<<<<< HEAD
<GLDialog title="人群筛选" :hasFooter="true" :visible.sync="crowdVisible" mode="big">
=======
<el-dialog :title="'人群筛选'" :width="'1080px'" :visible.sync="crowdVisible" v-if="crowdVisible">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="member-wrapper">
<div class="member-left">
<div class="member-title">
......@@ -47,11 +43,7 @@
<el-button style="width: 68px;" size="small" @click="crowdVisible = false">取 消</el-button>
<el-button style="width: 68px;" size="small" type="primary" @click.native="handleConfirm">确 定</el-button>
</span>
<<<<<<< HEAD
</GLDialog>
=======
</el-dialog>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</template>
......@@ -105,10 +97,7 @@ export default {
},
methods: {
init(val) {
<<<<<<< HEAD
=======
// console.log(val)
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
this.inner = this.$common.utils.deepClone(val)
this.innerTags = this.$common.utils.deepClone(val)
this.crowdVisible = true
......
<template>
<div class="square-main" v-loading="loading">
<GLDialog title="选择跟进专员" :hasFooter="true" :visible.sync="dialogVisible">
<el-dialog title="选择跟进专员" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
<el-form :inline="true" :model="tableSearchForm">
<el-form-item size="small" label="员工">
<el-input v-model="tableSearchForm.staffName" placeholder="请输入员工姓名"></el-input>
......@@ -15,7 +15,7 @@
<el-button size="small" @click="handleCancel">取 消</el-button>
<el-button size="small" type="primary" @click.native="handleSelect">确 定</el-button>
</span>
</GLDialog>
</el-dialog>
</div>
</template>
......
<template>
<div class="tag-main">
<GLDialog bigTitle="选择标签" :hasFooter="true" :visible.sync="dialogVisible" mode="big">
<el-dialog title="选择标签" :visible.sync="dialogVisible" width="70%" :before-close="handleClose">
<div class="tag-panel">
<div class="tag-panel-select">
<div class="tag-title">预选标签</div>
......@@ -44,7 +44,7 @@
</el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span>
</GLDialog>
</el-dialog>
</div>
</template>
......@@ -216,6 +216,7 @@ export default {
}
})
.filter(item => item)
console.log(labelTreeRets)
this.$emit('tagSelected', labelTreeRets)
},
//全选
......@@ -354,6 +355,5 @@ export default {
}
.tag-selected-box {
min-height: 200px;
overflow: auto;
}
</style>
......@@ -264,21 +264,8 @@ export default {
}
let htm = target.innerHTML
const list = emoji.flat(Infinity)
<<<<<<< HEAD
<<<<<<< HEAD
const cutImg = htm
.replace(/<img src="https:\/\/img01.glsx.com.cn\/weapp\/resource\/saas\/scrm\/emoji\//g, '')
.replace(/<wise.+?(?:<\/wise>)/g, '@昵称')
.replace(/<br>/g, '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function(str) {
=======
const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '').replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '').replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]`
})
......@@ -311,21 +298,8 @@ export default {
let htm = target.innerHTML
console.log(htm)
const list = emoji.flat(Infinity)
<<<<<<< HEAD
<<<<<<< HEAD
const cutImg = htm
.replace(/<img src="https:\/\/img01.glsx.com.cn\/weapp\/resource\/saas\/scrm\/emoji\//g, '')
.replace(/<wise.+?(?:<\/wise>)/g, '@昵称')
.replace(/<br>/g, '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function(str) {
=======
const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '').replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '').replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]`
})
......@@ -491,4 +465,4 @@ $textColor: #666;
}
}
}
</style>
</style>
\ No newline at end of file
......@@ -51,15 +51,7 @@
<span v-else>{{ item.name }}</span>
<input v-if="item.type == 'img'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input upload-img" :accept="item.accept || 'image/png, image/jpeg, image/jpg'" @change="e => handleImgChange(e, item)" />
<input v-else-if="item.type == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input" :accept="item.accept || 'video/*'" @change="e => handleVideoChange(e, item)" />
<<<<<<< HEAD
<<<<<<< HEAD
<el-link v-else-if="item.type == 'nickname' || item.type == 'acivity' || item.type == 'material'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
=======
<el-link v-else-if="item.type == 'nickname' || item.type == 'acivity'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
<el-link v-else-if="item.type == 'nickname' || item.type == 'acivity' || item.type == 'material'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</div>
</div>
......@@ -71,7 +63,6 @@
</div>
</div>
<ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel>
<!-- <material-model v-if="isMaterialVisible" :isMaterialVisible.sync="isMaterialVisible" @handleMaterialConfirm="handleMaterialConfirm" @handleMaterialClose="handleMaterialClose"></material-model> -->
</div>
</template>
<script>
......@@ -86,14 +77,6 @@ const ATT_TYPE = {
}
import emoji from '@/utils/emo'
import ActivityModel from './activityModel'
<<<<<<< HEAD
<<<<<<< HEAD
// import materialModel from './materialModel'
=======
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
// import materialModel from './materialModel'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
import Emotion from './emotionWords'
import wTextarea from './tag-textarea'
import { utils } from 'glsx-common'
......@@ -101,14 +84,6 @@ export default {
name: 'WelcomeWords',
components: {
ActivityModel,
<<<<<<< HEAD
<<<<<<< HEAD
// materialModel,
=======
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
// materialModel,
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
Emotion,
wTextarea
},
......@@ -117,14 +92,6 @@ export default {
return {
loading: false,
emotionStatus: false,
<<<<<<< HEAD
<<<<<<< HEAD
isMaterialVisible: false,
=======
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
isMaterialVisible: false,
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
btnList: [
{
id: 1,
......@@ -146,12 +113,6 @@ export default {
type: 'nickname',
funName: 'nickname'
},
// {
// id: 5,
// name: '素材',
// type: 'material',
// funName: 'material'
// },
{
id: 4,
name: '活动',
......@@ -268,33 +229,11 @@ export default {
})
}
},
// 素材
handleMaterialConfirm(val) {
console.log(val)
// additionalType 附加对象类型(1素材,2活动,3优惠券,4朋友券模板)
// objectType 对象类型(1朋友圈模板-单图文,2朋友圈模板-多图文,3朋友圈模板-文字+视频,4朋友圈模板-文字,5优惠券-商城券,6活动-权益卡使用,7活动-权益套餐,8活动-秒杀活动,10-素材)
this.editForm.object = JSON.parse(JSON.stringify(val))
this.editRule.eventContent[0].required = true
this.editForm.pushChannelType = ''
this.previewList = [
{
attContent: val,
additionalType: val.additionalType
}
]
this.handleMaterialClose()
},
handleMaterialClose() {
this.isMaterialVisible = !this.isMaterialVisible
},
handleFun(name) {
if (name == 'nickname') {
this.$refs.textContent.addTag('@昵称')
} else if (name == 'activity') {
this.$refs.activity.init()
} else if (name == 'material') {
this.handleMaterialClose()
}
},
close(index) {
......@@ -302,7 +241,6 @@ export default {
this.eventBus.$emit('update', this.previewList)
},
textInput(val) {
val = val.replace(/&nbsp;/g, '')
const hasText = this.previewList.some(item => item.attType == 1)
if (hasText) {
this.$set(this.previewList, 0, {
......@@ -338,8 +276,6 @@ export default {
}
}
},
<<<<<<< HEAD
=======
insertHtmlAtCaret(html) {
var sel, range, frag
if (window.getSelection) {
......@@ -368,8 +304,7 @@ export default {
}
}
},
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
changeInput: utils.debounce(function() {
changeInput: utils.debounce(function () {
console.log(document.getElementById('editor').childNodes)
var allNodes = document.getElementById('editor').childNodes
var str = ''
......@@ -388,17 +323,8 @@ export default {
this.previewList = val
this.eventBus.$emit('update', this.previewList)
const obj = val.find(item => item.attType == 1)
<<<<<<< HEAD
let attContent = obj.attContent.replace(/\[@昵称\]/g, '<wise id="1" contenteditable="false">@昵称</wise>')
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
=======
let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>')
<<<<<<< HEAD
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) {
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1
......
......@@ -3,8 +3,8 @@
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-26 15:54:49
* @LastEditors: limin
* @LastEditTime: 2021-09-07 14:38:52
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
......@@ -17,13 +17,8 @@ export const fetchConfig = function(isEnv = true) {
Object.assign(request, { timeout })
return Promise.resolve(cfg)
}
<<<<<<< HEAD
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
=======
return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
return new Http({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
export const config = {
install(vue, cfg) {
......
const staticRoutes = Object.freeze([
{
const staticRoutes = Object.freeze([{
name: 'channel',
path: '/channel/index',
component: resolve => require([`@/views/channel/index.vue`], resolve),
meta: {}
},
{
meta: {},
}, {
name: 'channel',
path: '/channel/store/:id/:codeUuid/:codeState',
component: resolve => require([`@/views/channel/store.vue`], resolve),
meta: {}
},
{
}, {
name: 'addCode',
path: '/channel/addCode/:id/:codeUuid',
component: resolve => require([`@/views/channel/addCode.vue`], resolve),
meta: {}
},
{
}, {
name: 'poster',
path: '/channel/poster/:id',
component: resolve => require([`@/views/channel/poster.vue`], resolve),
meta: {}
},
{
}, {
name: 'square',
path: '/square/index',
component: resolve => require([`@/views/square/index.vue`], resolve),
meta: {}
},
{
}, {
name: 'import',
path: '/square/import',
component: resolve => require([`@/views/square/import.vue`], resolve),
meta: {}
<<<<<<< HEAD
},
{
=======
}, {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
name: 'customDetail',
path: '/square/customDetail',
component: resolve => require([`@/views/square/customDetail.vue`], resolve),
meta: {}
<<<<<<< HEAD
},
{
=======
}, {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
name: 'importResult',
path: '/square/importResult/:id',
component: resolve => require([`@/views/square/importResult.vue`], resolve),
meta: {}
},
{
}, {
name: 'drainage',
path: '/square/drainage',
component: resolve => require([`@/views/square/drainage.vue`], resolve),
meta: {}
},
{
}, {
name: 'market',
path: '/market/index',
component: resolve => require([`@/views/market/index.vue`], resolve),
meta: {}
},
{
}, {
name: 'config',
path: '/market/config',
component: resolve => require([`@/views/market/config.vue`], resolve),
meta: {}
<<<<<<< HEAD
},
{
=======
}, {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
name: 'configDetail',
path: '/market/configDetail/:id?',
component: resolve => require([`@/views/market/configDetail.vue`], resolve),
meta: {}
<<<<<<< HEAD
},
{
=======
}, {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
name: 'effect',
path: '/market/effect/:id?',
component: resolve => require([`@/views/market/effect.vue`], resolve),
meta: {}
<<<<<<< HEAD
},
{
=======
}, {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
name: 'overview',
path: '/overview/index',
component: resolve => require([`@/views/overview/index.vue`], resolve),
meta: {}
},
{
}, {
name: 'friends',
path: '/friends/index/:id',
component: resolve => require([`@/views/friends/index.vue`], resolve),
meta: { permissions: ['新增'] }
}
])
export default staticRoutes
}])
export default staticRoutes
\ No newline at end of file
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-08-30 10:21:19
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-28 15:21:03
* @FilePath: \scrm-micro-drainage\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import Vue from 'vue'
// import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import ElementUI from 'element-ui'
<<<<<<< HEAD
import { GLTable, GLButton, GLFooter, GLCombiForm, GLDialog, GLTableButton, GLTabs } from 'glsx-components' //权限按钮 (根据权限动态创建)
import GLEditor from 'glsx-components/src/packages/Editor' //权限按钮 (根据权限动态创建)
=======
import { GLTable, GLButton, GLFooter, GLCombiForm } from 'glsx-components' //权限按钮 (根据权限动态创建)
import collectForm from '@/components/collectForm'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
import GLFull from '@/components/GLFull'
import { getRoutes } from '@/router'
import render from './render'
Vue.use(ElementUI)
Vue.use(GLTable)
Vue.use(GLFooter)
Vue.use(GLCombiForm)
<<<<<<< HEAD
Vue.use(GLDialog)
Vue.use(GLTableButton)
// Vue.use(GLFull)
// import GLTable from '@/components/glsx-table/index'
Vue.component('GLEditor', GLEditor)
Vue.component('GLFull', GLFull)
Vue.component('GLTabs', GLTabs)
=======
Vue.component('GLFull', GLFull)
Vue.component(collectForm.name, collectForm)
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
// import 'glsx-components/src/theme/theme.scss'
import 'glsx-components/dist/glsx-components.css'
import '@/assets/css/common.scss'
......@@ -51,10 +23,6 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
Vue.prototype.$common = common
<<<<<<< HEAD
=======
Vue.prototype.$tracker = common.tracker
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_tag = new common.Http({ response, request: request_tag, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
......
......@@ -17,19 +17,6 @@ const render = (base, routes) => {
routes,
mode: 'history'
})
<<<<<<< HEAD
=======
// router.beforeEach((to, from, next) => {
// const pageName = to.meta.title
// Vue.prototype.$tracker.track(
// {
// pageName
// },
// 'pv'
// )
// next()
// })
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
router.afterEach(() => {
document.querySelector('#app').scrollTop = 0
})
......
......@@ -110,10 +110,6 @@ util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
a.href = url // 将生成的URL设置为a.href属性
a.dispatchEvent(event) // 触发a的单击事件
}
<<<<<<< HEAD
image.src = imgsrc.replace(/https?:/, '')
=======
image.src = imgsrc
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
export default util
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!