Commit 3d4450da by 刘玉帅

xq

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