|
@@ -12,6 +12,7 @@
|
|
clearable
|
|
clearable
|
|
maxlength="999"
|
|
maxlength="999"
|
|
show-word-limit
|
|
show-word-limit
|
|
|
|
+ :disabled="!checkPrivilege('link', 'canEditRequirement')"
|
|
@blur="descriptionChange"
|
|
@blur="descriptionChange"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -19,7 +20,10 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="part-box part-box-pad">
|
|
<div class="part-box part-box-pad">
|
|
- <div class="box-justify mb-2">
|
|
|
|
|
|
+ <div
|
|
|
|
+ v-if="checkPrivilege('link', 'canEditRequirement')"
|
|
|
|
+ class="box-justify mb-2"
|
|
|
|
+ >
|
|
<div></div>
|
|
<div></div>
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
@@ -40,6 +44,7 @@
|
|
<el-table-column prop="detail" label="目标分解详情" min-width="300">
|
|
<el-table-column prop="detail" label="目标分解详情" min-width="300">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
|
|
+ v-if="checkPrivilege('link', 'canEditRequirement')"
|
|
class-name="action-column"
|
|
class-name="action-column"
|
|
label="操作"
|
|
label="操作"
|
|
width="120"
|
|
width="120"
|
|
@@ -65,6 +70,7 @@
|
|
|
|
|
|
<!-- ModifyTrainingPlanTarget -->
|
|
<!-- ModifyTrainingPlanTarget -->
|
|
<modify-training-plan-target
|
|
<modify-training-plan-target
|
|
|
|
+ v-if="checkPrivilege('link', 'canEditRequirement')"
|
|
ref="ModifyTrainingPlanTarget"
|
|
ref="ModifyTrainingPlanTarget"
|
|
:instance="curRow"
|
|
:instance="curRow"
|
|
@modified="getList"
|
|
@modified="getList"
|
|
@@ -135,6 +141,8 @@ export default {
|
|
this.deletePageLastItem();
|
|
this.deletePageLastItem();
|
|
},
|
|
},
|
|
async descriptionChange() {
|
|
async descriptionChange() {
|
|
|
|
+ if (!this.checkPrivilege("link", "canEditRequirement")) return;
|
|
|
|
+
|
|
await updateTrainingPlanDescription({
|
|
await updateTrainingPlanDescription({
|
|
id: this.rowData.id,
|
|
id: this.rowData.id,
|
|
description: this.modalForm.description,
|
|
description: this.modalForm.description,
|