归属部门bug619

This commit is contained in:
851673013@qq.com 2022-07-19 15:54:23 +08:00
parent 00af09c4f0
commit 768645a94a
2 changed files with 31 additions and 3 deletions

View File

@ -27,7 +27,15 @@
:refData="refData" :refData="refData"
:dataFrom="dataFrom" :dataFrom="dataFrom"
:videoList="videoList" :videoList="videoList"
:externalField="['算法名称', '算法描述', '共享条件', '共享类型']" :externalField="[
'算法名称',
'算法描述',
'共享条件',
'共享类型',
'归属部门',
'部门联系人',
'部门联系人电话',
]"
></put-on-the-shelf> ></put-on-the-shelf>
<put-on-the-shelf <put-on-the-shelf
v-else-if="showView === '算法优势'" v-else-if="showView === '算法优势'"
@ -272,7 +280,7 @@
dataFrom.value.id = res.data.data dataFrom.value.id = res.data.data
getUser().then((res6) => { getUser().then((res6) => {
getUserInfo(res6.data.data.id).then((res2) => { getUserInfo(res6.data.data.id).then((res2) => {
const deptId = res2.data.data.deptId const deptId = dataFrom.value.deptId
const userId = res2.data.data.id const userId = res2.data.data.id
const userName = res2.data.data.realName const userName = res2.data.data.realName
const params = { const params = {
@ -283,6 +291,7 @@
resourceDTO: [dataFrom.value], resourceDTO: [dataFrom.value],
} }
shangjiaapply(params).then((res3) => { shangjiaapply(params).then((res3) => {
debugger
console.log('res3', res3) console.log('res3', res3)
if (res3.data.code == 0) { if (res3.data.code == 0) {
message.success('上架申请提交成功,请注意查看消息通知!') message.success('上架申请提交成功,请注意查看消息通知!')
@ -386,6 +395,16 @@
case '接口请求方式': case '接口请求方式':
dataFrom.value.apiMethodType = obj.attrValue dataFrom.value.apiMethodType = obj.attrValue
break break
case '归属部门':
dataFrom.value.deptId = obj.attrValue
dataFrom.value.deptName = obj.attrValueTwo.label
break
case '部门联系人':
dataFrom.value.deptContacts = obj.attrValue
break
case '部门联系人电话':
dataFrom.value.deptPhone = obj.attrValue
break
} }
// console.log('dataFrom.value', dataFrom.value) // console.log('dataFrom.value', dataFrom.value)
}) })

View File

@ -514,6 +514,9 @@
getUserInfo().then(({ data: res1 }) => { getUserInfo().then(({ data: res1 }) => {
console.log(res1.data) console.log(res1.data)
item.note1 = res1.data.deptId item.note1 = res1.data.deptId
item.note2 = item.options.filter(
(val) => val.value == item.note1
)[0]
console.log('默认部门=========>', item, res1.data) console.log('默认部门=========>', item, res1.data)
data.value.list.push(item) data.value.list.push(item)
}) })
@ -525,6 +528,7 @@
console.log(res1.data) console.log(res1.data)
item.note1 = res1.data.realName || '' item.note1 = res1.data.realName || ''
}) })
data.value.list.push(item)
} }
} else if (item.name === '部门联系人电话') { } else if (item.name === '部门联系人电话') {
if (!item.note1) { if (!item.note1) {
@ -532,6 +536,7 @@
console.log(res1.data) console.log(res1.data)
item.note1 = res1.data.mobile || '' item.note1 = res1.data.mobile || ''
}) })
data.value.list.push(item)
} }
} else { } else {
data.value.list.push(item) data.value.list.push(item)
@ -568,7 +573,6 @@
} }
mybus.on('showTextFunctionEmit', (show) => { mybus.on('showTextFunctionEmit', (show) => {
console.log('ssdcsd') console.log('ssdcsd')
debugger
showText.value = show showText.value = show
}) })
mybus.off('func') mybus.off('func')
@ -816,10 +820,15 @@
props.externalField && props.externalField &&
props.externalField.indexOf(val.name) > -1 props.externalField.indexOf(val.name) > -1
) { ) {
let note2 = {} //
if (val.options) {
note2 = val.options.filter((item) => item.value == val.note1)[0]
}
mybus.emit('chageDataFromDwon', { mybus.emit('chageDataFromDwon', {
attrType: val.name, attrType: val.name,
attrValue: val.note1, attrValue: val.note1,
delFlag: 0, delFlag: 0,
attrValueTwo: note2,
}) })
} else { } else {
if (val.name !== '应用领域' && val.name !== '发布端') { if (val.name !== '应用领域' && val.name !== '发布端') {