mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-07 01:46:43 +08:00
feat:新建项目-选择模版后可以重置模版,重置页面数据
This commit is contained in:
@@ -187,7 +187,7 @@
|
||||
<div class="name">
|
||||
<div class="inname" style="width: 50px">模版</div>
|
||||
<div class="in select" style="margin-left: 2px">
|
||||
<a-select :getPopupContainer="
|
||||
<a-select :allowClear="true" :getPopupContainer="
|
||||
(triggerNode) => triggerNode.parentNode || document.body
|
||||
" placeholder="请选择模版" style="width: 100%" :options="classifyList5" @change="classificationChange5"
|
||||
@popupScroll="templateScroll" :fieldNames="{
|
||||
@@ -372,6 +372,22 @@ export default {
|
||||
};
|
||||
|
||||
const classificationChange5 = (key, option) => {
|
||||
if(key==undefined || option==undefined){
|
||||
// 标识清空选择的模版
|
||||
state.timeRange = []
|
||||
state.projectInfo = {
|
||||
name: "",
|
||||
picUrl: "",
|
||||
beginTime: "",
|
||||
endTime: "",
|
||||
manager: "",
|
||||
managerId: "",
|
||||
sourceBelongId: null,
|
||||
level: "",
|
||||
systemId: null
|
||||
}
|
||||
return
|
||||
}
|
||||
state.projectInfo = option;
|
||||
state.projectInfo.projectTemplateId = option.id;
|
||||
state.projectInfo.id = "";
|
||||
|
||||
Reference in New Issue
Block a user