|
@@ -136,7 +136,7 @@
|
|
|
<Form-item label="备注">
|
|
|
<i-input type="textarea" v-model="formdata.note" placeholder="请输入备注"></i-input>
|
|
|
</Form-item>
|
|
|
- <Form-item label="图片上传">
|
|
|
+ <Form-item label="图片上传" v-if="!issavingloading&&!issavingimg">
|
|
|
<div id="images">
|
|
|
<div class="img_list">
|
|
|
<div class="demo-upload-list" v-for="(url,index) in uploadList" :key="index">
|
|
@@ -151,6 +151,7 @@
|
|
|
<!--:max-size="204800"-->
|
|
|
<!--:on-exceeded-size="handleMaxSize" //action="https://app.tjzhxx.cn:5443/api/Cos/savephoto" http://app.tjzhxx.local.cn/api/Cos/savephoto-->
|
|
|
<Upload
|
|
|
+ multiple
|
|
|
ref="upload"
|
|
|
:show-upload-list="false"
|
|
|
:on-success="handleSuccess"
|
|
@@ -159,6 +160,7 @@
|
|
|
:before-upload="handleBeforeUpload"
|
|
|
:on-exceeded-size="handleMaxSize"
|
|
|
:max-size="2048"
|
|
|
+ accept="image/*"
|
|
|
name="file"
|
|
|
type="drag"
|
|
|
action="https://app.tjzhxx.cn:5443/api/Cos/savephoto"
|
|
@@ -252,6 +254,7 @@
|
|
|
vuetify: new Vuetify(),
|
|
|
data: {
|
|
|
issavingloading:false,
|
|
|
+ issavingimg:false,
|
|
|
formdata:{
|
|
|
name:"",
|
|
|
age:17,
|
|
@@ -270,7 +273,8 @@
|
|
|
viewimgurl:'',
|
|
|
visible:false,
|
|
|
//url_host:"http://newwatercatserver.com/index.php/index",
|
|
|
- url_host:"https://app.tjzhxx.cn:11443/index.php/index",
|
|
|
+ //url_host:"https://app.tjzhxx.cn:11443/index.php/index",
|
|
|
+ url_host:"https://app.tjzhxx.cn:10443/index.php/index",
|
|
|
worktypeonelabel:[],
|
|
|
userid:0,
|
|
|
isedit:false,
|
|
@@ -329,6 +333,7 @@
|
|
|
},
|
|
|
handleSuccess (res, file) {
|
|
|
this.$Message.destroy()
|
|
|
+ this.issavingimg=false;
|
|
|
if(1!=res.status){
|
|
|
this.$Message.error(res.msg);
|
|
|
return
|
|
@@ -360,6 +365,7 @@
|
|
|
});
|
|
|
}
|
|
|
this.$Message.loading('图片上传中', 0);
|
|
|
+ this.issavingimg=true;
|
|
|
return check;
|
|
|
},
|
|
|
getinfobytelno(telno){
|
|
@@ -374,7 +380,7 @@
|
|
|
dataType: "json",
|
|
|
success: function(res){
|
|
|
//res = JSON.parse(res);
|
|
|
- console.log(res);
|
|
|
+ //console.log(res);
|
|
|
if(200!=res.code){
|
|
|
if(res.code<0){
|
|
|
that.isedit =false;
|
|
@@ -441,7 +447,7 @@
|
|
|
data:data,
|
|
|
dataType: "json",
|
|
|
success: function(res){
|
|
|
- console.log(res);
|
|
|
+ //console.log(res);
|
|
|
if(200!=res.code){
|
|
|
if(res.code<0){
|
|
|
}else{
|
|
@@ -450,6 +456,7 @@
|
|
|
});
|
|
|
}
|
|
|
}else{
|
|
|
+ that.isedit=true
|
|
|
that.$Notice.success({
|
|
|
title: "用户信息保存成功"
|
|
|
});
|
|
@@ -479,7 +486,7 @@
|
|
|
data:data,
|
|
|
dataType: "json",
|
|
|
success: function(res){
|
|
|
- console.log(res);
|
|
|
+ //console.log(res);
|
|
|
if(200!=res.code){
|
|
|
if(res.code<0){
|
|
|
}else{
|