|
@@ -217,8 +217,7 @@ class Operation extends Component {
|
|
const { type } = this.state;
|
|
const { type } = this.state;
|
|
if (type == 3){
|
|
if (type == 3){
|
|
diagShowTmp(false)
|
|
diagShowTmp(false)
|
|
- this.setState({ title: '',deptId:"",value:"",folderListShow:false,folderNameVal:'未分类文件夹',folderId:'' })
|
|
|
|
- this.setState({fstName:''})
|
|
|
|
|
|
+ this.setState({ title: '',deptId:"",value:"",folderListShow:false,folderNameVal:'未分类文件夹',folderId:'',fstName:'' })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
changeTitle() {
|
|
changeTitle() {
|
|
@@ -315,6 +314,7 @@ class Operation extends Component {
|
|
that.context.scrollArea&&that.context.scrollArea.refresh();
|
|
that.context.scrollArea&&that.context.scrollArea.refresh();
|
|
});
|
|
});
|
|
} else if (type == 3) {
|
|
} else if (type == 3) {
|
|
|
|
+ console.log('this.state.fstName',this.state.fstName)
|
|
if (this.state.title.trim() == '') {
|
|
if (this.state.title.trim() == '') {
|
|
Notify.error('请输入模板名称')
|
|
Notify.error('请输入模板名称')
|
|
return;
|
|
return;
|
|
@@ -361,7 +361,8 @@ class Operation extends Component {
|
|
this.setState({
|
|
this.setState({
|
|
folderNameVal:'未分类文件夹',
|
|
folderNameVal:'未分类文件夹',
|
|
folderId:'',
|
|
folderId:'',
|
|
- fstName:''
|
|
|
|
|
|
+ fstName:'',
|
|
|
|
+ deptId:''
|
|
})
|
|
})
|
|
}else{
|
|
}else{
|
|
saveDataAll(title,sex,fstName);
|
|
saveDataAll(title,sex,fstName);
|
|
@@ -373,7 +374,7 @@ class Operation extends Component {
|
|
const { type } = this.state;
|
|
const { type } = this.state;
|
|
if (type == 3){
|
|
if (type == 3){
|
|
diagShowTmp(false)
|
|
diagShowTmp(false)
|
|
- this.setState({ title: '',deptId:"",value:"",folderListShow:false,folderNameVal:'未分类文件夹',folderId:'' })
|
|
|
|
|
|
+ this.setState({ title: '',deptId:"",value:"",folderListShow:false,folderNameVal:'未分类文件夹',folderId:'',fstName:''})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
setDeptId(id,name){
|
|
setDeptId(id,name){
|