能力上架后台审批

This commit is contained in:
851673013@qq.com 2022-07-13 15:53:30 +08:00
parent 22f1091532
commit e832b3e1d5
3 changed files with 91 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="wrapper">22222222222222</div> <div class="wrapper"></div>
</template> </template>
<script> <script>

View File

@ -3,13 +3,18 @@
<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>
<el-form-item <div v-for="itemson in item.children" :key="itemson.name">
v-for="itemson in item.children[0].children" <div class="dataTitleSon">{{ itemson.name }}</div>
:key="itemson.name" <div class="dataContent">
:label="itemson.name" <el-form-item
> v-for="itemsonson in itemson.children"
<el-input v-model="itemson.note1"></el-input> :key="itemsonson.name"
</el-form-item> :label="itemsonson.name"
>
<el-input v-model="itemsonson.note1"></el-input>
</el-form-item>
</div>
</div>
</div> </div>
</el-form> </el-form>
</div> </div>
@ -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>