Merge branch 'hi-ucs-dev' of http://15.2.21.221:3000/wuhongjian/hi-ucs into hi-ucs-dev
# Conflicts: # front/src/views/personalCenter/components/MyBrowse.vue
This commit is contained in:
commit
1740d6c06a
|
@ -19,7 +19,7 @@ js:
|
||||||
<a-input v-if="type == 'input'" v-model:value="data.note1" :placeholder="'请输入' + name" />
|
<a-input v-if="type == 'input'" v-model:value="data.note1" :placeholder="'请输入' + name" />
|
||||||
<!-- 下拉框 -->
|
<!-- 下拉框 -->
|
||||||
<el-select
|
<el-select
|
||||||
v-else-if="(type === 'select' && name !== '归属部门') || type == 'radio'"
|
v-else-if="(type === 'select' && name !== '归属部门' && name !== '使用方式') || type == 'radio'"
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
v-model:value="data.note1"
|
v-model:value="data.note1"
|
||||||
:placeholder="'请选择' + name">
|
:placeholder="'请选择' + name">
|
||||||
|
@ -45,6 +45,20 @@ js:
|
||||||
{{ itemSelect.name }}
|
{{ itemSelect.name }}
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
<el-select
|
||||||
|
v-else-if="(type === 'select' && name === '使用方式')"
|
||||||
|
style="width: 240px"
|
||||||
|
v-model:value="data.note1"
|
||||||
|
:placeholder="'请选择' + name"
|
||||||
|
@change="showTypeClick"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
:value="itemSelect.dictLabel"
|
||||||
|
v-for="(itemSelect, indexSelect) in options"
|
||||||
|
:key="indexSelect">
|
||||||
|
{{ itemSelect.dictLabel }}
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
<!-- 多选 -->
|
<!-- 多选 -->
|
||||||
<div
|
<div
|
||||||
v-else-if="type === 'checkBox'"
|
v-else-if="type === 'checkBox'"
|
||||||
|
@ -89,7 +103,8 @@ export default {
|
||||||
valueCheckBox: [],
|
valueCheckBox: [],
|
||||||
// 单选数据
|
// 单选数据
|
||||||
regionSelect: '',
|
regionSelect: '',
|
||||||
showKey: 0
|
showKey: 0,
|
||||||
|
showType: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -157,6 +172,11 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.data.note1 = str
|
this.data.note1 = str
|
||||||
|
},
|
||||||
|
showTypeClick (e) {
|
||||||
|
this.showType = e
|
||||||
|
console.log(e)
|
||||||
|
this.$emit('show-type', this.showType)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
@ -172,6 +192,7 @@ export default {
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.selectOptions()
|
this.selectOptions()
|
||||||
|
this.showTypeClick('调用接口')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -11,7 +11,16 @@
|
||||||
<div v-for='child in parent.children' :key='child.id'>
|
<div v-for='child in parent.children' :key='child.id'>
|
||||||
<template v-if='judgmentType.filter(item => item.name==child.name).length === 0'>
|
<template v-if='judgmentType.filter(item => item.name==child.name).length === 0'>
|
||||||
<div class="top">{{child.name}}</div>
|
<div class="top">{{child.name}}</div>
|
||||||
<div v-for="item in child.children" :key="item.id" class='item' v-show="item.name != '来源应用' && item.name != '关联组件信息' && item.name != '技术文档'">
|
<div v-for="item in child.children" :key="item.id" class='item' v-show="(item.name != '来源应用' && item.name != '关联组件信息' && item.name != '技术文档') && !(
|
||||||
|
(showTypeName == '调用接口' && item.name == '平台地址') ||
|
||||||
|
(showTypeName == '调用接口' && item.name == 'SDK安装包') ||
|
||||||
|
(showTypeName == '平台对接' && item.name == 'SDK安装包') ||
|
||||||
|
(showTypeName == '平台对接' && item.name == '接口请求方式') ||
|
||||||
|
(showTypeName == '平台对接' && item.name == '服务接口') ||
|
||||||
|
(showTypeName == 'SDK' && item.name == '平台地址') ||
|
||||||
|
(showTypeName == 'SDK' && item.name == '接口请求方式') ||
|
||||||
|
(showTypeName == 'SDK' && item.name == '服务接口')
|
||||||
|
)">
|
||||||
<span >{{ item.name }}</span>
|
<span >{{ item.name }}</span>
|
||||||
<!-- <upload :list="[]" v-if="item.type == 'image'" type="图片" btnName="上传图片" :maxCount="1" :data="item"
|
<!-- <upload :list="[]" v-if="item.type == 'image'" type="图片" btnName="上传图片" :maxCount="1" :data="item"
|
||||||
tip="支持图片类型,大小不超过100M"></upload> -->
|
tip="支持图片类型,大小不超过100M"></upload> -->
|
||||||
|
@ -23,10 +32,12 @@
|
||||||
tip="支持文件类型,大小不超过100M"></upload>
|
tip="支持文件类型,大小不超过100M"></upload>
|
||||||
<upload @changeInfoList='changeInfoList' :title='item.name' accept='.mp4' :list="item" v-else-if="item.type == 'video'" type="视频" btnName="上传视频" :maxCount="1" :dataList="item"
|
<upload @changeInfoList='changeInfoList' :title='item.name' accept='.mp4' :list="item" v-else-if="item.type == 'video'" type="视频" btnName="上传视频" :maxCount="1" :dataList="item"
|
||||||
tip="支持视频类型,大小不超过100M"></upload>
|
tip="支持视频类型,大小不超过100M"></upload>
|
||||||
|
<upload @changeInfoList='changeInfoList' :title='item.name' accept='.zip' :list="item" v-else-if="item.type == 'package'" type="安装包" btnName="上传安装包" :maxCount="1" :dataList="item"
|
||||||
|
tip="支持.zip类型,大小不超过100M"></upload>
|
||||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'AbilityType'" type="disabled" :data="item" :name="item.name" :value="typeInput"></input-select-checkbox>
|
<input-select-checkbox :list="[]" v-else-if="item.type == 'AbilityType'" type="disabled" :data="item" :name="item.name" :value="typeInput"></input-select-checkbox>
|
||||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'ComponentType'" type="disabled" :data="item" :name="item.name" :value="type"></input-select-checkbox>
|
<input-select-checkbox :list="[]" v-else-if="item.type == 'ComponentType'" type="disabled" :data="item" :name="item.name" :value="type"></input-select-checkbox>
|
||||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'input'" type="input" :data="item" :name="item.name"></input-select-checkbox>
|
<input-select-checkbox :list="[]" v-else-if="item.type == 'input'" type="input" :data="item" :name="item.name"></input-select-checkbox>
|
||||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'select'" type="select" :data="item" :name="item.name" :options="item.options"></input-select-checkbox>
|
<input-select-checkbox :list="[]" v-else-if="item.type == 'select'" type="select" :data="item" :name="item.name" :options="item.options" @show-type="showType"></input-select-checkbox>
|
||||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'checkBox'" type="checkBox" :data="item" :name="item.name" :options="item.options"></input-select-checkbox>
|
<input-select-checkbox :list="[]" v-else-if="item.type == 'checkBox'" type="checkBox" :data="item" :name="item.name" :options="item.options"></input-select-checkbox>
|
||||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'radio'" type="radio" :data="item" :name="item.name" :options="item.options"></input-select-checkbox>
|
<input-select-checkbox :list="[]" v-else-if="item.type == 'radio'" type="radio" :data="item" :name="item.name" :options="item.options"></input-select-checkbox>
|
||||||
<input-select-checkbox :list="[]" v-else-if="item.type == 'textArea'" type="textArea" :data="item" :name="item.name"></input-select-checkbox>
|
<input-select-checkbox :list="[]" v-else-if="item.type == 'textArea'" type="textArea" :data="item" :name="item.name"></input-select-checkbox>
|
||||||
|
@ -163,15 +174,39 @@ export default {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
showTypeName: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted () {
|
||||||
|
this.defaultContent()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeInfoList (obj) {
|
changeInfoList (obj) {
|
||||||
this.$emit('changeInfoList', obj)
|
this.$emit('changeInfoList', obj)
|
||||||
},
|
},
|
||||||
goToRichText () {
|
goToRichText () {
|
||||||
|
|
||||||
|
},
|
||||||
|
// 默认显示--调用接口
|
||||||
|
defaultContent () {
|
||||||
|
this.putOnTheShelfList.forEach((item) => {
|
||||||
|
if (item.name === '部署与使用') {
|
||||||
|
item.children.forEach((itemChild) => {
|
||||||
|
if (itemChild.name === '使用方式') {
|
||||||
|
itemChild.children.forEach((itemChilds) => {
|
||||||
|
if (itemChilds.name === '使用方式') {
|
||||||
|
itemChilds.note1 = '调用接口'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
showType (data) {
|
||||||
|
this.showTypeName = data
|
||||||
|
console.log(data, this.showTypeName, '传过来的showType')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -600,6 +600,7 @@
|
||||||
const titleName = ref('关联应用')
|
const titleName = ref('关联应用')
|
||||||
|
|
||||||
const sourceClick = () => {
|
const sourceClick = () => {
|
||||||
|
mockData.value = []
|
||||||
visibleAssociatedApplication.value = true
|
visibleAssociatedApplication.value = true
|
||||||
queryApplicationRelByResourceId({
|
queryApplicationRelByResourceId({
|
||||||
referenceId: 0,
|
referenceId: 0,
|
||||||
|
@ -619,7 +620,7 @@
|
||||||
const componentsClick = () => {
|
const componentsClick = () => {
|
||||||
titles.value = ['未关联的组件名称', '已关联的组件名称']
|
titles.value = ['未关联的组件名称', '已关联的组件名称']
|
||||||
titleName.value = '关联组件'
|
titleName.value = '关联组件'
|
||||||
|
mockData.value = []
|
||||||
visibleAssociatedApplication.value = true
|
visibleAssociatedApplication.value = true
|
||||||
queryResourceRelByKeyId({
|
queryResourceRelByKeyId({
|
||||||
keyId: 0,
|
keyId: 0,
|
||||||
|
|
|
@ -23,7 +23,13 @@
|
||||||
<div class="title">审批详情</div>
|
<div class="title">审批详情</div>
|
||||||
<template v-for="item in dataSource.data" :key="item">
|
<template v-for="item in dataSource.data" :key="item">
|
||||||
<div class="oddNumbers">子单号:{{ item[0] }}</div>
|
<div class="oddNumbers">子单号:{{ item[0] }}</div>
|
||||||
<a-table :dataSource="item[1]" :columns="columns" />
|
<a-table :dataSource="item[1]" :columns="columns">
|
||||||
|
<template #bodyCell="{ column, text }">
|
||||||
|
<template v-if="column.dataIndex === 'name'">
|
||||||
|
<a>{{ text }}</a>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</a-table>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -183,14 +189,12 @@
|
||||||
} else {
|
} else {
|
||||||
shifoushizujian.value = false
|
shifoushizujian.value = false
|
||||||
console.log(res.data.data.resourceDTO)
|
console.log(res.data.data.resourceDTO)
|
||||||
debugger
|
|
||||||
res.data.data.resourceDTO.infoList.forEach((val) => {
|
res.data.data.resourceDTO.infoList.forEach((val) => {
|
||||||
console.log(val, '111111111111111111111111')
|
console.log(val, '111111111111111111111111')
|
||||||
if (val.attrValue === '智能算法') {
|
if (val.attrValue === '智能算法') {
|
||||||
nameNotShow.value = true
|
nameNotShow.value = true
|
||||||
algorithmShow.value = false
|
algorithmShow.value = false
|
||||||
console.log(nameNotShow.value, algorithmShow.value, 'wowowo')
|
console.log(nameNotShow.value, algorithmShow.value, 'wowowo')
|
||||||
debugger
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -268,6 +272,13 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
:deep(.ant-table-tbody) > tr > .ant-table-cell:nth-child(5) {
|
||||||
|
width: 110px;
|
||||||
|
display: inline-block;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
.oddNumbers {
|
.oddNumbers {
|
||||||
margin-bottom: 0.05rem;
|
margin-bottom: 0.05rem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -409,6 +409,13 @@
|
||||||
span {
|
span {
|
||||||
margin-right: 0.3rem;
|
margin-right: 0.3rem;
|
||||||
}
|
}
|
||||||
|
.name {
|
||||||
|
max-width: 11rem;
|
||||||
|
display: inline-block;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ant-list::-webkit-scrollbar {
|
.ant-list::-webkit-scrollbar {
|
||||||
|
|
Loading…
Reference in New Issue