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