diff --git a/src/components/mdp-ui-ext/index.js b/src/components/mdp-ui-ext/index.js index e940cbd5..fc2d29ba 100644 --- a/src/components/mdp-ui-ext/index.js +++ b/src/components/mdp-ui-ext/index.js @@ -6,6 +6,8 @@ import MdpSelectImage from './mdp-select-image/Index.vue' import MdpImage from './mdp-image/Index.vue' import MdpSelectAtt from './mdp-select-att/Index.vue' import MdpMetaItem from './mdp-meta-item/Index.vue' +import MdpMetaForm from './mdp-meta-item/Form.vue' +import MdpDictOptions from './mdp-meta-option/Options.vue' import MdpMetaOption from './mdp-meta-option/Index.vue' import MdpExtInfos from './mdp-ext-infos/Index.vue' import MdpSelectCate from './mdp-select-cate/Index.vue' @@ -30,8 +32,10 @@ const compLists = { Vue.component('MdpImage', MdpImage) Vue.component('MdpSelectAtt', MdpSelectAtt) Vue.component('MdpMetaItem', MdpMetaItem) + Vue.component('MdpMetaForm', MdpMetaForm) Vue.component('MdpSelectMeta', MdpSelectMeta) Vue.component('MdpMetaOption', MdpMetaOption) + Vue.component('MdpDictOptions', MdpDictOptions) Vue.component('MdpExtInfos', MdpExtInfos) Vue.component('MdpCateTree', MdpCateTree) Vue.component('MdpSelectCate', MdpSelectCate) diff --git a/src/components/mdp-ui-ext/mdp-meta-item/Form.vue b/src/components/mdp-ui-ext/mdp-meta-item/Form.vue index 31f92cb3..a8131a20 100644 --- a/src/components/mdp-ui-ext/mdp-meta-item/Form.vue +++ b/src/components/mdp-ui-ext/mdp-meta-item/Form.vue @@ -110,8 +110,7 @@ - - 取消 + 提交 diff --git a/src/components/mdp-ui-ext/mdp-meta-option/Index.vue b/src/components/mdp-ui-ext/mdp-meta-option/Index.vue index 32979cfe..ad8cc681 100644 --- a/src/components/mdp-ui-ext/mdp-meta-option/Index.vue +++ b/src/components/mdp-ui-ext/mdp-meta-option/Index.vue @@ -14,11 +14,11 @@ @@ -120,7 +120,7 @@ style="float:right;" /> - + diff --git a/src/components/mdp-ui-ext/mdp-meta-option/Options.vue b/src/components/mdp-ui-ext/mdp-meta-option/Options.vue new file mode 100644 index 00000000..16fd30e6 --- /dev/null +++ b/src/components/mdp-ui-ext/mdp-meta-option/Options.vue @@ -0,0 +1,91 @@ + + + + + \ No newline at end of file diff --git a/src/components/mdp-ui/mdp-select/Index.vue b/src/components/mdp-ui/mdp-select/Index.vue index 422e987e..2d74d479 100644 --- a/src/components/mdp-ui/mdp-select/Index.vue +++ b/src/components/mdp-ui/mdp-select/Index.vue @@ -145,9 +145,9 @@ - + diff --git a/src/views/xm/pro/kpi/XmKpiDict.vue b/src/views/xm/pro/kpi/XmKpiDict.vue index 7035a42d..c9bd3208 100644 --- a/src/views/xm/pro/kpi/XmKpiDict.vue +++ b/src/views/xm/pro/kpi/XmKpiDict.vue @@ -17,36 +17,13 @@ export default { data() { return { load:{list:false}, - metaOption:null, - projectPhasePlansItem:null, } }, methods: { onRowClick(row){ - this.metaOption=null - this.metaOption=row - var item={itemCode:'projectPhasePlans'+row.id,categoryId:'all'}; - this.$mdp.listItem(item).then(res=>{ - var tips = res.tips - if(tips.isOk && res.data.length>0){ - this.projectPhasePlansItem=res.data[0] - }else{ - this.projectPhasePlansItem=null - } - }) }, createDict(){ - var row=this.metaOption - var item={id:'projectPhasePlans'+row.id, itemCode:'projectPhasePlans'+row.id,categoryId:'all',name:row.name}; - this.$mdp.addItem(item).then(res=>{ - var tips = res.tips - if(tips.isOk){ - this.$notify.success("创建字典成功") - this.projectPhasePlansItem=res.data - }else{ - this.$notify.error(tips.msg) - } - }) + }, }, diff --git a/src/views/xm/pro/xmCfg/XmDictList.vue b/src/views/xm/pro/xmCfg/XmDictList.vue new file mode 100644 index 00000000..3e167bad --- /dev/null +++ b/src/views/xm/pro/xmCfg/XmDictList.vue @@ -0,0 +1,91 @@ + + + + + \ No newline at end of file