|
|
|
@ -22,7 +22,7 @@
|
|
|
|
|
@select="handleSelect"
|
|
|
|
|
class="input-with-select"
|
|
|
|
|
>
|
|
|
|
|
<template slot="append" class="work-btn">搜索</template>
|
|
|
|
|
<el-button slot="append" class="work-btn" @click="searchBtn">搜索</el-button>
|
|
|
|
|
</el-autocomplete>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -226,7 +226,12 @@ export default {
|
|
|
|
|
let results = []
|
|
|
|
|
if(this.checked == 0) {
|
|
|
|
|
workSearch({enterpriseInfo: queryString}).then(res => {
|
|
|
|
|
console.log(res,"res");
|
|
|
|
|
res.data.forEach(item => {
|
|
|
|
|
results.push({
|
|
|
|
|
value: item.enterpriseName,
|
|
|
|
|
id: item.id
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
} else if(this.checked == 1) {
|
|
|
|
|
selectAll({ name: queryString }).then(res => {
|
|
|
|
@ -253,6 +258,22 @@ export default {
|
|
|
|
|
handleSelect(item) {
|
|
|
|
|
console.log(item);
|
|
|
|
|
},
|
|
|
|
|
searchBtn(){
|
|
|
|
|
console.log(this.search);
|
|
|
|
|
if(this.checked == 0) {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: 'Enterpriselibrary',
|
|
|
|
|
params: { enterpriseName: this.search }
|
|
|
|
|
})
|
|
|
|
|
} else if(this.checked == 1) {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: 'Project',
|
|
|
|
|
params: { projectName: this.search }
|
|
|
|
|
})
|
|
|
|
|
} else if(this.checked == 2) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleFileUpload(params) {
|
|
|
|
|
const file = params.file
|
|
|
|
|
let form = new FormData()
|
|
|
|
|