Commit 2d7610a9 by 罗承锋

提交页面基础功能报错、配置网点充值奖励机制

parent c2301dcd
......@@ -12,7 +12,7 @@ const local = {
'^/api/auth/ciop': '/auth/ciop'
}
},
/*'/api/api/ciop': {
'/api/api/ciop': {
target: 'http://localhost:11091',
//target: 'http://132.97.54.60:58334',
ws: false,
......@@ -41,7 +41,7 @@ const local = {
//默认所有请求都加了api前缀,需要去掉
'^/api/app': '/'
}
},*/
},
'/api/manager': {
target: 'http://localhost:10001',
......
......@@ -2,7 +2,7 @@
SET HOST_NAME=172.18.101.172
:: 每次发版都需要改的版本号
SET APP_VERSION=0.0.2
SET APP_VERSION=0.0.3
SET APP_NAME=gdtelgztelschoolcenterui
cd %APP_NAME%
......
......@@ -9,4 +9,10 @@ export default new Router({
base: process.env.BASE_URL,
scrollBehavior: () => ({ y: 0 }),
routes: asyncRouterMap
})
\ No newline at end of file
})
const originalPush = Router.prototype.push
//修改原型对象中的push方法
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
\ No newline at end of file
......@@ -80,7 +80,7 @@
</p>
</a-col>
</a-row>
<a-row :gutter="24" :v-show="KDmoBan">
<a-row :gutter="24">
<a-col :md="24" :sm="12">
<p>说明:</p>
<p>1.批量导入请严格按照模版进行导入;</p>
......@@ -378,7 +378,7 @@
"weeklyMeeting": data.weeklyMeeting,
"organTraining": data.organTraining,
"designPlan": data.designPlan,
"month": data.month,
"month": data.month != '' ? data.month : null,
"kpi": data.kpi,
"isDel": data.isDel
})
......
......@@ -95,7 +95,7 @@
</p>
</a-col>
</a-row>
<a-row :gutter="24" :v-show="KDmoBan">
<a-row :gutter="24">
<a-col :md="24" :sm="12">
<p>说明:</p>
<p>1.批量导入请严格按照模版进行导入;</p>
......
......@@ -259,7 +259,7 @@
},
createfunctionCancel() {
this.zjlkpivisible = false;
this.clearmodel0();
this.clearmodel();
},
clearmodel() {
this.importTile = "";
......
......@@ -70,7 +70,7 @@
</p>
</a-col>
</a-row>
<a-row :gutter="24" :v-show="KDmoBan">
<a-row :gutter="24">
<a-col :md="24" :sm="12">
<p>说明:</p>
<p>1.批量导入请严格按照模版进行导入;</p>
......@@ -131,7 +131,7 @@
title: ConstantActivity.title,
queryParam: {
name: '',
month: '',
month: [],
},
columns: [
{dataIndex: 'month', width: 80, title: '月份 '},
......
......@@ -41,8 +41,13 @@
<a-select placeholder="请选择" v-model="queryParam.orderType">
<a-select-option key="">请选择</a-select-option>
<a-select-option key="1">放号登记</a-select-option>
<a-select-option key="2">新用户办理</a-select-option>
<a-select-option key="3">羊城通</a-select-option>
<a-select-option key="0">新用户办理</a-select-option>
<a-select-option key="2">存量升级</a-select-option>
<a-select-option key="3">小白卡</a-select-option>
<a-select-option key="4">羊城通</a-select-option>
<a-select-option key="5">线上预制卡</a-select-option>
<a-select-option key="6">线上小白卡</a-select-option>
<a-select-option key="7">自助终端</a-select-option>
</a-select>
</a-form-item>
</a-col>
......@@ -92,8 +97,13 @@
</template>
<template slot="orderTypeScope" slot-scope="text">
<p v-if="text=='1'">放号登记</p>
<p v-if="text=='2'">新用户办卡</p>
<p v-if="text=='3'">存量升级</p>
<p v-if="text=='0'">新用户办卡</p>
<p v-if="text=='2'">存量升级</p>
<p v-if="text=='3'">小白卡</p>
<p v-if="text=='4'">羊城通</p>
<p v-if="text=='5'">线上预制卡</p>
<p v-if="text=='6'">线上小白卡</p>
<p v-if="text=='7'">自助终端</p>
</template>
<template slot="statusScope" slot-scope="text">
<p v-if="text=='0'">重复放号</p>
......@@ -151,7 +161,7 @@
<script>
import STable from '@/components/table';
import moment from 'dayjs'
import {
getList,
deleteOrder,getSubstList,getSchoolList,
......@@ -216,7 +226,11 @@
{dataIndex: 'orderPhone', width: 200, title: '电信激活号码', align: "center"},
{dataIndex: 'name', width: 200, title: '放号人', align: "center"},
{dataIndex: 'account', width: 200, title: '放号人账号', align: "center"},
{dataIndex: 'createTime', width: 200, title: '上传时间', align: "center"},
{dataIndex: 'createTime', width: 200, title: '上传时间', align: "center",
customRender: (text, row, index) => {
return moment(text).format("YYYY-MM-DD HH:mm:ss");
}
},
{
dataIndex: 'orderType', width: 200, title: '订单类型', align: "center",
scopedSlots: {customRender: "orderTypeScope"}
......@@ -228,8 +242,22 @@
scopedSlots: {customRender: "statusScope"}
},
{dataIndex: 'remark', width: 200, title: '审核备注', align: "center"},
{dataIndex: 'auditTime', width: 200, title: '审核时间', align: "center"},
{dataIndex: 'activateTime', width: 200, title: '激活时间', align: "center"},
{dataIndex: 'auditTime', width: 200, title: '审核时间', align: "center",
customRender: (text, row, index) => {
if (text == null) {
return "";
}
return moment(text).format("YYYY-MM-DD HH:mm:ss");
}
},
{dataIndex: 'activateTime', width: 200, title: '激活时间', align: "center",
customRender: (text, row, index) => {
if (text == null) {
return "";
}
return moment(text).format("YYYY-MM-DD HH:mm:ss");
}
},
{dataIndex: 'recentlyAmount', width: 200, title: '最近充值', align: "center"},
{dataIndex: 'recentlyBonus', width: 200, title: '最近充值激励', align: "center"},
{dataIndex: 'capitalBonus', width: 200, title: '本金佣金', align: "center"},
......@@ -350,9 +378,9 @@
this.$message.error(response.msg ? response.msg : "上传文件出错!", 5);
return false;
}
this.$message.success("上传成功!" + response.data, 5);
if(response.data.indexOf("返回导入结果清单") > -1){
exportFile(downloadResult(), "导入结果清单.xlsx");
this.$message.success("上传成功!" + response.data.msg, 5);
if(response.data.msg.indexOf("返回导入结果清单") > -1){
exportFile(downloadResult({"key": response.data.key}), "导入结果清单.xlsx");
}
this.createfunctionCancel();
this.search();
......
......@@ -12,7 +12,7 @@
</a-col>
<a-col :md="3" :sm="6">
<a-form-item label="销售状态">
<a-select v-model="queryParam.state" @change="getSchoolNames">
<a-select v-model="queryParam.state">
<a-select-option key="">--全部--</a-select-option>
<a-select-option key="1">未出售</a-select-option>
<a-select-option key="2">已出售</a-select-option>
......@@ -76,7 +76,7 @@
</p>
</a-col>
</a-row>
<a-row :gutter="24" :v-show="KDmoBan">
<a-row :gutter="24">
<a-col :md="24" :sm="12">
<p>说明:</p>
<p>1.批量导入请严格按照模版进行导入;</p>
......
......@@ -43,9 +43,7 @@
<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>
<a-select-option v-for="website in autoCompleteResult" :key="website">{{ website }}</a-select-option>
</template>
</a-auto-complete>
</a-form-item>
......
......@@ -185,7 +185,7 @@
},
data() {
return {
universityIdtrue: true,
universityId: true,
universityName: '',
regularName: '请选择',
visibleT: false,
......@@ -340,12 +340,14 @@
},
modifyfunction(data) {
universitySchool().then(res => {
this.universitySchool = res.data
res.data.forEach(value => {
this.universitySchool = res.data;
if (data != undefined) {
res.data.forEach(value => {
if (data.universityId == value.universityId) {
this.chouti = value
this.chouti = value
}
})
})
}
//console.log(this.universitySchool)
})
if (data != undefined) {
......
......@@ -8,7 +8,7 @@
<a-col :md="3" :sm="6">
<a-form-item label="县分">
<a-select v-model="queryParam.universityRegion" @change="getSchoolNames">
<a-select v-model="queryParam.universityRegion" @change="getSchool">
<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>
......@@ -302,10 +302,10 @@
"publicNumber":''
})
},
getSchoolNames() {
this.schoolNames = []
this.queryParam.universityRegion = ''
getSchoolNames({"substName": this.queryParam.universityName}).then((res) => {
getSchool() {
this.schoolNames = [];
this.queryParam.productUniversity = '';
getSchoolNames({"substName": this.queryParam.universityRegion}).then((res) => {
if (res.state == "success") {
const result = res.data
result.forEach((r) => {
......@@ -337,7 +337,7 @@
},
mounted() {
this.initSubstName();
this.getSchoolNames();
this.getSchool();
}
}
</script>
......
......@@ -87,6 +87,15 @@
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="网点名称">
<a-input placeholder="网点名称" v-decorator="[ 'networkName']"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="开学时间">
<a-range-picker @change="changeStartDate" :value="modifyForm.datePeriod"/>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="大于50元激励">
<a-input placeholder="大于50元激励" v-decorator="[ 'greaterFifty']"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="大于100元激励">
<a-input placeholder="大于100元激励" v-decorator="[ 'greaterHundred']"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="县分">
<a-select placeholder="请选择" v-decorator="[ 'subName', {rules: [{ required: true, message: '县分不能为空!' ,whitespace:true}]} ]">
<a-select-option key="">请选择</a-select-option>
......@@ -190,10 +199,12 @@
import STable from '@/components/table';
import {findByList,choosepages,modify,insert,hidestatus} from "@/api/school-center/schoolManagermentAPI"
import {cloneObject} from '@/utils/util';
import moment from "moment";
import {getSchoolNames, initSubstName} from "../../../api/school-center/userManager/newUserAPI";
export default {
name: "schoolmanagement",
components: {
moment,
STable,
},
data: function () {
......@@ -225,7 +236,14 @@
netPhone:"",
isShowrh:"",
isRecv:"",
chosePages:""
chosePages:"",
datePeriod: new Array(),
greaterFifty: "",
greaterHundred: "",
startDateStr: "",
endDateStr: "",
startDate: "",
endDate: ""
},
expandedKeys: ['tcsj','xywbl', 'process'],
autoExpandParent: true,
......@@ -313,6 +331,24 @@
scopedSlots: {customRender: 'statusDefault'},
align: "center"
},
{dataIndex: 'startDate', width: 200, title: '开学时间', align: "center",
customRender: (text, row, index) => {
if (text == null) {
return "";
}
return moment(text).format("YYYY-MM-DD");
}
},
{dataIndex: 'endDate', width: 200, title: '结束时间', align: "center",
customRender: (text, row, index) => {
if (text == null) {
return "";
}
return moment(text).format("YYYY-MM-DD");
}
},
{dataIndex: 'greaterFifty', width: 80, title: '大于50元激励', align: "center"},
{dataIndex: 'greaterHundred', width: 90, title: '大于100元激励', align: "center"},
{
dataIndex: 'operation',
width: 200,
......@@ -383,6 +419,13 @@
},
},
methods:{
changeStartDate(dates, dateString) {
console.log(dates);
this.modifyForm.datePeriod = dates;
this.modifyForm.startDate = dateString[0];
this.modifyForm.endDate = dateString[1];
console.log(this.modifyForm);
},
getuuid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0,
......@@ -454,6 +497,9 @@
},
add(){
this.titleName="添加"
this.modifyForm.datePeriod = [];
this.modifyForm.startDate = "";
this.modifyForm.endDate = "";
setTimeout(()=>{
this.Formtable.setFieldsValue({
isShowband:"0",
......@@ -462,6 +508,8 @@
isRecv:"0",
networkCode: '',
networkName: '',
greaterFifty: "",
greaterHundred: "",
})
},0)
this.modifyvisible=true;
......@@ -477,7 +525,13 @@
this.fileid={
id:data.id
}
let url=this.baseuploadUrl()+"manager/"+data.serviceQrcode.replace("enclosure","ciop")
let url= "";
if (data.serviceQrCode != undefined) {
url = this.baseuploadUrl()+"manager/"+data.serviceQrcode.replace("enclosure","ciop");
}else{
url = this.baseuploadUrl()+"manager/";
}
if (!(data.serviceQrcode == null || data.serviceQrcode=="")) {
//下载图片浏览
this.fileList.push({
......@@ -488,6 +542,7 @@
})
}
this.modifyForm.id=data.id
//查询中间表
choosepages(choosepagespare).then(res=>{
if (res.state == 'success'){
......@@ -505,6 +560,17 @@
if (data.isShowrh=="1"){
isShowrh=data.isShowrh
}
if (data.startDate == undefined || data.endDate == undefined) {
this.modifyForm.datePeriod = [];
this.modifyForm.startDate = "";
this.modifyForm.endDate = "";
}else{
this.modifyForm.datePeriod = [moment(new Date(data.startDate)), moment(new Date(data.endDate))];
this.modifyForm.startDate = moment(new Date(data.startDate)).format("YYYY-MM-DD");
this.modifyForm.endDate = moment(new Date(data.endDate)).format("YYYY-MM-DD");
}
setTimeout(()=>{
this.Formtable.setFieldsValue({
subName:data.subName,
......@@ -517,36 +583,44 @@
isShowrh:isShowrh,
isRecv:new String(data.isRecv).toString(),
networkName: data.networkName,
networkCode: data.networkCode
networkCode: data.networkCode,
greaterFifty: data.greaterFifty,
greaterHundred: data.greaterHundred,
})
if (data.isShowrh == 1) {
this.checkedKeys.push("isShowrh");
}
if(data.isRecv == 1) {
this.checkedKeys.push("isRecv");
}
if (data.isShowband == 1) {
this.checkedKeys.push("isShowband");
}
if (data.netPhone == 1) {
this.checkedKeys.push("netPhone");
}
if (data.isShowrh == 1) {
this.checkedKeys.push("isShowrh");
}
if(data.isRecv == 1) {
this.checkedKeys.push("isRecv");
}
if (data.isShowband == 1) {
this.checkedKeys.push("isShowband");
}
if (data.netPhone == 1) {
this.checkedKeys.push("netPhone");
}
},0)
this.customimg="./img/custom"+data.serviceQrcode
this.modifyvisible=true;
},
//提交表单
createfunctionOk(){
this.Formtable.validateFields(['networkCode','networkName','schoolName', 'bandproductId',"subName","lzgh", 'netId',"isShowband", 'isShowrh',"netPhone" ,'isRecv'], {force: true}, (err, values)=>{
this.Formtable.validateFields(['networkCode','networkName','schoolName', 'bandproductId',"subName","lzgh", 'netId',"isShowband", 'isShowrh',"netPhone" ,'isRecv','greaterFifty','greaterHundred'], {force: true}, (err, values)=>{
if (!err){
this.modifyForm.networkCode=values.networkCode
this.modifyForm.networkName=values.networkName
this.modifyForm.subName=values.subName
this.modifyForm.schoolName=values.schoolName
this.modifyForm.netId=values.netId
this.modifyForm.lzgh=values.lzgh
this.modifyForm.bandproductId=values.bandproductId
this.modifyForm.chosePages=""
this.modifyForm.networkCode = values.networkCode
this.modifyForm.networkName = values.networkName == undefined ? "" : values.networkName
this.modifyForm.subName = values.subName
this.modifyForm.schoolName = values.schoolName
this.modifyForm.netId = values.netId
this.modifyForm.lzgh = values.lzgh
this.modifyForm.bandproductId = values.bandproductId
this.modifyForm.chosePages = ""
this.modifyForm.startDateStr = this.modifyForm.startDate;
this.modifyForm.endDateStr = this.modifyForm.endDate;
Vue.delete(this.modifyForm,'startDate');
Vue.delete(this.modifyForm,'endDate');
this.modifyForm.greaterFifty = values.greaterFifty == undefined ? 0 : values.greaterFifty
this.modifyForm.greaterHundred = values.greaterHundred == undefined ? 0 : values.greaterHundred
this.modifyForm.isShowrh = (this.checkedKeys.indexOf("isShowrh") > -1) ? 1 : 0;
this.modifyForm.isShowband = (this.checkedKeys.indexOf("isShowband") > -1) ? 1 : 0;
this.modifyForm.netPhone = (this.checkedKeys.indexOf("netPhone") > -1) ? 1 : 0;
......@@ -575,7 +649,7 @@
})
return null;
}
//修改数据
//修改数据
modify(this.modifyForm).then(res=>{
if (res.state=="success") {
this.$message.success(res.data ? res.data : '修改成功!', 5);
......@@ -601,10 +675,13 @@
netPhone:"",
isShowrh:"",
isRecv:"",
greaterFifty: '',
greaterHundred: ''
})
this.fileList=[]
this.modifyForm.id=""
this.modifyForm.chosePages=""
this.modifyForm.datePeriod = [];
this.chosePages.splice(0,this.chosePages.length)
this.modifyvisible=false;
},
......
......@@ -153,6 +153,7 @@
let obj = cloneObject(this.queryParam);
//表示
return reportList(Object.assign(params, obj)).then(res => {
console.log(res);
let data = {};
if (res.state !== "success") {
this.$message.error("查询失败!", 5);
......
......@@ -151,9 +151,7 @@
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="县分">
<a-select placeholder="请选择" @change="changeSubst(1)" v-model="addForm.subName" >
<a-select-option key="">请选择</a-select-option>
<a-select-option v-for="data in subNameList" :value="data">
{{ data}}
</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>
......@@ -236,9 +234,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 v-for="data in subNameList" :value="data">
{{ data}}
</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>
......@@ -312,6 +308,7 @@
emptyText: {emptyText: '暂无数据'},
Formtable: this.$form.createForm(this, {name: 'Formtable'}),
addFormtable: this.$form.createForm(this, {name: 'addFormtable'}),
titleName : "新增",
queryParam: {
name: '',
account: '',
......@@ -464,7 +461,7 @@
this.changeSchool(data.schoolId);
this.changePosition(2);
this.$refs.tree2.setValue2(data.roleid);
}, 0)
}, 500)
getlistysm().then(res => {
if (res.state == "success") {
this.autoCompleteResult = res.data
......@@ -536,28 +533,29 @@
openAddUser() {
this.titleName = "新增"
this.addUser = true;
this.addFormtable.setFieldsValue({
account: '',
phone: '',
name: '',
idCard: '',
sex: '',
grade: '',
password: '',
repassword: '',
schoolId: '',
parentId: '',
ysm: '',
})
setTimeout(()=>{
this.addFormtable.setFieldsValue({
account: '',
phone: '',
name: '',
idCard: '',
sex: '',
grade: '',
password: '',
schoolId: '',
parentId: '',
ysm: '',
})
this.addForm.subName = '';
this.addForm.position = '';
this.addForm.parentIds = '';
getlistysm().then(res => {
if (res.state == "success") {
this.autoCompleteResult = res.data
}
})
this.addForm.subName = '';
this.addForm.position = '';
this.addForm.parentIds = '';
getlistysm().then(res => {
if (res.state == "success") {
this.autoCompleteResult = res.data
}
})
},0)
},
createOk(){
this.addFormtable.validateFields(["account", 'phone', "name", "idCard", "sex", 'grade',"password",'schoolId','role','position','parentId','ysm'], {force: true}, (err, values)=>{
......@@ -610,7 +608,6 @@
}
//修改数据
addPartner(this.addForm).then(res=>{
console.log(JSON.stringify(res));
if (res.state=="success") {
this.$message.success(res.data ? res.data : '修改成功!', 5);
this.search();
......
......@@ -57,9 +57,30 @@
<a-modal :title="titleName" :visible="modifyvisible" @ok="createfunctionOk" @cancel="createfunctionCancel" html-type="submit" width="720px" height="1600px">
<a-form :form="Formtable">
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="账号">
<a-select mode="tags" v-model="modifyForm.userName" placeholder="请选择账号" @change="handleChange">
<a-select-option v-for="d in userList" :value="d.name">{{ d.name}}</a-select-option>
</a-select>
<template v-for="(tag, index) in modifyForm.userName">
<a-tooltip v-if="tag.length > 20" :key="tag" :title="tag">
<a-tag :key="tag" :closable="index !== 0" @close="() => handleClose(tag)">
{{ `${tag.slice(0, 20)}...` }}
</a-tag>
</a-tooltip>
<a-tag v-else :key="tag" :closable="index !== 0" @close="() => handleClose(tag)">
{{ tag }}
</a-tag>
</template>
<a-input
v-if="inputVisible"
ref="input"
type="text"
size="small"
:style="{ width: '78px' }"
:value="inputValue"
@change="handleInputChange"
@blur="handleInputConfirm"
@keyup.enter="handleInputConfirm"
/>
<a-tag v-else style="background: #fff; borderStyle: dashed;" @click="showInput">
<a-icon type="plus" /> 添加账号
</a-tag>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="县分">
<a-select placeholder="请选择" @change="getSchoolNames2" v-model="modifyForm.subName" >
......@@ -97,6 +118,8 @@
},
data: function () {
return {
inputVisible: false,
inputValue: '',
emptyText: {emptyText: '暂无数据'},
Formtable: this.$form.createForm(this, {name: 'Formtable'}),
queryParam: {
......@@ -114,7 +137,7 @@
schoolNames2: [],
modifyForm: {
id: '',
userName: '',
userName: [],
subName: '',
account: '',
schoolId: '',
......@@ -186,13 +209,8 @@
createfunctionOk(){
this.Formtable.validateFields(["account"], {force: true}, (err, values)=>{
if (!err){
var userNames = this.modifyForm.userName.split(",");
for (const userName of userNames) {
for (const obj of this.userList) {
if(userName === obj.name){
this.modifyForm.account = obj.account +",";
}
}
for (const userName of this.modifyForm.userName) {
this.modifyForm.account = userName +",";
}
addAllocation({"account":this.modifyForm.account,"schoolId":this.modifyForm.schoolId}).then(res=>{
if (res.state=="success") {
......@@ -260,6 +278,35 @@
}
})
},
handleClose(removedTag) {
const tags = this.modifyForm.userName.filter(tag => tag !== removedTag);
console.log(tags);
this.modifyForm.userName = tags;
},
showInput() {
this.inputVisible = true;
this.$nextTick(function() {
this.$refs.input.focus();
});
},
handleInputChange(e) {
this.inputValue = e.target.value;
},
handleInputConfirm() {
const inputValue = this.inputValue;
let tags = this.modifyForm.userName;
if (inputValue && tags.indexOf(inputValue) === -1) {
tags = [...tags, inputValue];
}
console.log(tags);
this.modifyForm.userName = tags;
this.inputVisible = false;
this.inputValue = '';
},
getSchoolNames2() {
this.schoolNames2 = []
this.modifyForm.schoolId = ''
......
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