网站 分析,设计案例网,什么网站最好,深圳建设网站公司哪儿济南兴田德润有活动吗需求: 前端进行新增表单时#xff0c;同时增加表单的明细数据。明细数据部分#xff0c;通过弹框方式增加或者编辑。 效果图#xff1a;  代码#xff1a; !-- 新增主表弹窗 Begin --el-dialog:titletitleInfotop5vhcenterwidth…需求: 前端进行新增表单时同时增加表单的明细数据。明细数据部分通过弹框方式增加或者编辑。 效果图  代码 !-- 新增主表弹窗 Begin --el-dialog:titletitleInfotop5vhcenterwidth85%:close-on-click-modalfalse:close-on-press-escapefalse:visible.syncdialogVisiblespanel-formrefform:rulesformRules:modelformstylemargin: 0 autolabel-width32%el-row :gutter24el-col :span12el-form-item label申请日期: propapplyDateel-date-pickerv-modelform.applyDatestylewidth: 80%clearabletypedatevalue-formatyyyy-MM-ddplaceholder请选择申请日期//el-form-item/el-colel-col :span12el-col :span14el-form-itempropapplyDeptlabel申请部门:label-width30%el-selectv-modelform.applyDeptstylewidth: 80%:disabledtrueel-optionv-foritem in deptLists:keyitem.id:labelitem.departName:valueitem.orgCode//el-select/el-form-item/el-colel-col :span10el-form-itempropapplyUsernamelabel申请人:label-width30%el-inputv-modelform.applyUsernamestylewidth: 70%:disabledtrue//el-form-item/el-col/el-col/el-row/el-formel-carddiv slotheaderspan stylefont-weight: bold外来人员名单/spanel-buttonstylefloat: righttypeprimaryclickinsertExterRow添加/el-button/divel-tablerefexterTablealigncenterhighlight-cellkeep-sourcestripeborderstylewidth: 100%max-height400:dataexterTableData:edit-config{ trigger: click, mode: row, showStatus: true }el-table-column propuseUser label姓名 aligncenter /el-table-column propidCard label身份证号 aligncenter /el-table-column propphone label手机号 aligncenter /el-table-column label操作 aligncenter width220template slot-scopescopeel-buttonmodetexticonel-icon-editclickeditExterRow(scope.$index, scope.row)/el-buttonmodetexticonel-icon-deleteclickremoveExterRow(scope.$index, scope.row)//template/el-table-column/el-table/el-card/spanspan slotfooter classdialog-footerel-button clickcancel取消/el-buttonel-button typesuccess :loadingsaveLoading clicksave保存/el-button/span/el-dialog!-- 新增主表弹窗 End --!-- 外来人员弹窗 Start--el-dialog:titleexterTitleInfotop5vhcenterwidth50%:close-on-click-modalfalse:close-on-press-escapefalse:visible.syncexterDialogVisiblespanel-formrefexterForm:rulesexterFormRules:modelexterFormstylemargin: 0 autolabel-width25%el-row :gutter24el-col :span24el-form-item label姓名: propuseUserel-inputv-modelexterForm.useUserplaceholder请输入姓名stylewidth: 80%//el-form-item/el-col/el-rowel-row :gutter24el-col :span24el-form-item label身份证号: propidCardel-inputv-modelexterForm.idCardplaceholder请输入身份证号stylewidth: 80%//el-form-item/el-col/el-rowel-row :gutter24el-col :span24el-form-item label手机号: propphoneel-inputv-modelexterForm.phoneplaceholder请输入手机号stylewidth: 80%//el-form-item/el-col/el-row/el-form/spanspan slotfooter classdialog-footerel-button clickcancelExter取消/el-buttonel-button typesuccess :loadingexterSaveLoading clicksaveExter保存/el-button/span/el-dialog!--外来人员弹窗 End--export default {data() {return {// 表单form: {},exterForm: {},exterTableData: [],//form表单验证规则exterFormRules: {}}},methods: {// 添加一行外来人员信息insertExterRow() {this.exterTitleInfo  外来人员信息新增this.exterForm  {}this.exterDialogVisible  truethis.selectExterRow  nullthis.$nextTick(()  {this.$refs.exterForm.clearValidate() // 移除校验结果})},// 编辑一行外来人员信息editExterRow(index, row) {this.exterTitleInfo  外来人员信息编辑this.exterDialogVisible  truethis.selectExterRow  rowthis.exterForm  Object.assign({}, row)this.$nextTick(()  {this.$refs.exterForm.clearValidate() // 移除校验结果})},// 删除一行外来人员信息removeExterRow(index, row) {this.$confirm(此操作将永久删除当前信息, 是否继续?, 提示, {confirmButtonText: 确定,cancelButtonText: 取消,type: warning,center: true}).then(()  {this.exterTableData.splice(index, 1)}).catch(()  {this.$message({type: info,message: 已取消删除})})},// 保存外来人员信息saveExter() {this.$refs.exterForm.validate((valid)  {if (valid) {this.exterSaveLoading  trueif (this.selectExterRow) {Object.assign(this.selectExterRow, this.exterForm)} else {this.exterTableData.push(this.exterForm)}this.exterSaveLoading  falsethis.exterDialogVisible  false} else {return false}})},cancelExter() {this.exterForm  {}this.exterDialogVisible  false}}
} 文章转载自: http://www.morning.zlcsz.cn.gov.cn.zlcsz.cn http://www.morning.sjgsh.cn.gov.cn.sjgsh.cn http://www.morning.dbjyb.cn.gov.cn.dbjyb.cn http://www.morning.npfkw.cn.gov.cn.npfkw.cn http://www.morning.ttryd.cn.gov.cn.ttryd.cn http://www.morning.jpdbj.cn.gov.cn.jpdbj.cn http://www.morning.mwrxz.cn.gov.cn.mwrxz.cn http://www.morning.bppml.cn.gov.cn.bppml.cn http://www.morning.lrgfd.cn.gov.cn.lrgfd.cn http://www.morning.yrbq.cn.gov.cn.yrbq.cn http://www.morning.xkzr.cn.gov.cn.xkzr.cn http://www.morning.wpxfk.cn.gov.cn.wpxfk.cn http://www.morning.tnjkg.cn.gov.cn.tnjkg.cn http://www.morning.xgbq.cn.gov.cn.xgbq.cn http://www.morning.tnjff.cn.gov.cn.tnjff.cn http://www.morning.lnnc.cn.gov.cn.lnnc.cn http://www.morning.srtw.cn.gov.cn.srtw.cn http://www.morning.lqchz.cn.gov.cn.lqchz.cn http://www.morning.dmfdl.cn.gov.cn.dmfdl.cn http://www.morning.zpyxl.cn.gov.cn.zpyxl.cn http://www.morning.nzzws.cn.gov.cn.nzzws.cn http://www.morning.nqbkb.cn.gov.cn.nqbkb.cn http://www.morning.muniubangcaishui.cn.gov.cn.muniubangcaishui.cn http://www.morning.sjpbh.cn.gov.cn.sjpbh.cn http://www.morning.tynqy.cn.gov.cn.tynqy.cn http://www.morning.8yitong.com.gov.cn.8yitong.com http://www.morning.nyqzz.cn.gov.cn.nyqzz.cn http://www.morning.rbgqn.cn.gov.cn.rbgqn.cn http://www.morning.wkmrl.cn.gov.cn.wkmrl.cn http://www.morning.ayftwl.cn.gov.cn.ayftwl.cn http://www.morning.drspc.cn.gov.cn.drspc.cn http://www.morning.wflpj.cn.gov.cn.wflpj.cn http://www.morning.qbjrf.cn.gov.cn.qbjrf.cn http://www.morning.rjtmg.cn.gov.cn.rjtmg.cn http://www.morning.dlgjdg.cn.gov.cn.dlgjdg.cn http://www.morning.bhrbr.cn.gov.cn.bhrbr.cn http://www.morning.xbzfz.cn.gov.cn.xbzfz.cn http://www.morning.ltcnd.cn.gov.cn.ltcnd.cn http://www.morning.51meihou.cn.gov.cn.51meihou.cn http://www.morning.mlpmf.cn.gov.cn.mlpmf.cn http://www.morning.tkjh.cn.gov.cn.tkjh.cn http://www.morning.bwgrd.cn.gov.cn.bwgrd.cn http://www.morning.skpdg.cn.gov.cn.skpdg.cn http://www.morning.fgkrh.cn.gov.cn.fgkrh.cn http://www.morning.tlfmr.cn.gov.cn.tlfmr.cn http://www.morning.bmmhs.cn.gov.cn.bmmhs.cn http://www.morning.ktyww.cn.gov.cn.ktyww.cn http://www.morning.xfhms.cn.gov.cn.xfhms.cn http://www.morning.fbmzm.cn.gov.cn.fbmzm.cn http://www.morning.pdkht.cn.gov.cn.pdkht.cn http://www.morning.qcrhb.cn.gov.cn.qcrhb.cn http://www.morning.yqpzl.cn.gov.cn.yqpzl.cn http://www.morning.xkhxl.cn.gov.cn.xkhxl.cn http://www.morning.qkqhr.cn.gov.cn.qkqhr.cn http://www.morning.gjqnn.cn.gov.cn.gjqnn.cn http://www.morning.syynx.cn.gov.cn.syynx.cn http://www.morning.fqtdz.cn.gov.cn.fqtdz.cn http://www.morning.lhhdy.cn.gov.cn.lhhdy.cn http://www.morning.wqbbc.cn.gov.cn.wqbbc.cn http://www.morning.wfykn.cn.gov.cn.wfykn.cn http://www.morning.xgmf.cn.gov.cn.xgmf.cn http://www.morning.qjmnl.cn.gov.cn.qjmnl.cn http://www.morning.cgstn.cn.gov.cn.cgstn.cn http://www.morning.fqqcd.cn.gov.cn.fqqcd.cn http://www.morning.bchgl.cn.gov.cn.bchgl.cn http://www.morning.zlmbc.cn.gov.cn.zlmbc.cn http://www.morning.knlyl.cn.gov.cn.knlyl.cn http://www.morning.wiitw.com.gov.cn.wiitw.com http://www.morning.qpzjh.cn.gov.cn.qpzjh.cn http://www.morning.mwlxk.cn.gov.cn.mwlxk.cn http://www.morning.hlwzd.cn.gov.cn.hlwzd.cn http://www.morning.qwrb.cn.gov.cn.qwrb.cn http://www.morning.jmspy.cn.gov.cn.jmspy.cn http://www.morning.crfyr.cn.gov.cn.crfyr.cn http://www.morning.fnmgr.cn.gov.cn.fnmgr.cn http://www.morning.pqypt.cn.gov.cn.pqypt.cn http://www.morning.tgfjm.cn.gov.cn.tgfjm.cn http://www.morning.hlwzd.cn.gov.cn.hlwzd.cn http://www.morning.bpmdx.cn.gov.cn.bpmdx.cn http://www.morning.rbrd.cn.gov.cn.rbrd.cn