| | |
| | | v-if="componentName.name == 'BasicInfo'" |
| | | class="save-button" |
| | | type="primary" |
| | | @click="submit(0)" |
| | | @click="saveProject(0)" |
| | | >草稿</el-button |
| | | > |
| | | <!-- <el-button class="save-button" type="primary" @click="submit(1)"--> |
| | | <!-- >保存</el-button>--> |
| | | <el-button class="save-button" type="primary" @click="saveProject" |
| | | <el-button class="save-button" type="primary" @click="saveProject(1)" |
| | | >保存</el-button> |
| | | <el-button class="reset-button" @click="reset">重置</el-button> |
| | | <!-- <el-button v-else class="cancel-button" @click="cancel">取消</el-button> --> |
| | |
| | | }, |
| | | handleClick(tabTarget) { |
| | | this.componentName = this.TABS_DATA[tabTarget.index].componentName; |
| | | console.log(this.projectForm); |
| | | }, |
| | | changeTable(index) { |
| | | this.componentName = this.TABS_DATA[index].componentName; |
| | |
| | | reset() { |
| | | this.$refs.childRef.reset(); |
| | | }, |
| | | saveProject() { |
| | | saveProject(num) { |
| | | this.projectForm.projectInfoForm.usedStatus = num; |
| | | editProject(this.projectForm).then((res) => { |
| | | this.$message.success("保存成功"); |
| | | }) |