加项目id字段
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<div class="info-item flexacenter">
|
||||
<div class="info-name">项目</div>
|
||||
<div class="flex1">
|
||||
<el-autocomplete v-model="info.project" :fetch-suggestions="queryProjectSearch" clearable class="inline-input w-50" placeholder="输入关键词,选择项目" :trigger-on-focus="false"></el-autocomplete>
|
||||
<el-autocomplete v-model="info.project" :fetch-suggestions="queryProjectSearch" clearable class="inline-input w-50" placeholder="输入关键词,选择项目" @select="handleProjectSelect" @input="handleProjectInput" :trigger-on-focus="false"></el-autocomplete>
|
||||
</div>
|
||||
<!-- <el-input class="flex1 input" placeholder="请输入" v-model="info.project"></el-input> -->
|
||||
</div>
|
||||
@@ -276,6 +276,15 @@ const queryProjectSearch = (queryString, cb) => {
|
||||
});
|
||||
};
|
||||
|
||||
// 选择专业
|
||||
const handleProjectSelect = (item) => {
|
||||
info.value["program_id"] = item["id"] || 0;
|
||||
};
|
||||
|
||||
const handleProjectInput = (value) => {
|
||||
info.value["program_id"] = 0;
|
||||
}
|
||||
|
||||
// 切换匿名状态
|
||||
const cutAnonymous = () => {
|
||||
info.value["anonymous"] = info.value["anonymous"] == 0 ? 1 : 0;
|
||||
|
||||
Reference in New Issue
Block a user