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