Commit 1d0ee3f6 authored by “yiyousong”'s avatar “yiyousong”

pref:修改排队编号搜索

parent 903645f1
#生产环境 #生产环境
NODE_ENV = "production" NODE_ENV = "production"
VUE_APP_API_PHP_URL=zwfw_api/ VUE_APP_API_PHP_URL=/zwfw_api/
...@@ -117,9 +117,9 @@ export const getSkinList = (data) => { ...@@ -117,9 +117,9 @@ export const getSkinList = (data) => {
}; };
// 排队编号查询对应事项 // 排队编号查询对应事项
export const getMatterForFlownum = (params) => { export const getMatterForFlownum = (params) => {
let baseUrl = local.getLocal("serverUrl"); // let baseUrl = local.getLocal("serverUrl");
return request({ return request({
url: `${baseUrl}${PHP_URL}api/matter/matterForFlownum`, url: `${PHP_URL}api/matter/matterForFlownum`,
method: "get", method: "get",
params, params,
}); });
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
:key="'list' + item" :key="'list' + item"
></div> ></div>
</div> </div>
<el-empty class="empty" :image-size="200" v-else></el-empty> <YEmpty v-else width="400"></YEmpty>
<!-- 分页 --> <!-- 分页 -->
<div class="tac"> <div class="tac">
<el-pagination <el-pagination
...@@ -104,6 +104,7 @@ import Header from "@/components/Header.vue"; ...@@ -104,6 +104,7 @@ import Header from "@/components/Header.vue";
import PageTop from "@/components/PageTop.vue"; import PageTop from "@/components/PageTop.vue";
import SearchBox from "@/components/SearchBox.vue"; import SearchBox from "@/components/SearchBox.vue";
import MateralsList from "@/components/MateralsList.vue"; import MateralsList from "@/components/MateralsList.vue";
import YEmpty from "@/components/YEmpty.vue";
import { getSampleformMatterList, getMatterForFlownum } from "@/api"; import { getSampleformMatterList, getMatterForFlownum } from "@/api";
export default { export default {
components: { components: {
...@@ -111,6 +112,7 @@ export default { ...@@ -111,6 +112,7 @@ export default {
PageTop, PageTop,
SearchBox, SearchBox,
MateralsList, MateralsList,
YEmpty,
}, },
data() { data() {
return { return {
...@@ -146,8 +148,7 @@ export default { ...@@ -146,8 +148,7 @@ export default {
if (reg.test(this.searchVal) || this.searchVal == "") { if (reg.test(this.searchVal) || this.searchVal == "") {
this.getSampleformMatterList(this.searchVal); this.getSampleformMatterList(this.searchVal);
} else { } else {
let matterFullName = await this.getMatterForFlownum(this.searchVal); await this.getMatterForFlownum(this.searchVal);
this.getSampleformMatterList(matterFullName);
} }
}, },
// 获取事项列表 // 获取事项列表
...@@ -171,9 +172,9 @@ export default { ...@@ -171,9 +172,9 @@ export default {
let { data } = res.data.data; let { data } = res.data.data;
if (data.length) { if (data.length) {
matterFullName = data[0].matterName; matterFullName = data[0].matterName;
this.getSampleformMatterList(matterFullName);
} }
} }
return matterFullName;
}, },
// 搜索 // 搜索
handleSearch() { handleSearch() {
......
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