您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
课题组管理
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/470658/1218979/24-%E8%AF%BE%E9%A2%98%E7%BB%84%E7%AE%A1%E7%90%86.js
function 课题组管理(){ console.log('新的课题组管理界面') var local_添加北京价格=localStorage.getItem('添加北京价格'); var local_添加广州价格=localStorage.getItem('添加广州价格'); var html=$('iframe[src="/custmer/manageketizu.aspx"]')//课题组管理页面 html=html.contents().find('body').eq(0) var toolbar=html.find('.toolbar').eq(0) // 找到了toolbar工具栏 //添加toolbar工具栏按钮 添加toolbar按钮(html) //添加toolbar工具栏按钮 function 添加toolbar按钮(html){ var toolbar=html.find('.toolbar').eq(0) // 找到了toolbar工具栏 if (toolbar.find('.weiyiyici').length==0){ //添加标记 toolbar.addClass('weiyiyici') //添加北京价格 if (local_添加北京价格=='true'){ toolbar.append('<button id="button_beijing_addPrice" onclick="return false">添加北京默认价格</button>') //添加按钮 } //添加广州价格 if (local_添加广州价格=='true'){ toolbar.append('<span style="position:relative;z-index:2;"><button id="button_guangzhou_addPrice" onclick="return false">添加广州价格◇</button><div id="div_guangzhou_addPrice" style="position:absolute;width:180px;height:140px;border:1px solid orange;background-color:#1B211D;display:none"></div></span>') div_show_yincang=toolbar.find('#div_guangzhou_addPrice').eq(0) div_show_yincang.append('<button id="button_gz_morenjiage" onclick="return false">广州默认价格</button>') div_show_yincang.append('<button id="button_gz_lihaitao" onclick="return false">李海涛(广西以外报价)</button>') div_show_yincang.append('<button id="button_gz_shenzhen" onclick="return false">深圳报价</button>') div_show_yincang.append('<button id="button_gz_mozhihong" onclick="return false">肿瘤医院(莫智鸿)</button>') div_show_yincang.append('<button id="button_gz_zenggangdi" onclick="return false">肿瘤黄埔院区(曾港迪)</button>') div_show_yincang.append('<button id="button_gz_guangxi" onclick="return false">广西</button>') } if (local_添加北京价格=='true' || local_添加广州价格=='true'){ toolbar.append('<button id="button_copy_price" onclick="return false">复制价格</button>') //添加按钮 toolbar.append('<input type="text" id="text_ketizuID" placeholder="需要复制的课题组ID" />') //添加文本框 } //点击添加广州价格按钮 显示或者隐藏DIV toolbar.find('#button_guangzhou_addPrice').click(function(){ 显示隐藏DIV('#div_show_yincang',"button_guangzhou_addPrice") }) } } //显示或者隐藏DIV function 显示隐藏DIV(div_id,button_id){ div=toolbar.find(div_id).eq(0) div.toggle() //改变背景颜色 if (div.css('display')==="none"){ toolbar.find(button_id).css('background-color','') }else{ toolbar.find(button_id).css('background-color','#B7A0AA') //如果是批量添加反应的div 把已填的数据改为1 if (div_id=='#div_piliang'){ toolbar.find(div_id).eq(0).find(":input").val('1') }else{ //如果是修改样品名称的div 或者 其他div 把已填的数据清除 toolbar.find(div_id).eq(0).find(":input").val('') } } } }