Commit 5787a6d6 by 董有沛

Merge remote-tracking branch 'origin/master'

parents 6a3fdf29 e449bf95
SS
\ No newline at end of file
import {postAction,getAotion} from '@/api/manage'
const prefix = '/schoolcenter/ciop';
// 获取活动列表
let findByList = (params) => postAction(prefix + "/school/partner/list" , params);
// 编辑
let modify = (params) => postAction(prefix + "/school/partner/update" , params);
// 编辑
let getlistysm = (params) => postAction(prefix + "/ysmUser/getlist" , params);
export {
findByList,modify,getlistysm
}
\ No newline at end of file
...@@ -13,8 +13,10 @@ let modify = (params) => postAction(prefix + "/packageManagement/package/update" ...@@ -13,8 +13,10 @@ let modify = (params) => postAction(prefix + "/packageManagement/package/update"
//新增 //新增
let insert= (params) => postAction(prefix + "/packageManagement/package/insert" , params); let insert= (params) => postAction(prefix + "/packageManagement/package/insert" , params);
//隐藏状态 //删除
let hidestatus= (params) => postAction(prefix + "/packageManagement/package/hidestatus" , params); let delet= (params) => postAction(prefix + "/packageManagement/package/delete" , params);
//套餐全称列表
let packageAllList= () => postAction(prefix + "/packageManagement/package/packageAllList" );
export { export {
findByList,choosepages,modify,insert,hidestatus findByList,choosepages,modify,insert,packageAllList,delet
} }
\ No newline at end of file
import {postAction,downFilePost} from '@/api/manage'
const prefix = '/schoolcenter/ciop';
// 智能平台账号实名
let ysmUserList = (params) => postAction(prefix + "/ysmUser/list" , params);
let ysmUserNotThrough = (id,params) => postAction(prefix + "/ysmUser/notThrough/"+id,params);
let ysmUserInsert = (params) => postAction(prefix + "/ysmUser/insert" , params);
let ysmUserUpdate = (params) => postAction(prefix + "/ysmUser/update",params);
export {
ysmUserList,
ysmUserNotThrough,
ysmUserInsert,
ysmUserUpdate
}
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
:collapsible="collapsible" :collapsible="collapsible"
v-model="collapsed" v-model="collapsed"
:trigger="null"> :trigger="null">
<logo title="外呼集约" titleUrl="./logoJY.png"/> <logo title="合伙人" titleUrl="./logoJY.png"/>
<s-menu <s-menu
:collapsed="collapsed" :collapsed="collapsed"
:menu="menus" :menu="menus"
......
<template>
<div class="flex-container">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<!-- 搜索区域 -->
<a-form layout="inline">
<a-row :gutter="24">
<a-col :md="4" :sm="12">
<a-form-item label="姓名">
<a-input placeholder="姓名" v-model="queryParam.name"></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12">
<a-form-item label="县分">
<a-input placeholder="县分" v-model="queryParam.area"></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12">
<a-form-item label="学校">
<a-input placeholder="学校" v-model="queryParam.school"></a-input>
</a-form-item>
</a-col>
<span class="table-page-search-submitButtons" style="float: left; overflow: hidden;">
<a-col :md="6" :sm="24">
<a-button @click="search()" type="primary">查询</a-button>
</a-col>
</span>
</a-row>
</a-form>
<!--列表-->
<s-table :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling">
<template slot="genderoperation" slot-scope="text">
<span v-if="text==1"></span>
<span v-else></span>
</template>
<template slot="operation" slot-scope="text,record">
<a @click="modifyfunction(record)">编辑</a>
</template>
</s-table>
<!--编辑----弹框-->
<a-modal :title="titleName" :visible="modifyvisible" @ok="createfunctionOk" @cancel="createfunctionCancel" html-type="submit" width="720px">
<a-form :form="Formtable">
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="合伙人电话号码">
<a-input placeholder="合伙人电话号码" v-decorator="[ 'phoneNum', {rules: [{ required: true, message: '合伙人电话号码不能为空!' ,whitespace:true}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="学校">
<a-input placeholder="学校" v-decorator="[ 'school', {rules: [{ required: true, message: '学校名不能为空!' ,whitespace:true}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="合伙人姓名">
<a-input placeholder="合伙人姓名" v-decorator="[ 'name', {rules: [{ required: true, message: '合伙人姓名不能为空!' ,whitespace:true}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="合伙人账号">
<a-input placeholder="合伙人账号" v-decorator="[ 'account', {rules: [{ required: true, message: '合伙人账号不能为空!' ,whitespace:true}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="合伙人身份证">
<a-input placeholder="合伙人身份证" v-decorator="[ 'idCard', {rules: [{ required: true, message: '合伙人身份证不能为空!' ,whitespace:true}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="性别">
<a-radio-group v-decorator="['gender', {rules: [{ required: true, message: '合伙人身份证不能为空!' ,whitespace:true}]} ]" >
<a-radio value="1"></a-radio>
<a-radio value="2"></a-radio>
</a-radio-group>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="县分">
<a-input placeholder="县分" v-decorator="[ 'area', {rules: [{ required: true, message: '县分不能为空!' ,whitespace:true}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="合伙人对应的微信账号">
<a-input placeholder="合伙人对应的微信账号" v-decorator="[ 'wxId' ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 12, offset: 1}" label="通过预实名账号">
<a-radio-group v-decorator="['ysm']" >
<a-radio :value="data.id" v-for="data in autoCompleteResult">{{data.userName}}</a-radio>
</a-radio-group>
</a-form-item>
</a-form>
</a-modal>
</div>
</div>
</template>
<script>
import STable from '@/components/table';
import {findByList,modify,getlistysm} from "@/api/school-center/PartnerManagementAPI"
import {cloneObject} from '@/utils/util';
export default {
name: "PartnerManagement",
components: {
STable,
},
data: function () {
return {
Formtable: this.$form.createForm(this, {name: 'Formtable'}),
queryParam: {
name: '',
area:'',
school:''
},
modifyvisible:false,
modifyForm: {
id:"",
phoneNum: '',
school:'',
name: '',
account: '',
idCard: '',
gender: '',
area: '',
wxId: '',
ysm: '',
},
autoCompleteResult:[],
columns: [
{dataIndex: 'name', width: 100, title: '姓名 ', align: "center"},
{dataIndex: 'phoneNum', 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: 'gender', width: 100, title: '性别 ', align: "center",scopedSlots: {customRender: 'genderoperation'},},
{dataIndex: 'area', width: 100, title: '县分 ', align: "center"},
{dataIndex: 'wxId', width: 100, title: '微信 ', align: "center"},
{
dataIndex: 'operation',
width: 100,
title: '操作',
align: "center",
scopedSlots: {customRender: 'operation'},
fixed: "right"
}]
,
rowdata: parameter => {
let params = {
pageNo: parameter.pageNo,
pageSize: parameter.pageSize
}
//表示
let obj = cloneObject(this.queryParam)
return findByList(Object.assign(params,obj)).then(res => {
let data = {}
if (res.state !== 'success') {
data = {
data: [],
pageSize: parameter.pageSize,
pageNo: 1,
totalCount: 0
}
} else {
data = {
data: res.data.records,
pageSize: parameter.pageSize,
pageNo: parameter.pageNo,
totalCount: res.data.total
}
}
return data
})
}
}
},
methods:{
search() {
this.$refs.table.refresh({search: true})
},
modifyfunction(data) {
this.modifyForm.id = data.id
this.titleName = "编辑"
this.modifyvisible = true
setTimeout(() => {
this.Formtable.setFieldsValue({
phoneNum: data.phoneNum,
school: data.school,
name: data.name,
account: data.account,
idCard: data.idCard,
gender: data.gender,
area: data.area,
wxId: data.wxId,
ysm: data.ysm,
})
}, 0)
getlistysm().then(res => {
if (res.state == "success") {
this.autoCompleteResult = res.data
}
})
},
//提交表单
createfunctionOk(){
this.Formtable.validateFields(['school', 'name',"account","idCard", 'gender',"area", 'wxId',"ysm" ,'phoneNum'], {force: true}, (err, values)=>{
if (!err){
this.modifyForm.school=values.school
this.modifyForm.name=values.name
this.modifyForm.account=values.account
this.modifyForm.idCard=values.idCard
this.modifyForm.gender=values.gender
this.modifyForm.area=values.area
this.modifyForm.wxId=values.wxId
this.modifyForm.ysm=values.ysm
this.modifyForm.phoneNum=values.phoneNum
//修改数据
modify(this.modifyForm).then(res=>{
if (res.state=="success") {
this.$message.success(res.data ? res.data : '修改成功!', 5);
this.search();
return null;
}
this.$message.error(res.data ? res.data : '修改失败!', 5);
})
}
})
},
createfunctionCancel(){
this.modifyvisible=false
this.autoCompleteResult=[]
this.Formtable.setFieldsValue({
phoneNum: '',
school:'',
name: '',
account: '',
idCard: '',
gender: '',
area: '',
wxId: '',
ysm: '',
})
}
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
}, },
{ {
dataIndex: 'operation', dataIndex: 'operation',
width: 100, width: 200,
title: '操作', title: '操作',
align: "center", align: "center",
scopedSlots: {customRender: 'operation'}, scopedSlots: {customRender: 'operation'},
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!-- 搜索区域 --> <!-- 搜索区域 -->
<a-form layout="inline"> <a-form layout="inline">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="6" :sm="12"> <a-col :md="5" :sm="12">
<a-form-item label="时间选择:"> <a-form-item label="时间选择:">
<a-range-picker @change="onChange" /> <a-range-picker @change="onChange" />
</a-form-item> </a-form-item>
...@@ -40,9 +40,14 @@ ...@@ -40,9 +40,14 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<span class="table-page-search-submitButtons" style="float: left; overflow: hidden;">
<a-col :md="4" :sm="24">
<a-button @click="search()" type="primary">查询</a-button> <a-button @click="search()" type="primary">查询</a-button>
<a-button v-show="!callback" @click="handleSubmit" style="margin-left: 10px">导出</a-button> <a-button v-show="!callback" @click="handleSubmit" style="margin-left: 10px">导出</a-button>
<a-button v-show="callback" style="margin-left: 10px">导出中<a-spin style="margin-left: 5px" size="small"/></a-button> <a-button v-show="callback" style="margin-left: 10px">导出中<a-spin style="margin-left: 5px" size="small"/></a-button>
</a-col>
</span>
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
...@@ -61,14 +66,17 @@ ...@@ -61,14 +66,17 @@
<p style="white-space: pre-line;">{{text}}</p> <p style="white-space: pre-line;">{{text}}</p>
</template> </template>
<template slot="productState" slot-scope="text"> <template slot="productState" slot-scope="text">
<p v-if="text=='1'">待提交</p> <span v-if="text=='1'">待提交</span>
<p v-if="text=='4'">归档</p> <span v-if="text=='4'">归档</span>
<p v-if="text=='5'">作废</p> <span v-if="text=='5'">作废</span>
<p v-if="text=='3'">受理成功</p> <span v-if="text=='6'">待配送</span>
<p v-if="text=='9'">已收费</p> <span v-if="text=='7'">物流配送中</span>
<p v-if="text=='10'">受理异常</p> <span v-if="text=='8'">配送成功</span>
<p v-if="text=='2'">待受理</p> <span v-if="text=='3'">受理成功</span>
<p v-if="text=='100'">未支付</p> <span v-if="text=='9'">已收费</span>
<span v-if="text=='10'">受理异常</span>
<span v-if="text=='2'">待受理</span>
<span v-if="text=='100'">未支付</span>
</template> </template>
<template slot="operation" slot-scope="text, record"> <template slot="operation" slot-scope="text, record">
<span> <span>
...@@ -92,6 +100,9 @@ ...@@ -92,6 +100,9 @@
<p v-if="orderInfo.status=='1'">订单状态:待提交</p> <p v-if="orderInfo.status=='1'">订单状态:待提交</p>
<p v-if="orderInfo.status=='4'">订单状态:归档</p> <p v-if="orderInfo.status=='4'">订单状态:归档</p>
<p v-if="orderInfo.status=='5'">订单状态:作废</p> <p v-if="orderInfo.status=='5'">订单状态:作废</p>
<p v-if="orderInfo.status=='6'">订单状态:待配送</p>
<p v-if="orderInfo.status=='7'">订单状态:物流配送中</p>
<p v-if="orderInfo.status=='8'">订单状态:配送成功</p>
<p v-if="orderInfo.status=='3'">订单状态:受理成功</p> <p v-if="orderInfo.status=='3'">订单状态:受理成功</p>
<p v-if="orderInfo.status=='9'">订单状态:已收费</p> <p v-if="orderInfo.status=='9'">订单状态:已收费</p>
<p v-if="orderInfo.status=='10'">订单状态:受理异常</p> <p v-if="orderInfo.status=='10'">订单状态:受理异常</p>
...@@ -145,7 +156,7 @@ ...@@ -145,7 +156,7 @@
<p>用户类别:{{orderInfo.orderCustomerType}}</p> <p>用户类别:{{orderInfo.orderCustomerType}}</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<p>区域:{{orderInfo.orderRegion}}</p> <p>县分:{{orderInfo.orderRegion}}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
...@@ -236,18 +247,18 @@ ...@@ -236,18 +247,18 @@
columns: [ columns: [
{dataIndex: 'orderseq', width: 200, title: '订单号码 '}, {dataIndex: 'orderseq', width: 200, title: '订单号码 '},
{dataIndex: 'productname', width: 200, title: '产品名称'}, {dataIndex: 'productname', width: 200, title: '产品名称'},
{dataIndex: 'orderSetMeal', width: 200, title: '套餐 '}, {dataIndex: 'orderSetMeal', width: 80, title: '套餐 '},
{dataIndex: 'orderUniversityName', width: 200, title: '学校'}, {dataIndex: 'orderUniversityName', width: 200, title: '学校'},
{dataIndex: 'ordername', width: 200, title: '姓名 '}, {dataIndex: 'ordername', width: 80, title: '姓名 '},
{dataIndex: 'orderdate', width: 200, title: '提交时间 ' ,scopedSlots: {customRender: 'productLastUpdateTime'}}, {dataIndex: 'orderdate', width: 150, title: '提交时间 ' ,scopedSlots: {customRender: 'productLastUpdateTime'}},
{dataIndex: 'status', width: 200, title: '状态 ', scopedSlots: {customRender: 'productState'}}, {dataIndex: 'status', width: 50, title: '状态 ', scopedSlots: {customRender: 'productState'}},
{dataIndex: 'orderRegion', width: 200, title: '区域'}, {dataIndex: 'orderRegion', width: 70, title: '县分'},
{dataIndex: 'orderCustomerType', width: 200, title: '用户类别 '}, {dataIndex: 'orderCustomerType', width: 80, title: '用户类别 '},
/* {dataIndex: 'productIntroduction', width: 200, title: '产品情况 ', scopedSlots: {customRender: 'text'}}, /* {dataIndex: 'productIntroduction', width: 200, title: '产品情况 ', scopedSlots: {customRender: 'text'}},
{dataIndex: 'productSetMealIntroduction', width: 200, title: '资费介绍 ', scopedSlots: {customRender: 'text'}},*/ {dataIndex: 'productSetMealIntroduction', width: 200, title: '资费介绍 ', scopedSlots: {customRender: 'text'}},*/
{ {
dataIndex: 'operation', dataIndex: 'operation',
width: 100, width: 50,
title: '操作', title: '操作',
scopedSlots: {customRender: 'operation'}, scopedSlots: {customRender: 'operation'},
fixed: "right" fixed: "right"
......
...@@ -25,16 +25,68 @@ ...@@ -25,16 +25,68 @@
<!--列表--> <!--列表-->
<s-table :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling"> <s-table :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling">
<template slot="operation" slot-scope="text,record"> <template slot="operation" slot-scope="text,record">
<a >编辑</a> <a @click="modifyfunction(record)">编辑</a>
<a-divider type="vertical"/>
<a-popconfirm title="是否删除?" @confirm="delet(record.id)">
<a>删除</a>
</a-popconfirm>
</template> </template>
</s-table> </s-table>
<!--编辑----弹框-->
<a-modal :title="titleName" :visible="modifyvisible" @ok="createfunctionOk" @cancel="createfunctionCancel" html-type="submit" width="840px">
<a-form :form="Formtable">
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="套餐名称">
<a-input placeholder="套餐名称" v-decorator="[ 'packageName', {rules: [{ required: true, message: '套餐名称不能为空!' ,whitespace:true}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="套餐全称">
<a-auto-complete placeholder="套餐全称" v-decorator="[ 'name', {rules: [{ required: true, message: '县分不能为空!' ,whitespace:true}]} ]">
<template slot="dataSource">
<a-select-option v-for="website in autoCompleteResult" :key="website">
{{ website }}
</a-select-option>
</template>
</a-auto-complete>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="卡品类型">
<a-radio-group v-decorator="['isXbCard']" :defaultValue="0">
<a-radio :value="0">小白卡</a-radio>
<a-radio :value="1">预制卡</a-radio>
</a-radio-group>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="月基本费用">
<a-input placeholder="月基本费用" v-decorator="[ 'monthFee', {rules: [{ required: true, message: '月基本费用不能为空!' ,whitespace:true}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="流量">
<a-input placeholder="流量" v-decorator="[ 'flow', {rules: [{ required: true, message: '流量不能为空!' ,whitespace:true}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="语音">
<a-input placeholder="语音" v-decorator="[ 'voice', {rules: [{ required: true, message: '语音不能为空!' ,whitespace:true}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="小白卡套餐id">
<a-input placeholder="小白卡套餐id" v-decorator="[ 'xbId', {rules: [{ required: true, message: '小白卡套餐id不能为空!' ,whitespace:true}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="温馨提示">
<a-input placeholder="温馨提示" v-decorator="[ 'warmTip']"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="简介">
<a-input placeholder="简介" v-decorator="[ 'explains', {rules: [{ required: true, message: '简介不能为空!' ,whitespace:true}]}]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="背景图">
<img style="width: 150px">
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="小图">
<img style="width: 150px">
</a-form-item>
</a-form>
</a-modal>
</div> </div>
</template> </template>
<script> <script>
import STable from '@/components/table'; import STable from '@/components/table';
import {findByList,choosepages,modify,insert,hidestatus} from "@/api/school-center/packageManagementAPI" import {findByList,modify,insert,packageAllList,delet} from "@/api/school-center/packageManagementAPI"
import {cloneObject} from '@/utils/util'; import {cloneObject} from '@/utils/util';
export default { export default {
name: "package", name: "package",
...@@ -43,15 +95,31 @@ ...@@ -43,15 +95,31 @@
}, },
data: function () { data: function () {
return { return {
Formtable: this.$form.createForm(this, {name: 'Formtable'}),
//输入框列表 //输入框列表
autoCompleteResult:[],
modifyForm: {
id:"",
packageName:"",
name:"",
isXbCard:"",
monthFee:"",
flow:"",
voice:"",
xbId:"",
warmTip:"",
explains:"",
},
queryParam: { queryParam: {
name: '', name: '',
}, },
modifyvisible:false,
titleName:"",
columns: [ columns: [
{dataIndex: 'packageName', width: 200, title: '学校名称', align: "center"}, {dataIndex: 'packageName', width: 200, title: '套餐名称', align: "center"},
{dataIndex: 'monthFee', width: 200, title: '学校名称', align: "center"}, {dataIndex: 'monthFee', width: 200, title: '标准月租', align: "center"},
{dataIndex: 'flow', width: 200, title: '学校名称', align: "center"}, {dataIndex: 'flow', width: 200, title: '流量', align: "center"},
{dataIndex: 'voice', width: 200, title: '学校名称', align: "center"}, {dataIndex: 'voice', width: 200, title: '语音', align: "center"},
{ {
dataIndex: 'operation', dataIndex: 'operation',
width: 100, width: 100,
...@@ -94,6 +162,110 @@ ...@@ -94,6 +162,110 @@
search() { search() {
this.$refs.table.refresh({search: true}) this.$refs.table.refresh({search: true})
}, },
delet(id){
let parent={
id:id
}
delet(parent).then(res=>{
if (res.state=="success") {
this.$message.success(res.data ? res.data : '修改成功!', 5);
this.search();
return null;
}
this.$message.error(res.data ? res.data : '修改失败!', 5);
})
},
add(){
this.modifyvisible=true
this.modifyForm.id=""
this.titleName="添加"
packageAllList().then(res=>{
if (res.state=="success"){
this.autoCompleteResult=res.data
}
})
setTimeout(()=>{
this.Formtable.setFieldsValue({
isXbCard:0,
})
},0)
},
modifyfunction(data){
this.modifyForm.id=data.id
this.titleName="编辑"
this.modifyvisible=true
setTimeout(()=>{
this.Formtable.setFieldsValue({
packageName:data.packageName,
name:data.name,
isXbCard:data.isXbCard,
monthFee:data.monthFee,
flow:data.flow,
voice:data.voice,
xbId:data.xbId,
warmTip:data.warmTip,
explains:data.explains,
})
},0)
packageAllList().then(res=>{
if (res.state=="success"){
this.autoCompleteResult=res.data
}
})
},
//提交表单
createfunctionOk(){
this.Formtable.validateFields(['packageName', 'name',"isXbCard","monthFee", 'flow',"voice", 'xbId',"warmTip" ,'explains'], {force: true}, (err, values)=>{
if (!err){
this.modifyForm.packageName=values.packageName
this.modifyForm.name=values.name
this.modifyForm.isXbCard=values.isXbCard
this.modifyForm.monthFee=values.monthFee
this.modifyForm.flow=values.flow
this.modifyForm.voice=values.voice
this.modifyForm.xbId=values.xbId
this.modifyForm.warmTip=values.warmTip
this.modifyForm.explains=values.explains
//插入数据
if (this.modifyForm.id==""){
insert(this.modifyForm).then(res=>{
if (res.state=="success") {
this.$message.success(res.data ? res.data : '添加成功!', 5);
this.search();
return null;
}
this.$message.error(res.data ? res.data : '添加失败!', 5);
})
return null;
}
//修改数据
modify(this.modifyForm).then(res=>{
if (res.state=="success") {
this.$message.success(res.data ? res.data : '修改成功!', 5);
this.search();
return null;
}
this.$message.error(res.data ? res.data : '修改失败!', 5);
})
}
})
},
createfunctionCancel(){
this.modifyvisible=false
this.autoCompleteResult=[]
this.Formtable.setFieldsValue({
packageName:"",
name:"",
isXbCard:0,
monthFee:"",
flow:"",
voice:"",
xbId:"",
warmTip:"",
explains:"",
})
}
} }
} }
......
...@@ -15,10 +15,9 @@ ...@@ -15,10 +15,9 @@
<a-input placeholder="学校名称" v-model="queryParam.productUniversity" ></a-input> <a-input placeholder="学校名称" v-model="queryParam.productUniversity" ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="3" :sm="12"> <a-col :md="12" :sm="12">
<a-button @click="search()" type="primary">查询</a-button> <a-button @click="search()" type="primary">查询</a-button>
</a-col> <a-divider type="vertical"/>
<a-col :md="3" :sm="12">
<a-button @click="modifyfunction()" type="primary">添加</a-button> <a-button @click="modifyfunction()" type="primary">添加</a-button>
</a-col> </a-col>
</a-row> </a-row>
...@@ -39,8 +38,8 @@ ...@@ -39,8 +38,8 @@
<p style="white-space: pre-line;">{{text}}</p> <p style="white-space: pre-line;">{{text}}</p>
</template> </template>
<template slot="productState" slot-scope="text"> <template slot="productState" slot-scope="text">
<p v-if="text=='0'">正常</p> <span v-if="text=='0'">正常</span>
<p v-else=""></p> <span v-else>下架</span>
</template> </template>
<template slot="operation" slot-scope="text, record"> <template slot="operation" slot-scope="text, record">
<span> <span>
...@@ -74,14 +73,24 @@ ...@@ -74,14 +73,24 @@
<a-input placeholder="适用学校" v-decorator="[ 'productUniversity', {rules: [{ required: true, message: '适用学校不能为空!' ,validator: 'click'}]} ]"></a-input> <a-input placeholder="适用学校" v-decorator="[ 'productUniversity', {rules: [{ required: true, message: '适用学校不能为空!' ,validator: 'click'}]} ]"></a-input>
</a-form-item> </a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="套餐情况:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="套餐情况:">
<a-textarea :rows="10" v-model="modelData.productMealPrice"/> <a-input :rows="10" v-model="modelData.productMealPrice"/>
</a-form-item> </a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="产品情况:"> <div v-show="!add">
<a-textarea :rows="10" v-model="modelData.productIntroduction"/> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="状态">
<a-select placeholder="状态" v-decorator="[ 'productState']">
<a-select-option key="0">正常</a-select-option>
<a-select-option key="1">下架</a-select-option>
</a-select>
</a-form-item> </a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="资费介绍:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="产品情况:">
<a-textarea :rows="10" v-model="modelData.productSetMealIntroduction"/> <div v-html="productIntroduction">
</div>
</a-form-item> </a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="资费介绍:">
<div v-html="productSetMealIntroduction">
</div>
</a-form-item>
</div>
</a-form> </a-form>
</a-modal> </a-modal>
</div> </div>
...@@ -101,6 +110,8 @@ ...@@ -101,6 +110,8 @@
Formtable: this.$form.createForm(this), Formtable: this.$form.createForm(this),
modifyvisible: false, modifyvisible: false,
add: true, add: true,
productIntroduction:"",
productSetMealIntroduction:'',
queryParam: { queryParam: {
productUniversity :'', //适用学校 productUniversity :'', //适用学校
productRegion :'', // 区域 productRegion :'', // 区域
...@@ -108,8 +119,6 @@ ...@@ -108,8 +119,6 @@
productState :'' // 宽带狀態 productState :'' // 宽带狀態
}, },
modelData:{ modelData:{
productIntroduction:'',
productSetMealIntroduction:'',
productMealPrice:'', productMealPrice:'',
productMeal:'', productMeal:'',
productTitle:'', productTitle:'',
...@@ -121,21 +130,21 @@ ...@@ -121,21 +130,21 @@
}, },
columns: [ columns: [
{dataIndex: 'productTitle', width: 200, title: '宽带标题 '}, {dataIndex: 'productTitle', width: 200, title: '宽带标题 '},
{dataIndex: 'productUniversity', width: 200, title: '学校'}, {dataIndex: 'productUniversity', width: 250, title: '学校'},
{dataIndex: 'productPrice', width: 200, title: '资费 '}, {dataIndex: 'productPrice', width: 80, title: '资费 '},
{dataIndex: 'productRegion', width: 200, title: '区域'}, {dataIndex: 'productRegion', width: 80, title: '县分'},
{dataIndex: 'productCreater', width: 200, title: '创建人 '}, {dataIndex: 'productCreater', width: 80, title: '创建人 '},
{dataIndex: 'productLastUpdateTime', width: 200, title: '更新时间 ' ,scopedSlots: {customRender: 'productLastUpdateTime'}}, {dataIndex: 'productLastUpdateTime', width: 200, title: '更新时间 ' ,scopedSlots: {customRender: 'productLastUpdateTime'}},
{dataIndex: 'productCreateTime', width: 200, title: '创建时间 ', scopedSlots: {customRender: 'productCreateTime'}}, {dataIndex: 'productCreateTime', width: 200, title: '创建时间 ', scopedSlots: {customRender: 'productCreateTime'}},
{dataIndex: 'productState', width: 200, title: '状态 ', scopedSlots: {customRender: 'productState'}}, {dataIndex: 'productState', width: 80, title: '状态 ', scopedSlots: {customRender: 'productState'}},
{dataIndex: 'productMealPrice', width: 200, title: '套餐情况 ', scopedSlots: {customRender: 'text'}}, {dataIndex: 'productMealPrice', width: 200, title: '套餐情况 ', scopedSlots: {customRender: 'text'}},
{dataIndex: 'productRate', width: 200, title: '包年包月情况 '}, {dataIndex: 'productRate', width: 120, title: '包年包月情况 '},
{dataIndex: 'productMeal', width: 200, title: '宽带速率 '}, {dataIndex: 'productMeal', width: 80, title: '宽带速率 '},
/* {dataIndex: 'productIntroduction', width: 200, title: '产品情况 ', scopedSlots: {customRender: 'text'}}, /* {dataIndex: 'productIntroduction', width: 200, title: '产品情况 ', scopedSlots: {customRender: 'text'}},
{dataIndex: 'productSetMealIntroduction', width: 200, title: '资费介绍 ', scopedSlots: {customRender: 'text'}},*/ {dataIndex: 'productSetMealIntroduction', width: 200, title: '资费介绍 ', scopedSlots: {customRender: 'text'}},*/
{ {
dataIndex: 'operation', dataIndex: 'operation',
width: 100, width: 120,
title: '操作', title: '操作',
scopedSlots: {customRender: 'operation'}, scopedSlots: {customRender: 'operation'},
fixed: "right" fixed: "right"
...@@ -175,14 +184,17 @@ ...@@ -175,14 +184,17 @@
this.$refs.table.refresh({search: true}) this.$refs.table.refresh({search: true})
}, },
remove(id) { remove(id) {
productDelete(id).then(() => { productDelete(id).then((res) => {
if(res.state=="success"){
this.$notification.success({message: res.data, description: '', duration: 4})
}
this.$refs.table.refresh({search: true}) this.$refs.table.refresh({search: true})
}) })
}, },
modifyfunction(data){ modifyfunction(data){
if(data != undefined ){ if(data != undefined ){
this.modelData.productIntroduction=data.productIntroduction, this.productIntroduction=data.productIntroduction,
this.modelData.productSetMealIntroduction=data.productSetMealIntroduction, this.productSetMealIntroduction=data.productSetMealIntroduction,
this.modelData.productMealPrice=data.productMealPrice this.modelData.productMealPrice=data.productMealPrice
this.modelData.productId=data.productId this.modelData.productId=data.productId
setTimeout(()=>{ setTimeout(()=>{
...@@ -192,7 +204,8 @@ ...@@ -192,7 +204,8 @@
"productUniversity":data.productUniversity, "productUniversity":data.productUniversity,
"productPrice":data.productPrice, "productPrice":data.productPrice,
"productRegion":data.productRegion, "productRegion":data.productRegion,
"productRate":data.productRate "productRate":data.productRate,
productState:data.productState
}) })
},0) },0)
this.add=false; this.add=false;
...@@ -201,7 +214,7 @@ ...@@ -201,7 +214,7 @@
}, },
createfunctionOk(){ createfunctionOk(){
let that = this; let that = this;
that.Formtable.validateFields(['productMeal','productTitle','productPrice','productUniversity','productRegion','productRate'], {force: true}, (err, values) => { that.Formtable.validateFields(['productMeal','productTitle','productPrice','productUniversity','productRegion','productRate','productState'], {force: true}, (err, values) => {
if (err ) { if (err ) {
return; return;
} }
...@@ -211,6 +224,7 @@ ...@@ -211,6 +224,7 @@
that.modelData.productPrice=values.productPrice that.modelData.productPrice=values.productPrice
that.modelData.productRegion=values.productRegion that.modelData.productRegion=values.productRegion
that.modelData.productRate=values.productRate that.modelData.productRate=values.productRate
that.modelData.productState=values.productState
if(this.add){ if(this.add){
let obj= that.modelData; let obj= that.modelData;
delete obj.productId delete obj.productId
...@@ -218,7 +232,9 @@ ...@@ -218,7 +232,9 @@
productInsert({product}).then((res) => { productInsert({product}).then((res) => {
this.modifyvisible=false; this.modifyvisible=false;
this.clearmodel() this.clearmodel()
if(res.state=="success"){
this.$notification.success({message: res.data, description: '', duration: 4}) this.$notification.success({message: res.data, description: '', duration: 4})
}
this.search() this.search()
}) })
}else { }else {
...@@ -227,7 +243,9 @@ ...@@ -227,7 +243,9 @@
productUpdate({product}).then((res) => { productUpdate({product}).then((res) => {
this.modifyvisible=false; this.modifyvisible=false;
this.clearmodel() this.clearmodel()
if(res.state=="success"){
this.$notification.success({message: res.data, description: '', duration: 4}) this.$notification.success({message: res.data, description: '', duration: 4})
}
this.search() this.search()
}) })
} }
...@@ -240,6 +258,7 @@ ...@@ -240,6 +258,7 @@
}, },
//清除弹窗信息 //清除弹窗信息
clearmodel() { clearmodel() {
this.add=true
let that = this; let that = this;
that.modelData.productMealPrice='' that.modelData.productMealPrice=''
that.modelData.productId='' that.modelData.productId=''
...@@ -251,7 +270,8 @@ ...@@ -251,7 +270,8 @@
productUniversity:'', productUniversity:'',
productPrice:'', productPrice:'',
productRegion:'', productRegion:'',
productRate:'' productRate:'',
productState:'0'
}) })
} }
} }
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<a-form layout="inline"> <a-form layout="inline">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="6" :sm="12"> <a-col :md="6" :sm="12">
<a-form-item label="区域:"> <a-form-item label="县分:">
<a-input placeholder="区域" v-model="queryParam.universityRegion"></a-input> <a-input placeholder="县分" v-model="queryParam.universityRegion"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="12"> <a-col :md="6" :sm="12">
...@@ -15,12 +15,13 @@ ...@@ -15,12 +15,13 @@
<a-input placeholder="学校名称" v-model="queryParam.universityName" ></a-input> <a-input placeholder="学校名称" v-model="queryParam.universityName" ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="3" :sm="12"> <span class="table-page-search-submitButtons" style="float: left; overflow: hidden;">
<a-col :md="6" :sm="24">
<a-button @click="search()" type="primary">查询</a-button> <a-button @click="search()" type="primary">查询</a-button>
</a-col> <a-divider type="vertical"/>
<a-col :md="3" :sm="12">
<a-button @click="modifyfunction()" type="primary">添加</a-button> <a-button @click="modifyfunction()" type="primary">添加</a-button>
</a-col> </a-col>
</span>
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
...@@ -128,17 +129,17 @@ ...@@ -128,17 +129,17 @@
}, },
columns: [ columns: [
{dataIndex: 'universityName', width: 200, title: '学校名称'}, {dataIndex: 'universityName', width: 200, title: '学校名称'},
{dataIndex: 'universityRegion', width: 200, title: '所在区域 '}, {dataIndex: 'universityRegion', width: 80, title: '县分 '},
{dataIndex: 'universityInstalledAddress', width: 200, title: '装机地址'}, {dataIndex: 'universityInstalledAddress', width: 300, title: '装机地址'},
{dataIndex: 'universityExteriorLines', width: 200, title: '外线方式 '}, {dataIndex: 'universityExteriorLines', width: 120, title: '外线方式 '},
{dataIndex: 'universityPackageNumber', width: 200, title: '揽装工号 '}, {dataIndex: 'universityPackageNumber', width: 100, title: '揽装工号 '},
{dataIndex: 'universityUserType', width: 200, title: '用户类型 '}, {dataIndex: 'universityUserType', width: 150, title: '用户类型 '},
{dataIndex: 'universityMonthlyRentType', width: 200, title: '月租类型 '}, {dataIndex: 'universityMonthlyRentType', width: 80, title: '月租类型 '},
{dataIndex: 'universityChargeMode', width: 200, title: '收费模式 '}, {dataIndex: 'universityChargeMode', width: 120, title: '收费模式 '},
{dataIndex: 'universityChargingAttribute', width: 200, title: '计费属性 '}, {dataIndex: 'universityChargingAttribute', width: 80, title: '计费属性 '},
{dataIndex: 'universityContactPhone', width: 200, title: '学校联系号码 '}, {dataIndex: 'universityContactPhone', width: 200, title: '学校联系号码 '},
{dataIndex: 'universityLastUpdateTime', width: 200, title: '更新时间 ' ,scopedSlots: {customRender: 'productLastUpdateTime'}}, {dataIndex: 'universityLastUpdateTime', width: 150, title: '更新时间 ' ,scopedSlots: {customRender: 'productLastUpdateTime'}},
{dataIndex: 'universityCreateTime', width: 200, title: '创建时间 ', scopedSlots: {customRender: 'productCreateTime'}}, {dataIndex: 'universityCreateTime', width: 150, title: '创建时间 ', scopedSlots: {customRender: 'productCreateTime'}},
{ {
dataIndex: 'operation', dataIndex: 'operation',
width: 100, width: 100,
...@@ -181,7 +182,10 @@ ...@@ -181,7 +182,10 @@
this.$refs.table.refresh({search: true}) this.$refs.table.refresh({search: true})
}, },
remove(id) { remove(id) {
universityDelete(id).then(() => { universityDelete(id).then((res) => {
if(res.state=="success"){
this.$notification.success({message: res.data, description: '', duration: 4})
}
this.$refs.table.refresh({search: true}) this.$refs.table.refresh({search: true})
}) })
}, },
...@@ -234,7 +238,9 @@ ...@@ -234,7 +238,9 @@
universityInsert({university}).then((res) => { universityInsert({university}).then((res) => {
this.modifyvisible=false; this.modifyvisible=false;
this.clearmodel() this.clearmodel()
if(res.state=="success"){
this.$notification.success({message: res.data, description: '', duration: 4}) this.$notification.success({message: res.data, description: '', duration: 4})
}
this.search() this.search()
}) })
}else { }else {
...@@ -243,7 +249,9 @@ ...@@ -243,7 +249,9 @@
universityUpdate({university}).then((res) => { universityUpdate({university}).then((res) => {
this.modifyvisible=false; this.modifyvisible=false;
this.clearmodel() this.clearmodel()
if(res.state=="success"){
this.$notification.success({message: res.data, description: '', duration: 4}) this.$notification.success({message: res.data, description: '', duration: 4})
}
this.search() this.search()
}) })
} }
...@@ -256,6 +264,7 @@ ...@@ -256,6 +264,7 @@
}, },
//清除弹窗信息 //清除弹窗信息
clearmodel() { clearmodel() {
this.add=true
this.modelData.universityId='' this.modelData.universityId=''
this.Formtable.setFieldsValue({ this.Formtable.setFieldsValue({
"universityName":'', "universityName":'',
......
<template>
<div class="flex-container">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<!-- 搜索区域 -->
<a-form layout="inline">
<a-row :gutter="24">
<a-col :md="6" :sm="12">
<a-form-item label="预实名账号:">
<a-input placeholder="预实名账号" v-model="queryParam.userName"></a-input>
</a-form-item>
</a-col>
<span class="table-page-search-submitButtons" style="float: left; overflow: hidden;">
<a-col :md="6" :sm="24">
<a-button @click="search()" type="primary">查询</a-button>
<a-divider type="vertical"/>
<a-button @click="modifyfunction()" type="primary">添加</a-button>
</a-col>
</span>
</a-row>
</a-form>
</div>
<!--列表-->
<s-table :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling">
<template slot="operation" slot-scope="text, record">
<span>
<a @click="modifyfunction(record)">修改</a>
<a-divider type="vertical"/>
<a-popconfirm v-if="record.status == 1" title="是否不通过佣金系统?" @confirm="notThrough(record.id,0)">
<a>不通过佣金系统</a>
</a-popconfirm>
<a-popconfirm v-if="record.status == 0" title="是否通过佣金系统?" @confirm="notThrough(record.id,1)">
<a>通过佣金系统</a>
</a-popconfirm>
</span>
</template>
</s-table>
<!----弹框-->
<a-modal :title="add ?'添加预实名账号': '编辑预实名账号'" :visible="modifyvisible" @ok="createfunctionOk" @cancel="createfunctionCancel" html-type="submit" width="1024px">
<a-form :form="Formtable">
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="账号:">
<a-input placeholder="预实名账号" v-decorator="[ 'userName', {rules: [{ required: true, message: '预实名账号不能为空!' ,validator: 'click'}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="签名:">
<a-input placeholder="签名" v-decorator="[ 'sign', {rules: [{ required: true, message: '签名不能为空!' ,validator: 'click'}]} ]"></a-input>
</a-form-item>
</a-form>
</a-modal>
</div>
</template>
<script>
import STable from '@/components/table';
import {ysmUserList, ysmUserNotThrough, ysmUserInsert, ysmUserUpdate} from "@/api/school-center/ysmUser"
import {cloneObject} from '@/utils/util';
export default {
name: "ysmUser",
components: {
STable,
},
data(){
return {
Formtable: this.$form.createForm(this),
modifyvisible: false,
add: true,
queryParam: {
userName :''
},
modelData:{
id:'',
userName:'',
sign:''
},
columns: [
{dataIndex: 'userName', width: 200, title: '预实名账号'},
{dataIndex: 'sign', width: 200, title: '签名'},
{
dataIndex: 'operation',
width: 100,
title: '操作',
scopedSlots: {customRender: 'operation'},
fixed: "right"
}]
,
rowdata: parameter => {
let params = {
pageNo: parameter.pageNo,
pageSize: parameter.pageSize
}
let obj = cloneObject(this.queryParam)
//表示
return ysmUserList(Object.assign(params,obj)).then(res => {
let data = {}
if (res.state !== 'success') {
data = {
data: [],
pageSize: parameter.pageSize,
pageNo: 1,
totalCount: 0
}
} else {
data = {
data: res.data.records,
pageSize: parameter.pageSize,
pageNo: parameter.pageNo,
totalCount: res.data.total
}
}
return data
})
}
}
},
methods:{
search() {
this.$refs.table.refresh({search: true})
},
notThrough(id,status) {
ysmUserNotThrough(id,{status}).then((res) => {
if(res.state=="success"){
this.$notification.success({message: res.data, description: '', duration: 4})
}
this.$refs.table.refresh({search: true})
})
},
modifyfunction(data){
if(data != undefined ){
this.modelData.id=data.id
setTimeout(()=>{
this.Formtable.setFieldsValue({
"userName":data.userName,
"sign":data.sign
})
},0)
this.add=false;
}
this.modifyvisible=true;
},
createfunctionOk(){
let that = this;
that.Formtable.validateFields(['userName','sign'], {force: true}, (err, values) => {
if (err ) {
return;
}
that.modelData.userName=values.userName
that.modelData.sign=values.sign
if(this.add){
let obj= that.modelData;
delete obj.id
let ysmUser= JSON.stringify(obj);
ysmUserInsert({ysmUser}).then((res) => {
this.modifyvisible=false;
this.clearmodel()
if(res.state=="success"){
this.$notification.success({message: res.data, description: '', duration: 4})
}
this.search()
})
}else {
let obj= that.modelData;
let ysmUser= JSON.stringify(obj);
ysmUserUpdate({ysmUser}).then((res) => {
this.modifyvisible=false;
this.clearmodel()
if(res.state=="success"){
this.$notification.success({message: res.data, description: '', duration: 4})
}
this.search()
})
}
})
},
createfunctionCancel(){
this.modifyvisible=false;
this.clearmodel()
this.add=true;
},
//清除弹窗信息
clearmodel() {
this.add=true
let that = this;
that.modelData.id=''
this.Formtable.setFieldsValue({
userName:'',
sign:''
})
}
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
...@@ -360,14 +360,22 @@ export default { ...@@ -360,14 +360,22 @@ export default {
if (!err) { if (!err) {
this.editpasswordfrom.newPwd= encodeURIComponent(this.getPass(this.EditPassFrom.getFieldValue('editpassword'))) this.editpasswordfrom.newPwd= encodeURIComponent(this.getPass(this.EditPassFrom.getFieldValue('editpassword')))
this.editpasswordfrom.rePwd=this.editpasswordfrom.newPwd this.editpasswordfrom.rePwd=this.editpasswordfrom.newPwd
debugger
changeOtherPwd(this.editpasswordfrom).then(res => { changeOtherPwd(this.editpasswordfrom).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.EditPassFrom.setFieldsValue({editpassword:""}); this.EditPassFrom.setFieldsValue({editpassword:""});
this.EditPassFrom.setFieldsValue({editrepassword:""}); this.EditPassFrom.setFieldsValue({editrepassword:""});
this.$message.success(res.message != "" ? res.message : "", 5); if(res.message==undefined){
this.$message.success(res.data != "" ? res.data : "修改成功", 5);
}else {
this.$message.success(res.message != "" ? res.message : "修改成功", 5);
}
}else{ }else{
this.$message.error(res.message != "" ? res.message : "", 5); if(res.message==undefined){
this.$message.error(res.data != "" ? res.data : "失败修改", 5);
}else {
this.$message.error(res.message != "" ? res.message : "失败修改", 5);
}
} }
this.editpaswordmodel = false this.editpaswordmodel = false
}) })
...@@ -376,6 +384,10 @@ export default { ...@@ -376,6 +384,10 @@ export default {
}, },
editPasswordcancel(){ editPasswordcancel(){
this.editpaswordmodel=false this.editpaswordmodel=false
this.EditPassFrom.setFieldsValue({
editpassword:'',
editrepassword:''
})
}, },
compareToFirstPassword (rule, value, callback) { compareToFirstPassword (rule, value, callback) {
const form = this.EditPassFrom; const form = this.EditPassFrom;
......
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