Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
XieYongHong 2023-07-15 19:47:07 +08:00
commit 6b9bf45825
6 changed files with 42 additions and 47 deletions

View File

@ -197,6 +197,7 @@ const runScript = () => {
onlyMessage('请编辑规则', 'warning');
return;
}
ws.value = getWebSocket(
`virtual-property-debug-${props.id}-${new Date().getTime()}`,
'/virtual-property-debug',

View File

@ -94,10 +94,6 @@ const addOperatorValue = (val: string) => {
editor.value.addOperatorValue(val);
};
watchEffect(() => {
console.log(props.value, _value.value, 'hhhhh')
})
watch(() => _value.value, () => {
_disabled.value = true
})

View File

@ -1,6 +1,21 @@
<template>
<j-modal :width="'900px'" visible @cancel="emit('close')" :zIndex="1100">
<template v-if="getType === 'notifier-dingTalk'">
<template v-if="getType === 'notifier-weixin'">
<j-spin :spinning="loading">
<div class="code" style="height: 450px">
<iframe
id="notifier_iframe"
class="code-item"
width="100%"
height="100%"
:src="url"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups"
v-if="!loading"
></iframe>
</div>
</j-spin>
</template>
<template v-else-if="getType === 'notifier-dingTalk'">
<j-spin :spinning="loading">
<div class="code" style="height: 600px;">
<iframe
@ -14,20 +29,7 @@
</div>
</j-spin>
</template>
<template v-else-if="getType === 'notifier-weixin'">
<j-spin :spinning="loading">
<div class="code" style="height: 450px">
<iframe
id="notifier_iframe"
class="code-item"
width="100%"
height="100%"
:src="url"
v-if="!loading"
></iframe>
</div>
</j-spin>
</template>
<template #footer>
<j-button @click="emit('close')">关闭</j-button>
<!-- <j-button type="primary" @click="emit('close')">确定</j-button> -->
@ -103,8 +105,9 @@ const updateIframeStyle = () => {
const iframe = document.querySelector(
'#notifier_iframe',
) as HTMLIFrameElement;
console.log(iframe)
iframe.onload = () => {
console.log(iframe?.contentWindow)
console.log(iframe?.contentWindow, '123')
const currentUrl = iframe?.contentWindow?.location?.search || '';
let authCode = '';
if (currentUrl.startsWith('?')) {

View File

@ -29,10 +29,6 @@ const onChange = (val: string | undefined) => {
onClose()
}
watchEffect(() => {
console.log(props.virtualRule, props.value, '123')
})
const onClose = () => {
visible.value = false
}

View File

@ -52,8 +52,8 @@
>
<template #other>
<div class="other">
<j-tooltip placement="topLeft">
<div
<j-tooltip placement="top" :title="addressesTip(item.addresses)">
<!-- <div
v-if="
(item.addresses || [])
.length > 1
@ -69,7 +69,7 @@
:status="getColor(i)"
/>{{ i.address }}
</div>
</div>
</div> -->
<div
v-for="i in (
item.addresses || []
@ -86,7 +86,7 @@
(item.addresses || [])
.length > 1
"
>...</span
>{{ item.addresses.length }}</span
>
</div>
</j-tooltip>
@ -354,6 +354,14 @@ watch(
immediate: true,
},
);
const addressesTip = (data:any)=>{
let tip:any = ''
data.forEach((item:any)=>{
tip = tip + " " +item.address
})
return tip
}
</script>
<style lang="less" scoped>

View File

@ -50,24 +50,7 @@
>
<template #other>
<div class="other">
<j-tooltip placement="topLeft">
<div
v-if="
(item.addresses || [])
.length > 1
"
>
<div
v-for="i in item.addresses ||
[]"
:key="i.address"
class="item"
>
<j-badge
:status="getColor(i)"
/>{{ i.address }}
</div>
</div>
<j-tooltip placement="top" :title="addressesTip(item.addresses)">
<div
v-for="i in (
item.addresses || []
@ -84,7 +67,7 @@
(item.addresses || [])
.length > 1
"
>...</span
>{{ item.addresses.length }}</span
>
</div>
</j-tooltip>
@ -652,6 +635,14 @@ watch(
immediate: true,
},
);
const addressesTip = (data:any)=>{
let tip:any = ''
data.forEach((item:any)=>{
tip = tip + " " +item.address
})
return tip
}
</script>
<style lang="less" scoped>