Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09f0f39

Browse files
committed
edit
2 parents eca3f0f + 683d5ff commit 09f0f39

File tree

16 files changed

+43
-43
lines changed

16 files changed

+43
-43
lines changed

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1 align="center">WebsiteGuide</h1>
22

3-
<div align="center">WebsiteGuide网址导航系统基于Vue+djangorestframework开发,可用于企业内部系统导航,具有网址导航搜索、后台管理、系统管理等功能,后续考虑增加rbac和其他功能,欢迎使用和交流~</div>
3+
<div align="center">WebsiteGuide网址导航系统主要用于企业记录和管理内部系统地址,具有网址增删改查、icon图标替换等功能,后续考虑增加rbac和其他功能,欢迎使用和交流~</div>
44

55

66

@@ -9,18 +9,24 @@
99
- Python 3.6+
1010
- Django 2.2.13
1111
- Djangorestframework 3.12.2
12-
- Node 13.14
13-
- Vue2.0
12+
- Node 12.20.1+
13+
- Vue 2.0
1414

15-
![image](https://github.com/mizhexiaoxiao/WebsiteGuide/blob/main/websiteapp/media/sample-picture/1.jpg)
15+
### 网址导航
1616

17-
![image](https://github.com/mizhexiaoxiao/WebsiteGuide/blob/main/websiteapp/media/sample-picture/2.jpg)
17+
![image](https://github.com/mizhexiaoxiao/WebsiteGuide/blob/main/websiteapp/media/sample-picture/5.jpg)
1818

19-
![image](https://github.com/mizhexiaoxiao/WebsiteGuide/blob/main/websiteapp/media/sample-picture/3.jpg)
19+
### 支持批量添加
2020

21-
![image](https://github.com/mizhexiaoxiao/WebsiteGuide/blob/main/websiteapp/media/sample-picture/4.jpg)
21+
![image](https://github.com/mizhexiaoxiao/WebsiteGuide/blob/main/websiteapp/media/sample-picture/6.jpg)
2222

23-
![image](https://github.com/mizhexiaoxiao/WebsiteGuide/blob/main/websiteapp/media/sample-picture/5.jpg)
23+
### 网址管理
24+
25+
![image](https://github.com/mizhexiaoxiao/WebsiteGuide/blob/main/websiteapp/media/sample-picture/7.jpg)
26+
27+
### 用户管理
28+
29+
![image](https://github.com/mizhexiaoxiao/WebsiteGuide/blob/main/websiteapp/media/sample-picture/8.jpg)
2430

2531
### 演示地址
2632

-466 Bytes
Loading
5.94 KB
Loading
4.11 KB
Loading

websiteapp/tools/Docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apk add --no-cache --virtual .build-deps openssl-dev gcc musl-dev python3-d
66
&& mkdir /etc/supervisor.d
77

88
RUN git clone https://github.com/mizhexiaoxiao/WebsiteGuide.git --depth=1 /WebsiteGuide && cd /WebsiteGuide && git pull
9-
#RUN cd /WebsiteGuide/websitefronted && npm i --registry=https://registry.npm.taobao.org && npm run build
9+
1010
RUN cd /WebsiteGuide/websitefronted && npm install -g cnpm --registry=https://registry.npm.taobao.org && cnpm install && npm run build
1111

1212
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/ && pip install --upgrade pip && pip install --no-cache-dir -r /WebsiteGuide/requirements.txt \

websitefronted/src/components/Admin/Group/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
title: `确定删除 ${row.name} ?`,
110110
content: '<p>此分组下的数据都将被删除</p>',
111111
onOk: () => {
112-
axios.delete(`/api/group/${row.id}/`).then(resp => {
112+
axios.delete(`api/group/${row.id}/`).then(resp => {
113113
this.$Message.success('删除成功')
114114
this.init()
115115
}).catch(error => {

websitefronted/src/components/Admin/Group/module/addgroupform.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
handleSubmit(name) {
3838
this.$refs[name].validate((valid) => {
3939
if (valid) {
40-
axios.post('/api/group/',this.form1).then(resp=>{
40+
axios.post('api/group/',this.form1).then(resp=>{
4141
this.$Message.success('添加成功');
4242
this.handleCancel(name)
4343
console.log(this.$parent)
@@ -46,11 +46,6 @@
4646
this.$Message.err('添加失败'+error)
4747
console.log(error)
4848
})
49-
// axios.get('/api/group/').then(resp=>{
50-
// console.log(resp)
51-
// })
52-
console.log("这里提交axios数据.then")
53-
5449
}
5550
})
5651
},

websitefronted/src/components/Admin/Group/module/addwebsiteform.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
this.form2.items.map(val => {
143143
val.website_group = this.rowData.rowId
144144
})
145-
axios.post('/api/website/', this.form2.items).then(resp => {
145+
axios.post('api/website/', this.form2.items).then(resp => {
146146
this.handleCancel(name),
147147
this.$Message.success('添加成功')
148148
this.$parent.init()

websitefronted/src/components/Admin/Group/module/editgroup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
handleSubmit(name) {
4242
this.$refs[name].validate((valid) => {
4343
if (valid) {
44-
axios.put(`/api/group/${this.id}/`,this.form3).then(resp=>{
44+
axios.put(`api/group/${this.id}/`,this.form3).then(resp=>{
4545
this.$Message.success('保存成功');
4646
this.handleCancel(name)
4747
this.$parent.init()

websitefronted/src/components/Admin/Website/module/editIcon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
data.append('file', this.file)
5151
axios({
5252
method: 'post',
53-
url: `/api/icon/`,
53+
url: `api/icon/`,
5454
data: data,
5555
}).then(resp => {
5656
this.file = null

0 commit comments

Comments
 (0)