Commit 7e92eab2 authored by ztf's avatar ztf

合并更新最新4.1

parent 28adbd42
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
latestOptions: { // 版本选择 latestOptions: { // 版本选择
type: Array, type: Array,
default: () => [ default: () => [
{ value: 'LATEST', label: '最新' }, { value: 'ACCURATE_LATEST', label: '最新' },
{ value: 'VERSION_NEWEST', label: '修订' } { value: 'VERSION_NEWEST', label: '修订' }
] ]
}, },
...@@ -520,7 +520,8 @@ export default { ...@@ -520,7 +520,8 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
if (this.associationFormRelationObj && this.associationFormRelationObj.length === 1) { if (this.associationFormRelationObj && this.associationFormRelationObj.length === 1) {
this.getOptionsDataFun(this.defaultData.modelName) this.getOptionsDataFun(this.defaultData.modelName)
this.defaultData.latest = this.componentProp.setShowVersion ? this.componentProp.setShowVersion : 'LATEST' // this.defaultData.latest = this.componentProp.setShowVersion ? this.componentProp.setShowVersion : 'LATEST'
this.defaultData.latest = this.componentProp.setShowVersion ? this.componentProp.setShowVersion : 'ACCURATE_LATEST'
this.searchEvent() this.searchEvent()
} }
}) })
......
...@@ -5,7 +5,20 @@ ...@@ -5,7 +5,20 @@
*/ */
<template> <template>
<span class="link-to-page-com"> <span class="link-to-page-com">
<span :class="{'link': allProp.component.toPageType !== 'detailPage' || (allProp.component.toPageType === 'detailPage' && passParameter)}" @click.stop="clickLink">{{ value }}</span> <span
:class="{'link': allProp.component.toPageType !== 'detailPage' || (allProp.component.toPageType === 'detailPage' && passParameter)}"
@click.stop="clickLink"
>
<span v-if="itemObj && itemObj.key === 'state'">
{{ $utils.getParamsFromLists(dictOptions['state'], 'value', value, 'label') }}
</span>
<span v-else-if="itemObj && itemObj.fildProp && itemObj.fildProp.type=== 'DictDataVO'">
{{ $utils.getParamsFromLists(dictOptions[itemObj.key], 'value', value, 'label') || value }}
</span>
<span v-else>
{{ value }}
</span>
</span>
<dee-dialog <dee-dialog
v-if="selfDialogShow" v-if="selfDialogShow"
:dialog-visible="selfDialogShow" :dialog-visible="selfDialogShow"
...@@ -87,6 +100,10 @@ export default { ...@@ -87,6 +100,10 @@ export default {
type: Object, type: Object,
default: () => {} default: () => {}
}, },
dictOptions: {
type: Object,
default: () => { return {} }
},
value: { value: {
type: [String, Number], type: [String, Number],
default: () => {} default: () => {}
......
...@@ -83,6 +83,11 @@ export default { ...@@ -83,6 +83,11 @@ export default {
observer: null observer: null
} }
}, },
computed: {
bindKey() {
return this.$utils._get(this.item, 'component.bindKey') || this.initBindKey || 'id'
}
},
watch: { watch: {
value: { value: {
immediate: true, immediate: true,
...@@ -184,9 +189,9 @@ export default { ...@@ -184,9 +189,9 @@ export default {
'children': [], 'children': [],
'items': [ 'items': [
{ {
'fieldName': 'targetId', 'fieldName': 'id',
'operator': 'EQ', 'operator': 'EQ',
'value': localStorage.getItem('userId') 'value': localStorage.getItem('org')
} }
], ],
'operator': 'AND' 'operator': 'AND'
...@@ -202,10 +207,10 @@ export default { ...@@ -202,10 +207,10 @@ export default {
const res = await this.$api.searchApi('DxOrganization', params) const res = await this.$api.searchApi('DxOrganization', params)
const items = this.$utils._get(res, 'items.content') || [] const items = this.$utils._get(res, 'items.content') || []
if (items.length > 0) { if (items.length > 0) {
const row = items.find(m => !!m.source) const row = items[0]
if (row) { if (row) {
this.selectedOrgList = [row.source] this.selectedOrgList = [row]
this.checkedData = [row.source] this.checkedData = [row]
this.onSave() this.onSave()
} }
} }
......
...@@ -115,12 +115,16 @@ const actions = { ...@@ -115,12 +115,16 @@ const actions = {
const subMenu = findPlatformRootEvent(state.permMenus, model.pageInfo, model.appId) const subMenu = findPlatformRootEvent(state.permMenus, model.pageInfo, model.appId)
commit('SET_ACTIVE_MODEL', subMenu) commit('SET_ACTIVE_MODEL', subMenu)
const findPlatformMenu = state.menusData.find(el => { const findPlatformMenu = state.menusData.find(el => {
return el.menuRootAppId === findModel.id return el.menuRootAppId === findModel.id && el.children && el.children.length
})
const findSubMenu = findPlatformMenu.children.find(el => {
return el.id === subMenu.id
}) })
commit('UPDATE_MENU', findSubMenu && findSubMenu.children ? findSubMenu.children : []) if (findPlatformMenu) {
const findSubMenu = findPlatformMenu.children.find(el => {
return el.id === subMenu.id
})
commit('UPDATE_MENU', findSubMenu && findSubMenu.children ? findSubMenu.children : [])
} else {
commit('UPDATE_MENU', [])
}
} else { } else {
commit('SET_ACTIVE_MODEL', findModel) commit('SET_ACTIVE_MODEL', findModel)
const findMenus = state.menusData.find(el => { const findMenus = state.menusData.find(el => {
......
...@@ -120,7 +120,8 @@ export default { ...@@ -120,7 +120,8 @@ export default {
}, },
mapHeadType2EditComp(row) { mapHeadType2EditComp(row) {
let component = null let component = null
const componentConfig = this.editComponentConfig[this.headType2EditComponent[row.tableHeadType]] const componentConfig = JSON.parse(JSON.stringify(this.editComponentConfig[this.headType2EditComponent[row.tableHeadType]]))
// const componentConfig = this.editComponentConfig[this.headType2EditComponent[row.tableHeadType]]
// 字典列传值 // 字典列传值
if (row.tableHeadType === 'DictColumn') { if (row.tableHeadType === 'DictColumn') {
this.mergeConfig(componentConfig, { 'optionsdic': row.dictType }) this.mergeConfig(componentConfig, { 'optionsdic': row.dictType })
......
...@@ -107,7 +107,8 @@ export default { ...@@ -107,7 +107,8 @@ export default {
}, },
mapHeadType2EditComp(row) { mapHeadType2EditComp(row) {
let component = null let component = null
const componentConfig = this.editComponentConfig[this.headType2EditComponent[row.tableHeadType]] // const componentConfig = this.editComponentConfig[this.headType2EditComponent[row.tableHeadType]]
const componentConfig = JSON.parse(JSON.stringify(this.editComponentConfig[this.headType2EditComponent[row.tableHeadType]]))
// 字典列传值 // 字典列传值
if (row.tableHeadType === 'DictColumn') { if (row.tableHeadType === 'DictColumn') {
this.mergeConfig(componentConfig, { 'optionsdic': row.dictType }) this.mergeConfig(componentConfig, { 'optionsdic': row.dictType })
......
...@@ -84,12 +84,6 @@ ...@@ -84,12 +84,6 @@
:form="ExtPlanReplyLinkform" :form="ExtPlanReplyLinkform"
@on-submit="toSubmitExtPlanReply" @on-submit="toSubmitExtPlanReply"
/> />
<!-- :form="ExtPlanReplyLinkform" -->
<!-- <div class="ExtPlanReplyLink-submitBTN">
<el-button type="primary" @click="ExtPlanReplyLinkform">保存</el-button>
</div> -->
</div> </div>
<div v-if="basicData && basicData.basicInfo && !basicData.basicInfo.forwardFlag && (!isCheckTaskState || (isCheckTaskState && basicData.basicInfo.state==='BE_RESOLVED' && !basicData.basicInfo.parentTaskId))"> <div v-if="basicData && basicData.basicInfo && !basicData.basicInfo.forwardFlag && (!isCheckTaskState || (isCheckTaskState && basicData.basicInfo.state==='BE_RESOLVED' && !basicData.basicInfo.parentTaskId))">
<div class="sub-title" style="padding-bottom:12px">任务处理</div> <div class="sub-title" style="padding-bottom:12px">任务处理</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment