|
|
|
@ -70,6 +70,7 @@ |
|
|
|
|
<quill :border="true" |
|
|
|
|
:readonly="isDetail" |
|
|
|
|
v-model="projectManage.experimentTarget" |
|
|
|
|
:type.sync="projectManage.experimentTargetType" |
|
|
|
|
:minHeight="150" |
|
|
|
|
:height="150" /> |
|
|
|
|
</el-form-item> |
|
|
|
@ -90,6 +91,7 @@ |
|
|
|
|
<quill :border="true" |
|
|
|
|
:readonly="isDetail" |
|
|
|
|
v-model="projectManage.experimentDescription" |
|
|
|
|
:type.sync="projectManage.experimentDescriptionType" |
|
|
|
|
:minHeight="150" |
|
|
|
|
:height="150" /> |
|
|
|
|
</el-form-item> |
|
|
|
@ -241,6 +243,7 @@ |
|
|
|
|
<quill :border="true" |
|
|
|
|
:readonly="isDetail" |
|
|
|
|
v-model="projectManage.experimentHint" |
|
|
|
|
:type.sync="projectManage.experimentHintType" |
|
|
|
|
:minHeight="150" |
|
|
|
|
:height="150" /> |
|
|
|
|
</el-form-item> |
|
|
|
@ -337,7 +340,10 @@ export default { |
|
|
|
|
state: 0, // 状态(0、草稿箱 1、已发布) |
|
|
|
|
isOpen: 0, // 是否开启(0开启 1未开启 默认0) |
|
|
|
|
ztOpen: 0, // 是否开启(0开启 1未开启 默认0) |
|
|
|
|
isDel: 0 // 是否删除(0、未删除 1、已删除 默认0) |
|
|
|
|
isDel: 0, // 是否删除(0、未删除 1、已删除 默认0) |
|
|
|
|
experimentTargetType: '0', |
|
|
|
|
experimentDescriptionType: '0', |
|
|
|
|
experimentHintType: '0', |
|
|
|
|
}, |
|
|
|
|
projectJudgmentData: [], //实验任务(项目判分点) |
|
|
|
|
oriPer: '', // 原始项目用途,用于保存的时候对比是否有修改该值,如果有,要调另一个接口查询提示 |
|
|
|
@ -431,6 +437,9 @@ export default { |
|
|
|
|
this.$get(`${this.api.getProjectDetail}?projectId=${this.projectId}`).then(res => { |
|
|
|
|
let { projectManage, projectJudgmentVos } = res; |
|
|
|
|
if (!projectManage.remark) projectManage.remark = projectManage.projectName // 如果没有备注,则直接显示项目名称 |
|
|
|
|
if (!projectManage.experimentDescriptionType) projectManage.experimentDescriptionType = '0' |
|
|
|
|
if (!projectManage.experimentHintType) projectManage.experimentHintType = '0' |
|
|
|
|
if (!projectManage.experimentTargetType) projectManage.experimentTargetType = '0' |
|
|
|
|
this.projectManage = projectManage; |
|
|
|
|
this.projectJudgmentData = projectJudgmentVos; |
|
|
|
|
this.oriPer = projectManage.permissions |
|
|
|
@ -529,6 +538,7 @@ export default { |
|
|
|
|
this.submiting = true |
|
|
|
|
this.$store.dispatch("setSystemId", this.projectManage.systemId); |
|
|
|
|
this.projectManage.state = state; |
|
|
|
|
console.log("🚀 ~ file: projectAdd.vue:537 ~ handleSubmit ~ this.projectManage:", this.projectManage) |
|
|
|
|
this.projectManage.ztOpen = state ? 0 : 1 |
|
|
|
|
let { systemId } = this.projectManage; |
|
|
|
|
if (this.projectId) { |
|
|
|
|