|
@@ -22,6 +22,10 @@
|
|
|
<div class="col-left">高度</div>
|
|
|
<div class="col-main"><el-input v-model="wallHeight" placeholder="输入高度值" clearable /></div>
|
|
|
</div>
|
|
|
+ <div class="jt-wall-row" v-show="isShowArcHeight">
|
|
|
+ <div class="col-left">弯曲度</div>
|
|
|
+ <div class="col-main"><el-input v-model="arcHeight" placeholder="输入弯曲度0~9000" clearable /></div>
|
|
|
+ </div>
|
|
|
<div class="jt-wall-row" v-show="isShowLineWidth">
|
|
|
<div class="col-left">线宽</div>
|
|
|
<div class="col-main"><el-input v-model="lineWidth" placeholder="输入宽度值" clearable /></div>
|
|
@@ -50,6 +54,12 @@
|
|
|
<el-radio-group v-model="radioOrder"><el-radio-button v-for="(item, index) in orders" :label="item.key" v-model="item.value" /></el-radio-group>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="jt-wall-row" v-show="isShowSpeed">
|
|
|
+ <div class="col-left">流动速度</div>
|
|
|
+ <div class="col-main">
|
|
|
+ <div class="col-main"><el-input v-model="speed" placeholder="输入流动速度0~10" clearable /></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="jt-wall-row" v-show="isShowCount">
|
|
|
<div class="col-left">重复数量</div>
|
|
|
<div class="col-main"><el-input v-model="yCount" placeholder="输入1~100" clearable /></div>
|
|
@@ -68,10 +78,14 @@
|
|
|
<el-config-provider :locale="locale"><el-color-picker v-model="outlineColor" show-alpha :predefine="predefineColors" label="12" /></el-config-provider>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="jt-wall-row" v-show="isShowVideoUrl" style="height: 100px;">
|
|
|
+ <div class="col-left">文字内容</div>
|
|
|
+ <div class="col-main"><el-input v-model="txtVideoUrl" placeholder="输入播放视频的地址" clearable type="textarea" :rows="2" /></div>
|
|
|
+ </div>
|
|
|
<div class="el-body-foot">
|
|
|
<el-button-group class="ml-4">
|
|
|
<el-button type="primary" :icon="Edit" @click="submit()">修改</el-button>
|
|
|
- <el-button type="danger" :icon="Delete">删除</el-button>
|
|
|
+ <el-button type="danger" :icon="Delete" @click="remove()">删除</el-button>
|
|
|
</el-button-group>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -136,6 +150,18 @@ const props = defineProps({
|
|
|
outlineColor: {
|
|
|
type: String,
|
|
|
default: () => '255,255,0,0.9'
|
|
|
+ },
|
|
|
+ speed: {
|
|
|
+ type: Number,
|
|
|
+ default: () => 1.5
|
|
|
+ },
|
|
|
+ videoUrl: {
|
|
|
+ type: String,
|
|
|
+ default: () => ''
|
|
|
+ },
|
|
|
+ arcHeight: {
|
|
|
+ type: Number,
|
|
|
+ default: () => 1000
|
|
|
}
|
|
|
},
|
|
|
showDialog: {
|
|
@@ -143,7 +169,7 @@ const props = defineProps({
|
|
|
default: () => false
|
|
|
}
|
|
|
});
|
|
|
-const emit = defineEmits(['submit', 'update:showDialog', 'update:params']);
|
|
|
+const emit = defineEmits(['submit', 'update:showDialog', 'update:params', 'remove']);
|
|
|
/* 默认颜色 */
|
|
|
const predefineColors = ref([
|
|
|
'#ff4500',
|
|
@@ -173,6 +199,9 @@ const isShowLineWidth = ref(false);
|
|
|
const isShowGlowpower = ref(false);
|
|
|
const isShowOutlineWidth = ref(false);
|
|
|
const isShowOutlineColor = ref(false);
|
|
|
+const isShowSpeed = ref(false);
|
|
|
+const isShowVideoUrl = ref(false);
|
|
|
+const isShowArcHeight = ref(false);
|
|
|
const color = ref(props.params.color);
|
|
|
const title = ref('属性编辑');
|
|
|
const dialogVisible = ref(props.showDialog);
|
|
@@ -187,6 +216,9 @@ const lineWidth = ref(0);
|
|
|
const glowPower = ref(0.25);
|
|
|
const outlineWidth = ref(0);
|
|
|
const outlineColor = ref(props.params.outlineColor);
|
|
|
+const speed = ref(1.5);
|
|
|
+const txtVideoUrl = ref('');
|
|
|
+const arcHeight = ref(1000);
|
|
|
/* 根据传递的属性更新 */
|
|
|
updateParams(props.params);
|
|
|
|
|
@@ -220,6 +252,7 @@ function updateParams(params) {
|
|
|
isShowOrder.value = true;
|
|
|
isShowCount.value = true;
|
|
|
isShowHeight.value = true;
|
|
|
+ isShowSpeed.value = true;
|
|
|
} else if (params.id === DrawTools.DrawType.NormalWall) {
|
|
|
title.value = '普通围栏编辑';
|
|
|
isShowColor.value = true;
|
|
@@ -233,12 +266,15 @@ function updateParams(params) {
|
|
|
title.value = '扩散圆编辑';
|
|
|
isShowColor.value = true;
|
|
|
isShowCount.value = true;
|
|
|
+ isShowSpeed.value = true;
|
|
|
} else if (params.id === DrawTools.DrawType.House) {
|
|
|
title.value = '房屋编辑';
|
|
|
isShowColor.value = true;
|
|
|
isShowHeight.value = true;
|
|
|
} else if (params.id === DrawTools.DrawType.VideoWall) {
|
|
|
title.value = '视频墙编辑';
|
|
|
+ isShowHeight.value = true;
|
|
|
+ isShowVideoUrl.value = true;
|
|
|
} else if (params.id === DrawTools.DrawType.Polyline) {
|
|
|
title.value = '贴地线编辑';
|
|
|
isShowColor.value = true;
|
|
@@ -253,12 +289,13 @@ function updateParams(params) {
|
|
|
isShowOrder.value = true;
|
|
|
isShowCount.value = true;
|
|
|
isShowLineWidth.value = true;
|
|
|
+ isShowSpeed.value = true;
|
|
|
} else if (params.id === DrawTools.DrawType.GrowPolyline) {
|
|
|
title.value = '发光线编辑';
|
|
|
isShowColor.value = true;
|
|
|
isShowLineWidth.value = true;
|
|
|
isShowGlowpower.value = true;
|
|
|
- } else if (params.id === DrawTools.DrawType.OultliePolyline) {
|
|
|
+ } else if (params.id === DrawTools.DrawType.OutlinePolyline) {
|
|
|
title.value = '描边线编辑';
|
|
|
isShowColor.value = true;
|
|
|
isShowLineWidth.value = true;
|
|
@@ -269,8 +306,8 @@ function updateParams(params) {
|
|
|
isShowColor.value = true;
|
|
|
isShowOutlineColor.value = true;
|
|
|
isShowOutlineWidth.value = true;
|
|
|
- } else if (params.id === DrawTools.DrawType.Polygon) {
|
|
|
- title.value = '贴地面编辑';
|
|
|
+ } else if (params.id === DrawTools.DrawType.Rectangle) {
|
|
|
+ title.value = '矩形编辑';
|
|
|
isShowColor.value = true;
|
|
|
isShowOutlineColor.value = true;
|
|
|
isShowOutlineWidth.value = true;
|
|
@@ -278,8 +315,15 @@ function updateParams(params) {
|
|
|
title.value = '空间线编辑';
|
|
|
isShowColor.value = true;
|
|
|
isShowLineWidth.value = true;
|
|
|
+ } else if (params.id === DrawTools.DrawType.OdLine) {
|
|
|
+ title.value = 'OD线编辑';
|
|
|
+ isShowSpeed.value = true;
|
|
|
+ isShowColor.value = true;
|
|
|
+ isShowLineWidth.value = true;
|
|
|
+ isShowOrder.value = true;
|
|
|
+ isShowArcHeight.value = true;
|
|
|
} else {
|
|
|
- _setShowControls(true);
|
|
|
+ _setShowControls(false);
|
|
|
}
|
|
|
color.value = params.color;
|
|
|
/* 判断方向及顺序 */
|
|
@@ -300,13 +344,25 @@ function updateParams(params) {
|
|
|
radioOrder.value = orders[1].key;
|
|
|
}
|
|
|
}
|
|
|
- wallHeight.value = params.height;
|
|
|
+ /* 单独更改 */
|
|
|
+ if (params.id === DrawTools.DrawType.OdLine) {
|
|
|
+ Object.assign(orders, [{ key: '汇聚', value: '+' }, { key: '扩散', value: '-' }]);
|
|
|
+ if (params.order === '+') {
|
|
|
+ radioOrder.value = orders[0].key;
|
|
|
+ } else {
|
|
|
+ radioOrder.value = orders[1].key;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ wallHeight.value = parseFloat(params.height).toFixed(2);
|
|
|
yCount.value = params.count;
|
|
|
txtContent.value = params.text;
|
|
|
lineWidth.value = params.lineWidth;
|
|
|
glowPower.value = params.power;
|
|
|
outlineColor.value = params.outlineColor;
|
|
|
outlineWidth.value = params.outlineWidth;
|
|
|
+ speed.value = (parseFloat(params.duration) / 1000).toFixed(2);
|
|
|
+ txtVideoUrl.value = params.videoUrl;
|
|
|
+ arcHeight.value = params.odlineHeight;
|
|
|
// console.log('===设置参数显示>>>', params.lineWidth);
|
|
|
}
|
|
|
|
|
@@ -325,6 +381,8 @@ function _setShowControls(isShow) {
|
|
|
isShowGlowpower.value = isShow;
|
|
|
isShowOutlineColor.value = isShow;
|
|
|
isShowOutlineWidth.value = isShow;
|
|
|
+ isShowSpeed.value = isShow;
|
|
|
+ isShowVideoUrl.value = isShow;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -353,12 +411,23 @@ function submit() {
|
|
|
lineWidth: lineWidth.value,
|
|
|
power: glowPower.value,
|
|
|
outlineColor: outlineColor.value,
|
|
|
- outlineWidth: outlineWidth.value
|
|
|
+ outlineWidth: outlineWidth.value,
|
|
|
+ duration: speed.value * 1000,
|
|
|
+ videoUrl: txtVideoUrl.value,
|
|
|
+ odlineHeight: arcHeight.value
|
|
|
});
|
|
|
dialogVisible.value = false;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 提交删除
|
|
|
+ */
|
|
|
+function remove() {
|
|
|
+ emit('remove', {});
|
|
|
+ dialogVisible.value = false;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
* 材质方向选择事件
|
|
|
* @param {Object} e
|
|
|
*/
|