中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁(yè) > news >正文

求一個(gè)能用的網(wǎng)址網(wǎng)站搜索排名優(yōu)化價(jià)格

求一個(gè)能用的網(wǎng)址,網(wǎng)站搜索排名優(yōu)化價(jià)格,網(wǎng)站建設(shè)開發(fā)怎么樣,室內(nèi)裝修公司排名總結(jié):平常使用v-for的key都是使用index,這里vue官方文檔也不推薦,這個(gè)時(shí)候就出問(wèn)題了,我們需要key為唯一標(biāo)識(shí),這里我使用了時(shí)間戳(new Date().getTime())處理比較復(fù)雜的情況, 本文章…

總結(jié):平常使用v-for的key都是使用index,這里vue官方文檔也不推薦,這個(gè)時(shí)候就出問(wèn)題了,我們需要key為唯一標(biāo)識(shí),這里我使用了時(shí)間戳(new Date().getTime())處理比較復(fù)雜的情況,
本文章參考 鏈接: https://www.jb51.net/javascript/29041834i.htm
效果圖:
在這里插入圖片描述

在這里插入圖片描述

disabled 上傳完一張圖片之后,把上傳‘+’樣式隱藏 詳見:vue element-ui v-for循環(huán)el-upload上傳圖片 動(dòng)態(tài)添加、刪除

//disabled 上傳完一張圖片之后,把上傳‘+’樣式隱藏  詳見:[vue element-ui v-for循環(huán)el-upload上傳圖片 動(dòng)態(tài)添加、刪除](https://blog.csdn.net/sumimg/article/details/132620328)
<el-form-item label="資源列表:"><div class="ziyuan" flex v-for="(item, indexes) in  addList " :key="item.idxxx"><div style="margin-top: 9px;"><el-upload :action="domins + '/common/upload'":class="{ disabled: item.uploadDisabled }" list-type="picture-card":before-upload="beforeUploadOne" :on-preview="handlePictureCardPreview":on-remove="handleRemove.bind(null, { 'index': indexes, 'data': item })":on-success="handleAvatarSuccess.bind(null, { 'index': indexes, 'data': item })":on-change="handleChange.bind(null, { 'index': indexes, 'data': item })":file-list="item.fileList" accept="image/png, image/jpeg"><i class="el-icon-plus"></i></el-upload><el-dialog :visible.sync="dialogVisible"><img width="100%" :src="item.dialogImageUrl" alt=""></el-dialog></div><div class="yasuo" flex="cross:center"><div><div style="height: 68px;"><el-upload ref="uploadzip" :action="domins + '/common/upload'":on-remove="handleRemoveZip":on-success="handleAvatarSuccessZip.bind(null, { 'index': indexes, 'data': item })":on-change="handleChangeZip" :file-list="item.fileListZip":auto-upload="true" accept=".zip,.rar,.ab" :limit="1"><el-button size="small" type="primary">選擇壓縮包</el-button></el-upload></div><div class="banben" v-show="addmu == 1 || jzyFlag == 2">版本號(hào){{item.versions ? item.versions : '1.0.0' }}</div></div></div><div class="airadio"><el-radio-group v-model="item.way"><el-radio :label="0">Android</el-radio><el-radio :label="1">ios</el-radio></el-radio-group></div><div style="margin-top: 11px;"><i class="el-icon-circle-plus-outline" style="color: #264E71;"@click="plusOne(indexes)"></i><i class="el-icon-remove-outline" style="color: #264E71;" v-show="addList.length > 1"@click="removeOne(indexes, item.id, item)"></i></div></div></el-form-item>

壓縮文件 imageConversion 詳見: vue+elementUI 上傳圖片時(shí)壓縮圖片

<script>
import * as imageConversion from 'image-conversion';
export default {components: {  },data() {return {addList: [{id: 0,uploadDisabled: false,album: '',zip: '',way: 0,idxxx: 0// fileList: [],// fileListZip: []}],}}
}
</script>

刪除某一項(xiàng) idxxx作為唯一標(biāo)識(shí),因?yàn)樾枨笤?在沒(méi)添加時(shí)間戳(new Date().getTime())之前是沒(méi)有唯一標(biāo)識(shí)的

//再后面添加一項(xiàng),idxxx作為唯一標(biāo)識(shí),因?yàn)樾枨笤?在沒(méi)添加時(shí)間戳之前是沒(méi)有唯一標(biāo)識(shí)的plusOne() {this.addList.push({id: 0,uploadDisabled: false,album: '',zip: '',way: 0,idxxx: new Date().getTime()})
},
removeOne(index, id, item) {
//使用唯一標(biāo)識(shí)刪除this.addList = [...this.addList.filter(e => e.idxxx !== item.idxxx)]
},

下面是其他的上傳文件的方法

// 模板圖片
beforeUploadOne(file) {console.log(file.size, '壓縮前');const isJpgOrPng =file.type === "image/jpeg" || file.type === "image/png";const isLt1M = file.size / 1024 / 1024 < 1;console.log(file.size / 1024 / 1024, 'isLt1M==');if (file.size / 1024 / 1024 > 2 || file.size / 1024 / 1024 == 2) {this.$message.error("上傳圖片不能超過(guò)2M");return false;}if (!isJpgOrPng) {this.$message.error("上傳圖片只能是 JPG 或 PNG 格式!");return false;}return new Promise((resolve) => {// 小于1M 不壓縮// if (isLt1M) {//     resolve(file)// }// 壓縮到600KB,這里的600就是要壓縮的大小,可自定義imageConversion.compressAccurately(file, 600).then((res) => {console.log(res, '-----res====');resolve(res);});});
},
handlePictureCardPreviewOne(file) {console.log(file, 'file');this.dialogImageUrlOne = file.url;this.dialogVisibleOne = true;
},
handleRemoveOne(file, fileList) {console.log(file, fileList);this.uploadDisabledOne = false;
},
handleAvatarSuccessOne(res, file) {console.log(res, file, 'res, file');this.dialogImageUrlOne = res.data.fullurlconsole.log(this.dialogImageUrlOne, 'this.dialogImageUrlOne圖片路徑');
},
uploadSectionFileOne(file, fileList) {if (fileList.length >= 1) {this.uploadDisabledOne = true;}
},
// zip
handleRemoveZip(file, fileList) {console.log(file, fileList, '移走路徑');
},
handleAvatarSuccessZip(obj, res, file) {console.log(res, file, 'res, file111');console.log(res.data.fullurl, '壓縮包路徑')this.zip_file = res.data.fullurllet imgList = this.addListlet index = obj.index;this.addList[index].zip = res.data.fullurl},
handleChangeZip(file, fileList) {},

css .disabled

.disabled .el-upload--picture-card {display: none !important;
}
http://www.risenshineclean.com/news/43016.html

相關(guān)文章:

  • index 石家莊網(wǎng)站建設(shè)友鏈交易平臺(tái)源碼
  • 浙江龍游疫情最新消息搜索引擎排名優(yōu)化
  • 編寫 網(wǎng)站 語(yǔ)言海外免費(fèi)網(wǎng)站推廣有哪些
  • 網(wǎng)站開發(fā)工作描述百度搜索引擎介紹
  • 商用自適應(yīng)網(wǎng)站建設(shè)智能搜索引擎
  • 自助建站廣告發(fā)布天津推廣的平臺(tái)
  • 自適應(yīng)營(yíng)銷網(wǎng)站模板互聯(lián)網(wǎng)營(yíng)銷培訓(xùn)班
  • 建立soho公司網(wǎng)站什么是搜索引擎優(yōu)化推廣
  • 代做畢業(yè)項(xiàng)目哪個(gè)網(wǎng)站好新浪微輿情大數(shù)據(jù)平臺(tái)
  • 新泰網(wǎng)站制作公司北京seo收費(fèi)
  • 公眾號(hào)小程序二維碼怎么生成搜索引擎排名優(yōu)化
  • 專業(yè)格泰建站海外自媒體推廣
  • 怎么設(shè)計(jì)公司的網(wǎng)站模板無(wú)代碼免費(fèi)web開發(fā)平臺(tái)
  • 可視化信息 網(wǎng)站個(gè)人如何在百度做廣告
  • 網(wǎng)站網(wǎng)站制作400多少錢百度app大全
  • 網(wǎng)站如何留住用戶關(guān)鍵詞代發(fā)排名首頁(yè)
  • 自己制作wordpress主題成都網(wǎng)站seo性價(jià)比高
  • 儋州網(wǎng)站建設(shè)網(wǎng)站查詢域名解析
  • node.js 做網(wǎng)站全媒體運(yùn)營(yíng)師報(bào)名費(fèi)多少錢
  • 建站公司網(wǎng)站用什么好色目人
  • 天津網(wǎng)站建設(shè)報(bào)價(jià)登錄百度app
  • 做淘寶的批發(fā)網(wǎng)站有哪些百度sem
  • 日語(yǔ)網(wǎng)站建設(shè)需要注意什么seo快速排名網(wǎng)站優(yōu)化
  • 安徽省建設(shè)法治協(xié)會(huì)網(wǎng)站google play官網(wǎng)入口
  • 自然志wordpress百度網(wǎng)盤seo優(yōu)化
  • 網(wǎng)絡(luò)營(yíng)銷推廣方法結(jié)論紹興網(wǎng)站快速排名優(yōu)化
  • 門戶網(wǎng)站做壓力測(cè)試搜索引擎的工作原理是什么?
  • python做網(wǎng)站入門寧波網(wǎng)站建設(shè)
  • 做網(wǎng)頁(yè)一個(gè)頁(yè)面多少錢重慶seo職位
  • 網(wǎng)站交互功能萬(wàn)網(wǎng)是什么網(wǎng)站