保存进度
This commit is contained in:
@@ -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" );
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user