|
@@ -10,7 +10,7 @@
|
|
|
@close="onClose">
|
|
|
<div class="drawer__panel" >
|
|
|
<el-row :gutter="20" style="border-bottom:1px solid #f1f2f3">
|
|
|
- <el-form :model="stageData" :rules="rules" ref="form" label-width="110px" label-position="right" size="mini">
|
|
|
+ <el-form :model="stageData" :rules="rules" ref="stageData" label-width="110px" label-position="right" size="mini">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="项目模板名称" prop="stagetempname">
|
|
|
<el-input v-model="stageData.stagetempname" placeholder="项目模板名称"></el-input>
|
|
@@ -164,7 +164,6 @@ export default {
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
-
|
|
|
]
|
|
|
},
|
|
|
inputValue:'',
|
|
@@ -214,8 +213,33 @@ export default {
|
|
|
onClose(){
|
|
|
console.log(this.stageData)
|
|
|
// this.dialogFormVisible = false
|
|
|
- // this.$refs['form'].resetFields()
|
|
|
- // this.$emit('onSuccess')
|
|
|
+ this.$refs.stageData.resetFields()
|
|
|
+ this.stageData= {
|
|
|
+ "sa_projstagetempid": 0,
|
|
|
+ "stagetempname": '',
|
|
|
+ "remarks":'',
|
|
|
+ "projecttype": '',
|
|
|
+ "isused": '',
|
|
|
+ "locked": '',
|
|
|
+ "sa_projstagetempStages":[
|
|
|
+ {
|
|
|
+ "sa_projstagetemp_stageid": 0,
|
|
|
+ "stagename": "阶段一",
|
|
|
+ "remarks": "",
|
|
|
+ "sequence": 0,
|
|
|
+ "sa_projstagetempWorks": [
|
|
|
+ {
|
|
|
+ "sa_projstagetemp_workid":0,
|
|
|
+ "workname": "工作一",
|
|
|
+ "remarks": "",
|
|
|
+ "sequence": 0,
|
|
|
+ "score": 1
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ this.$emit('onSuccess')
|
|
|
},
|
|
|
|
|
|
// 保存完整数据
|
|
@@ -227,6 +251,7 @@ export default {
|
|
|
this.stageData = Object.assign({},this.stageData,res.data)
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
this.dialogFormVisible = false
|
|
|
+ this.onClose()
|
|
|
})
|
|
|
},
|
|
|
// 显示编辑阶段输入框
|