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

下载文件

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