知识库: 所属产品线更改为下拉(跟归属单位一样)
This commit is contained in:
parent
b6e56cc0ea
commit
417c89b9be
|
@ -357,6 +357,9 @@ export default {
|
|||
case '联系方式':
|
||||
this.submitFrom.deptPhone = val.note1
|
||||
break;
|
||||
case '所属产品线':
|
||||
this.submitFrom.deptId = val.note1
|
||||
break
|
||||
default:
|
||||
if (
|
||||
val.type !== 'image' &&
|
||||
|
@ -479,9 +482,9 @@ export default {
|
|||
case '联系方式':
|
||||
data.note1 = item.deptPhone
|
||||
break
|
||||
// case '归属部门':
|
||||
// data.note1 = item.deptId
|
||||
// break
|
||||
case '所属产品线':
|
||||
data.note1 = item.deptId
|
||||
break
|
||||
default:
|
||||
// eslint-disable-next-line no-case-declarations
|
||||
const obj1 = item.infoList.filter(
|
||||
|
|
|
@ -19,7 +19,7 @@ js:
|
|||
<a-input v-if="type == 'input'" v-model:value="data.note1" :placeholder="'请输入' + name" @change="changeIiem(name,data.note1)"/>
|
||||
<!-- 下拉框 -->
|
||||
<el-select
|
||||
v-else-if="(type === 'select' && name !== '归属部门' && name !== '使用方式') || type == 'radio'"
|
||||
v-else-if="(type === 'select' && name !== '归属部门' && name !== '使用方式' && name !== '所属产品线') || type == 'radio'"
|
||||
style="width: 240px"
|
||||
v-model:value="data.note1"
|
||||
@change="changeIiem(name,data.note1)"
|
||||
|
@ -32,8 +32,8 @@ js:
|
|||
</el-option>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-else-if="(type === 'select' && name === '归属部门')"
|
||||
style="width: 240px"
|
||||
v-else-if="(type === 'select' && (name === '归属部门' || name === '所属产品线'))"
|
||||
style="width:240px"
|
||||
v-model:value="data.note1"
|
||||
filterable
|
||||
placeholder="请输入关键词"
|
||||
|
@ -137,7 +137,7 @@ export default {
|
|||
this.options = dataList
|
||||
})
|
||||
.catch(() => {})
|
||||
} else if (this.data.name === '归属部门') {
|
||||
} else if (this.data.name === '归属部门' || this.data.name === '所属产品线') {
|
||||
this.$http.get('/sys/dept/all').then(res => {
|
||||
const dataList = []
|
||||
res.data.data.forEach((element) => {
|
||||
|
@ -179,7 +179,7 @@ export default {
|
|||
})
|
||||
}
|
||||
// })
|
||||
}
|
||||
}
|
||||
},
|
||||
chekBoxChange (list) {
|
||||
let str = ''
|
||||
|
|
Loading…
Reference in New Issue