修改bug
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 16:37:56
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2022-03-09 16:17:23
|
||||
* @LastEditTime: 2022-03-09 16:53:23
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -24,7 +24,7 @@
|
||||
<el-option v-for="item in typeList" :key="item.id" :value="item.id" :label="item.name" />
|
||||
</el-select>
|
||||
</el-form-item> -->
|
||||
<el-form-item :label="$t('module.art.processList.description')" prop="address">
|
||||
<el-form-item :label="$t('module.art.processList.description')" prop="description">
|
||||
<el-input v-model="dataForm.description" :placeholder="$i18nForm(['placeholder.input', $t('module.art.processList.description')])" clearable />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -88,10 +88,7 @@ export default {
|
||||
this.$refs['dataForm'].resetFields()
|
||||
if (this.dataForm.id) {
|
||||
getInfo({ id: this.dataForm.id }).then(res => {
|
||||
this.dataForm.id = res.data.id
|
||||
this.dataForm.name = res.data.name
|
||||
this.dataForm.type = res.data.type
|
||||
this.dataForm.description = res.data.description
|
||||
this.dataForm = res.data
|
||||
this.dataForm.equipmentIds = res.data.equipments.map(item => {
|
||||
return item.id
|
||||
})
|
||||
@@ -101,7 +98,6 @@ export default {
|
||||
},
|
||||
// 表单提交
|
||||
dataFormSubmit() {
|
||||
console.log(!this.dataForm.id)
|
||||
this.$refs['dataForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
const data = {
|
||||
|
||||
Reference in New Issue
Block a user