Commit 8eb82615 by 梁建民

js

parent 80c6f6c3
...@@ -76,15 +76,26 @@ const actions = { ...@@ -76,15 +76,26 @@ const actions = {
state.finished = false; state.finished = false;
let param = { /* let param = {
'sample_status/eq': 1 'sample_status/eq': 1
}; };*/
/* let obj = Object.assign({}, param, payload.params);*/
let obj={
...payload.params,
'sample_status/eq': 1,
}
let obj = Object.assign({}, param, payload.params);
let params = Util.getParams(obj); let params = Util.getParams(obj);
Services.ZiYingIndex(params).then((res) => { Services.ZiYingIndex(params).then((res) => {
state.loading = false; state.loading = false;
let data = res.data; let data = res.data;
......
...@@ -273,6 +273,14 @@ ...@@ -273,6 +273,14 @@
onLoad() { onLoad() {
this.p++; this.p++;
let params = Object.assign({}, {p:this.p,'sample_class_id/eq': this.sample_class_id}, this.brand_id, this.packing, this.encap, this.attrs, {id: this.id.join(',')});
this.$store.dispatch({
type: "ziYingIndex",
params: params
});
}, },
getuserf() { getuserf() {
this.getPop = false; this.getPop = false;
......
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 sign in to comment