ผลงาน => ปรับ file
This commit is contained in:
parent
b3a4db71ea
commit
293471997d
1 changed files with 3 additions and 3 deletions
|
|
@ -88,7 +88,7 @@ const fecthData = async (id: string) => {
|
||||||
function uploadFiles(id: string) {
|
function uploadFiles(id: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
.post(config.API.file("รายการเอกสาร", "เอกสารผลงาน", id), {
|
.post(config.API.file("ระบบผลงาน", "เอกสารผลงาน", id), {
|
||||||
replace: true,
|
replace: true,
|
||||||
fileList: [
|
fileList: [
|
||||||
{
|
{
|
||||||
|
|
@ -144,7 +144,7 @@ function uploadFileURL(uploadUrl: string) {
|
||||||
function fetchFile() {
|
function fetchFile() {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
.get(config.API.file("รายการเอกสาร", "เอกสารผลงาน", id.value))
|
.get(config.API.file("ระบบผลงาน", "เอกสารผลงาน", id.value))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
fileList.value = res.data;
|
fileList.value = res.data;
|
||||||
})
|
})
|
||||||
|
|
@ -164,7 +164,7 @@ function fileOpen(fileName: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
.get(
|
.get(
|
||||||
config.API.fileByFile("รายการเอกสาร", "เอกสารผลงาน", id.value, fileName)
|
config.API.fileByFile("ระบบผลงาน", "เอกสารผลงาน", id.value, fileName)
|
||||||
)
|
)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.downloadUrl;
|
const data = res.data.downloadUrl;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue