[add] 项目
This commit is contained in:
@@ -230,6 +230,7 @@
|
||||
<a-col :span="24" >
|
||||
<a-tabs>
|
||||
<a-tab-pane v-for='(item,index) in contentList' :tab="item.textVal" :key="index + 1">
|
||||
<!-- <a-form-model :model="formInline" class="formAdd" :rules="rulesItem" ref="ruleFormItem" key='ruleFormItem'>-->
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
@@ -277,6 +278,7 @@
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<!-- </a-form-model>-->
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</a-col>
|
||||
@@ -302,7 +304,18 @@ export default {
|
||||
uploadFile,
|
||||
PersonnelSelection
|
||||
},
|
||||
props: ['url'],
|
||||
props: {
|
||||
url: {
|
||||
type: Object,
|
||||
default: {},
|
||||
require: true
|
||||
},
|
||||
certCategoryParamsInfoEOListItem: {
|
||||
type: Array,
|
||||
default: [],
|
||||
require: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
controlType: [ // 控件类型
|
||||
@@ -457,6 +470,12 @@ export default {
|
||||
this.title = '编辑'
|
||||
this.$nextTick(() => {
|
||||
this.formInline = value
|
||||
this.contentList = this.certCategoryParamsInfoEOListItem
|
||||
console.log(this.contentList,'this.contentListthis.contentListthis.contentList')
|
||||
this.contentList.map((item,index) => {
|
||||
item.textVal = item.certCategory_dictText
|
||||
})
|
||||
console.log(this.contentList,'333333333333')
|
||||
})
|
||||
},
|
||||
handleCancel() {
|
||||
@@ -468,6 +487,8 @@ export default {
|
||||
if (res) {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
// this.$refs.ruleFormItem.validate(valid => {
|
||||
// if (valid) {
|
||||
let url = ''
|
||||
let Action
|
||||
this.formInline.paramsTemplateId = this.$route.query.id
|
||||
@@ -498,6 +519,8 @@ export default {
|
||||
this.confirmLoading = false
|
||||
}
|
||||
})
|
||||
// }
|
||||
// })
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
@showSizeChange="SizeChange"
|
||||
/>
|
||||
</div>
|
||||
<addModel :url="url" ref="addModelRef" @addModelList="addModelList"/>
|
||||
<addModel :url="url" ref="addModelRef" @addModelList="addModelList" :certCategoryParamsInfoEOListItem='certCategoryParamsInfoEOList'/>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
@@ -116,6 +116,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
certCategoryParamsInfoEOList: [],
|
||||
orderBy: '1',
|
||||
selectedRowKeysArray: '',
|
||||
token:Vue.ls.get(ACCESS_TOKEN),
|
||||
@@ -296,6 +297,7 @@ export default {
|
||||
let _this = this
|
||||
getAction(_this.url.queryById, { id: item.id }).then((res) => {
|
||||
if (res.success) {
|
||||
this.certCategoryParamsInfoEOList = res.result.certCategoryParamsInfoEOList
|
||||
this.$refs.addModelRef.editModel(JSON.parse(JSON.stringify(res.result)))
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user