能力上架后台审批
This commit is contained in:
parent
22f1091532
commit
e832b3e1d5
Binary file not shown.
After Width: | Height: | Size: 102 B |
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="wrapper">22222222222222</div>
|
<div class="wrapper"></div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -3,14 +3,19 @@
|
||||||
<el-form :model="dataView">
|
<el-form :model="dataView">
|
||||||
<div v-for="(item, index) in dataView.children" :key="item">
|
<div v-for="(item, index) in dataView.children" :key="item">
|
||||||
<div class="dataTitle">{{ item.name }}</div>
|
<div class="dataTitle">{{ item.name }}</div>
|
||||||
|
<div v-for="itemson in item.children" :key="itemson.name">
|
||||||
|
<div class="dataTitleSon">{{ itemson.name }}</div>
|
||||||
|
<div class="dataContent">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-for="itemson in item.children[0].children"
|
v-for="itemsonson in itemson.children"
|
||||||
:key="itemson.name"
|
:key="itemsonson.name"
|
||||||
:label="itemson.name"
|
:label="itemsonson.name"
|
||||||
>
|
>
|
||||||
<el-input v-model="itemson.note1"></el-input>
|
<el-input v-model="itemsonson.note1"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -44,6 +49,54 @@ export default {
|
||||||
this.dataView = val.filter(
|
this.dataView = val.filter(
|
||||||
(item) => item.name === this.dataForm.type + '一'
|
(item) => item.name === this.dataForm.type + '一'
|
||||||
)[0]
|
)[0]
|
||||||
|
console.log(this.dataView)
|
||||||
|
console.log(this.dataForm)
|
||||||
|
// 应用描述
|
||||||
|
this.dataView.children[0].children[0].children[4].note1 =
|
||||||
|
this.dataForm.description
|
||||||
|
// 应用名称
|
||||||
|
this.dataView.children[0].children[0].children[0].note1 =
|
||||||
|
this.dataForm.name
|
||||||
|
this.dataForm.infoList.map((item, index) => {
|
||||||
|
this.dataView.children.map((itemView, indexView) => {
|
||||||
|
// console.log('itemView', itemView)
|
||||||
|
itemView.children.map((itemViewSon, indexViewSon) => {
|
||||||
|
// console.log('itemViewSon', itemViewSon)
|
||||||
|
itemViewSon.children.map((itemSon, indexSon) => {
|
||||||
|
// console.log('itemSon', itemSon)
|
||||||
|
if (itemSon.name.indexOf('描述') != -1) {
|
||||||
|
this.dataView.children[indexView].children[0].children[
|
||||||
|
indexSon
|
||||||
|
].note1 = this.dataForm.description
|
||||||
|
} else if (itemSon.name.indexOf('名称') != -1) {
|
||||||
|
this.dataView.children[indexView].children[0].children[
|
||||||
|
indexSon
|
||||||
|
].note1 = this.dataForm.name
|
||||||
|
} else if (itemSon.name.indexOf('共享条件') != -1) {
|
||||||
|
this.dataView.children[indexView].children[0].children[
|
||||||
|
indexSon
|
||||||
|
].note1 = this.dataForm.shareCondition
|
||||||
|
} else if (itemSon.name.indexOf('共享方式') != -1) {
|
||||||
|
this.dataView.children[indexView].children[0].children[
|
||||||
|
indexSon
|
||||||
|
].note1 = this.dataForm.shareMode
|
||||||
|
} else if (itemSon.name.indexOf('共享类型') != -1) {
|
||||||
|
this.dataView.children[indexView].children[0].children[
|
||||||
|
indexSon
|
||||||
|
].note1 = this.dataForm.shareType
|
||||||
|
} else if (itemSon.name.indexOf('能力类型') != -1) {
|
||||||
|
this.dataView.children[indexView].children[0].children[
|
||||||
|
indexSon
|
||||||
|
].note1 = this.dataForm.type
|
||||||
|
} else if (itemSon.name === item.attrType) {
|
||||||
|
this.dataView.children[indexView].children[
|
||||||
|
indexViewSon
|
||||||
|
].children[indexSon].note1 = item.attrValue
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
const componentType = this.dataForm.infoList.filter(
|
const componentType = this.dataForm.infoList.filter(
|
||||||
(item) => item.attrType === '组件类型'
|
(item) => item.attrType === '组件类型'
|
||||||
|
@ -93,6 +146,10 @@ export default {
|
||||||
this.dataView.children[indexView].children[0].children[
|
this.dataView.children[indexView].children[0].children[
|
||||||
indexSon
|
indexSon
|
||||||
].note1 = this.dataForm.deptPhone
|
].note1 = this.dataForm.deptPhone
|
||||||
|
} else if (itemSon.name.indexOf('接口请求方式') != -1) {
|
||||||
|
this.dataView.children[indexView].children[0].children[
|
||||||
|
indexSon
|
||||||
|
].note1 = this.dataForm.apiMethodType
|
||||||
} else if (itemSon.name === item.attrType) {
|
} else if (itemSon.name === item.attrType) {
|
||||||
this.dataView.children[indexView].children[
|
this.dataView.children[indexView].children[
|
||||||
indexViewSon
|
indexViewSon
|
||||||
|
@ -161,5 +218,31 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.wrapper {
|
.wrapper {
|
||||||
|
.dataTitle {
|
||||||
|
text-align: center;
|
||||||
|
color: #333333;
|
||||||
|
font-size: 22px;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
.dataTitleSon {
|
||||||
|
padding-left: 30px;
|
||||||
|
color: #333333;
|
||||||
|
font-size: 22px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
background: url('~@/assets/img/sj-jx.png') no-repeat;
|
||||||
|
background-position-x: 15px;
|
||||||
|
}
|
||||||
|
.dataContent {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 33%);
|
||||||
|
}
|
||||||
|
::v-deep .el-form {
|
||||||
|
}
|
||||||
|
::v-deep .el-form-item__content {
|
||||||
|
display: inline-block;
|
||||||
|
input {
|
||||||
|
width: 400px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue