保存进度

This commit is contained in:
2025-11-26 09:11:13 +08:00
parent 88ba348242
commit bf6e78b423
2 changed files with 33 additions and 7 deletions

View File

@@ -16,5 +16,5 @@ VITE_APP_RETRY_ATTEMPTS=3
VITE_APP_CACHE_ENABLED=true
#上传文件
VITE_APP_URL_UPLOAD_FILE=http://localhost:8080/RegulatoryManagementBackend/file/file-upload.do
VITE_APP_URL_MOVE_FILE=http://localhost:8080/RegulatoryManagementBackend/file/move-file.do
VITE_APP_URL_UPLOAD_FILE=http://222.76.244.118:8081/RegulatoryManagementBackend/file/file-upload.do
VITE_APP_URL_MOVE_FILE=http://222.76.244.118:8081/RegulatoryManagementBackend/file/move-file.do

View File

@@ -166,15 +166,41 @@ export default {
};
/*表格操作相关 */
const onDeleteUploadedFile = ( rowId: any ): void =>
/**
* 删除对应的上传文件记录。
* @param rowId 行号
*/
const onDeleteUploadedFile = ( rowId: number ): void =>
{
console.log( `点击的rowid${rowId}` );
ElMessage.info( `选取的行号${rowId}` );
console.log( `点击的rowid${rowId}` );
ElMessage.info( `选取的行号${rowId}` );
ElMessageBox.confirm(
"确认删除文件?",
"删除文件",
{
confirmButtonText: "确定",
type: "warning",
center: true,
}
)
.then(()=>
{
ui.newRegulatory.regulatory_files?.splice( rowId, 1 );
})
.catch(()=>{});
};
const tableRowClassName = ( {row, rowIndex} ): void =>
/**
* 用来给 el-table 行设置样式。
* 其中给row加一个参数rowIndex用行号赋值。
* @param element-plus给于的参数
*/
const tableRowClassName = ({row, rowIndex,}: {row:any, rowIndex:number}): void =>
{
console.log( `${row}设置行号${rowIndex}` );
console.log( `${row}设置行号${rowIndex}` );
row.rowIndex = rowIndex;
};