Browse Source

优化

master
陈裕财 3 years ago
parent
commit
ae84f615cf
  1. 28
      src/views/xm/core/xmMenu/XmMenuDetail.vue
  2. 35
      src/views/xm/core/xmMenu/XmMenuEdit.vue

28
src/views/xm/core/xmMenu/XmMenuDetail.vue

@ -0,0 +1,28 @@
<template>
<xm-menu-edit v-if="xmMenu" :xm-menu="xmMenu" :reload="reload" :visible="xmMenu&&xmMenu.menuId"></xm-menu-edit>
</template>
<script>
export default {
props:['xmMenu','reload'],
data() {
return {
}
},//end data
methods: {
},//end methods
components: {
XmMenuEdit:()=>import('./XmMenuEdit')
//
},
mounted() {
}
}
</script>
<style scoped>
</style>

35
src/views/xm/core/xmMenu/XmMenuEdit.vue

@ -92,13 +92,22 @@
</el-row> </el-row>
<el-row class="padding"> <el-row class="padding">
<el-col :span="8"> <el-col :span="8">
<mdp-field-x v-if="!editForm.pmenuId" v-model="editForm.pmenuName" :disabled="true" label="上级需求"> </mdp-field-x>
<mdp-field-x v-if="!editForm.pmenuId" v-model="editForm.pmenuId" :disabled="true" label="上级需求">
</mdp-field-x>
<mdp-field-x v-else v-model="editForm.pmenuName" :label="editForm.dclass==='3'?'归属特性':(editForm.dclass==='2'?'归属史诗':'归属')" :icon="editForm.dclass==='2'?'el-icon-s-promotion':'el-icon-s-flag'" :color="editForm.dclass==='2'?'rgb(255, 153, 51)':'rgb(0, 153, 51)'">
<el-button slot="oper"
@click="showPmenu"
<mdp-field-x v-else v-model="editForm.pmenuId" :label="editForm.dclass==='3'?'归属特性':(editForm.dclass==='2'?'归属史诗':'归属')" :icon="editForm.dclass==='2'?'el-icon-s-promotion':'el-icon-s-flag'" :color="editForm.dclass==='2'?'rgb(255, 153, 51)':'rgb(0, 153, 51)'">
<div slot="oper">
<el-button
@click="pmenuFormVisible=true"
title="查看上级" title="查看上级"
icon="el-icon-upload2"> 查看上级</el-button>
icon="el-icon-upload2"> 查看上级</el-button>
<el-button
@click="changePmenu"
title="更换上级"
icon="el-icon-upload2"> 更换上级</el-button>
</div>
</mdp-field-x> </mdp-field-x>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -259,7 +268,10 @@
<tag-mng :tagIds="editForm.tagIds?editForm.tagIds.split(','):[]" :jump="true" @select-confirm="onTagSelected"> <tag-mng :tagIds="editForm.tagIds?editForm.tagIds.split(','):[]" :jump="true" @select-confirm="onTagSelected">
</tag-mng> </tag-mng>
</el-drawer> </el-drawer>
<el-dialog title="上级需求详情" :visible.sync="pmenuFormVisible" :with-header="false" width="90%" top="20px" append-to-body :close-on-click-modal="false" >
<xm-menu-edit v-if="pmenuFormVisible" :reload="true" :xm-menu="{menuId:editForm.pmenuId}" :sel-project="selProject" :visible="pmenuFormVisible" @cancel="pmenuFormVisible=false"></xm-menu-edit>
</el-dialog>
</section> </section>
</template> </template>
@ -375,7 +387,9 @@
}, },
tagSelectVisible:false, tagSelectVisible:false,
subWorkItemNum:-1, subWorkItemNum:-1,
activateTabPaneName:'4'
activateTabPaneName:'4',
pmenuFormVisible:false,
/**begin 在下面加自定义属性,记得补上面的一个逗号**/ /**begin 在下面加自定义属性,记得补上面的一个逗号**/
/**end 在上面加自定义属性**/ /**end 在上面加自定义属性**/
@ -388,6 +402,12 @@
// @cancel="editFormVisible=false" // @cancel="editFormVisible=false"
handleCancel:function(){ handleCancel:function(){
this.$emit('cancel'); this.$emit('cancel');
},
showPmenu(){
},
changePmenu(){
}, },
//XmMenu @submit="afterAddSubmit" //XmMenu @submit="afterAddSubmit"
editSubmit: function () { editSubmit: function () {
@ -564,6 +584,7 @@
XmMyDoFocus, XmMyDoFocus,
ArchiveEdit, ArchiveEdit,
XmTestCaseMng,MdpSelectUserXm, XmTestCaseMng,MdpSelectUserXm,
'xm-menu-edit':()=>import("./XmMenuDetail")
}, },
mounted() { mounted() {

Loading…
Cancel
Save