Browse Source

2025-01-24

优化
master
fengyuan_yang 12 months ago
parent
commit
17fec693d1
  1. 9
      src/views/modules/part/partCatalogInformation.vue
  2. 4
      src/views/modules/part/partInformation.vue

9
src/views/modules/part/partCatalogInformation.vue

@ -237,11 +237,11 @@
<el-input v-model="scope.row.textValue" v-else></el-input> <el-input v-model="scope.row.textValue" v-else></el-input>
</div> </div>
<div v-else> <div v-else>
<el-select style="width: 100%;" v-if="scope.row.valueTypeDb === 'T'" v-model="scope.row.textValue">
<el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.list" :key="key"></el-option>
<el-select style="width: 100%;" v-if="scope.row.valueTypeDb === 'T'" v-model="scope.row.textValue" clearable>
<el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.availableValueList" :key="key"></el-option>
</el-select> </el-select>
<el-select style="width: 100%;" v-else v-model="scope.row.numValue">
<el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.list" :key="key"></el-option>
<el-select style="width: 100%;" v-else v-model="scope.row.numValue" clearable>
<el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.availableValueList" :key="key"></el-option>
</el-select> </el-select>
</div> </div>
</div> </div>
@ -1154,6 +1154,7 @@
updateItemValue () { updateItemValue () {
this.loading = true this.loading = true
let tempData = { let tempData = {
updateBy: this.$store.state.user.name,
itemList: JSON.parse(JSON.stringify(this.copyAttributeList)) itemList: JSON.parse(JSON.stringify(this.copyAttributeList))
} }
commitItemValue(tempData).then(({data}) => { commitItemValue(tempData).then(({data}) => {

4
src/views/modules/part/partInformation.vue

@ -539,10 +539,10 @@
<el-input v-model="scope.row.textValue" v-else></el-input> <el-input v-model="scope.row.textValue" v-else></el-input>
</div> </div>
<div v-else> <div v-else>
<el-select style="width: 100%;" v-if="scope.row.valueTypeDb === 'T'" v-model="scope.row.textValue">
<el-select style="width: 100%;" v-if="scope.row.valueTypeDb === 'T'" v-model="scope.row.textValue" clearable>
<el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.availableValueList" :key="key"></el-option> <el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.availableValueList" :key="key"></el-option>
</el-select> </el-select>
<el-select style="width: 100%;" v-else v-model="scope.row.numValue">
<el-select style="width: 100%;" v-else v-model="scope.row.numValue" clearable>
<el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.availableValueList" :key="key"></el-option> <el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.availableValueList" :key="key"></el-option>
</el-select> </el-select>
</div> </div>

Loading…
Cancel
Save