|
|
@ -180,7 +180,7 @@ |
|
|
<el-form label-position="top" style="margin-top: 2px; margin-left: 2px;"> |
|
|
<el-form label-position="top" style="margin-top: 2px; margin-left: 2px;"> |
|
|
<el-button v-if="isAuth('104001002:itemSave')" type="primary" @click="addOrDelItem">新增</el-button> |
|
|
<el-button v-if="isAuth('104001002:itemSave')" type="primary" @click="addOrDelItem">新增</el-button> |
|
|
<!-- <el-button type="primary" @click="updateItemValue">编辑</el-button>--> |
|
|
<!-- <el-button type="primary" @click="updateItemValue">编辑</el-button>--> |
|
|
<el-button v-if="isAuth('104001002:itemUpdate')" type="primary" :loading="loading" @click="clickSave">{{ attributeDialog?'编辑':'保存' }}</el-button> |
|
|
|
|
|
|
|
|
<el-button v-if="isAuth('104001002:itemUpdate') && partItemList.length > 0" type="primary" :loading="loading" @click="clickSave">{{ attributeDialog?'编辑':'保存' }}</el-button> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<div class="rq" v-if="attributeDialog"> |
|
|
<div class="rq" v-if="attributeDialog"> |
|
|
<el-table |
|
|
<el-table |
|
|
@ -1142,6 +1142,9 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
clickSave () { |
|
|
clickSave () { |
|
|
|
|
|
if (this.partItemList.length === 0) { |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
if (!this.attributeDialog) { // 保存 |
|
|
if (!this.attributeDialog) { // 保存 |
|
|
this.updateItemValue() |
|
|
this.updateItemValue() |
|
|
} else { // 编辑 |
|
|
} else { // 编辑 |
|
|
|