Commit ac42f53d authored by 沈翠玲's avatar 沈翠玲

下载文件

parent 097f0b61
...@@ -424,7 +424,7 @@ ...@@ -424,7 +424,7 @@
}; };
const download = (item) => { const download = (item) => {
const name = item.slice(item.lastIndexOf('/') + 1, item.length); const name = item.slice(item.lastIndexOf('/') + 1, item.length);
downloadfile(envs.VITE_GLOB_API_URL_PREFIX + '/sys/static/' + item, {}, name); downloadfile('/sys/static/' + item, {}, name);
}; };
const handleRemove3 = (uploadFile, uploadFiles) => { const handleRemove3 = (uploadFile, uploadFiles) => {
const index = form.others.findIndex((v) => v.name === uploadFile.name); const index = form.others.findIndex((v) => v.name === uploadFile.name);
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
}; };
const download = (item) => { const download = (item) => {
const name = item.slice(item.lastIndexOf('/') + 1, item.length); const name = item.slice(item.lastIndexOf('/') + 1, item.length);
downloadfile(envs.VITE_GLOB_API_URL_PREFIX + '/sys/static/' + item, {}, name); downloadfile('/sys/static/' + item, {}, name);
}; };
const auditStatusOpt = [ const auditStatusOpt = [
{ label: '未稽核', value: 'un_audit' }, { label: '未稽核', value: 'un_audit' },
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
<> <>
{row.voices.map((item, index) => ( {row.voices.map((item, index) => (
<el-icon> <el-icon>
<Download onClick={() => download(row)} /> <Download onClick={() => download(item)} />
</el-icon> </el-icon>
))} ))}
</> </>
......
...@@ -424,7 +424,7 @@ ...@@ -424,7 +424,7 @@
}; };
const download = (item) => { const download = (item) => {
const name = item.slice(item.lastIndexOf('/') + 1, item.length); const name = item.slice(item.lastIndexOf('/') + 1, item.length);
downloadfile(envs.VITE_GLOB_API_URL_PREFIX + '/sys/static/' + item, {}, name); downloadfile('/sys/static/' + item, {}, name);
}; };
const handleRemove3 = (uploadFile, uploadFiles) => { const handleRemove3 = (uploadFile, uploadFiles) => {
const index = form.others.findIndex((v) => v.name === uploadFile.name); const index = form.others.findIndex((v) => v.name === uploadFile.name);
......
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
<> <>
{row.voices.map((item, index) => ( {row.voices.map((item, index) => (
<el-icon> <el-icon>
<Download onClick={() => download(row)} /> <Download onClick={() => download(item)} />
</el-icon> </el-icon>
))} ))}
</> </>
...@@ -416,7 +416,7 @@ ...@@ -416,7 +416,7 @@
}; };
const download = (item) => { const download = (item) => {
const name = item.slice(item.lastIndexOf('/') + 1, item.length); const name = item.slice(item.lastIndexOf('/') + 1, item.length);
downloadfile(envs.VITE_GLOB_API_URL_PREFIX + '/sys/static/' + item, {}, name); downloadfile('/sys/static/' + item, {}, name);
}; };
const audit = async (row) => { const audit = async (row) => {
const list = caseLRef.value.element.getCheckboxRecords(); const list = caseLRef.value.element.getCheckboxRecords();
......
...@@ -625,7 +625,7 @@ ...@@ -625,7 +625,7 @@
}; };
const download = (item) => { const download = (item) => {
const name = item.slice(item.lastIndexOf('/') + 1, item.length); const name = item.slice(item.lastIndexOf('/') + 1, item.length);
downloadfile(envs.VITE_GLOB_API_URL_PREFIX + '/sys/static/' + item, {}, name); downloadfile('/sys/static/' + item, {}, name);
}; };
const followStatusOpt = [ const followStatusOpt = [
{ label: '接通后挂断', value: 'hang_up' }, { label: '接通后挂断', value: 'hang_up' },
......
...@@ -431,7 +431,7 @@ ...@@ -431,7 +431,7 @@
}; };
const download = (item) => { const download = (item) => {
const name = item.slice(item.lastIndexOf('/') + 1, item.length); const name = item.slice(item.lastIndexOf('/') + 1, item.length);
downloadfile(envs.VITE_GLOB_API_URL_PREFIX + '/sys/static/' + item, {}, name); downloadfile('/sys/static/' + item, {}, name);
}; };
const handleRemove3 = (uploadFile, uploadFiles) => { const handleRemove3 = (uploadFile, uploadFiles) => {
const index = form.others.findIndex((v) => v.name === uploadFile.name); const index = form.others.findIndex((v) => v.name === uploadFile.name);
......
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
<> <>
{row.voices.map((item, index) => ( {row.voices.map((item, index) => (
<el-icon> <el-icon>
<Download onClick={() => download(row)} /> <Download onClick={() => download(item)} />
</el-icon> </el-icon>
))} ))}
</> </>
...@@ -415,7 +415,7 @@ ...@@ -415,7 +415,7 @@
}; };
const download = (item) => { const download = (item) => {
const name = item.slice(item.lastIndexOf('/') + 1, item.length); const name = item.slice(item.lastIndexOf('/') + 1, item.length);
downloadfile(envs.VITE_GLOB_API_URL_PREFIX + '/sys/static/' + item, {}, name); downloadfile('/sys/static/' + item, {}, name);
}; };
const audit = async (row) => { const audit = async (row) => {
const list = caseLRef.value.element.getCheckboxRecords(); const list = caseLRef.value.element.getCheckboxRecords();
......
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