Commit 5f88d622 authored by WangRui's avatar WangRui

Revert "[feature]关联项目列表用户搜索查询调整"

This reverts commit 4bec0907.
parent 4bec0907
......@@ -3,7 +3,7 @@
<NavBar title="项目查询" left-arrow @click-left="goBack" />
<section class="list">
<Search v-model="value" placeholder="请输入项目编号/机型/代理店" @search="onSearch" />
<Search v-model="value" placeholder="请输入项目编号/机型/代理店" />
<Notice detail="只对已关联的项目进行查询" />
<PullRefresh v-model="refreshing" @refresh="getList" class="scroll">
<List :finished="finished" finished-text="没有更多了" @load="loadApproval">
......@@ -38,19 +38,13 @@ const formStore = useProjectList()
let refreshing = $ref(true);
const finished = $ref(true);
const value = $ref('');
let listValue = $ref([]);
const onSearch = (value) => {
const param = {
query: value
}
getList(param)
}
const getList = async (param) => {
const getList = async () => {
// 下拉重置参数,重新加载
let res = await api.getProjectList({userId: window.localStorage.getItem('userId'), ...param});
let res = await api.getProjectList({userId: window.localStorage.getItem('userId')});
let list = []
if(res.success){
list = res.rows.map(item => ({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment