kpi关联任务

This commit is contained in:
陈裕财
2025-04-08 02:40:37 +08:00
parent c8746efc7f
commit d73d267d53
2 changed files with 5 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
<el-text type="info">&nbsp;&nbsp;等级</el-text> <mdp-select showStyle="tag" itemCode="ktype" v-model="editForm.ktype" :maxlength="50" @change="editSomeFields(editForm,'ktype',$event)" :disabled="true"/>
<el-text type="info">&nbsp;&nbsp;状态</el-text> <mdp-select :disabled="true" showStyle="tag" width="100%" itemCode="kstatus" v-model="editForm.kstatus" :maxlength="50" @change="editSomeFields(editForm,'kstatus',$event)" />
<el-text type="info">&nbsp;&nbsp;得分{{editForm.score||0}}</el-text>
<el-affix>
<el-anchor :offset="80" :router="false" direction="horizontal">
<el-anchor-link title="基本信息" @click.prevent="scrollToSection('#baseInfo')"/>
<el-anchor-link title="负责人、部门" @click.prevent="scrollToSection('#kselfUserid')"/>
@@ -15,6 +16,7 @@
<el-anchor-link title="备注" @click.prevent="scrollToSection('#remark')"/>
<el-anchor-link title="关联任务" @click.prevent="scrollToSection('#taskBox')"/>
</el-anchor>
</el-affix>
</template>
<el-form-item label="指标名称" prop="kpiName">
<el-input v-model="editForm.kpiName" placeholder="指标名称" :maxlength="255" @change="editSomeFields(editForm,'kpiName',$event)" :disabled="disField"/>
@@ -246,6 +248,7 @@ export default {
//由组件扩展添加其它的初始页面的逻辑(mounted+onOpen都会调用此函数建议只添加公共逻辑)
initCurrData(){
this.parent=this.parentKpi
this.taskBoxVisible=false
if(this.currOpType=='add'){
if(this.parent?.id){
this.editForm.parentId=this.parent.id

View File

@@ -69,7 +69,8 @@
<el-space wrap>
<el-button v-if="currOpType=='mng'" @click="copy2(scope.row, scope.$index)" icon="document-copy" type="warning"
title="复制一行除了主键不一样其它都一样的数据">复制</el-button>
<el-button v-if="currOpType=='mng'" @click="showEdit(scope.row)" icon="edit" type="primary">编辑</el-button>
<el-button v-if="currOpType=='mng'" @click="showEdit(scope.row)" icon="edit" type="primary">编辑</el-button>
<el-button v-if="currOpType=='mng'" @click="showCreateTask(scope.row)" icon="plus" type="primary">任务</el-button>
<el-button v-if="currOpType=='mng'" @click="showAddSub(scope.row)" icon="plus" type="primary">子指标</el-button>
<el-button title="从指标库导入" type="warning" @click="$refs['dictKpiDialog'].open({parentKpi:scope.row})" icon="plus">子指标(指标库导入)</el-button>
<el-button @click="$refs['tplKpiDialog'].open({parentKpi:scope.row})" icon="plus" type="success">子指标(模板库导入)</el-button>