Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
school-paper-admin-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
school-paper
school-paper-admin-front
Commits
06ef68a8
Commit
06ef68a8
authored
Jul 27, 2023
by
H.wb.wang.peixun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口对接
parent
7c5063c1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
34 deletions
+16
-34
src/api/school-paper/errorList.js
+9
-0
src/views/school-paper/errorList/index.vue
+0
-0
src/views/school-paper/profile/index.vue
+6
-33
vue.config.js
+1
-1
No files found.
src/api/school-paper/errorList.js
View file @
06ef68a8
...
@@ -42,3 +42,11 @@ export function delErrorList(id) {
...
@@ -42,3 +42,11 @@ export function delErrorList(id) {
method
:
'delete'
method
:
'delete'
})
})
}
}
// 查询题库主列表
export
function
questionType
(
query
)
{
return
request
({
url
:
'/school-paper/question-type/list'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
src/views/school-paper/errorList/index.vue
View file @
06ef68a8
This diff is collapsed.
Click to expand it.
src/views/school-paper/profile/index.vue
View file @
06ef68a8
...
@@ -27,12 +27,10 @@
...
@@ -27,12 +27,10 @@
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
type=
"primary"
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
size=
"mini"
@
click=
"handleAdd"
@
click=
"handleAdd"
v-hasPermi=
"['school-paper:profile:add']"
v-hasPermi=
"['school-paper:profile:add']"
>
上传
</el-button>
>
上传
资料
</el-button>
</el-col>
</el-col>
<!--
<el-col
:span=
"1.5"
>
<!--
<el-col
:span=
"1.5"
>
<el-button
<el-button
...
@@ -73,7 +71,7 @@
...
@@ -73,7 +71,7 @@
<!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
-->
<!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
-->
<!--
<el-table-column
label=
"主键id"
align=
"center"
prop=
"id"
v-if=
"true"
/>
-->
<!--
<el-table-column
label=
"主键id"
align=
"center"
prop=
"id"
v-if=
"true"
/>
-->
<el-table-column
label=
"资料名称"
prop=
"profileName"
/>
<el-table-column
label=
"资料名称"
prop=
"profileName"
/>
<el-table-column
label=
"上传者"
prop=
"
profileUrl
"
/>
<el-table-column
label=
"上传者"
prop=
"
createBy
"
/>
<!--
<el-table-column
label=
"备注"
align=
"center"
prop=
"remark"
/>
<!--
<el-table-column
label=
"备注"
align=
"center"
prop=
"remark"
/>
<el-table-column
label=
"状态:0正常,1删除"
align=
"center"
prop=
"status"
/>
-->
<el-table-column
label=
"状态:0正常,1删除"
align=
"center"
prop=
"status"
/>
-->
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
...
@@ -111,7 +109,7 @@
...
@@ -111,7 +109,7 @@
<el-input
v-model=
"form.profileName"
placeholder=
"请输入资料名称"
/>
<el-input
v-model=
"form.profileName"
placeholder=
"请输入资料名称"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上传文件"
prop=
"profileUrl"
>
<el-form-item
label=
"上传文件"
prop=
"profileUrl"
>
<DragUpload
v-model=
"form.
file
"
/>
<DragUpload
v-model=
"form.
profileUrl
"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center;"
>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center;"
>
...
@@ -154,28 +152,17 @@ export default {
...
@@ -154,28 +152,17 @@ export default {
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
profileName
:
undefined
,
profileName
:
undefined
,
profileUrl
:
undefined
,
status
:
undefined
,
},
},
// 表单参数
// 表单参数
form
:
{},
form
:
{},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
id
:
[
{
required
:
true
,
message
:
"主键id不能为空"
,
trigger
:
"blur"
}
],
profileName
:
[
profileName
:
[
{
required
:
true
,
message
:
"资料名称不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"资料名称不能为空"
,
trigger
:
"blur"
}
],
],
profileUrl
:
[
profileUrl
:
[
{
required
:
true
,
message
:
"资料地址不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"资料地址不能为空"
,
trigger
:
"blur"
}
],
],
remark
:
[
{
required
:
true
,
message
:
"备注不能为空"
,
trigger
:
"blur"
}
],
status
:
[
{
required
:
true
,
message
:
"状态:0正常,1删除不能为空"
,
trigger
:
"change"
}
],
}
}
};
};
},
},
...
@@ -200,15 +187,8 @@ export default {
...
@@ -200,15 +187,8 @@ export default {
// 表单重置
// 表单重置
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
id
:
undefined
,
profileName
:
undefined
,
profileName
:
undefined
,
profileUrl
:
undefined
,
profileUrl
:
undefined
,
remark
:
undefined
,
status
:
undefined
,
createTime
:
undefined
,
createBy
:
undefined
,
updateTime
:
undefined
,
updateBy
:
undefined
};
};
this
.
resetForm
(
"form"
);
this
.
resetForm
(
"form"
);
},
},
...
@@ -234,17 +214,10 @@ export default {
...
@@ -234,17 +214,10 @@ export default {
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"添加资料"
;
this
.
title
=
"添加资料"
;
},
},
/**
修改按钮
操作 */
/**
下载
操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
loading
=
true
;
this
.
download
(
'system/user/importTemplateNew'
,
{
this
.
reset
();
},
`user_template_
${
new
Date
().
getTime
()}
.xlsx`
)
const
id
=
row
.
id
||
this
.
ids
getProfile
(
id
).
then
(
response
=>
{
this
.
loading
=
false
;
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改资料"
;
});
},
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
submitForm
()
{
...
...
vue.config.js
View file @
06ef68a8
...
@@ -36,7 +36,7 @@ module.exports = {
...
@@ -36,7 +36,7 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://farming.nyinhong.com/api`
,
target
:
`http://farming.nyinhong.com/api`
,
// target: `http://192.168.0.1
95
:8111/`,
// target: `http://192.168.0.1
69
:8111/`,
// target: `http://192.168.0.165:8111/`,
// target: `http://192.168.0.165:8111/`,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment