Commit 3d4450da by 刘玉帅

xq

parent 9c1f9386
/*
* @Author: your name
* @Date: 2021-08-31 10:44:27
* @LastEditTime: 2021-09-15 18:33:02
* @LastEditTime: 2021-09-16 11:05:08
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \西青项目\founder_vue\src\store\index.js
......@@ -20,8 +20,8 @@ const store = new Vuex.Store({
},
mutations:{
setzzjglx(state){
state.zzjglx = 11
// JSON.parse(sessionStorage.getItem('userInformation')).data.zzjglx|| ''
state.zzjglx =
JSON.parse(sessionStorage.getItem('userInformation')).data.zzjglx|| ''
console.log(JSON.parse(sessionStorage.getItem('userInformation')).data.zzjglx);
}
},
......
<!--
* @Author: your name
* @Date: 2021-08-27 15:52:57
* @LastEditTime: 2021-09-15 18:31:10
* @LastEditTime: 2021-09-16 13:56:14
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\rymp.vue
......@@ -435,22 +435,22 @@ export default {
}
},
/**
* @description: 获取未匹配 人员的列表
* @description: 获取全部的人员的列表
* @param {*} form
* @return {*}
*/
// getList(form) {
// let self = this;
// postJson("/xqapi/rymp/selectRympList", form).then((res) => {
// console.log(res);
// if (res.code == "200") {
// self.tableLoading = true;
// this.tableData = utils.deepClone(res.data.rows);
// this.tableDataLength = res.data.total;
// self.tableLoading = false;
// }
// });
// },
getList(form) {
let self = this;
postJson("/xqapi/rymp/selectRympList", form).then((res) => {
console.log(res);
if (res.code == "200") {
self.tableLoading = true;
this.tableData = utils.deepClone(res.data.rows);
this.tableDataLength = res.data.total;
self.tableLoading = false;
}
});
},
/**
* @description: 关闭diolog清空列表
* @param {*}
......@@ -478,55 +478,7 @@ export default {
console.log(JSON.parse(sessionStorage.getItem("userInformation")).username);
console.log(this.$route.params.type);
//点击未匹配/和退回跳转过来传过来的信息
console.log(this.showList);
if (this.$route.params.type == "wpp") {
// debugger
let formList = {
rwid: "2",
page: 1,
limit: 10,
ppzt: "0",
};
this.showList = formList;
console.log(this.showList);
this.getList(formList);
} else if (this.$route.params.type == "th") {
let formList = {
rwid: this.$route.params.id,
page: 1,
limit: 10,
thzt: "0",
};
this.showList = formList;
this.getList(formList);
} else if (this.$route.params.type == "ypp") {
var formList = {
rwid: this.$route.params.id,
page: 1,
limit: 10,
ppzt: "1",
};
this.showList = formList;
this.getList(formList);
} else if (this.$route.params.type == "yfk") {
let formList = {
rwid: this.$route.params.id,
page: 1,
limit: 10,
fkzt: "1",
};
this.showList = formList;
this.getList(formList);
} else if (this.$route.params.type == "wfk") {
let formList = {
rwid: this.$route.params.id,
page: 1,
limit: 10,
fkzt: "0",
};
this.showList = formList;
this.getList(formList);
}
},
};
......
<!--
* @Author: your name
* @Date: 2021-08-28 21:28:08
* @LastEditTime: 2021-09-15 18:28:18
* @LastEditTime: 2021-09-16 13:53:11
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\rwgl\rwglindex.vue
......@@ -9,7 +9,7 @@
<template>
<div class="rwgl" id="rwglindex">
<el-form ref="form" :model="selectPage" label-width="80px" :inline="true">
<div class="rybdsearch">
<div class="rybdsearch" v-if="zzjglx==11" >
<el-form-item label="">
<!-- <el-input
v-model="form.name"
......@@ -249,7 +249,7 @@ import Table from "@/components/Table.vue";
import { get, postJson, post } from "@/utils/http.js";
import axios from "axios";
import utils from "@/utils/util.js";
import { mapMutations, mapState } from "vuex";
export default {
components: {
Table,
......@@ -339,6 +339,7 @@ export default {
};
},
methods: {
...mapMutations(["setzzjglx"]), //调用vueX的方法修改值
/**
* @description: 选择文件的时候进行判断勾选的内容只能是一个
* @param {*}
......@@ -700,11 +701,13 @@ export default {
},
},
computed: {
...mapState(["zzjglx"]),
Tpage() {
return Math.ceil(this.tableDataLength / this.curpage);
},
},
mounted() {
this.setzzjglx();
this.handSizePageSearch();
},
};
......
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