JImageupload,JUpload组件修改,清除没必要的log

This commit is contained in:
yaoyanan
2021-04-08 18:44:24 +08:00
parent a39835ef6b
commit fd67747c58
15 changed files with 47 additions and 124 deletions
+5 -14
View File
@@ -178,7 +178,7 @@
<a-row :gutter="24">
<a-col :span="12">
<a-form-item label="过长剪切">
<j-ellipsis :value="jellipsis.value" :length="20" @text-change="selectChange"/>
<j-ellipsis :value="jellipsis.value" :length="20"/>
</a-form-item>
</a-col>
<a-col :span="12">过长剪切:{{ jellipsis.value }}</a-col>
@@ -198,7 +198,7 @@
<a-row :gutter="24">
<a-col :span="12">
<a-form-item label="多选下拉框">
<j-select-multiple v-model="jselectMultiple.value" :options="jselectMultiple.options" @change="selectChange"/>
<j-select-multiple v-model="jselectMultiple.value" :options="jselectMultiple.options"/>
</a-form-item>
</a-col>
<a-col :span="12">多选下拉框(v-model){{ jselectMultiple.value }}</a-col>
@@ -331,7 +331,7 @@
<a-row :gutter="24">
<a-col :span="12">
<a-form-item label="图片上传">
<j-image-upload v-model="imgList" title="22"></j-image-upload>
<j-image-upload v-model="imgList" :isMultiple="true"></j-image-upload>
</a-form-item>
</a-col>
<a-col :span="12">选中的值(v-model){{ imgList }}</a-col>
@@ -339,7 +339,7 @@
<a-row :gutter="24" style="margin-top: 65px;margin-bottom:50px;">
<a-col :span="12">
<a-form-item label="文件上传">
<j-upload v-model="fileList" title="ddd" :multiple="true"></j-upload>
<j-upload v-model="fileList" :multiple="true" :fileType="'image'"></j-upload>
</a-form-item>
</a-col>
<a-col :span="12">
@@ -598,9 +598,6 @@ sayHi('hello, world!')`
],
}
},
created(){
console.log(this.formData.jInput)
},
computed: {
nameList: function() {
@@ -612,12 +609,6 @@ sayHi('hello, world!')`
}
},
methods: {
as(){
this.ss = true
},
selectChange(){
console.log("ok")
},
getDepartIdValue() {
return this.form.getFieldValue('departId')
},
@@ -625,7 +616,7 @@ sayHi('hello, world!')`
return this.form.getFieldValue('orgCodes')
},
changeMe() {
console.log('you so ... , change Me')
},
selectOK: function(data) {
this.selectList = data
@@ -106,7 +106,6 @@
if(res.success){
let formData = {userId:res.result,
departIdList:this.departList}
console.log(formData)
that.$emit('ok', formData);
}
}).finally(() => {
@@ -117,7 +116,6 @@
}else {
let formData = {userId:this.userId,
departIdList:this.departList}
console.log(formData)
that.departList = [];
that.$emit('ok', formData);
that.confirmLoading = false;
@@ -143,7 +141,6 @@
depart.title = de.title;
this.departList.push(depart);
}
console.log('onCheck', checkedKeys, info);
},
queryDepartTree(){
queryIdTree().then((res)=>{
@@ -236,8 +236,6 @@
var that = this;
queryTreeList().then((res)=>{
if(res.success){
console.log('----queryTreeList---')
console.log(res)
that.treeData = [];
let treeList = res.result.treeList
for(let a=0;a<treeList.length;a++){
@@ -258,7 +256,6 @@
this.model = Object.assign({}, record);
//--------------------------------------------------------------------------------------------------
//根据菜单类型,动态展示页面字段
console.log(record)
this.alwaysShow = !record.alwaysShow?false:true;
this.menuHidden = !record.hidden?false:true;
@@ -281,7 +278,6 @@
/*update_end author:wuxianquan date:20190908 for:编辑初始化数据*/
//console.log('record.menuType', record.menuType);
this.show = record.menuType==2?false:true;
this.menuLabel = record.menuType==2?'按钮/权限':'菜单名称';
@@ -326,7 +322,6 @@
that.validateStatus = 'success';
}
that.confirmLoading = true;
console.log(formData);
let obj;
if (!this.model.id) {
obj = addPermission(formData);
@@ -378,7 +373,6 @@
}
},
onChangeMenuType(e) {
//console.log('localMenuType checked', e.target.value)
this.localMenuType=e.target.value
if(e.target.value == 2){
this.show = false;
@@ -398,7 +392,6 @@
this.iconChooseVisible = false
},
handleIconChoose (value) {
console.log(value)
this.model.icon = value
this.form.icon = value
this.iconChooseVisible = false