mirror of
https://gitee.com/maimengcloud/xm-ui-web.git
synced 2025-12-30 10:12:26 +00:00
kpi关联任务
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<el-text type="info"> 等级:</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"> 状态:</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"> 得分:{{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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user