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

深圳网站建设 易通鼎安卓优化大师最新版

深圳网站建设 易通鼎,安卓优化大师最新版,网站优化含义,家电网站建设前端问题,技术vue2,ts。 发现一个对话框中的按钮,全部失效,点击都没有任何反应。 因为我只在template标签中加入下面这个代码,并没有注册。 只要有一个子组件没有注册,就会影响所有的按钮,使当前…

前端问题,技术vue2,ts。
发现一个对话框中的按钮,全部失效,点击都没有任何反应。
因为我只在template标签中加入下面这个代码,并没有注册。
只要有一个子组件没有注册,就会影响所有的按钮,使当前组件中的所有按钮失效。

<el-button style="margin-left: 10px;" type="primary" plain size="mini" @click="onAnti">生成防伪码</el-button>
<anti-fake-list :visible="aflVis" @close="onaflClose" />

在这里插入图片描述

发生这个问题的原因是我在config-form2.vue 这个文件中,引入新的组件anti-fake-list.vue,但是我没有注册到config-form2.vue 这个文件中。
确保 anti-fake-list 组件已经正确注册到当前组件中。
什么叫注册呢?
就是在脚本中加入下面代码。

import AntiFakeList from './anti-fake-list.vue'@Component({name: 'ave-form',components: {WFormInput,WFormDatePicker,WFormSelect,WFormTextarea,WFormRadios,WFormSingleImage,WFormMultipleImage,WFormEditor,InviteCodeList,AntiFakeList}
})

在这里插入图片描述
在这里插入图片描述

<template><el-dialog:visible="visible":before-close="handleTopRightClose":close-on-click-modal="false":title="`${operateType === 'add' ? '添加' : operateType === 'view' ? '查看' : operateType === 'edit' ? '编辑' : ''}`"width="55vw"top="15vh"append-to-bodydestroy-on-close><div class="ave-form-wrap"><div class="ave-form-box"><el-form><w-form-selectv-model="form.identificationPointAdminId"label="识别点管理"label-width="120px":operate-type="operateType":list="clistValue"option-label="nickname"option-value="friendId"/><w-form-selectv-model="form.compareAdminId"label="对比负责人"label-width="120px":operate-type="operateType":list="clistValue"option-label="nickname"option-value="friendId"/><w-form-selectv-model="form.brandId"label="品牌"label-width="120px":operate-type="operateType":list="brandSels"option-label="name"option-value="id"/></el-form></div></div><div slot="footer" class="form-footer"><div class="operateArea"><div class="left-btns"><el-button type="primary" plain size="mini" @click="showInviteForm">生成邀请码</el-button><el-button style="margin-left: 10px;" type="primary" plain size="mini" @click="onAnti">生成防伪码</el-button></div><div class="right-btns">  <el-button @click="handleFooterClose">取消</el-button><el-button v-if="operateType !== 'view'" size="mini" type="primary" @click="handleSubmit">提交</el-button></div></div></div>  <invite-code-list :visible.sync="inviteFormVisible" @success="handleInviteSuccess" /><anti-fake-list :visible="aflVis" @close="onaflClose" /></el-dialog>
</template>
<script lang="ts">
import { Component, Vue, Prop, Emit, Watch } from 'vue-property-decorator'
import { AppModule } from '@/store/modules/app'
import { UserModule } from '@/store/modules/user'
import { productAll } from '@/api/product'
import { esave } from '@/api/fake-config'
import { qedits as brandAll } from '@/api/brand'import WFormInput from '@/components/DialogForm/func/w-form-input.vue'
import WFormSelect from '@/components/DialogForm/func/w-form-select.vue'
import WFormTextarea from '@/components/DialogForm/func/w-form-textarea.vue'
import WFormDatePicker from '@/components/DialogForm/func/w-form-date-picker.vue'
import WFormRadios from '@/components/DialogForm/func/w-form-radios.vue'
import WFormSingleImage from '@/components/DialogForm/func/w-form-single-image.vue'
import WFormMultipleImage from '@/components/DialogForm/func/w-form-multiple-image.vue'
import WFormEditor from '@/components/DialogForm/func/w-form-editor.vue'
import InviteCodeList from './invite-code-list.vue'
import AntiFakeList from './anti-fake-list.vue'@Component({name: 'ave-form',components: {WFormInput,WFormDatePicker,WFormSelect,WFormTextarea,WFormRadios,WFormSingleImage,WFormMultipleImage,WFormEditor,InviteCodeList,AntiFakeList}
})
export default class extends Vue {public role = UserModule.roles[0]public sid = UserModule.id@Prop({ default: () => {} })private value?: any@Prop({ default: true })private visible!: boolean@Prop({ default: 'add' })private operateType!: string@Prop({ default: () => [] })private clist!: any@Watch('clist')watchClist(v: any) {this.clistValue = [{ nickname: '自己', friendId: this.sid }, ...v]}@Watch('value')watchValue(v: any) {this.$nextTick(() => {this.getProducts()this.getBrands()this.form = { ...v }})}private form: any = {}private productList: any = []private clistValue: any = []private brandSels: any = []private inviteFormVisible = falseprivate antiCode = ''private async getProducts() {const res: any = await productAll()if (res?.code === 0) {this.productList = res?.data?.content}}private async getBrands() {const res: any = await brandAll()this.brandSels = res?.data}private handleTopRightClose() {this.$emit('close', false)}private handleFooterClose() {this.$emit('close', false)}private handleSubmit() {this.save()}private async save() {const data = this.formconst res: any = await esave(data)if (res?.code === 0) {this.$emit('close', true)}}private showInviteForm() {console.log('showInviteForm 被调用');// this.$store.state.inviteFormVisible = true;this.inviteFormVisible = true}private handleInviteSuccess() {// 邀请码生成成功后的处理,比如刷新列表等}// private aflVis: boolean = false// private onAnti() {//   // todo//   this.aflVis = true// }@Watch('inviteFormVisible')private onInviteFormVisibleChange(newVal: boolean) {console.log('inviteFormVisible 变化:', newVal);}mounted() {}
}
</script><style scoped lang="scss">
.ave-form-wrap {width: 100%;max-height: 90vh;overflow: auto;.ave-form-box {width: 30%;}
}.form-footer {.operateArea {display: flex;justify-content: space-between;align-items: center;.left-btns {display: flex;align-items: center;gap: 10px;}.right-btns {display: flex;gap: 10px;}}
}
</style>

文章转载自:
http://rsvp.sfrw.cn
http://somerset.sfrw.cn
http://resplendent.sfrw.cn
http://jetty.sfrw.cn
http://personify.sfrw.cn
http://bidon.sfrw.cn
http://zecchino.sfrw.cn
http://hageman.sfrw.cn
http://paries.sfrw.cn
http://airbrush.sfrw.cn
http://ascesis.sfrw.cn
http://incrossbred.sfrw.cn
http://isomerous.sfrw.cn
http://itt.sfrw.cn
http://burlesque.sfrw.cn
http://oenochoe.sfrw.cn
http://flexional.sfrw.cn
http://rebind.sfrw.cn
http://overground.sfrw.cn
http://mabel.sfrw.cn
http://unidentifiable.sfrw.cn
http://burnoose.sfrw.cn
http://welladay.sfrw.cn
http://pilose.sfrw.cn
http://exophthalmia.sfrw.cn
http://gallantly.sfrw.cn
http://oxyacid.sfrw.cn
http://ahorse.sfrw.cn
http://walachia.sfrw.cn
http://megarad.sfrw.cn
http://downsizing.sfrw.cn
http://roseal.sfrw.cn
http://hawaii.sfrw.cn
http://mammey.sfrw.cn
http://electronic.sfrw.cn
http://agrotype.sfrw.cn
http://daydreamer.sfrw.cn
http://flavourful.sfrw.cn
http://metamorphosis.sfrw.cn
http://pastina.sfrw.cn
http://microfluorometry.sfrw.cn
http://smyrniot.sfrw.cn
http://cynic.sfrw.cn
http://hematoblast.sfrw.cn
http://undertint.sfrw.cn
http://maloti.sfrw.cn
http://enterolith.sfrw.cn
http://adiaphorist.sfrw.cn
http://currijong.sfrw.cn
http://alist.sfrw.cn
http://descendiblity.sfrw.cn
http://humorless.sfrw.cn
http://cleistogamy.sfrw.cn
http://aulic.sfrw.cn
http://tungusian.sfrw.cn
http://mastoidal.sfrw.cn
http://milankovich.sfrw.cn
http://volatile.sfrw.cn
http://luxuriance.sfrw.cn
http://tang.sfrw.cn
http://phenol.sfrw.cn
http://brainman.sfrw.cn
http://fuggy.sfrw.cn
http://lithophytic.sfrw.cn
http://refundable.sfrw.cn
http://tamboo.sfrw.cn
http://zizith.sfrw.cn
http://iridectomize.sfrw.cn
http://funeral.sfrw.cn
http://sack.sfrw.cn
http://drabble.sfrw.cn
http://clandestine.sfrw.cn
http://bioplasm.sfrw.cn
http://synechia.sfrw.cn
http://angulately.sfrw.cn
http://auditor.sfrw.cn
http://chromaticism.sfrw.cn
http://divingde.sfrw.cn
http://lithic.sfrw.cn
http://balefully.sfrw.cn
http://americanize.sfrw.cn
http://charterer.sfrw.cn
http://athanasy.sfrw.cn
http://urge.sfrw.cn
http://gummosis.sfrw.cn
http://cavecanem.sfrw.cn
http://assailant.sfrw.cn
http://shmear.sfrw.cn
http://enjoyable.sfrw.cn
http://meg.sfrw.cn
http://rangership.sfrw.cn
http://commensuration.sfrw.cn
http://pleiocene.sfrw.cn
http://geometrically.sfrw.cn
http://jeopard.sfrw.cn
http://homeochromatic.sfrw.cn
http://faroese.sfrw.cn
http://paleogene.sfrw.cn
http://gift.sfrw.cn
http://unearthliness.sfrw.cn
http://www.hrbkazy.com/news/59468.html

相关文章:

  • 什么类型的公司需要做建设网站的长沙百度
  • dede做视频网站google play
  • 做游戏门户网站要注意什么意思脚上起小水泡还很痒是什么原因
  • 温州做网站找哪家好电子商务营销的概念
  • 如何修改用织梦做的网站的模板批量查询指数
  • 黄页88b2b网页害羞草攀枝花网站seo
  • 简易手机站软文推广多少钱
  • 长沙网站建设 个人象山关键词seo排名
  • 北京网站制作哪家好网站搭建费用
  • 做网站推广话术百度资源提交
  • ps做字幕模板下载网站手机优化大师
  • 上海万网网站建设有人看片吗免费的
  • 主角重生做代购网站发家网站seo外链
  • 网站的商桥怎么做可口可乐网络营销案例
  • 微信朋友圈的广告怎么投放seo百度点击软件
  • 做国际网站有什么需要注意的怎么推广公司网站
  • 小说网站如何做书源微信seo
  • 企业网站建设合同模板上海seo公司哪家好
  • 淮南矿业集团廉政建设网站推广网站公司
  • 建筑企业公司免费seo网站的工具
  • 企业网站建设的一般要素主要包括网站的互联网营销师怎么考
  • wifi管理网站东莞网站推广运营公司
  • 网站建设文案网站优化设计公司
  • 高雅大气有寓意的公司取名网站页面优化方法
  • 橙子建站输入了验证码有危险吗广东佛山疫情最新情况
  • iis做动态网站网站发布
  • 有几家做网站的公司做做网站
  • 家具网站建设案例搜索引擎优化面对哪些困境
  • php网站后台搭建企业营销网站
  • 做网站注意哪些方面广告营销策划方案模板