Commit e54504d0 by 杨明

Merge branch 'v3.12.0' of http://192.168.3.233:8090/saas/scrm-micro-battles into v3.12.0

2 parents db5368d3 2123c606
...@@ -305,7 +305,7 @@ export default { ...@@ -305,7 +305,7 @@ export default {
// return `r${new Date().getTime()}d${Math.ceil(Math.random() * 1000)}` // return `r${new Date().getTime()}d${Math.ceil(Math.random() * 1000)}`
}, },
setFocus() { setFocus() {
this.savedRange.setStartAfter(document.querySelector('.w-textarea_input').lastChild) this.savedRange.setStartAfter && this.savedRange.setStartAfter(document.querySelector('.w-textarea_input').lastChild)
}, },
selectHandler() { selectHandler() {
// 监听选定文本的变动 // 监听选定文本的变动
......
...@@ -46,7 +46,6 @@ export default { ...@@ -46,7 +46,6 @@ export default {
data() { data() {
return { return {
textNum: 0, textNum: 0,
maxNum: 20,
limitContent: '', limitContent: '',
emotionStatus: false emotionStatus: false
} }
...@@ -59,6 +58,10 @@ export default { ...@@ -59,6 +58,10 @@ export default {
mapList: { mapList: {
type: Array, type: Array,
default: () => [] default: () => []
},
maxNum: {
typr: Number,
default: 200
} }
}, },
components: { components: {
...@@ -154,6 +157,10 @@ export default { ...@@ -154,6 +157,10 @@ export default {
} }
setTimeout(() => { setTimeout(() => {
document.querySelector('.w-textarea_input').innerHTML = htm document.querySelector('.w-textarea_input').innerHTML = htm
const html = this.getTextValue(htm),
text = html.replace(/\[.+?\]/g, '').replace(/\${.+?}/g, '')
this.textNum = text.length
if(this.textNum == 200) this.limitContent = htm
this.$refs.textContent.setFocus() this.$refs.textContent.setFocus()
}, 100) }, 100)
} }
...@@ -210,6 +217,10 @@ export default { ...@@ -210,6 +217,10 @@ export default {
} }
.text-num { .text-num {
padding-right: 10px; padding-right: 10px;
font-size: 14px;
color: #999999;
position: absolute;
right: -85px;
} }
} }
.date-picker { .date-picker {
......
...@@ -154,7 +154,7 @@ export default { ...@@ -154,7 +154,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
position: absolute; position: absolute;
z-index: 0; z-index: 0;
bottom: 85px; bottom: 75px;
font-size:14px; font-size:14px;
.el-icon-warning { .el-icon-warning {
width: 16px; width: 16px;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="empty"> <div class="empty">
<img src="@/assets/buttetin/empty.png" /> <img src="@/assets/buttetin/empty.png" />
</div> </div>
<p class="empty-text">暂无配置项</p>
<div class="explain"> <div class="explain">
<div class="color6 weight-6 font-14"> <div class="color6 weight-6 font-14">
<i class="el-icon-warning"></i> <i class="el-icon-warning"></i>
...@@ -84,6 +84,15 @@ export default { ...@@ -84,6 +84,15 @@ export default {
height: 100%; height: 100%;
} }
} }
.empty-text {
font-size: 16px;
color: #666666;
line-height: 20px;
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
}
.explain { .explain {
width: 486px; width: 486px;
background: #f4f6fc; background: #f4f6fc;
......
...@@ -16,20 +16,20 @@ export default { ...@@ -16,20 +16,20 @@ export default {
}, },
data() { data() {
return { return {
activeName: 1, activeName: '1',
currentComponent: 'saasOrder', currentComponent: 'saasOrder',
tabPaneList: [ tabPaneList: [
{ {
label: '1.1', label: '1.1',
name: 1 name: '1'
}, },
{ {
label: '1.3', label: '1.3',
name: 2 name: '2'
}, },
{ {
label: '2.1', label: '2.1',
name: 3 name: '3'
} }
] ]
} }
......
...@@ -206,7 +206,6 @@ export default { ...@@ -206,7 +206,6 @@ export default {
{ {
label: '尾款', label: '尾款',
format: data => { format: data => {
console.log(data)
return data.crowdFundingPrice + ' * ' + data.orderGoods[0].goodsNumber return data.crowdFundingPrice + ' * ' + data.orderGoods[0].goodsNumber
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!