Commit cda190f5 by 前端

Merge branch 'v2.8.0' of http://192.168.3.233:8090/saas/scrm-micro-drainage into v2.8.0

2 parents 839bcdaa 8846de3e
......@@ -16,6 +16,7 @@
"glsx-components": "^1.5.2",
"glsx-table": "^1.0.9",
"vue-draggable-resizable": "^2.3.0",
"vue-template-compiler": "^2.7.9",
"vuedraggable": "^2.24.3",
"xlsx": "^0.18.5"
},
......@@ -37,8 +38,7 @@
"postcss-loader": "^6.2.0",
"prettier": "^1.19.1",
"sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.10"
"vue-cli-plugin-element": "^1.0.1"
},
"browserslist": [
"> 1%",
......
......@@ -166,7 +166,8 @@ export default {
{
label: '活码',
prop: 'qrCode',
addHtml: 'qrCode'
addHtml: 'qrCode',
width: '126px'
},
{
label: '标签',
......@@ -182,7 +183,7 @@ export default {
{
label: '操作',
prop: 'optionBtns',
width: '220px',
width: '240px',
addHtml: 'optionBtns',
fixed: 'right'
}
......@@ -322,6 +323,7 @@ export default {
font-weight: 400;
color: #666666;
line-height: 20px;
padding-left: 5px;
}
.codeRemark {
font-size: 14px;
......
......@@ -33,9 +33,9 @@
</div>
</div>
</div>
<GLDialog @onOk="savePoster" @onCancel="dialogVisible = false" v-loading="loadingDrag" title="创建活码海报" :visible.sync="dialogVisible">
<el-dialog title="创建活码海报" :visible.sync="dialogVisible">
<div class="poster-draggable-title">拖动活码可调整活码位置</div>
<div class="poster-draggable">
<div class="poster-draggable" v-loading="loadingDrag">
<div
class="poster-image"
v-if="dragHeight"
......@@ -55,7 +55,7 @@
:style="{
'background-image': 'url(' + codeUrl + ')'
}"
:parent="true"
parent=".poster-image"
@dragging="onDrag"
@resizing="onResize"
:customId="index"
......@@ -63,11 +63,11 @@
></vue-draggable-resizable>
</div>
</div>
<!-- <span slot="footer" class="dialog-footer">
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
<el-button size="small" type="primary" @click="savePoster">确 定</el-button>
</span> -->
</GLDialog>
</span>
</el-dialog>
</div>
</template>
......@@ -252,11 +252,10 @@ export default {
getDraggable(img_url) {
let img = new Image()
img.src = img_url
let self = this
img.onload = function() {
self.dragHeight = (img.height * 375) / img.width
self.dialogVisible = true
self.loading = false
img.onload = () => {
this.dragHeight = (img.height * 375) / img.width
this.dialogVisible = true
this.loading = false
}
}
},
......@@ -300,6 +299,8 @@ export default {
.poster-draggable {
display: flex;
justify-content: center;
// height: 500px;
// overflow: auto;
.poster-image {
background-size: 100% 100%;
width: 375px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!