隐藏上传论文菜单

master
pan 4 years ago
parent bc1748439c
commit d900487db2
  1. 1
      components/account/login.vue
  2. 2
      nuxt.config.js
  3. 6
      pages/index/center.vue
  4. 2
      pages/index/upload.vue
  5. 6
      store/menus.js

@ -51,6 +51,7 @@
that.$message({ that.$message({
message: that.$t('account.form.tip.login_ok').toString(), duration: 1000, onClose: function() { message: that.$t('account.form.tip.login_ok').toString(), duration: 1000, onClose: function() {
that.$cookies.set(that.GLOBAL.user_key, that.form.user) that.$cookies.set(that.GLOBAL.user_key, that.form.user)
that.$store.commit('menus/none')
that.$router.push(that.localePath('/document')) that.$router.push(that.localePath('/document'))
} }
}) })

@ -248,7 +248,7 @@ export default {
"title": "论文标题", "title": "论文标题",
"type": "论文类型", "type": "论文类型",
"upload": "点击上传", "upload": "点击上传",
"upload_tip": "只能上传txt", "upload_tip": "只能上传txt、pdf格式的文件",
"year": "学位年度" "year": "学位年度"
}, },
"tip": { "tip": {

@ -6,9 +6,9 @@
<el-tab-pane :label="$t('center.collect.name')" name="Collect"> <el-tab-pane :label="$t('center.collect.name')" name="Collect">
<collect/> <collect/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('center.myupload.name')" name="Upload"> <!-- <el-tab-pane :label="$t('center.myupload.name')" name="Upload">-->
<myupload/> <!-- <myupload/>-->
</el-tab-pane> <!-- </el-tab-pane>-->
</el-tabs> </el-tabs>
</template> </template>

@ -75,7 +75,7 @@
:on-success="uploadOK" :on-success="uploadOK"
:file-list="form.fileList" :file-list="form.fileList"
:limit="1" :limit="1"
accept=".txt" accept="application/pdf,text/plain"
v-model="form.fileList" v-model="form.fileList"
ref="file"> ref="file">
<el-button size="small" type="primary" v-if="form.fileList.length===0">{{$t('upload.form.upload')}}</el-button> <el-button size="small" type="primary" v-if="form.fileList.length===0">{{$t('upload.form.upload')}}</el-button>

@ -2,15 +2,15 @@
* 菜单列表 * 菜单列表
*/ */
export const state=()=>({ export const state=()=>({
menus:['document', 'note', 'center', 'upload'] menus:[]
}) })
export const mutations = { export const mutations = {
//默认不包含阅读论文菜单 //默认不包含阅读论文菜单
none(state){ none(state){
state.menus=['document', 'note', 'center', 'upload'] state.menus=['document', 'note', 'center']
}, },
//包含阅读论文菜单 //包含阅读论文菜单
read(state){ read(state){
state.menus=['document', 'note', 'center', 'upload','read'] state.menus=['document', 'note', 'center','read']
} }
} }

Loading…
Cancel
Save