|
@@ -1789,7 +1789,9 @@
|
|
|
</el-table>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="editEleVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="saveEles">确 定</el-button>
|
|
|
+ <el-button type="primary" @click="saveEles" :loading="saveLoading"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -1823,7 +1825,6 @@ import {
|
|
|
saveElement,
|
|
|
remove as removeElement,
|
|
|
updateBatchElements,
|
|
|
- updateBatchElements1,
|
|
|
getTemplate,
|
|
|
importWbsElement,
|
|
|
} from "@/api/manager/wbsformelement";
|
|
@@ -2168,6 +2169,7 @@ export default {
|
|
|
editTable: [],
|
|
|
editEleTableloading: false,
|
|
|
dynamicDictList: [],
|
|
|
+ saveLoading: false,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -4140,7 +4142,7 @@ export default {
|
|
|
});
|
|
|
this.dynamicDictList = res.data.data;
|
|
|
const filteredList = this.dynamicDictList.filter(
|
|
|
- (item) => item.dictKey === 600
|
|
|
+ (item) => item.dictKey === 600 || item.dictKey === 0
|
|
|
);
|
|
|
this.dynamicDictList = filteredList;
|
|
|
});
|
|
@@ -4172,10 +4174,12 @@ export default {
|
|
|
|
|
|
saveEles() {
|
|
|
if (this.editTable.length > 0) {
|
|
|
- updateBatchElements1(
|
|
|
+ this.saveLoading = true;
|
|
|
+ updateBatchElements(
|
|
|
this.editTable,
|
|
|
this.curEleTable.initTableName
|
|
|
).then(() => {
|
|
|
+ this.saveLoading = false;
|
|
|
this.editDialogShow = false;
|
|
|
this.updateNodeTable();
|
|
|
this.$message({
|