在分期管理 新增重新生成目录文件 按钮
This commit is contained in:
13415
package-lock.json
generated
13415
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,9 +19,9 @@
|
||||
{{scope.$index+1}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="stage_year" label="年份"></el-table-column>
|
||||
<el-table-column prop="stage_vol" label="卷数"></el-table-column>
|
||||
<el-table-column prop="stage_no" label="期"></el-table-column>
|
||||
<el-table-column prop="stage_year" label="年份" width="100"></el-table-column>
|
||||
<el-table-column prop="stage_vol" label="卷数" width="100"></el-table-column>
|
||||
<el-table-column prop="stage_no" label="期" width="100"></el-table-column>
|
||||
<el-table-column prop="stage_page" label="编号 / 页码">
|
||||
<template slot-scope="scope">
|
||||
{{scope.row.stage_pagename}}{{scope.row.stage_page}}
|
||||
@@ -51,17 +51,21 @@
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="220">
|
||||
<el-table-column label="操作" width="360">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" icon="el-icon-edit" @click="handleEdit(scope.$index, scope.row)">编辑
|
||||
</el-button>
|
||||
<el-button type="text" icon="el-icon-delete" class="red"
|
||||
@click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
||||
|
||||
<a
|
||||
:href="IMGdo_Url + 'dataFile/' + scope.row.journal_stage_id + '/' + scope.row.journal_stage_id + '.docx'">
|
||||
<el-button type="text" icon="el-icon-download" class="green"
|
||||
v-if="scope.row.journal_stage_id>=320&&scope.row.is_publish==1">下载目录文件</el-button>
|
||||
</a>
|
||||
<el-button type="text" icon="el-icon-refresh" class="orange"
|
||||
v-if="scope.row.journal_stage_id>=320&&scope.row.is_publish==1"
|
||||
@click="handleRegenerateCatalog(scope.row)">重新生成目录文件</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -460,6 +464,31 @@
|
||||
handleDownload(index, row) {
|
||||
// this.IMGdo_Url + 'dataFile/' + row.journal_stage_id + '/' + row.journal_stage_id + '.docx'
|
||||
},
|
||||
// 重新生成目录文件
|
||||
handleRegenerateCatalog(row) {
|
||||
this.$confirm('确定要重新生成目录文件吗?', '提示', {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$api
|
||||
.post('master/Datebase/Mycreate', {
|
||||
journal_stage_id: row.journal_stage_id
|
||||
})
|
||||
.then(res => {
|
||||
if (typeof res === 'string' && res.trim() === 'success !') {
|
||||
this.$message.success('目录文件重新生成成功');
|
||||
this.getData();
|
||||
} else if (res.code == 0) {
|
||||
this.$message.success('目录文件重新生成成功');
|
||||
this.getData();
|
||||
} else {
|
||||
this.$message.error(res.msg || res);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
this.$message.error(err);
|
||||
});
|
||||
}).catch(() => {});
|
||||
},
|
||||
// 数据库列表
|
||||
handleRefer(index, row) {
|
||||
if (row.is_publish == 1) {
|
||||
|
||||
@@ -3,17 +3,18 @@ module.exports = {
|
||||
assetsDir: 'static',
|
||||
productionSourceMap: false,
|
||||
devServer: {
|
||||
public: 'http://192.168.110.156:8081/' // 你自己本地的ip地址:端口号
|
||||
public: 'http://192.168.110.157:8081/' // 你自己本地的ip地址:端口号
|
||||
}
|
||||
// devServer: {
|
||||
// proxy: {
|
||||
// '/api':{
|
||||
// target:'http://jsonplaceholder.typicode.com',
|
||||
// changeOrigin:true,
|
||||
// pathRewrite:{
|
||||
// '/api':''
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//本地
|
||||
// devServer: {
|
||||
// public: 'http://192.168.110.156:8081/', // 你自己本地的ip地址:端口号
|
||||
// proxy: {
|
||||
// '/master': {
|
||||
// // target: 'https://master.tmrjournals.com',
|
||||
// target: 'http://journalapi.tmrjournals.com/public/index.php',
|
||||
// changeOrigin: true,
|
||||
// secure: true
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user