|
@@ -226,8 +226,8 @@ export default {
|
|
|
this.requireId = url1.split('/')
|
|
|
var ss = {}
|
|
|
configShowRequirementVersionEnum({ bizId: Number(localStorage.getItem('bizId')) }).then(res => {
|
|
|
- res.data.belongingRequire.map(item => {
|
|
|
- item.code === Number(this.requireId[7]) ? ss = item : ''
|
|
|
+ res.data.map(item => {
|
|
|
+ item.id === Number(this.requireId[7]) ? ss = item : ''
|
|
|
})
|
|
|
this.dialogFormVisible = true
|
|
|
var that = this
|
|
@@ -238,7 +238,7 @@ export default {
|
|
|
that.$set(that.task_form, 'source', 2)
|
|
|
that.$set(that.task_form, 'notest', 0)
|
|
|
that.$set(that.task_form, 'followVersion', 2)
|
|
|
- that.$set(that.task_form, 'requireId', ss.code)
|
|
|
+ that.$set(that.task_form, 'requireId', ss.id)
|
|
|
that.$set(that.task_form, 'projectId', '')
|
|
|
that.$set(that.task_form, 'bizId', Number(localStorage.getItem('bizId')))
|
|
|
that.task_form.followVersion === 2 ? that.show_Client = false : ''
|