|
|
@@ -162,7 +162,7 @@ a {
|
|
|
row-key="id"
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
- <el-table-column prop="name" label="学科名称"> </el-table-column>
|
|
|
+ <el-table-column prop="name" label="学科名称" width="180"> </el-table-column>
|
|
|
<el-table-column prop="desc" label="学科简介"></el-table-column>
|
|
|
<el-table-column prop="journal_count" label="期刊数量" width="80"></el-table-column>
|
|
|
<el-table-column prop="zip" fixed="right" align="center" width="150" label="操作">
|
|
|
@@ -219,13 +219,13 @@ a {
|
|
|
>
|
|
|
<el-upload
|
|
|
class="upload-demo"
|
|
|
- action="/api/admin/uploadfile"
|
|
|
+ action="/api/admin/subject/upload"
|
|
|
:show-file-list="false"
|
|
|
:on-success="handleAvatarSuccess1">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
<div slot="tip" class="el-upload__tip">只能上传.xls/.xlsx文件,且不超过500M</div>
|
|
|
-
|
|
|
</el-upload>
|
|
|
+ <a href="http://caos.scxjc.club/journal_template.xls" style="display:block;text-decoration:none;padding:0px;line-height:25px;">点击下载模板</a>
|
|
|
<div>{{file}}</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" type="normal" @click="dialogVisible1=false">取消</el-button>
|
|
|
@@ -261,6 +261,9 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
upload(){
|
|
|
+ this.dialogVisible1=false;
|
|
|
+ this.getData();
|
|
|
+ return
|
|
|
this.$api.upSubjectData({file:this.file}).then(res=>{
|
|
|
this.dialogVisible1=false;
|
|
|
this.getData();
|
|
|
@@ -290,7 +293,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleAvatarSuccess1(res, file) {
|
|
|
- this.file=file.response.data;
|
|
|
+ // this.file=file.response.data;
|
|
|
},
|
|
|
//封面
|
|
|
handleAvatarSuccess(res, file) {
|