保存进度

This commit is contained in:
2026-02-06 01:01:30 +08:00
parent f6f9543455
commit e9c3aee252
2 changed files with 15 additions and 4 deletions

View File

@@ -15,7 +15,6 @@ import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import "element-plus/dist/index.css";
// eslint-disable-next-line
const app = createApp( AppMain );
app.use( ElementPlus );
@@ -29,5 +28,4 @@ for ( const [key, component,] of Object.entries( ElementPlusIconsVue ))
app.mount( "#app" );
// eslint-disable-next-line
// createApp( App ).mount( "#app" );

View File

@@ -257,6 +257,9 @@ export default {
fileURL: "",
});
const regulatoryName = ref<any>( null );
const render: Render = function ( response: AddNewRegulatoryResponse ) :void
{
// if ( response.success === true )
@@ -342,8 +345,6 @@ export default {
{
console.log( `${row}设置行号${rowIndex}` );
const regulatoryName = ref();
row.rowIndex = rowIndex;
};
@@ -413,13 +414,25 @@ export default {
ElMessage.error( "渲染文档出错!" );
};
/**
* 创建新制度事件
*/
const onCreateNewRegulatory = () =>
{
console.log( "制度对象:", ui.newRegulatory );
// 防御验证
if ( ui.newRegulatory.department_name.length === 0 )
{
ElMessage.error( "制度名称为空!" );
console.log( regulatoryName );
regulatoryName.value.focus();
}
};
return {
ui,
regulatoryName,
headerCellStyle,
cellStyle,
onUploadSuccess,