规范代码
This commit is contained in:
@@ -23,11 +23,6 @@
|
|||||||
required: false,
|
required: false,
|
||||||
default: 25,
|
default: 25,
|
||||||
}
|
}
|
||||||
},
|
|
||||||
//在定义组件时,指定父组件调用时候的传值属性(prop)和事件类型(event),事件名称要和$emit传的一致
|
|
||||||
model:{
|
|
||||||
prop:'value',
|
|
||||||
event:'change'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
name: 'JImageUpload',
|
name: 'JImageUpload',
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
uploadAction:window._CONFIG['domianURL'] + '/sys/common/upload',
|
uploadAction:window._CONFIG['domianURL']+"/sys/common/upload",
|
||||||
uploadLoading:false,
|
uploadLoading:false,
|
||||||
picUrl:false,
|
picUrl:false,
|
||||||
headers:{},
|
headers:{},
|
||||||
@@ -110,7 +110,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
console.log(window._CONFIG['domianURL'] + '/sys/common/upload')
|
|
||||||
const token = Vue.ls.get(ACCESS_TOKEN);
|
const token = Vue.ls.get(ACCESS_TOKEN);
|
||||||
this.headers = {"X-Access-Token":token}
|
this.headers = {"X-Access-Token":token}
|
||||||
},
|
},
|
||||||
@@ -182,7 +181,7 @@
|
|||||||
getAvatarView(){
|
getAvatarView(){
|
||||||
if(this.fileList.length>0){
|
if(this.fileList.length>0){
|
||||||
let url = this.fileList[0].url
|
let url = this.fileList[0].url
|
||||||
return getFileAccessHttpUrl(url)
|
return url
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handlePathChange(){
|
handlePathChange(){
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
if(!this.query){
|
if(!this.query){
|
||||||
if(!val){
|
if(!val){
|
||||||
this.checkStatus = false
|
this.checkStatus = false
|
||||||
this.$emit('change', this.options[1]);
|
this.$emit('check-change', this.options[1]);
|
||||||
}else{
|
}else{
|
||||||
if(this.options[0]==val){
|
if(this.options[0]==val){
|
||||||
this.checkStatus = true
|
this.checkStatus = true
|
||||||
|
|||||||
@@ -163,7 +163,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
console.log(this.$attrs)
|
|
||||||
const token = Vue.ls.get(ACCESS_TOKEN);
|
const token = Vue.ls.get(ACCESS_TOKEN);
|
||||||
//---------------------------- begin 图片左右换位置 -------------------------------------
|
//---------------------------- begin 图片左右换位置 -------------------------------------
|
||||||
this.headers = {"X-Access-Token":token};
|
this.headers = {"X-Access-Token":token};
|
||||||
|
|||||||
Reference in New Issue
Block a user