forked from github/dataease
Merge branch 'dev' of github.com:dataease/dataease into dev
This commit is contained in:
commit
7ffe5514a9
@ -20,7 +20,6 @@ import io.dataease.service.system.EmailService;
|
|||||||
import org.apache.commons.lang3.ObjectUtils;
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.quartz.*;
|
import org.quartz.*;
|
||||||
import org.springframework.scheduling.annotation.Async;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
@ -67,13 +66,10 @@ public class EmailTaskHandler extends TaskHandler implements Job {
|
|||||||
|
|
||||||
XpackEmailTemplateDTO emailTemplate = (XpackEmailTemplateDTO) jobDataMap.get("emailTemplate");
|
XpackEmailTemplateDTO emailTemplate = (XpackEmailTemplateDTO) jobDataMap.get("emailTemplate");
|
||||||
SysUserEntity creator = (SysUserEntity) jobDataMap.get("creator");
|
SysUserEntity creator = (SysUserEntity) jobDataMap.get("creator");
|
||||||
proxy().sendReport(taskInstance, emailTemplate, creator);
|
sendReport(taskInstance, emailTemplate, creator);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public EmailTaskHandler proxy() {
|
|
||||||
return CommonBeanFactory.getBean(EmailTaskHandler.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long saveInstance(GlobalTaskInstance taskInstance) {
|
public Long saveInstance(GlobalTaskInstance taskInstance) {
|
||||||
EmailXpackService emailXpackService = SpringContextUtil.getBean(EmailXpackService.class);
|
EmailXpackService emailXpackService = SpringContextUtil.getBean(EmailXpackService.class);
|
||||||
@ -102,7 +98,7 @@ public class EmailTaskHandler extends TaskHandler implements Job {
|
|||||||
emailXpackService.saveInstance(taskInstance);
|
emailXpackService.saveInstance(taskInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Async
|
|
||||||
public void sendReport(GlobalTaskInstance taskInstance, XpackEmailTemplateDTO emailTemplateDTO,
|
public void sendReport(GlobalTaskInstance taskInstance, XpackEmailTemplateDTO emailTemplateDTO,
|
||||||
SysUserEntity user) {
|
SysUserEntity user) {
|
||||||
EmailXpackService emailXpackService = SpringContextUtil.getBean(EmailXpackService.class);
|
EmailXpackService emailXpackService = SpringContextUtil.getBean(EmailXpackService.class);
|
||||||
@ -122,6 +118,7 @@ public class EmailTaskHandler extends TaskHandler implements Job {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
error(taskInstance, e);
|
error(taskInstance, e);
|
||||||
LogUtil.error(e.getMessage(), e);
|
LogUtil.error(e.getMessage(), e);
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ public class DorisQueryProvider extends QueryProvider {
|
|||||||
} else if (f.getDeType() == 3) {
|
} else if (f.getDeType() == 3) {
|
||||||
fieldName = String.format(DorisConstants.CAST, originField, DorisConstants.DEFAULT_FLOAT_FORMAT);
|
fieldName = String.format(DorisConstants.CAST, originField, DorisConstants.DEFAULT_FLOAT_FORMAT);
|
||||||
} else if (f.getDeType() == 1) {
|
} else if (f.getDeType() == 1) {
|
||||||
fieldName = String.format(DorisConstants.DATE_FORMAT, originField, DorisConstants.DEFAULT_DATE_FORMAT);
|
fieldName = String.format(DorisConstants.STR_TO_DATE, originField, DorisConstants.DEFAULT_DATE_FORMAT);
|
||||||
} else {
|
} else {
|
||||||
fieldName = originField;
|
fieldName = originField;
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ public class HiveQueryProvider extends QueryProvider {
|
|||||||
} else if (f.getDeType() == DeTypeConstants.DE_FLOAT) {
|
} else if (f.getDeType() == DeTypeConstants.DE_FLOAT) {
|
||||||
fieldName = String.format(HiveConstants.CAST, originField, HiveConstants.DEFAULT_FLOAT_FORMAT);
|
fieldName = String.format(HiveConstants.CAST, originField, HiveConstants.DEFAULT_FLOAT_FORMAT);
|
||||||
} else if (f.getDeType() == DeTypeConstants.DE_TIME) {
|
} else if (f.getDeType() == DeTypeConstants.DE_TIME) {
|
||||||
fieldName = String.format(HiveConstants.DATE_FORMAT, originField, HiveConstants.DEFAULT_DATE_FORMAT);
|
fieldName = String.format(HiveConstants.STR_TO_DATE, originField, HiveConstants.DEFAULT_DATE_FORMAT);
|
||||||
} else {
|
} else {
|
||||||
fieldName = originField;
|
fieldName = originField;
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ public class MysqlQueryProvider extends QueryProvider {
|
|||||||
} else if (f.getDeType() == 3) {
|
} else if (f.getDeType() == 3) {
|
||||||
fieldName = String.format(MySQLConstants.CAST, originField, MySQLConstants.DEFAULT_FLOAT_FORMAT);
|
fieldName = String.format(MySQLConstants.CAST, originField, MySQLConstants.DEFAULT_FLOAT_FORMAT);
|
||||||
} else if (f.getDeType() == 1) {
|
} else if (f.getDeType() == 1) {
|
||||||
fieldName = String.format(MySQLConstants.DATE_FORMAT, originField, MySQLConstants.DEFAULT_DATE_FORMAT);
|
fieldName = String.format(MySQLConstants.STR_TO_DATE, originField, MySQLConstants.DEFAULT_DATE_FORMAT);
|
||||||
} else {
|
} else {
|
||||||
fieldName = originField;
|
fieldName = originField;
|
||||||
}
|
}
|
||||||
|
@ -535,7 +535,7 @@ export default {
|
|||||||
return this.$store.state.curComponent
|
return this.$store.state.curComponent
|
||||||
},
|
},
|
||||||
curGap() {
|
curGap() {
|
||||||
return this.element.auxiliaryMatrix && this.element.type !== 'custom' ? this.componentGap : 0
|
return (this.canvasStyleData.panel.gap === 'yes' && this.element.auxiliaryMatrix && this.element.type !== 'custom') ? this.componentGap : 0
|
||||||
},
|
},
|
||||||
...mapState([
|
...mapState([
|
||||||
'editor',
|
'editor',
|
||||||
|
@ -85,7 +85,7 @@ export default {
|
|||||||
return (this.curComponent && this.config === this.curComponent) && !this.previewVisible
|
return (this.curComponent && this.config === this.curComponent) && !this.previewVisible
|
||||||
},
|
},
|
||||||
curGap() {
|
curGap() {
|
||||||
return this.config.auxiliaryMatrix ? this.componentGap : 0
|
return (this.canvasStyleData.panel.gap === 'yes' && this.config.auxiliaryMatrix) ? this.componentGap : 0
|
||||||
},
|
},
|
||||||
...mapState([
|
...mapState([
|
||||||
'mobileLayoutStatus',
|
'mobileLayoutStatus',
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<div
|
<div
|
||||||
id="canvasInfoTemp"
|
id="canvasInfoTemp"
|
||||||
ref="canvasInfoTemp"
|
ref="canvasInfoTemp"
|
||||||
:style="[{height:mainHeight},screenShotStyle]"
|
:style="[canvasInfoTempStyle,screenShotStyle]"
|
||||||
class="main-class"
|
class="main-class"
|
||||||
@mouseup="deselectCurComponent"
|
@mouseup="deselectCurComponent"
|
||||||
@mousedown="handleMouseDown"
|
@mousedown="handleMouseDown"
|
||||||
@ -144,6 +144,19 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
canvasInfoTempStyle() {
|
||||||
|
if (this.screenShot) {
|
||||||
|
return {
|
||||||
|
width: '100%',
|
||||||
|
height: this.mainHeight
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return {
|
||||||
|
width: '100%',
|
||||||
|
height: '100%'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
customStyle() {
|
customStyle() {
|
||||||
let style = {
|
let style = {
|
||||||
width: '100%'
|
width: '100%'
|
||||||
|
@ -84,12 +84,20 @@ export default {
|
|||||||
])
|
])
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.pOption = this.element.videoLinks[this.element.videoLinks.videoType]
|
this.initOption()
|
||||||
this.pOption.height = this.h - (this.curGap * 2)
|
},
|
||||||
|
watch: {
|
||||||
|
h(newVal, oldVla) {
|
||||||
|
this.initOption()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
initOption() {
|
||||||
|
this.pOption = this.element.videoLinks[this.element.videoLinks.videoType]
|
||||||
|
this.pOption.height = this.h - (this.curGap * 2)
|
||||||
|
},
|
||||||
// listen event
|
// listen event
|
||||||
onPlayerPlay(player) {
|
onPlayerPlay(player) {
|
||||||
// console.log('player play!', player)
|
// console.log('player play!', player)
|
||||||
|
@ -261,6 +261,10 @@ export default {
|
|||||||
if (!this.preCanvasPanel || this.preCanvasPanel.resultCount !== newVal.panel.resultCount || this.preCanvasPanel.resultMode !== newVal.panel.resultMode) {
|
if (!this.preCanvasPanel || this.preCanvasPanel.resultCount !== newVal.panel.resultCount || this.preCanvasPanel.resultMode !== newVal.panel.resultMode) {
|
||||||
this.getData(this.element.propValue.viewId, false)
|
this.getData(this.element.propValue.viewId, false)
|
||||||
}
|
}
|
||||||
|
// 如果gap有变化刷新
|
||||||
|
if (this.preCanvasPanel && this.preCanvasPanel.gap !== newVal.panel.gap) {
|
||||||
|
this.$refs[this.element.propValue.id].chartResize()
|
||||||
|
}
|
||||||
this.preCanvasPanel = deepCopy(newVal.panel)
|
this.preCanvasPanel = deepCopy(newVal.panel)
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
|
@ -145,6 +145,7 @@
|
|||||||
:model="groupForm"
|
:model="groupForm"
|
||||||
:rules="groupFormRules"
|
:rules="groupFormRules"
|
||||||
@keypress.enter.native="saveGroup(groupForm)"
|
@keypress.enter.native="saveGroup(groupForm)"
|
||||||
|
@submit.native.prevent
|
||||||
>
|
>
|
||||||
<el-form-item :label="$t('commons.name')" prop="name">
|
<el-form-item :label="$t('commons.name')" prop="name">
|
||||||
<el-input v-model="groupForm.name" />
|
<el-input v-model="groupForm.name" />
|
||||||
@ -159,7 +160,7 @@
|
|||||||
|
|
||||||
<!--rename chart-->
|
<!--rename chart-->
|
||||||
<el-dialog v-dialogDrag :title="$t('chart.chart')" :visible="editTable" :show-close="false" width="30%">
|
<el-dialog v-dialogDrag :title="$t('chart.chart')" :visible="editTable" :show-close="false" width="30%">
|
||||||
<el-form ref="tableForm" :model="tableForm" :rules="tableFormRules" @keypress.enter.native="saveTable(tableForm)">
|
<el-form ref="tableForm" :model="tableForm" :rules="tableFormRules" @submit.native.prevent @keypress.enter.native="saveTable(tableForm)">
|
||||||
<el-form-item :label="$t('commons.name')" prop="name">
|
<el-form-item :label="$t('commons.name')" prop="name">
|
||||||
<el-input v-model="tableForm.name" />
|
<el-input v-model="tableForm.name" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -174,7 +174,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-dialog v-dialogDrag :title="dialogTitle" :visible="editGroup" :show-close="false" width="30%">
|
<el-dialog v-dialogDrag :title="dialogTitle" :visible="editGroup" :show-close="false" width="30%">
|
||||||
<el-form ref="groupForm" :model="groupForm" :rules="groupFormRules" @keypress.enter.native="saveGroup(groupForm)">
|
<el-form ref="groupForm" :model="groupForm" :rules="groupFormRules" @submit.native.prevent @keypress.enter.native="saveGroup(groupForm)">
|
||||||
<el-form-item :label="$t('commons.name')" prop="name">
|
<el-form-item :label="$t('commons.name')" prop="name">
|
||||||
<el-input v-model="groupForm.name" />
|
<el-input v-model="groupForm.name" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -188,7 +188,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-dialog v-dialogDrag :title="$t('dataset.table')" :visible="editTable" :show-close="false" width="30%">
|
<el-dialog v-dialogDrag :title="$t('dataset.table')" :visible="editTable" :show-close="false" width="30%">
|
||||||
<el-form ref="tableForm" :model="tableForm" :rules="tableFormRules" @keypress.enter.native="saveTable(tableForm)">
|
<el-form ref="tableForm" :model="tableForm" :rules="tableFormRules" @submit.native.prevent @keypress.enter.native="saveTable(tableForm)">
|
||||||
<el-form-item :label="$t('commons.name')" prop="name">
|
<el-form-item :label="$t('commons.name')" prop="name">
|
||||||
<el-input v-model="tableForm.name" />
|
<el-input v-model="tableForm.name" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -15,11 +15,7 @@
|
|||||||
<el-link class="de-link" style="width: 370px;" disabled>{{ $t('panel.link_share_desc') }}</el-link>
|
<el-link class="de-link" style="width: 370px;" disabled>{{ $t('panel.link_share_desc') }}</el-link>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="valid" :label="$t('panel.link')">
|
<el-form-item v-if="valid" :label="$t('panel.link')">
|
||||||
<el-input
|
<el-input v-model.number="form.uri" disabled style="width: 370px;" />
|
||||||
v-model.number="form.uri"
|
|
||||||
disabled
|
|
||||||
style="width: 370px;"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item v-if="valid" :label="$t('panel.over_time')" prop="overTime">
|
<el-form-item v-if="valid" :label="$t('panel.over_time')" prop="overTime">
|
||||||
@ -40,14 +36,31 @@
|
|||||||
<el-checkbox v-model="form.enablePwd" @change="resetEnablePwd">{{ $t('panel.passwd_protect') }} </el-checkbox>
|
<el-checkbox v-model="form.enablePwd" @change="resetEnablePwd">{{ $t('panel.passwd_protect') }} </el-checkbox>
|
||||||
|
|
||||||
<span v-if="form.enablePwd" class="de-span">{{ form.pwd }}</span>
|
<span v-if="form.enablePwd" class="de-span">{{ form.pwd }}</span>
|
||||||
<span v-if="form.enablePwd" class="de-span" @click="resetPwd"><el-link :underline="false" type="primary">{{ $t('commons.reset') }}</el-link></span>
|
<span v-if="form.enablePwd" class="de-span" @click="resetPwd">
|
||||||
|
<el-link :underline="false" type="primary">{{ $t('commons.reset') }}</el-link>
|
||||||
|
</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<div v-if="valid" class="auth-root-class">
|
<div v-if="valid" class="auth-root-class">
|
||||||
<span slot="footer">
|
<span slot="footer">
|
||||||
|
|
||||||
<el-button v-if="!form.enablePwd" v-clipboard:copy="form.uri" v-clipboard:success="onCopy" v-clipboard:error="onError" size="mini" type="primary">{{ $t('panel.copy_link') }}</el-button>
|
<el-button
|
||||||
<el-button v-if="form.enablePwd" v-clipboard:copy="form.uri + ' Password: '+ form.pwd" v-clipboard:success="onCopy" v-clipboard:error="onError" size="mini" type="primary">{{ $t('panel.copy_link_passwd') }}</el-button>
|
v-if="!form.enablePwd"
|
||||||
|
v-clipboard:copy="form.uri"
|
||||||
|
v-clipboard:success="onCopy"
|
||||||
|
v-clipboard:error="onError"
|
||||||
|
size="mini"
|
||||||
|
type="primary"
|
||||||
|
>{{ $t('panel.copy_link') }}</el-button>
|
||||||
|
<el-button
|
||||||
|
v-if="form.enablePwd"
|
||||||
|
v-clipboard:copy="form.uri + ' Password: '+ form.pwd"
|
||||||
|
v-clipboard:success="onCopy"
|
||||||
|
v-clipboard:error="onError"
|
||||||
|
size="mini"
|
||||||
|
type="primary"
|
||||||
|
>
|
||||||
|
{{ $t('panel.copy_link_passwd') }}</el-button>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -56,8 +69,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import {
|
||||||
import { loadGenerate, setPwd, switchValid, switchEnablePwd, shortUrl, setOverTime } from '@/api/link'
|
loadGenerate,
|
||||||
|
setPwd,
|
||||||
|
switchValid,
|
||||||
|
switchEnablePwd,
|
||||||
|
shortUrl,
|
||||||
|
setOverTime
|
||||||
|
} from '@/api/link'
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
name: 'LinkGenerate',
|
name: 'LinkGenerate',
|
||||||
@ -75,7 +94,11 @@ export default {
|
|||||||
pwdNums: 4,
|
pwdNums: 4,
|
||||||
valid: false,
|
valid: false,
|
||||||
form: {},
|
form: {},
|
||||||
defaultForm: { enablePwd: false, pwd: null, uri: null },
|
defaultForm: {
|
||||||
|
enablePwd: false,
|
||||||
|
pwd: null,
|
||||||
|
uri: null
|
||||||
|
},
|
||||||
pickerOptions: {
|
pickerOptions: {
|
||||||
disabledDate: time => {
|
disabledDate: time => {
|
||||||
return time.getTime() < (Date.now() - 8.64e7)
|
return time.getTime() < (Date.now() - 8.64e7)
|
||||||
@ -103,9 +126,11 @@ export default {
|
|||||||
minTime: '15:51'
|
minTime: '15:51'
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
overTime: [
|
overTime: [{
|
||||||
{ required: false, validator: this.validateMin, trigger: 'blur' }
|
required: false,
|
||||||
]
|
validator: this.validateMin,
|
||||||
|
trigger: 'blur'
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -122,7 +147,13 @@ export default {
|
|||||||
|
|
||||||
currentGenerate() {
|
currentGenerate() {
|
||||||
loadGenerate(this.resourceId).then(res => {
|
loadGenerate(this.resourceId).then(res => {
|
||||||
const { valid, enablePwd, pwd, uri, overTime } = res.data
|
const {
|
||||||
|
valid,
|
||||||
|
enablePwd,
|
||||||
|
pwd,
|
||||||
|
uri,
|
||||||
|
overTime
|
||||||
|
} = res.data
|
||||||
this.valid = valid
|
this.valid = valid
|
||||||
this.form.enablePwd = enablePwd
|
this.form.enablePwd = enablePwd
|
||||||
this.form.uri = uri ? (this.origin + uri) : uri
|
this.form.uri = uri ? (this.origin + uri) : uri
|
||||||
@ -192,8 +223,7 @@ export default {
|
|||||||
onCopy(e) {
|
onCopy(e) {
|
||||||
this.$success(this.$t('commons.copy_success'))
|
this.$success(this.$t('commons.copy_success'))
|
||||||
},
|
},
|
||||||
onError(e) {
|
onError(e) {},
|
||||||
},
|
|
||||||
onChange(value) {
|
onChange(value) {
|
||||||
const param = {
|
const param = {
|
||||||
resourceId: this.resourceId,
|
resourceId: this.resourceId,
|
||||||
@ -207,7 +237,9 @@ export default {
|
|||||||
const url = this.form.uri
|
const url = this.form.uri
|
||||||
if (!url) return
|
if (!url) return
|
||||||
|
|
||||||
shortUrl({ resourceId: this.resourceId }).then(res => {
|
shortUrl({
|
||||||
|
resourceId: this.resourceId
|
||||||
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.form.uri = this.origin + res.data
|
this.form.uri = this.origin + res.data
|
||||||
}
|
}
|
||||||
@ -228,15 +260,19 @@ export default {
|
|||||||
return new Date(tom.format('yyyy-MM-dd') + ' 23:59:59')
|
return new Date(tom.format('yyyy-MM-dd') + ' 23:59:59')
|
||||||
}
|
}
|
||||||
if (type === 'month') {
|
if (type === 'month') {
|
||||||
const result = new Date()
|
const nowMonth = now.getMonth()
|
||||||
const curMonth = now.getMonth() + 1
|
const nowYear = now.getFullYear()
|
||||||
if (curMonth === 12) {
|
let nowDate = now.getDate()
|
||||||
result.setYear(now.getYear() + 1)
|
|
||||||
result.setMonth(0)
|
const tarYear = nowYear
|
||||||
} else {
|
const deffMonth = nowMonth + 1
|
||||||
result.setMonth(curMonth)
|
const diffYear = deffMonth / 12
|
||||||
}
|
|
||||||
return new Date(result.format('yyyy-MM-dd') + ' 23:59:59')
|
const targetMonth = deffMonth % 12
|
||||||
|
const days = this.getMonthDays(targetMonth)
|
||||||
|
nowDate = nowDate > days ? days : nowDate
|
||||||
|
|
||||||
|
return new Date(tarYear + diffYear, deffMonth % 12, nowDate, 23, 59, 59)
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
},
|
},
|
||||||
@ -247,18 +283,29 @@ export default {
|
|||||||
return callback(new Error('不能小于当前时间'))
|
return callback(new Error('不能小于当前时间'))
|
||||||
}
|
}
|
||||||
return callback()
|
return callback()
|
||||||
|
},
|
||||||
|
getMonthDays(nowMonth) {
|
||||||
|
var now = new Date()
|
||||||
|
|
||||||
|
var monthStartDate = new Date(now.getFullYear(), nowMonth, 1)
|
||||||
|
var monthEndDate = new Date(now.getFullYear(), nowMonth + 1, 1)
|
||||||
|
var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24)
|
||||||
|
return days
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.de-link {
|
.de-link {
|
||||||
justify-content: left !important;
|
justify-content: left !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.de-span {
|
.de-span {
|
||||||
margin: 0 15px;
|
margin: 0 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-root-class {
|
.auth-root-class {
|
||||||
margin: 15px 0px 5px;
|
margin: 15px 0px 5px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
:style="getComponentStyleDefault(config.style)"
|
:style="getComponentStyleDefault(config.style)"
|
||||||
:is-edit="false"
|
:is-edit="false"
|
||||||
:element="config"
|
:element="config"
|
||||||
:h="itemHeight"
|
:h="outItemHeight"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -53,6 +53,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
outItemHeight() {
|
||||||
|
return this.itemHeight - (4 * this.componentGap)
|
||||||
|
},
|
||||||
// 移动端编辑组件选择按钮显示
|
// 移动端编辑组件选择按钮显示
|
||||||
mobileCheckBarShow() {
|
mobileCheckBarShow() {
|
||||||
// 显示条件:1.当前是移动端画布编辑状态
|
// 显示条件:1.当前是移动端画布编辑状态
|
||||||
@ -74,7 +77,8 @@ export default {
|
|||||||
},
|
},
|
||||||
...mapState([
|
...mapState([
|
||||||
'mobileLayoutStatus',
|
'mobileLayoutStatus',
|
||||||
'componentData'
|
'componentData',
|
||||||
|
'componentGap'
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
Reference in New Issue
Block a user