Skip to content
Snippets Groups Projects
Commit 6bd1e474 authored by Tongzhou Ji's avatar Tongzhou Ji :speech_balloon:
Browse files

update

parent 13522af5
No related branches found
No related tags found
No related merge requests found
# NJU Table Support
南京大学协同表格 table.nju.edu.cn (SeaTable)适用的补充内容,包括一些实用JavaScript脚本、Python脚本、多选标签JSON文件
\ No newline at end of file
南京大学协同表格 table.nju.edu.cn (SeaTable)适用的补充内容,包括一些实用JavaScript脚本示例、Python脚本示例、单选/多选标签JSON文件。
## 目录
- [JavaScript脚本](Scripts-JavaScript)
- [Python脚本](Scripts-Python)
- [单选/多选标签](Tags-JSON)
## 反馈或参与维护
如果你发现错误或者过时信息,请在[议题](https://git.nju.edu.cn/escience/nju-table-support/-/issues)内发帖,或者有能力的用户直接提交请求。
如果你想长期参与维护,请联系 `yaoge@nju.edu.cn`
\ No newline at end of file
> 本文件夹内的所有`.js`文件可用于[协同表格](https://table.nju.edu.cn)的脚本功能(JavaScript)。如果你发现错误或者过时信息,请在[议题](https://git.nju.edu.cn/escience/nju-table-support/-/issues)内发帖,或者有能力的用户直接提交请求。
## 使用方法
点击你所需要的`.js`文件,然后在右上角找到 **“复制”**
![](../pics/复制.png)
然后在你的表格中找到 **“脚本”-“新建”-“JavaScript”**
![](../pics/脚本.png)
![](../pics/新建JavaScript.png)
将代码粘贴,保存即可。
> 代码并不一定是粘贴即可用的,根据不同表格的情况,需要遵照注释来进行修改。
\ No newline at end of file
const table = base.getActiveTable();
lines = 10; //修改以更改一次新增的空白行数
for (let i = 0; i < lines; i++) {
base.addRow(table, {})
}
output.text("完成!")
\ No newline at end of file
> 本文件夹内的所有`.py`文件可用于[协同表格](https://table.nju.edu.cn)的脚本功能(Python)。如果你发现错误或者过时信息,请在[议题](https://git.nju.edu.cn/escience/nju-table-support/-/issues)内发帖,或者有能力的用户直接提交请求。
## 使用方法
点击你所需要的`.py`文件,然后在右上角找到 **“复制”**
![](../pics/复制.png)
然后在你的表格中找到 **“脚本”-“新建”-“Python”**
![](../pics/脚本.png)
![](../pics/新建JavaScript.png)
将代码粘贴,保存即可。
> 代码并不一定是粘贴即可用的,根据不同表格的情况,需要遵照注释来进行修改。
\ No newline at end of file
> 本文件夹内的所有`.json`文件可用于[协同表格](https://table.nju.edu.cn)的单选或多选列标签。如果你发现错误或者过时信息,请在[议题](https://git.nju.edu.cn/escience/nju-table-support/-/issues)内发帖,或者有能力的用户直接提交请求。
## 使用方法
点击你所需要的`.json`文件,然后在右上角找到 **“下载”**
![](../pics/下载.png)
然后在你的表格中在单选列或多选列点击 **“编辑单(多)选”**
![](../pics/编辑单选多选.png)
点击 **“导入标签”**
![](../pics/导入标签.png)
找到刚才下载的`.json`文件导入即可。
> 代码并不一定是粘贴即可用的,根据不同表格的情况,需要遵照注释来进行修改。
\ No newline at end of file
[{"name":"1幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"558446"},{"name":"2幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"232320"},{"name":"3幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"958320"},{"name":"4幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"313243"},{"name":"5幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"830107"},{"name":"6幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"462201"},{"name":"7幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"963991"},{"name":"8幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"816019"},{"name":"9幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"304002"},{"name":"10幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"680887"},{"name":"11幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"696889"},{"name":"12幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"201056"},{"name":"13幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"465528"},{"name":"14幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"545556"},{"name":"15幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"213838"},{"name":"16幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"332349"},{"name":"17幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"889488"},{"name":"18幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"480601"},{"name":"19幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"554790"},{"name":"20幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"120033"},{"name":"21幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"471339"},{"name":"22幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"902128"},{"name":"23幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"590185"},{"name":"24幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"97910"},{"name":"25幢","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"645003"}]
\ No newline at end of file
[{"name":"一舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"683919"},{"name":"二舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"235220"},{"name":"三舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"364169"},{"name":"四舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"609690"},{"name":"五舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"257158"},{"name":"六舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"348527"},{"name":"七舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"997113"},{"name":"八舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"985910"},{"name":"十一舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"501395"},{"name":"十三舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"255288"},{"name":"十四舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"794144"},{"name":"十八舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"245923"},{"name":"十九舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"72275"},{"name":"二十舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"151834"},{"name":"二十一舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"798969"},{"name":"陶园一舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"872296"},{"name":"陶园二舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"892814"},{"name":"陶园三舍","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"455756"},{"name":"西苑留学生楼","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"289697"},{"name":"其它","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"727319"}]
\ No newline at end of file
[{"name":"文学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"914176"},{"name":"历史学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"481349"},{"name":"哲学系","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"29365"},{"name":"新闻传播学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"116836"},{"name":"法学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"656835"},{"name":"商学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"888042"},{"name":"外国语学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"980359"},{"name":"政府管理学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"498354"},{"name":"信息管理学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"941640"},{"name":"社会学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"23062"},{"name":"数学系","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"229476"},{"name":"物理学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"497516"},{"name":"天文与空间科学学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"732070"},{"name":"化学化工学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"179786"},{"name":"计算机科学与技术系","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"213325"},{"name":"软件学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"35654"},{"name":"人工智能学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"530958"},{"name":"电子科学与工程学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"664351"},{"name":"现代工程与应用科学学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"153082"},{"name":"环境学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"672243"},{"name":"地球科学与工程学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"753715"},{"name":"地理与海洋科学学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"336516"},{"name":"大气科学学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"477063"},{"name":"生命科学学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"419996"},{"name":"医学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"509003"},{"name":"工程管理学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"791081"},{"name":"匡亚明学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"153699"},{"name":"海外教育学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"572542"},{"name":"建筑与城市规划学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"965758"},{"name":"马克思主义学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"494933"},{"name":"艺术学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"335020"},{"name":"教育研究院/陶行知教师教育学院","color":"#FFFCB5","textColor":"#202428","borderColor":"#E8E79D","id":"129833"},{"name":"新生学院-秉文书院","color":"#59CB74","textColor":"#FFFFFF","borderColor":"#4EB867","id":"575101"},{"name":"新生学院-行知书院","color":"#59CB74","textColor":"#FFFFFF","borderColor":"#4EB867","id":"238382"},{"name":"新生学院-有训书院","color":"#59CB74","textColor":"#FFFFFF","borderColor":"#4EB867","id":"158009"},{"name":"新生学院-安邦书院","color":"#59CB74","textColor":"#FFFFFF","borderColor":"#4EB867","id":"66048"},{"name":"新生学院-毓琇书院","color":"#59CB74","textColor":"#FFFFFF","borderColor":"#4EB867","id":"161709"},{"name":"新生书院-开甲书院","color":"#59CB74","textColor":"#FFFFFF","borderColor":"#4EB867","id":"431006"},{"name":"其他单位","color":"#F4667C","textColor":"#FFFFFF","borderColor":"#DC556A","id":"230847"}]
\ No newline at end of file
pics/下载.png

6.72 KiB

pics/复制.png

6.41 KiB

pics/导入标签.png

9.04 KiB

pics/新建JavaScript.png

5.73 KiB

pics/编辑单选多选.png

12.7 KiB

pics/脚本.png

7.14 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment