Browse Source

前端工具属性 通用模板BUG

master
Rui_Li 7 months ago
parent
commit
f0217d2305
  1. 10
      src/views/modules/tooling/components/orderProperties.vue

10
src/views/modules/tooling/components/orderProperties.vue

@ -55,7 +55,8 @@
</div>
<div v-else>
<div v-if="scope.row.valueChooseFlag !== 'Y'">
<el-input-number v-model="scope.row.numValue" style="padding: 0;width: 100%" v-if="scope.row.valueType === '数字'" :controls="false"></el-input-number>
<el-input-number v-model="scope.row.numValue" style="padding: 0;width: 100%" v-if="scope.row.valueType === '数字'" :controls="false"
></el-input-number>
<el-input v-model="scope.row.textValue" v-else></el-input>
</div>
<div v-else>
@ -333,10 +334,17 @@ export default {
if (!this.attributeDialog){
this.updateTestPropertiesList();
}else {
//null
for (let i = 0; i < this.dataList.length; i++){
if (this.dataList[i].numValue == null){
this.dataList[i].numValue = undefined;
}
}
this.copyAttributeList = JSON.parse(JSON.stringify(this.dataList))
this.attributeDialog = false;
}
},
updateTestPropertiesList(){
this.loading = true
updatePropertiesList(this.copyAttributeList).then(({data})=>{

Loading…
Cancel
Save