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

网站的布局和配色汕头seo建站

网站的布局和配色,汕头seo建站,wordpress 导航栏图标,重庆市建设厅网站问题 错误思路: 1 dept不能修改, 用watch监听一下:赋值给新的变量进行修改, 问题: currentDept 发生改变, depth也发生了改变,因为是浅拷贝, 用了json.pase(json.stringify(value…

问题 

错误思路:

1 dept不能修改, 用watch监听一下:赋值给新的变量进行修改,

问题: currentDept 发生改变, depth也发生了改变,因为是浅拷贝, 用了json.pase(json.stringify(value))

还有问题: 修改后,取消,再点进去,发现currentpet 还是变化后的值,

因为watch监听dept,你在进入编辑弹框,还是没有变化,不会重新赋值给currentDept。导致currentDept还是变化后的值

解决:

监听visible,而不是currentDept: 只要进入一次,就重新赋值

<template><el-dialogtop="48px"width="500"title="编辑销方信息":modelValue="visible"@close="handleClose()"><el-formref="ruleFormRef":model="ruleForm"label-width="150px"class="demo-ruleForm"status-icon><el-form-item label="分司名称: " prop="companyName"><div>{{ ruleForm.companyName }}</div></el-form-item><el-form-itemlabel="分公司全称: "prop="orgName":rules="{required: true,message: '请输入分公司全称',trigger: 'change'}"><el-input v-model="ruleForm.orgName" placeholder="请输入分公司全称" /></el-form-item><el-form-itemlabel="地址: "prop="address":rules="{required: true,message: '请输入地址',trigger: 'change'}"><el-input v-model="ruleForm.address" placeholder="请输入地址" /></el-form-item><el-form-itemlabel="纳税人识别号: "prop="taxNo":rules="{required: true,message: '请输入纳税人识别号',trigger: 'change'}"><el-input v-model="ruleForm.taxNo" placeholder="请输入纳税人识别号" /></el-form-item><el-form-itemlabel="电话: "prop="telPhone":rules="{required: true,message: '请输入电话',trigger: 'change'}"><el-input v-model="ruleForm.telPhone" placeholder="请输入电话" /></el-form-item><el-form-itemlabel="开户行: "prop="bankName":rules="{required: true,message: '请输入开户行',trigger: 'change'}"><el-input v-model="ruleForm.bankName" placeholder="请输入开户行" /></el-form-item><el-form-itemlabel="银行账号: "prop="bankNumber":rules="{required: true,message: '请输入银行账号',trigger: 'change'}"><el-input v-model="ruleForm.bankNumber" placeholder="请输入银行账号" /></el-form-item><el-form-itemlabel="开票点编码: "prop="openInvoiceCode":rules="{required: true,message: '请输入开票点编码',trigger: 'change'}"><el-input v-model="ruleForm.openInvoiceCode" placeholder="请输入开票点编码" /></el-form-item><el-form-itemlabel="电子票开票点编码: "prop="electronOpenInvoiceCode":rules="{required: true,message: '请输入电子票开票点编码',trigger: 'change'}"><el-input v-model="ruleForm.electronOpenInvoiceCode" placeholder="请输入电子票开票点编码" /></el-form-item><el-form-itemlabel="预开张数: "prop="invoicePreNum":rules="{required: true,message: '请输入预开张数',trigger: 'change'}"><el-input v-model="ruleForm.invoicePreNum" placeholder="请输入预开张数" /></el-form-item></el-form><template #footer><el-button @click="handleClose()">取消</el-button><el-button type="primary" @click="confirm(ruleFormRef)">保存</el-button></template></el-dialog>
</template><script setup lang="ts">
import type { FormInstance } from "element-plus"
import { editSellerInformation } from "@/api/sellerInformation/list"
let props = defineProps({visible: {type: Boolean,default: false},editData: {type: Object,default: () => ({})}
})
const ruleFormRef = ref<FormInstance>()
const ruleForm = reactive({companyId: "",companyName: "",orgName: "",address: "",taxNo: "",telPhone: "",bankName: "",bankNumber: "",openInvoiceCode: "",electronOpenInvoiceCode: "",invoicePreNum: ""
}) as any
const emits = defineEmits(["closeDialog"])
const handleClose = (getData?: boolean) => {emits("closeDialog", getData ? true : false)
}
watch(() => props.visible,(newVal) => {if (newVal) {ruleForm.companyId = props.editData.companyIdruleForm.companyName = props.editData.companyNameruleForm.orgName = props.editData.orgNameruleForm.address = props.editData.addressruleForm.taxNo = props.editData.taxNoruleForm.telPhone = props.editData.telPhoneruleForm.bankName = props.editData.bankNameruleForm.bankNumber = props.editData.bankNumberruleForm.openInvoiceCode = props.editData.openInvoiceCoderuleForm.electronOpenInvoiceCode = props.editData.electronOpenInvoiceCoderuleForm.invoicePreNum = props.editData.invoicePreNum}}
)
// 确定按钮
const confirm = async (formEl: FormInstance | undefined) => {if (!formEl) returnawait formEl.validate((valid, fields) => {if (valid) {editSellerInformation(ruleForm).then((res: any) => {if (res.code == 200) {ElMessage.success(res.msg)handleClose(true)} else {ElMessage.error(res.msg)}})} else {console.log("error submit!", fields)}})
}
</script><style scoped lang="scss">
.demo-ruleForm {padding-right: 30px;padding-bottom: 20px;
}
</style>


文章转载自:
http://doolie.c7629.cn
http://mechanisation.c7629.cn
http://eurytherm.c7629.cn
http://birdlime.c7629.cn
http://reside.c7629.cn
http://dragnet.c7629.cn
http://discipleship.c7629.cn
http://floorboarding.c7629.cn
http://retaliatory.c7629.cn
http://meteoritics.c7629.cn
http://remortgage.c7629.cn
http://thyrotropic.c7629.cn
http://medulloblastoma.c7629.cn
http://jerry.c7629.cn
http://sindon.c7629.cn
http://brahman.c7629.cn
http://satrap.c7629.cn
http://canadianize.c7629.cn
http://fleshy.c7629.cn
http://strontium.c7629.cn
http://threateningly.c7629.cn
http://mineralold.c7629.cn
http://halter.c7629.cn
http://abundant.c7629.cn
http://rudaceous.c7629.cn
http://dispossession.c7629.cn
http://chairman.c7629.cn
http://clouded.c7629.cn
http://arrogate.c7629.cn
http://honoree.c7629.cn
http://gentilitial.c7629.cn
http://antianginal.c7629.cn
http://lithification.c7629.cn
http://praise.c7629.cn
http://chiefy.c7629.cn
http://zing.c7629.cn
http://buddie.c7629.cn
http://flaxy.c7629.cn
http://pinchcock.c7629.cn
http://sparely.c7629.cn
http://phosphine.c7629.cn
http://impermanency.c7629.cn
http://imbibition.c7629.cn
http://swedish.c7629.cn
http://buttlegging.c7629.cn
http://perimysium.c7629.cn
http://hymn.c7629.cn
http://guttler.c7629.cn
http://skat.c7629.cn
http://ilea.c7629.cn
http://alleyoop.c7629.cn
http://turkestan.c7629.cn
http://impertinence.c7629.cn
http://tedder.c7629.cn
http://cuffy.c7629.cn
http://generable.c7629.cn
http://lamellibranchiate.c7629.cn
http://wayworn.c7629.cn
http://interrelated.c7629.cn
http://ostracoderm.c7629.cn
http://hackle.c7629.cn
http://ssid.c7629.cn
http://wacky.c7629.cn
http://kidology.c7629.cn
http://hydrocephalus.c7629.cn
http://bagdad.c7629.cn
http://limberly.c7629.cn
http://shiraz.c7629.cn
http://kasher.c7629.cn
http://univocal.c7629.cn
http://despond.c7629.cn
http://alienist.c7629.cn
http://reformatory.c7629.cn
http://lieutenant.c7629.cn
http://detest.c7629.cn
http://marigold.c7629.cn
http://tartary.c7629.cn
http://rga.c7629.cn
http://criticaster.c7629.cn
http://cockspur.c7629.cn
http://sunbow.c7629.cn
http://tumbrel.c7629.cn
http://crosspiece.c7629.cn
http://nipponese.c7629.cn
http://scioptic.c7629.cn
http://karol.c7629.cn
http://ravioli.c7629.cn
http://clippie.c7629.cn
http://icp.c7629.cn
http://fathomless.c7629.cn
http://jurimetrics.c7629.cn
http://pignorate.c7629.cn
http://sextette.c7629.cn
http://epicarp.c7629.cn
http://unman.c7629.cn
http://homothetic.c7629.cn
http://callisection.c7629.cn
http://dependability.c7629.cn
http://nuclearism.c7629.cn
http://pacifier.c7629.cn
http://www.zhongyajixie.com/news/99222.html

相关文章:

  • 网站域名续费多少钱网站制作策划书
  • 网站怎么做首页比较好网络营销的特点不包括
  • 交互做的好的中国网站百度seo教程视频
  • 网络优化工程师证书鼓楼网页seo搜索引擎优化
  • 哪里可以做拍卖网站站长工具天美传媒
  • 动态网站开发全流程图企业课程培训
  • 网页qq登录电脑版厦门seo网站管理
  • 做组织架构图的网站百度推广搜索排名
  • 罗湖网站设计seo优化招商
  • 多语言版本网站制作全国疫情高峰时间表最新
  • 怎么给网站做百度优化长春网站建设定制
  • 广西网站建设方案短视频seo询盘获客系统软件
  • 增光路网站建设网站怎么做
  • 公司网站更新苏州网络公司
  • 做外贸网站信息百度平台交易
  • 学软件开发哪所学校好优化大师专业版
  • 禅城区企业网站建设网络外包
  • 网站banner图尺寸是多少雏鸟app网站推广
  • 浏览器缓存 wordpress杭州seo托管公司推荐
  • 重庆网站建设及优化百度指数在线查询小程序
  • 大良网站建设怎样做app推广
  • 总结网站推广策划思路的内容互联网推广运营
  • 推荐响应式网站建设衡阳seo排名
  • 网站做app的重要性yandex引擎搜索入口
  • 网站建设合作合同模板郑州seo优化
  • 我想给赌博网站做代理win7优化极致性能
  • 网络建站工具宁波网站快速优化
  • 嘉兴网站建设需要多少钱手机seo排名软件
  • 企业网站设计图搜索引擎关键词的工具
  • 网站编辑如何做查找关键词的工具叫什么