一、页面
<template><div class="bg" v-if="formData.mouldData?.length == 0">当前暂无模板,点击<view class="add" @click="addMould">立即创建</view></div><div v-else><el-col :xs="24"><ContentWrap><el-form class="-mb-15px" :inline="true" label-width="68px"><el-form-item label="版本" prop="defKey"><el-select v-model="versionType" @change="handleSelectChange" style="width: 120px"><el-optionv-for="version in versionArray":key="version.versionNumber":label="version.state == 1? 'V' + version.versionNumber + '.0(启用)': 'V' + version.versionNumber + '.0'":value="version.versionNumber"/></el-select></el-form-item>
<!-- {{versionType}}--><el-form-item><el-buttontype="primary"plainv-if="showUpgradeMouldButton"@click="upgradeMould(versionType)">升级</el-button></el-form-item></el-form></ContentWrap></el-col><el-col style="margin-bottom: 1vh" v-if="viewStats == '编辑'"><el-button type="primary" plain @click="handleAddClick">新增</el-button><el-button type="primary" plain @click="upRow"> ↑</el-button><el-button type="primary" plain @click="downOrder"> ↓</el-button></el-col><ContentWrap><el-form ref="formRef" :model="formData" :rules="formRules" :inline-message="true"><el-table:data="formData.mouldData"borderstripehighlight-current-row:row-class-name="tableRowClassName":cell-style="{ 'text-align': 'center' }"@row-click="handleRowClick":header-cell-style="{background: '#b7babd',color: '#1e1f22',height: '35px','text-align': 'center'}"style="width: 100%;max-height:45vh;overflow-y: auto"max-height="600">&l