Commit c396dd58 authored by wcmoon's avatar wcmoon

fix: 修复财政厅项目文件上传bug;修改财政厅项目接口请求地址

parent a2b86b9e
......@@ -171,8 +171,8 @@ const configModules = {
},
// 财政厅--测试环境--------------------------------------------------------------------
"czt_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:8998/',
INERFACE_URL_PREFIX: 'http://124.71.144.118:46789',
CHAIN_BROWSER_URL_PREFIX: 'http://139.159.182.207:8081/',
INERFACE_URL_PREFIX: 'http://139.159.182.207:46789',
INDEX: {
entry: './src/entry/czt/main.ts',
template: './public/czt/index.html',
......@@ -181,8 +181,8 @@ const configModules = {
},
// 财政厅--正式环境(待修改)
"czt_prod": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:8998/',
INERFACE_URL_PREFIX: 'http://124.71.144.118:46789',
CHAIN_BROWSER_URL_PREFIX: 'http://139.159.182.207:8081/',
INERFACE_URL_PREFIX: 'http://139.159.182.207:46789',
INDEX: {
entry: './src/entry/czt/main.ts',
template: './public/czt/index.html',
......@@ -238,4 +238,4 @@ const configModules = {
}
},
};
exports.model = configModules[process.env.VUE_APP_CURRENTMODE]
\ No newline at end of file
exports.model = configModules[process.env.VUE_APP_CURRENTMODE]
......@@ -276,6 +276,7 @@ export default class editTemplate extends Vue {
public files = [];
public prehash = '';
public basehash = '';
public successAmount = 0;
// 系统模板>建立个人模板or建立存证
// 个人模板>建立存证or更新模板
// 建立存证>保存存证or保存模板
......@@ -995,8 +996,8 @@ export default class editTemplate extends Vue {
url: GO_URLS.chunkUpload,
params: current,
});
let { current_seq } = res.data;
if (current_seq === length) {
this.successAmount += 1;
if (this.successAmount === length) {
this.mergeChunkFile(current);
}
}
......@@ -1014,6 +1015,7 @@ export default class editTemplate extends Vue {
});
}
public fileChange(e: any) {
this.successAmount = 0;
if (!e.target.files) {
this.$message("请上传文件");
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment