非法采矿、耕地非粮化、重点问题、巡查审计专题方位角图片修改
parent
3d83ec988d
commit
718bca919b
|
|
@ -503,24 +503,22 @@
|
|||
const isInitImageLisener = ref<Boolean>(false);
|
||||
// 监听预览图片地址变化进行箭头切换
|
||||
function handlerImageChange(e): void {
|
||||
isInitImageLisener.value = false;
|
||||
if (e && !isInitImageLisener.value) {
|
||||
setTimeout(function () {
|
||||
const targetNode = document.getElementsByClassName('ant-image-preview-img');
|
||||
// 创建一个观察器实例,并传入回调函数
|
||||
const observer = new MutationObserver((mutationsList) => {
|
||||
for (const mutation of mutationsList) {
|
||||
if (mutation.type === 'attributes') {
|
||||
if (targetNode[0].getAttribute(mutation.attributeName).match('http')) {
|
||||
handlerPreviewImage(0, targetNode[0].getAttribute(mutation.attributeName));
|
||||
targetNode?.forEach((node,index)=>{
|
||||
let imageObserver = new MutationObserver((mutationsList)=>{
|
||||
for(const mutation of mutationsList){
|
||||
if (node.getAttribute(mutation.attributeName).match('http')){
|
||||
handlerPreviewImage(0, node.getAttribute(mutation.attributeName));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// 配置观察选项
|
||||
const config = { attributes: true };
|
||||
// 开始观察目标节点
|
||||
observer.observe(targetNode[0], config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
const config = { attributes: true };
|
||||
imageObserver.observe(node, config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
}, 250);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -502,24 +502,22 @@
|
|||
const isInitImageLisener = ref<Boolean>(false);
|
||||
// 监听预览图片地址变化进行箭头切换
|
||||
function handlerImageChange(e): void {
|
||||
isInitImageLisener.value = false;
|
||||
if (e && !isInitImageLisener.value) {
|
||||
setTimeout(function () {
|
||||
const targetNode = document.getElementsByClassName('ant-image-preview-img');
|
||||
// 创建一个观察器实例,并传入回调函数
|
||||
const observer = new MutationObserver((mutationsList) => {
|
||||
for (const mutation of mutationsList) {
|
||||
if (mutation.type === 'attributes') {
|
||||
if (targetNode[0].getAttribute(mutation.attributeName).match('http')) {
|
||||
handlerPreviewImage(0, targetNode[0].getAttribute(mutation.attributeName));
|
||||
targetNode?.forEach((node,index)=>{
|
||||
let imageObserver = new MutationObserver((mutationsList)=>{
|
||||
for(const mutation of mutationsList){
|
||||
if (node.getAttribute(mutation.attributeName).match('http')){
|
||||
handlerPreviewImage(0, node.getAttribute(mutation.attributeName));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// 配置观察选项
|
||||
const config = { attributes: true };
|
||||
// 开始观察目标节点
|
||||
observer.observe(targetNode[0], config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
const config = { attributes: true };
|
||||
imageObserver.observe(node, config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
}, 250);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -888,25 +888,23 @@
|
|||
const isInitImageLisener = ref<Boolean>(false);
|
||||
// 监听预览图片地址变化进行箭头切换
|
||||
function handlerImageChange(e):void{
|
||||
if(e && !isInitImageLisener.value){
|
||||
setTimeout(function(){
|
||||
isInitImageLisener.value = false;
|
||||
if (e && !isInitImageLisener.value) {
|
||||
setTimeout(function () {
|
||||
const targetNode = document.getElementsByClassName('ant-image-preview-img');
|
||||
// 创建一个观察器实例,并传入回调函数
|
||||
const observer = new MutationObserver((mutationsList) => {
|
||||
for (const mutation of mutationsList) {
|
||||
if (mutation.type === 'attributes') {
|
||||
if(targetNode[0].getAttribute(mutation.attributeName).match("http")){
|
||||
handlerPreviewImage(0,targetNode[0].getAttribute(mutation.attributeName))
|
||||
}
|
||||
}
|
||||
targetNode?.forEach((node,index)=>{
|
||||
let imageObserver = new MutationObserver((mutationsList)=>{
|
||||
for(const mutation of mutationsList){
|
||||
if (node.getAttribute(mutation.attributeName).match('http')){
|
||||
handlerPreviewImage(0, node.getAttribute(mutation.attributeName));
|
||||
}
|
||||
}
|
||||
});
|
||||
// 配置观察选项
|
||||
const config = { attributes: true };
|
||||
// 开始观察目标节点
|
||||
observer.observe(targetNode[0], config);
|
||||
isInitImageLisener.value = true;
|
||||
},250)
|
||||
})
|
||||
const config = { attributes: true };
|
||||
imageObserver.observe(node, config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
}, 250);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -522,24 +522,22 @@
|
|||
const isInitImageLisener = ref<Boolean>(false);
|
||||
// 监听预览图片地址变化进行箭头切换
|
||||
function handlerImageChange(e): void {
|
||||
isInitImageLisener.value = false;
|
||||
if (e && !isInitImageLisener.value) {
|
||||
setTimeout(function () {
|
||||
const targetNode = document.getElementsByClassName('ant-image-preview-img');
|
||||
// 创建一个观察器实例,并传入回调函数
|
||||
const observer = new MutationObserver((mutationsList) => {
|
||||
for (const mutation of mutationsList) {
|
||||
if (mutation.type === 'attributes') {
|
||||
if (targetNode[0].getAttribute(mutation.attributeName).match('http')) {
|
||||
handlerPreviewImage(0, targetNode[0].getAttribute(mutation.attributeName));
|
||||
targetNode?.forEach((node,index)=>{
|
||||
let imageObserver = new MutationObserver((mutationsList)=>{
|
||||
for(const mutation of mutationsList){
|
||||
if (node.getAttribute(mutation.attributeName).match('http')){
|
||||
handlerPreviewImage(0, node.getAttribute(mutation.attributeName));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// 配置观察选项
|
||||
const config = { attributes: true };
|
||||
// 开始观察目标节点
|
||||
observer.observe(targetNode[0], config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
const config = { attributes: true };
|
||||
imageObserver.observe(node, config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
}, 250);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -400,24 +400,22 @@
|
|||
const isInitImageLisener = ref<Boolean>(false);
|
||||
// 监听预览图片地址变化进行箭头切换
|
||||
function handlerImageChange(e): void {
|
||||
isInitImageLisener.value = false;
|
||||
if (e && !isInitImageLisener.value) {
|
||||
setTimeout(function () {
|
||||
const targetNode = document.getElementsByClassName('ant-image-preview-img');
|
||||
// 创建一个观察器实例,并传入回调函数
|
||||
const observer = new MutationObserver((mutationsList) => {
|
||||
for (const mutation of mutationsList) {
|
||||
if (mutation.type === 'attributes') {
|
||||
if (targetNode[0].getAttribute(mutation.attributeName).match('http')) {
|
||||
handlerPreviewImage(0, targetNode[0].getAttribute(mutation.attributeName));
|
||||
targetNode?.forEach((node,index)=>{
|
||||
let imageObserver = new MutationObserver((mutationsList)=>{
|
||||
for(const mutation of mutationsList){
|
||||
if (node.getAttribute(mutation.attributeName).match('http')){
|
||||
handlerPreviewImage(0, node.getAttribute(mutation.attributeName));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// 配置观察选项
|
||||
const config = { attributes: true };
|
||||
// 开始观察目标节点
|
||||
observer.observe(targetNode[0], config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
const config = { attributes: true };
|
||||
imageObserver.observe(node, config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
}, 250);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -386,24 +386,22 @@
|
|||
const isInitImageLisener = ref<Boolean>(false);
|
||||
// 监听预览图片地址变化进行箭头切换
|
||||
function handlerImageChange(e): void {
|
||||
isInitImageLisener.value = false;
|
||||
if (e && !isInitImageLisener.value) {
|
||||
setTimeout(function () {
|
||||
const targetNode = document.getElementsByClassName('ant-image-preview-img');
|
||||
// 创建一个观察器实例,并传入回调函数
|
||||
const observer = new MutationObserver((mutationsList) => {
|
||||
for (const mutation of mutationsList) {
|
||||
if (mutation.type === 'attributes') {
|
||||
if (targetNode[0].getAttribute(mutation.attributeName).match('http')) {
|
||||
handlerPreviewImage(0, targetNode[0].getAttribute(mutation.attributeName));
|
||||
targetNode?.forEach((node,index)=>{
|
||||
let imageObserver = new MutationObserver((mutationsList)=>{
|
||||
for(const mutation of mutationsList){
|
||||
if (node.getAttribute(mutation.attributeName).match('http')){
|
||||
handlerPreviewImage(0, node.getAttribute(mutation.attributeName));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// 配置观察选项
|
||||
const config = { attributes: true };
|
||||
// 开始观察目标节点
|
||||
observer.observe(targetNode[0], config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
const config = { attributes: true };
|
||||
imageObserver.observe(node, config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
}, 250);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -870,24 +870,22 @@
|
|||
const isInitImageLisener = ref<Boolean>(false);
|
||||
// 监听预览图片地址变化进行箭头切换
|
||||
function handlerImageChange(e): void {
|
||||
isInitImageLisener.value = false;
|
||||
if (e && !isInitImageLisener.value) {
|
||||
setTimeout(function () {
|
||||
const targetNode = document.getElementsByClassName('ant-image-preview-img');
|
||||
// 创建一个观察器实例,并传入回调函数
|
||||
const observer = new MutationObserver((mutationsList) => {
|
||||
for (const mutation of mutationsList) {
|
||||
if (mutation.type === 'attributes') {
|
||||
if (targetNode[0].getAttribute(mutation.attributeName).match('http')) {
|
||||
handlerPreviewImage(0, targetNode[0].getAttribute(mutation.attributeName));
|
||||
targetNode?.forEach((node,index)=>{
|
||||
let imageObserver = new MutationObserver((mutationsList)=>{
|
||||
for(const mutation of mutationsList){
|
||||
if (node.getAttribute(mutation.attributeName).match('http')){
|
||||
handlerPreviewImage(0, node.getAttribute(mutation.attributeName));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// 配置观察选项
|
||||
const config = { attributes: true };
|
||||
// 开始观察目标节点
|
||||
observer.observe(targetNode[0], config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
const config = { attributes: true };
|
||||
imageObserver.observe(node, config);
|
||||
isInitImageLisener.value = true;
|
||||
})
|
||||
}, 250);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue