Commit a4e5892d authored by zhengke's avatar zhengke

增加页面

parent a688eda4
......@@ -40,6 +40,9 @@
.w200{
width:200px!important;
}
.w150{
width:150px!important;
}
.el-icon-search{
cursor: pointer;
}
......
......@@ -16,7 +16,7 @@
</el-alert>
<div class="searchInput">
<el-input style="display:inline-block;width:225px;height:30px" placeholder="请输入用户昵称"
v-model="msg.NavIconName" size="small" clearable @keyup.enter.native="msg.pageIndex=1,getList()">
v-model="msg.EmpName" size="small" clearable @keyup.enter.native="msg.pageIndex=1,getList()">
</el-input>
<span class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"
@click="msg.pageIndex=1,getList()"> </span>
......@@ -33,9 +33,15 @@
</el-table-column>
<el-table-column label="操作" width="260">
<template slot-scope="scope">
<img @click="EditRole(scope.row)" src="../../assets/img/userman/edit.png" alt="">
<img @click="upPwddialog=true" style="margin:0 10px;" src="../../assets/img/userman/change.png" alt="">
<img @click="RemmoveRole(scope.row)" src="../../assets/img/userman/del.png" alt="">
<el-tooltip slot="label" class="item" effect="dark" content="编辑" placement="top">
<img @click="EditRole(scope.row)" src="../../assets/img/userman/edit.png" alt="">
</el-tooltip>
<el-tooltip slot="label" class="item" effect="dark" content="修改密码" placement="top">
<img @click="upPwddialog=true" style="margin:0 10px;" src="../../assets/img/userman/change.png" alt="">
</el-tooltip>
<el-tooltip slot="label" class="item" effect="dark" content="删除" placement="top">
<img @click="RemmoveRole(scope.row)" src="../../assets/img/userman/del.png" alt="">
</el-tooltip>
</template>
</el-table-column>
</el-table>
......@@ -55,17 +61,17 @@
<el-input v-model="addMsg.EmpAccount" class="w400" size="small" maxlength="20" />
</el-form-item>
<el-form-item label="密码" prop="EmpPwd">
<el-input type="text" v-model="addMsg.EmpPwd" size="small" class="w400" />
<el-input type="password" v-model="addMsg.EmpPwd" size="small" class="w400" />
</el-form-item>
<el-form-item label="昵称" prop="EmpName">
<el-input type="text" v-model="addMsg.EmpName" size="small" class="w400" />
</el-form-item>
<el-form-item label="角色">
<el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选
<el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选
</el-checkbox>
<div style="margin: 15px 0;"></div>
<el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange">
<el-checkbox v-for="item in RoleList" :label="item.RoleName" :key="item.RoleId">{{item.RoleName}}
<el-checkbox-group v-model="checkArr" @change="handleCheckedCitiesChange">
<el-checkbox v-for="item in RoleList" :label="item.RoleId" :key="item.RoleName">{{item.RoleName}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
......@@ -78,7 +84,7 @@
<el-dialog title="提示" :visible.sync="upPwddialog" width="400px">
<el-form label-width="0">
<p style="padding:10px 0">请输入新密码</p>
<el-input type="text" v-model="pwdMsg.password"></el-input>
<el-input type="password" v-model="pwdMsg.password"></el-input>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="upPwddialog = false">取 消</el-button>
......@@ -94,13 +100,14 @@
loading: false,
//修改密码弹窗
upPwddialog: false,
checkAll: false,
isIndeterminate: true,
checkedCities: [],
//全选
checkAll:false,
checkArr: [],//选中数组
dataList: [],
msg: {
pageIndex: 1,
pageSize: 15,
EmpName:''
},
pwdMsg: {
password: ''
......@@ -146,7 +153,6 @@
this.apipost("/api/Employee/GetEmployeePageList", this.msg, res => {
if (res.data.resultCode == 1) {
this.dataList = res.data.data.pageData;
console.log("this.datalist", this.dataList);
this.total = res.data.data.count;
} else {
this.Info(res.data.message);
......@@ -165,8 +171,7 @@
},
//保存
saveMsg() {
// var ckedKeys = this.$refs.tree.getCheckedKeys();
// this.addMsg.RoleAuth = ckedKeys.join(',');
this.addMsg.RoleAuth=this.checkArr.join(',');
this.apipost("/api/Employee/SetEmployee", this.addMsg, res => {
if (res.data.resultCode == 1) {
this.getList();
......@@ -191,12 +196,15 @@
EmpId: item.EmpId
}, res => {
if (res.data.resultCode == 1) {
this.checkArr=[];
this.addMsg = res.data.data;
this.empIsShowAdd = false;
let newArr = this.addMsg.RoleAuth.split(',');
setTimeout(() => {
this.$refs.tree.setCheckedKeys(newArr);
}, 10)
if(this.addMsg.RoleAuth!=''){
this.checkArr=newArr.map(function(data){
return +data;
})
}
} else {
this.Info(res.data.message);
}
......@@ -217,17 +225,19 @@
})
})
},
//全选
handleCheckAllChange(val) {
this.checkedCities = val ? this.RoleList : [];
this.isIndeterminate = false;
this.checkArr = [];
if (val) {
this.RoleList.forEach(x => {
this.checkArr.push(x.RoleId);
});
}
},
handleCheckedCitiesChange(value) {
let checkedCount = value.length;
this.checkAll = checkedCount === this.RoleList.length;
this.isIndeterminate = checkedCount > 0 && checkedCount < this.RoleList.length;
},
//点击复制
copyCode() {
var copycode = document.getElementById("my_Link").innerHTML;
var input = document.createElement("input"); // 直接构建input
......
This diff is collapsed.
......@@ -328,6 +328,12 @@ export default new Router({
name: 'ProjectClassific',
component: resolve => require(['@/components/StoreDesign/ProjectClassific'], resolve),
},
//店铺管理 内容管理 专题
{
path: '/special',
name: 'special',
component: resolve => require(['@/components/StoreDesign/special'], resolve),
},
//店铺管理 内容管理 视频管理
{
path: '/videoManage',
......
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