Commit 3a1996a4 by 陈浩建

分销员(未完成,暂隐藏)

parent 6b45b599
......@@ -13,6 +13,7 @@
<a-col :md="6" :sm="12">
<a-form-item label="月份">
<a-range-picker
style="width: 260px"
showTime
:placeholder="['开始月份', '结束月份']"
format="YYYYMM"
......@@ -280,4 +281,4 @@
<style scoped>
</style>
\ No newline at end of file
</style>
......@@ -13,6 +13,7 @@
<a-col :md="6" :sm="12">
<a-form-item label="月份">
<a-range-picker
style="width: 260px"
showTime
:placeholder="['开始月份', '结束月份']"
format="YYYYMM"
......@@ -346,4 +347,4 @@
<style scoped>
</style>
\ No newline at end of file
</style>
......@@ -26,7 +26,7 @@
</a-col>
<a-col :md="5" :sm="10">
<a-form-item label="学校">
<a-select v-model="queryParam.school" style="width: 15rem;">
<a-select v-model="queryParam.school" style="width: 13rem;">
<a-select-option key="">--全部--</a-select-option>
<a-select-option v-for="d in schoolNames" :key="d.value" :value="d.value">{{d.text}}</a-select-option>
</a-select>
......@@ -43,7 +43,7 @@
<a-col :md="3" :sm="6">
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="活跃状态">
<a-select showSearch placeholder="请选择" v-model="queryParam.isActive" >
<a-select showSearch placeholder="请选择" v-model="queryParam.isActive" style="width: 6rem;">
<a-select-option key="">请选择</a-select-option>
<a-select-option key="1">活跃</a-select-option>
<a-select-option key="0">不活跃</a-select-option>
......@@ -97,12 +97,13 @@
<span v-else></span>
</template>
<template slot="operation" slot-scope="text,record">
<a @click="modifyfunction(record)">编辑</a>
<a @click="modifyfunction(record)">编辑</a>
<a-divider type="vertical"/>
<!-- <a @click="modifyfunction(record)">分销员</a>-->
<!-- <a-divider type="vertical"/>-->
<a-popconfirm title="是否要删除此行?" @confirm="deleteUser(record.id)">
<a>删除</a>
</a-popconfirm>
<a-divider type="vertical"/>
</template>
</s-table>
......@@ -232,6 +233,7 @@
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="县分">
<a-select placeholder="请选择" @change="changeSubst(2)" v-model="modifyForm.subName" >
<a-select-option key="">请选择</a-select-option>
<a-select-option key="">请选择</a-select-option>
<a-select-option v-for="d in subNames" :key="d.value" :value="d.value">{{d.text}}</a-select-option>
</a-select>
</a-form-item>
......@@ -374,6 +376,10 @@
position:'',
parentId:'',
},
modifyFormFXY:{
id:"",
fxs:"",
},
autoCompleteResult:[],
subNameList: [],
substList: [],
......@@ -386,19 +392,19 @@
addSubName:'',
columns: [
{dataIndex: 'id', width:100, title: '合伙人id', align: 'center'},
{dataIndex: 'name', width: 100, title: '姓名 ', align: "center"},
{dataIndex: 'name', width: 100, title: '姓名', align: "center"},
{dataIndex: 'phone', width: 200, title: '电话', align: "center"},
{dataIndex: 'school', width: 200, title: '学校 ', align: "center"},
{dataIndex: 'idCard', width: 200, title: '身份证 ', align: "center"},
{dataIndex: 'account', width: 200, title: '账号 ', align: "center"},
{dataIndex: 'substName', width: 100, title: '县分 ', align: "center"},
{dataIndex: 'roleName', width: 200, title: '角色 ', align: "center"},
{ dataIndex: 'status',width:100,fixed: 'right', sort: true, title: '状态', scopedSlots: { customRender: 'statusRender' } },
{dataIndex: 'school', width: 200, title: '学校', align: "center"},
{dataIndex: 'idCard', width: 200, title: '身份证', align: "center"},
{dataIndex: 'account', width: 200, title: '账号', align: "center"},
{dataIndex: 'substName', width: 100, title: '县分', align: "center"},
{dataIndex: 'roleName', width: 200, title: '角色', align: "center"},
{dataIndex: 'sex', width: 100, title: '性别', align: "center",scopedSlots: {customRender: 'genderoperation'},},
{dataIndex: 'isActive', width: 200, title: '活跃状态', align: "center",scopedSlots: {customRender: 'activeRender'},},
{dataIndex: 'sex', width: 100, title: '性别 ', align: "center",scopedSlots: {customRender: 'genderoperation'},},
{dataIndex: 'status',width:100,fixed: 'right', sort: true, title: '状态', scopedSlots: { customRender: 'statusRender' },},
{
dataIndex: 'operation',
width: 100,
width: 150,
title: '操作',
align: "center",
scopedSlots: {customRender: 'operation'},
......@@ -496,6 +502,43 @@
}
})
},
// 调整分销员
modifyFXY(data) {
this.modifyForm.id = data.id
this.titleName = "编辑"
this.modifyvisible = true
setTimeout(() => {
this.Formtable.setFieldsValue({
phone: data.phone,
schoolId: data.schoolId,
name: data.name,
account: data.account,
idCard: data.idCard,
sex: data.sex,
grade: data.grade,
ysm: data.ysm,
})
if (data.schools == undefined) {
this.treeModelValue = [];
}else{
this.treeModelValue = data.schools.split(",");
}
this.modifyForm.subName = data.substName;
this.modifyForm.roleId = data.roleid;
this.modifyForm.position = data.position;
this.modifyForm.parentId = "";
this.modifyForm.parentIds = "";
this.recordId = data.parentId;
this.changeSchool(data.schoolId);
this.changePosition(2);
this.$refs.tree2.setValue2(data.roleid);
}, 500)
getlistysm().then(res => {
if (res.state == "success") {
this.autoCompleteResult = res.data
}
})
},
//提交表单
createfunctionOk(){
this.Formtable.validateFields(["account",'phone','name',"idCard", 'password', 'parentId', 'sex','schoolId', 'roleid','ysm'], {force: true}, (err, values)=>{
......@@ -943,4 +986,4 @@
<style scoped>
</style>
\ No newline at end of file
</style>
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