| | |
| | | <template> |
| | | <Dialog v-model="dialogVisible" :title="dialogTitle"> |
| | | <Dialog v-model="dialogVisible" :title="dialogTitle" width="60%"> |
| | | <el-form |
| | | ref="formRef" |
| | | v-loading="formLoading" |
| | |
| | | label-width="80px" |
| | | > |
| | | <el-row :gutter="20"> |
| | | <el-col :span="20"> |
| | | <el-form-item label="项目名称" prop="projectName" style="width: 100%"> |
| | | <el-input v-model="formData.projectName" placeholder="" style="width: 100%"/> |
| | | <el-col :span="10"> |
| | | <el-form-item label="项目名称" prop="projectName"> |
| | | <el-input v-model="formData.projectName" placeholder=""/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="20"> |
| | | <el-form-item label="项目编码" prop="projectCode" style="width: 100%"> |
| | | <el-input v-model="formData.projectCode" placeholder="" style="width: 100%"/> |
| | | <el-col :span="10"> |
| | | <el-form-item label="项目编码" prop="projectCode"> |
| | | <el-input v-model="formData.projectCode" placeholder=""/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="关联模型" prop="models"> |
| | | <el-transfer :props="{key: 'id',label: 'pyName'}" :titles="['未选模型', '已选模型']" target-order="unshift" filterable :filter-method="filterMethod" v-model="formData.models" :data="modelList"> |
| | | <el-transfer style="width: 100%" :props="{key: 'id',label: 'pyName'}" :titles="['未选模型', '已选模型']" target-order="unshift" filterable :filter-method="filterMethod" v-model="formData.models" :data="modelList"> |
| | | <template #default="{ option }"> |
| | | <span :title="option.pyChineseName">{{ option.pyName}}</span> |
| | | <span :title="option.pyName + '【' + option.pyChineseName + '】'">{{ option.pyName}}</span> |
| | | </template> |
| | | </el-transfer> |
| | | </el-form-item> |
| | |
| | | |
| | | <style scoped> |
| | | :deep(.el-transfer-panel) { |
| | | width: 35%; |
| | | width: 40%; |
| | | } |
| | | </style> |