保存进度
This commit is contained in:
@@ -15,7 +15,6 @@ import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
|||||||
|
|
||||||
import "element-plus/dist/index.css";
|
import "element-plus/dist/index.css";
|
||||||
|
|
||||||
// eslint-disable-next-line
|
|
||||||
const app = createApp( AppMain );
|
const app = createApp( AppMain );
|
||||||
|
|
||||||
app.use( ElementPlus );
|
app.use( ElementPlus );
|
||||||
@@ -29,5 +28,4 @@ for ( const [key, component,] of Object.entries( ElementPlusIconsVue ))
|
|||||||
|
|
||||||
app.mount( "#app" );
|
app.mount( "#app" );
|
||||||
|
|
||||||
// eslint-disable-next-line
|
|
||||||
// createApp( App ).mount( "#app" );
|
// createApp( App ).mount( "#app" );
|
||||||
|
|||||||
@@ -257,6 +257,9 @@ export default {
|
|||||||
fileURL: "",
|
fileURL: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const regulatoryName = ref<any>( null );
|
||||||
|
|
||||||
|
|
||||||
const render: Render = function ( response: AddNewRegulatoryResponse ) :void
|
const render: Render = function ( response: AddNewRegulatoryResponse ) :void
|
||||||
{
|
{
|
||||||
// if ( response.success === true )
|
// if ( response.success === true )
|
||||||
@@ -342,8 +345,6 @@ export default {
|
|||||||
{
|
{
|
||||||
console.log( `行${row}设置行号${rowIndex}。` );
|
console.log( `行${row}设置行号${rowIndex}。` );
|
||||||
|
|
||||||
const regulatoryName = ref();
|
|
||||||
|
|
||||||
row.rowIndex = rowIndex;
|
row.rowIndex = rowIndex;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -413,13 +414,25 @@ export default {
|
|||||||
ElMessage.error( "渲染文档出错!" );
|
ElMessage.error( "渲染文档出错!" );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建新制度事件
|
||||||
|
*/
|
||||||
const onCreateNewRegulatory = () =>
|
const onCreateNewRegulatory = () =>
|
||||||
{
|
{
|
||||||
console.log( "制度对象:", ui.newRegulatory );
|
console.log( "制度对象:", ui.newRegulatory );
|
||||||
|
|
||||||
|
// 防御验证
|
||||||
|
if ( ui.newRegulatory.department_name.length === 0 )
|
||||||
|
{
|
||||||
|
ElMessage.error( "制度名称为空!" );
|
||||||
|
console.log( regulatoryName );
|
||||||
|
regulatoryName.value.focus();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
ui,
|
ui,
|
||||||
|
regulatoryName,
|
||||||
headerCellStyle,
|
headerCellStyle,
|
||||||
cellStyle,
|
cellStyle,
|
||||||
onUploadSuccess,
|
onUploadSuccess,
|
||||||
|
|||||||
Reference in New Issue
Block a user