Commit 9c1f9386 by 刘玉帅

xq

parent 460ae1b9
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-08-31 10:44:27 * @Date: 2021-08-31 10:44:27
* @LastEditTime: 2021-09-10 11:39:26 * @LastEditTime: 2021-09-15 18:33:02
* @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
...@@ -16,11 +16,13 @@ Vue.use(Vuex); ...@@ -16,11 +16,13 @@ Vue.use(Vuex);
const store = new Vuex.Store({ const store = new Vuex.Store({
state:{ state:{
name:'' zzjglx:''
}, },
mutations:{ mutations:{
setname(state){ setzzjglx(state){
state.name = JSON.parse(sessionStorage.getItem('userInformation')).username || '' state.zzjglx = 11
// JSON.parse(sessionStorage.getItem('userInformation')).data.zzjglx|| ''
console.log(JSON.parse(sessionStorage.getItem('userInformation')).data.zzjglx);
} }
}, },
modules: { modules: {
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-09-08 10:36:43 * @Date: 2021-09-08 10:36:43
* @LastEditTime: 2021-09-15 15:12:57 * @LastEditTime: 2021-09-15 17:04:08
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\Login\login2.vue * @FilePath: \founder_vue\src\views\Login\login2.vue
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<div class="usergo">用户登录</div> <div class="usergo">用户登录</div>
<form action=""> <form action="">
<div class="username">账号:</div> <div class="username">账号:</div>
<input type="text" <el-input type="text"
class="Ipt" class="Ipt"
placeholder="请输入用户名" placeholder="请输入用户名"
v-model="username" v-model="username"
...@@ -38,8 +38,9 @@ ...@@ -38,8 +38,9 @@
@blur="myFunction('1')" @blur="myFunction('1')"
ref="one" ref="one"
> >
</el-input>
<div class="username pass">密码:</div> <div class="username pass">密码:</div>
<input type="password" <el-input type="password"
class="Ipt" class="Ipt"
placeholder="请输入密码" placeholder="请输入密码"
v-model="password" v-model="password"
...@@ -48,8 +49,9 @@ ...@@ -48,8 +49,9 @@
@blur="myFunction('4')" @blur="myFunction('4')"
ref="two" ref="two"
> >
</el-input>
<div class="btn"> <div class="btn">
<button @click="denglu" class="hbtn" >登录</button> <el-button @click="denglu" class="hbtn" >登录</el-button>
</div> </div>
</form> </form>
</div> </div>
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-08-28 21:28:08 * @Date: 2021-08-28 21:28:08
* @LastEditTime: 2021-09-14 15:23:30 * @LastEditTime: 2021-09-15 18:28:18
* @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
...@@ -548,7 +548,7 @@ export default { ...@@ -548,7 +548,7 @@ export default {
// debugger // debugger
let self = this; let self = this;
self.tableLoading = true; self.tableLoading = true;
post("/xqapi/selectRwForPage", self.selectPage).then((res) => { post("/xqapi/rwgl/selectRwForPage", self.selectPage).then((res) => {
if (res.code == "200") { if (res.code == "200") {
console.log("分页返回的数据", res); console.log("分页返回的数据", res);
self.tableData = res.data.mpRwList; self.tableData = res.data.mpRwList;
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-08-27 15:52:57 * @Date: 2021-08-27 15:52:57
* @LastEditTime: 2021-09-15 16:38:19 * @LastEditTime: 2021-09-15 19:36:16
* @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
...@@ -106,16 +106,28 @@ ...@@ -106,16 +106,28 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="auto"> <el-table-column label="操作" width="auto">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="handInit(scope.row, 'xf')"
>下发</el-button
>
<el-button type="text" size="small" @click="handInit(scope.row, 'xq')" <el-button type="text" size="small" @click="handInit(scope.row, 'xq')"
>详情</el-button >详情</el-button
> >
<el-button type="text" size="small" @click="handInit(scope.row, 'fk')" <el-button
type="text"
size="small"
v-if="zzjglx == '11'"
@click="handInit(scope.row, 'xf')"
>下发</el-button
>
<el-button
type="text"
v-if="zzjglx == '12' || zzjglx == '13'"
size="small"
@click="handInit(scope.row, 'fk')"
>反馈</el-button >反馈</el-button
> >
<el-button type="text" size="small" @click="handInit(scope.row, 'th')" <el-button
type="text"
v-if="zzjglx == '12'"
size="small"
@click="handInit(scope.row, 'th')"
>退回</el-button >退回</el-button
> >
</template> </template>
...@@ -213,6 +225,29 @@ ...@@ -213,6 +225,29 @@
<el-button type="primary" @click="thhandClick">确 定</el-button> <el-button type="primary" @click="thhandClick">确 定</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 下发的 diolog -->
<el-dialog title="下发地址" :visible.sync="XFdialogFormVisible">
<el-form :model="XFform">
<!-- <el-form-item label="活动名称" :label-width="formLabelWidth">
<el-input v-model="form.name" autocomplete="off"></el-input>
</el-form-item> -->
<el-form-item label="活动区域" :label-width="formLabelWidth">
<el-select v-model="XFform.region" placeholder="请选择下发地址">
<el-option
v-for="item3 in selectData"
:key="item3.value"
:label="item3.name"
:value="item3.value"
></el-option>
<!-- <el-option label="区域二" value="beijing"></el-option> -->
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="XFdialogFormVisible = false">取 消</el-button>
<el-button type="primary" @click="XFhandleClick">确 定</el-button>
</div>
</el-dialog>
</div> </div>
</div> </div>
</template> </template>
...@@ -230,6 +265,11 @@ export default { ...@@ -230,6 +265,11 @@ export default {
}, },
data() { data() {
return { return {
selectData: [],
XFdialogFormVisible: false, //下发的 diolog
XFform: {},
xfList: [], //下发返回的数据
xfhtList: {}, //下发 传给后台的数据
atPage: 1, //当前页数 atPage: 1, //当前页数
tableDataLength: 0, //当前页面总条数 tableDataLength: 0, //当前页面总条数
curpage: 10, //当前选择要显示的条数 curpage: 10, //当前选择要显示的条数
...@@ -290,7 +330,7 @@ export default { ...@@ -290,7 +330,7 @@ export default {
}; };
}, },
methods: { methods: {
...mapMutations(["setname"]), //调用vueX的方法修改值 ...mapMutations(["setzzjglx"]), //调用vueX的方法修改值
/** /**
* @description: 展开/收起--更多操作/收起 * @description: 展开/收起--更多操作/收起
* @param {*} type * @param {*} type
...@@ -384,8 +424,50 @@ export default { ...@@ -384,8 +424,50 @@ export default {
} }
} }
); );
} else if (type == "xf") {
console.log(row);
this.ryID = row.ryid;
console.log(this.ryID);
this.XFdialogFormVisible = true;
let bh = JSON.parse(sessionStorage.getItem("userInformation")).data
.zzjgdm;
console.log(JSON.parse(sessionStorage.getItem("userInformation")).data);
postJson("/xqapixjDept/selectjdzz", { ssjgdm: bh }).then((res) => {
console.log(res);
if (res.code == "200") {
this.xfList = res.data.rows;
res.data.rows.map((item) => {
this.selectData.push({ name: item.zzjgmc, value: item.zzjgdm });
});
}
});
} }
}, },
XFhandleClick() {
console.log(this.xfList);
this.$set(this.xfhtList, "ryid", this.ryID);
this.xfList.map((item) => {
if (item.zzjgdm == this.XFform.region) {
this.$set(this.xfhtList, "zzjgdm", item.zzjgdm);
this.$set(this.xfhtList, "zzjgmc", item.zzjgmc);
this.$set(this.xfhtList, "zzjglx", item.zzjglx);
console.log("0000");
}
console.log(this.xfhtList);
});
postJson("/xqapi/rymp/updateRympXf", this.xfhtList).then((res) => {
if (res.code == "200") {
this.$message({
message: "恭喜你,这是一条成功消息",
type: "success",
});
this.XFdialogFormVisible = false
}
console.log(res);
});
console.log(this.ryID);
},
/** /**
* @description: 退回的 确定操作 * @description: 退回的 确定操作
* @param {*} * @param {*}
...@@ -454,14 +536,14 @@ export default { ...@@ -454,14 +536,14 @@ export default {
}, },
}, },
computed: { computed: {
...mapState(["name"]), ...mapState(["zzjglx"]),
Tpage() { Tpage() {
return Math.ceil(this.tableDataLength / this.curpage); return Math.ceil(this.tableDataLength / this.curpage);
}, },
}, },
mounted() { mounted() {
this.setname(); this.setzzjglx();
console.log("我是vuex中存储的值", this.name); console.log("我是vuex中存储的值", this.zzjglx);
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);
//点击未匹配/和退回跳转过来传过来的信息 //点击未匹配/和退回跳转过来传过来的信息
...@@ -469,7 +551,7 @@ export default { ...@@ -469,7 +551,7 @@ export default {
if (this.$route.params.type == "wpp") { if (this.$route.params.type == "wpp") {
// debugger // debugger
let formList = { let formList = {
rwid: "2", rwid: this.$route.params.id,
page: 1, page: 1,
limit: 10, limit: 10,
ppzt: "0", ppzt: "0",
...@@ -514,7 +596,6 @@ export default { ...@@ -514,7 +596,6 @@ export default {
this.showList = formList; this.showList = formList;
this.getList(formList); this.getList(formList);
} }
}, },
}; };
</script> </script>
......
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