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