Browse Source

标准属性定义去掉属性值

pull/27/head
wangxy 3 years ago
parent
commit
66d5eb69cb
2 changed files with 12 additions and 6 deletions
  1. +11
    -5
      src/views/factoryModel/standardProperties/addOrEdit.vue
  2. +1
    -1
      src/views/factoryModel/standardProperties/index.vue

+ 11
- 5
src/views/factoryModel/standardProperties/addOrEdit.vue View File

@ -83,7 +83,7 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24">
<!-- <el-col :span="24">
<el-table <el-table
:data="formData.Valst" :data="formData.Valst"
style="width: 100%; margin-bottom: 10px" style="width: 100%; margin-bottom: 10px"
@ -112,7 +112,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-col>
</el-col> -->
</el-row> </el-row>
</el-form> </el-form>
<template #footer> <template #footer>
@ -131,7 +131,7 @@
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { add, edit } from "@/server/factoryModel/standardProperties";
import { getDetails, add, edit } from "@/server/factoryModel/standardProperties";
export default { export default {
name: "editField", name: "editField",
props: { props: {
@ -147,7 +147,7 @@ export default {
loading: false, loading: false,
// //
formData: { formData: {
Valst:[],
// Valst:[],
}, },
// //
rules: { rules: {
@ -180,7 +180,13 @@ export default {
}, },
mounted() { mounted() {
if (this.isAddOrEdit == "edit") { if (this.isAddOrEdit == "edit") {
this.formData = this.item;
getDetails(this.item['Attribute-AttrCode']).then(({code, data}) => {
if (code === 200) {
if (!data.Valst)
data.Valst = []
this.formData = data
}
})
} }
}, },
methods: { methods: {


+ 1
- 1
src/views/factoryModel/standardProperties/index.vue View File

@ -143,7 +143,7 @@ export default {
}, },
// //
resetQuery() { resetQuery() {
this.queryParams.uomId = undefined;
this.queryParams.AttrCode = undefined;
this.handleQuery(); this.handleQuery();
}, },
// //


Loading…
Cancel
Save