更新 'guanyierp/tools.user.js'
This commit is contained in:
parent
53d696a7e1
commit
50b3df8c5a
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 管易小助手
|
// @name 管易小助手
|
||||||
// @namespace http://tampermonkey.net/
|
// @namespace http://tampermonkey.net/
|
||||||
// @version 0.1
|
// @version 0.2
|
||||||
// @description 管易ERP 批量操作工具
|
// @description 管易ERP 批量操作工具
|
||||||
// @author MiaoWoo
|
// @author MiaoWoo
|
||||||
// @match http*://www.guanyierp.com/**
|
// @match http*://www.guanyierp.com/**
|
||||||
@ -13,7 +13,7 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
let toolHtml = `<span class="help-center-title tc" style="color: #4caf50;">管易小助手</span>`
|
let toolHtml = `<span class="help-center-title tc" style="color: #4caf50;">管易小助手</span>`
|
||||||
let tool = document.createElement("div")
|
let tool = document.createElement("div")
|
||||||
tool.className = "flex flex-column flex-y-center justcenter hand tmall-time"
|
tool.className = "flex flex-column flex-y-center justcenter hand tmall-time ant-popover-hidden"
|
||||||
tool.innerHTML = toolHtml
|
tool.innerHTML = toolHtml
|
||||||
document.querySelector('.help-center').parentNode.appendChild(tool)
|
document.querySelector('.help-center').parentNode.appendChild(tool)
|
||||||
tool.onclick = () => {
|
tool.onclick = () => {
|
||||||
@ -60,7 +60,7 @@
|
|||||||
let toolPage = document.createElement("div")
|
let toolPage = document.createElement("div")
|
||||||
toolPage.id = "gytool"
|
toolPage.id = "gytool"
|
||||||
toolPage.style = "position: absolute; top: 0px; left: 0px; width: 100%;"
|
toolPage.style = "position: absolute; top: 0px; left: 0px; width: 100%;"
|
||||||
// toolPage.className = 'ant-popover-hidden'
|
toolPage.className = 'ant-popover-hidden'
|
||||||
toolPage.innerHTML = toolPageHtml
|
toolPage.innerHTML = toolPageHtml
|
||||||
document.body.appendChild(toolPage)
|
document.body.appendChild(toolPage)
|
||||||
async function api(method, url, body = null, contentType = "application/json; charset=UTF-8") {
|
async function api(method, url, body = null, contentType = "application/json; charset=UTF-8") {
|
||||||
@ -111,6 +111,7 @@
|
|||||||
},
|
},
|
||||||
init: async function () {
|
init: async function () {
|
||||||
await main.initWarehouse()
|
await main.initWarehouse()
|
||||||
|
tool.className = "flex flex-column flex-y-center justcenter hand tmall-time"
|
||||||
main.loading = false
|
main.loading = false
|
||||||
},
|
},
|
||||||
initWarehouse: async function () {
|
initWarehouse: async function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user