parent
7aeb30bd07
commit
44f87a712a
@ -1,9 +1,33 @@ |
||||
<template> |
||||
<h1>我的收藏</h1> |
||||
<el-col :span="10"> |
||||
<el-table :data="tableData" border> |
||||
<el-table-column align="center" prop="title" :label="$t('center.collect.form.title')" /> |
||||
<el-table-column align="center" prop="time" :label="$t('center.collect.form.time')" /> |
||||
</el-table> |
||||
|
||||
<div class="block center mt1"> |
||||
<el-pagination |
||||
layout="prev, pager, next" |
||||
:total="1000"> |
||||
</el-pagination> |
||||
</div> |
||||
</el-col> |
||||
</template> |
||||
|
||||
<script lang="ts"> |
||||
export default { |
||||
name: 'collect' |
||||
} |
||||
|
||||
|
||||
import Vue from 'vue' |
||||
|
||||
export default Vue.extend( { |
||||
name: 'collect', |
||||
data(){ |
||||
return { |
||||
tableData: [{ |
||||
title: '论文标题1', |
||||
time: this.$moment().format("YYYY-MM-DD") |
||||
}] |
||||
} |
||||
} |
||||
}) |
||||
</script> |
||||
|
@ -1,9 +1,32 @@ |
||||
<template> |
||||
<h1>我的上传</h1> |
||||
<el-col :span="10"> |
||||
<el-table :data="tableData" border> |
||||
<el-table-column align="center" prop="title" :label="$t('center.myupload.form.title')" /> |
||||
<el-table-column align="center" prop="time" :label="$t('center.myupload.form.time')" /> |
||||
</el-table> |
||||
|
||||
<div class="block center mt1"> |
||||
<el-pagination |
||||
layout="prev, pager, next" |
||||
:total="1000"> |
||||
</el-pagination> |
||||
</div> |
||||
</el-col> |
||||
|
||||
</template> |
||||
|
||||
<script lang="ts"> |
||||
export default { |
||||
name: 'myupload' |
||||
} |
||||
import Vue from 'vue' |
||||
|
||||
export default Vue.extend( { |
||||
name: 'myupload', |
||||
data(){ |
||||
return { |
||||
tableData: [{ |
||||
title: '论文标题1', |
||||
time: this.$moment().format("YYYY-MM-DD") |
||||
}] |
||||
} |
||||
} |
||||
}) |
||||
</script> |
||||
|
@ -1,11 +1,45 @@ |
||||
<template> |
||||
<h1>笔记列表</h1> |
||||
<el-col :span="10"> |
||||
<el-table :data="tableData" border> |
||||
<el-table-column align="center" prop="note_name" :label="$t('note.table.note_name')" /> |
||||
<el-table-column align="center" prop="paper_name" :label="$t('note.table.paper_name')" /> |
||||
<el-table-column align="center" :label="$t('action')"> |
||||
<template slot-scope="scope"> |
||||
<el-button>{{$t('button.edit')}}</el-button> |
||||
<el-button type="danger" @click="del">{{$t('button.del')}}</el-button> |
||||
</template> |
||||
</el-table-column> |
||||
</el-table> |
||||
|
||||
<div class="block center mt1"> |
||||
<el-pagination |
||||
layout="prev, pager, next" |
||||
:total="1000"> |
||||
</el-pagination> |
||||
</div> |
||||
</el-col> |
||||
</template> |
||||
|
||||
<script lang="ts"> |
||||
import Vue from 'vue' |
||||
|
||||
export default Vue.extend({ |
||||
name: 'note' |
||||
name: 'note', |
||||
data(){ |
||||
return { |
||||
tableData:[{ |
||||
note_name:'笔记', |
||||
paper_name: '《论文》' |
||||
}] |
||||
} |
||||
}, |
||||
methods:{ |
||||
del(){ |
||||
this.$confirm(this.$t('note.tip.confirm_del').toString(),this.$t('tip').toString(),{ |
||||
confirmButtonText:this.$t('button.ok').toString(), |
||||
cancelButtonText:this.$t('button.cancel').toString() |
||||
}) |
||||
} |
||||
} |
||||
}) |
||||
</script> |
||||
|
@ -0,0 +1,4 @@ |
||||
import Vue from 'vue' |
||||
import moment from 'moment' |
||||
|
||||
Vue.prototype.$moment = moment |
Loading…
Reference in new issue