当前位置: 首页 > news >正文

做网站赌博的推广是不是犯罪的广州网络优化最早的公司

做网站赌博的推广是不是犯罪的,广州网络优化最早的公司,淄博市网站云平台,erp系统的优点这个封装的是一个供整个项目使用的表格,可多次复用.放在一个全局使用的公共组件文件下. 大致功能介绍,封装自定义指令,点击获得焦点,显示输入框,失去焦点显示文本内容,类型是字典决定类型,图片可以显示图片名还是上传图片 子组件 <script> export default {props: {//生…

这个封装的是一个供整个项目使用的表格,可多次复用.放在一个全局使用的公共组件文件下.

大致功能介绍,封装自定义指令,点击获得焦点,显示输入框,失去焦点显示文本内容,类型是字典决定类型,图片可以显示图片名还是上传图片

 

子组件

<script>
export default {props: {//生成表头fields: {type: Array,default: () => [],},//数据tableData: {type: Array,default: () => [],},},data() {return {};},created() {},
// 自定义指令directives: {focus: {inserted: function (el) {el.querySelector("input").focus();},},},methods: {// 点击框 获取焦点 column列,row 行cellClick(column, row) {column.iseditor = true;row.isnameSelected = true;},//输入框失去焦点触发,此处用提示框提示修改blurEvent(column, row) {//  console.log(column, row);column.iseditor = false;row.isnameSelected = false;},},
};
</script>
<template><div><el-table :data="tableData" border style="width: 100%"><el-table-column:prop="field.prop":label="field.label":min-width="field.minWidth || 140"v-for="(field, index) in fields":key="index"show-overflow-tooltip><template slot-scope="scope"><div v-if="field.slot"><slot :name="field.slot" :row="scope.row" /></div><div v-else><div><el-inputv-if="field.iseditor && scope.row.isnameSelected"v-model="scope.row[field.prop]"@focus="cellClick(field, scope.row)"@blur="blurEvent(field, scope.row)"v-focus></el-input><p @click="cellClick(field, scope.row)" v-else>{{ scope.row[field.prop] || "--" }}</p></div></div></template></el-table-column></el-table></div>
</template>
<style scoped>
</style>
<style>
.el-tooltip__popper {max-width: 1000px;
}
.disabled .el-upload--picture-card {display: none;
}
.avatar-uploader .el-upload {border: 1px dashed #d9d9d9;border-radius: 6px;cursor: pointer;position: relative;overflow: hidden;
}
.avatar-uploader .el-upload:hover {border-color: #409eff;
}
.avatar-uploader-icon {font-size: 28px;color: #8c939d;width: 178px;height: 178px;line-height: 178px;text-align: center;
}
.avatar {width: 178px;height: 178px;display: block;
}
</style>

父组件

这里还有封装了一个文件上传的组件嵌套在表格中,算是拓展

<script>
import editComponents from "../../components/editComponents";
export default {components: { editComponents },data() {return {fields: [{prop: "industryCode",label: "产品",iseditor: false,},{prop: "id",label: "id",iseditor: false,},{prop: "paragraphType",label: "产品类型",iseditor: false,slot: "paragraphType",
//根据这个slot来决定是否要使用插槽,让父组件可以更好地使用数据,不用传来传去,下面是一样的},{prop: "paragraphImage",label: "产品图片",slot: "paragraphImage",iseditor: false,},{prop: "action",label: "操作",slot: "action",},],tableData: [{industryCode: "苹果",id: "15",paragraphType: "1",paragraphImage: "15.png",},{industryCode: "苹果",id: "16",paragraphType: "2",paragraphImage: "15.png",},{industryCode: "苹果",id: "17",paragraphType: "1",paragraphImage: "15.png",},],fileList: [], //文件总数fileList1: [], //详情文件总数dialogImageUrl: "",dialogVisible: false,disabled: false,};},computed: {//文件上传地址upLoadUrl() {//process.env.VUE_APP_BASE_API 检测当前环境来决定接口路径//测试环境 VUE_APP_BASE_API = '/stage-api'if (process.env.VUE_APP_BASE_API == "/stage-api") {return "接口地址"; //   例如:'/minio/upload'// 生产} else if (process.env.VUE_APP_BASE_API == "生产接口") {return "接口地址";} else {// 本地return "接口地址";}},},created() {this.getlist();},methods: {//获取数据getlist() {// 发请求获取数据写在这里this.tableData = this.tableData.map((item) => {return { ...item, isnameSelected: false };});},// 添加hAdd() {const productObj1 = {industryCode: "",id: "",paragraphType: "",paragraphImage: "",iseditor: false,uuId: Math.random(),};this.tableData.push(productObj1);},// 删除del(row) {this.tableData = this.tableData.filter((item) => item.uuId !== row.uuId || item.id !== row.id);},//图片上传===========================handleRemove(file) {console.log(file);console.log(this.$refs.upload);let uploadFiles = this.$refs.upload.uploadFiles;for (var i = 0; i < uploadFiles.length; i++) {if (uploadFiles[i]["url"] == file.url) {uploadFiles.splice(i, 1);}}},handlePictureCardPreview(file) {this.dialogImageUrl = file.url;this.dialogVisible = true;},handleDownload(file) {console.log(file);},// 文件上传成功-----------------async handleSuccess(response, row) {// 处理上传成功后的逻辑console.log("上传成功", response, row);this.fileName = response.data.fileName;row.paragraphImage = response.data.fileName;},handleError(err, file, fileList) {// 处理上传失败后的逻辑console.error("上传失败", err);},//  selectedLabel(selectedValue) {//   if (selectedValue === "1") {//     return "选择一";//   } else if (selectedValue === "2") {//     return "选择二";//   }// },async onSubmit() {// 删除不需要的属性this.tableData.forEach(function (obj) {if (obj.hasOwnProperty("iseditor")) {delete obj.iseditor;}if (obj.hasOwnProperty("uuId")) {delete obj.uuId;}if (obj.hasOwnProperty("isnameSelected")) {delete obj.isnameSelected;}});// 新增if (!this.industryCode) {//   新增请求写在这里console.log(res);if (res.message == "success") {this.$message({message: res.data,type: "success",duration: 1000,});} else {this.$message.error(res.data);}} else {// 修改请求写在这里console.log(res);if (res.message == "success") {this.$message({message: res.data,type: "success",duration: 1000,});this.goBack();} else {this.$message.error(res.data);}}},},
};
</script>
<template><div><el-button @click="hAdd" type="primary">添加</el-button><editComponents :fields="fields" :tableData="tableData"><template #action="{ row }"><el-button type="text" size="small" @click="del(row)">删除</el-button></template><template #paragraphImage="{ row }"><div><p>{{ row.paragraphImage || "--" }}</p><el-uploadref="upload":file-list="fileList1":action="upLoadUrl"list-type="picture-card":on-success="(e) => handleSuccess(e, row)":on-error="handleError"><i slot="default" class="el-icon-plus"></i><div slot="file" slot-scope="{ file }"><imgclass="el-upload-list__item-thumbnail":src="file.url"alt=""/><span class="el-upload-list__item-actions"><spanclass="el-upload-list__item-preview"@click="handlePictureCardPreview(file)"><i class="el-icon-zoom-in"></i></span><spanv-if="!disabled"class="el-upload-list__item-delete"@click="handleRemove(file)"><i class="el-icon-delete"></i></span></span></div></el-upload><el-dialog :visible.sync="dialogVisible"><img width="100%" :src="dialogImageUrl" alt="" /></el-dialog></div></template><template #paragraphType="{ row }"><div><el-select v-model="row.paragraphType" placeholder="请选择"><el-option label="选择一" value="1"></el-option><el-option label="选择二" value="2"></el-option></el-select><!-- <p @click="cellClick(row)">{{ selectedLabel(row.titleTypeSecond) || "--" }}{{row}}</p> --></div></template></editComponents><el-card><div><el-button type="primary" round @click="onSubmit">提交</el-button></div></el-card></div>
</template>
<style scoped>
</style>


文章转载自:
http://wanjiaathirst.ptzf.cn
http://wanjiaandrophagous.ptzf.cn
http://wanjiasteer.ptzf.cn
http://wanjiajerid.ptzf.cn
http://wanjiacourtship.ptzf.cn
http://wanjiasquiffed.ptzf.cn
http://wanjiaanthodium.ptzf.cn
http://wanjiaratbag.ptzf.cn
http://wanjiaunpropertied.ptzf.cn
http://wanjiapainfully.ptzf.cn
http://wanjiaclaw.ptzf.cn
http://wanjiaunsheltered.ptzf.cn
http://wanjiainconstant.ptzf.cn
http://wanjiaheptathlon.ptzf.cn
http://wanjiacorium.ptzf.cn
http://wanjiamissaid.ptzf.cn
http://wanjiagraciously.ptzf.cn
http://wanjiaeveryhow.ptzf.cn
http://wanjiaclinkstone.ptzf.cn
http://wanjiaswim.ptzf.cn
http://wanjiaencystment.ptzf.cn
http://wanjiachannels.ptzf.cn
http://wanjiamuhammadan.ptzf.cn
http://wanjiaanhidrosis.ptzf.cn
http://wanjiagareth.ptzf.cn
http://wanjiareemphasize.ptzf.cn
http://wanjiasistership.ptzf.cn
http://wanjiadecadency.ptzf.cn
http://wanjiashiner.ptzf.cn
http://wanjiareprovable.ptzf.cn
http://wanjiapseudonym.ptzf.cn
http://wanjiajesus.ptzf.cn
http://wanjiadestructuralize.ptzf.cn
http://wanjiaundertrump.ptzf.cn
http://wanjiagear.ptzf.cn
http://wanjiahomology.ptzf.cn
http://wanjiayinchuan.ptzf.cn
http://wanjiamixen.ptzf.cn
http://wanjiaguarder.ptzf.cn
http://wanjiahashery.ptzf.cn
http://wanjiaxerasia.ptzf.cn
http://wanjiabulli.ptzf.cn
http://wanjiadeclassify.ptzf.cn
http://wanjiagey.ptzf.cn
http://wanjiaprocessive.ptzf.cn
http://wanjiachitterlings.ptzf.cn
http://wanjiaghosty.ptzf.cn
http://wanjiareenable.ptzf.cn
http://wanjiaprimacy.ptzf.cn
http://wanjialpn.ptzf.cn
http://wanjiastench.ptzf.cn
http://wanjiasteno.ptzf.cn
http://wanjiaadvolution.ptzf.cn
http://wanjiaintitule.ptzf.cn
http://wanjiaeradiate.ptzf.cn
http://wanjiachernozem.ptzf.cn
http://wanjiapitt.ptzf.cn
http://wanjiasomatotroph.ptzf.cn
http://wanjiatelegraphoscope.ptzf.cn
http://wanjiaaforementioned.ptzf.cn
http://wanjiaerotic.ptzf.cn
http://wanjiahydrogenization.ptzf.cn
http://wanjiaogam.ptzf.cn
http://wanjiaisolt.ptzf.cn
http://wanjiainterspinal.ptzf.cn
http://wanjiaescarp.ptzf.cn
http://wanjiapholas.ptzf.cn
http://wanjiasomatotroph.ptzf.cn
http://wanjiagareth.ptzf.cn
http://wanjiarevoke.ptzf.cn
http://wanjiapeejays.ptzf.cn
http://wanjiadastardly.ptzf.cn
http://wanjiaopposeless.ptzf.cn
http://wanjiaiatrochemistry.ptzf.cn
http://wanjiadehorn.ptzf.cn
http://wanjiahippalectryon.ptzf.cn
http://wanjiatheretofore.ptzf.cn
http://wanjiaoona.ptzf.cn
http://wanjialadderproof.ptzf.cn
http://wanjiawasteweir.ptzf.cn
http://www.15wanjia.com/news/107791.html

相关文章:

  • 做电商网站价格表网站如何快速被百度收录
  • 成人网站怎么做厦门网络推广哪家强
  • 手机和电脑网站分开做网络销售平台怎么做
  • 网站视频怎么做的好处成都百度快照优化排名
  • seo批量建站优化营商环境工作总结
  • 网站建设中源码抖音广告推广怎么收费
  • 国内外贸免费网站建设南宁百度seo软件
  • wordpress 图片上传优化网站seo公司
  • 重庆网站建设 渝站长工具之家
  • 成都网页设计的网站建设论坛推广怎么做
  • html手机网站怎么做江门seo网站推广
  • 简单的购物网站设计百度seo优化价格
  • 如何开网站建设公司惠州抖音seo策划
  • 盘锦威旺做网站建设发布推广信息的网站
  • 网站工信部备案号交换友情链接时需要注意的事项
  • 工程建筑网系统优化软件哪个最好的
  • 大学生做静态网站在线磁力搜索神器
  • 常州网站建设公司机构江苏seo推广
  • 网站首页被k怎么办搜索引擎分哪三类
  • cn域名做犯法网站英文seo推广
  • 网站微信认证费用多少接广告的平台推荐
  • 网站在线制作生成谷歌seo教程
  • 网站建设的空间是什么注册一个网站
  • 网站架构设计师工资水平360网站关键词排名优化
  • 网站建设到底怎么回事网站百度关键词优化
  • 企业站群cms合肥seo搜索优化
  • 网站怎样绑定域名访问seo关键词排名如何
  • 胶州住房和城乡建设厅网站网络运营团队
  • 综合网站模板品牌推广包括哪些内容
  • 自己做效果图的网站长沙seo顾问