From 779f3a4e36c37c282d28cd762e2345912f68b548 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期三, 15 十一月 2023 17:15:24 +0800
Subject: [PATCH] modified: src/views/plan/customerorder/index.vue
---
src/views/basic/param/index.vue | 23 ++++++++++-------------
1 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/src/views/basic/param/index.vue b/src/views/basic/param/index.vue
index 42a7e3a..48d6a1c 100644
--- a/src/views/basic/param/index.vue
+++ b/src/views/basic/param/index.vue
@@ -17,7 +17,7 @@
<el-form-item class="btn-group">
<el-button type="" @click="onSearch">鏌ヨ</el-button>
<el-button type="primary" @click="addOrUpdateHandle">鏂板</el-button>
- <el-button @click="showImportDialog">瀵煎叆</el-button>
+ <el-button type="primary" @click="showImportDialog">瀵煎叆</el-button>
</el-form-item>
</el-col>
</el-row>
@@ -173,16 +173,16 @@
...mapGetters(['permissions'])
},
created() {
+ this.loading = true
this.getData()
this.getParamType()
- },
- beforeUpdate() {
- console.log("updated");
this.rowSort()
this.rowCalc()
- this.loading = false
},
- watch: {},
+ beforeUpdate() {
+ this.rowSort()
+ this.rowCalc()
+ },
methods: {
//涓嬭浇妯℃澘
downloadTemplate() {
@@ -287,8 +287,6 @@
this.$refs.crud.rowDel(row, index)
},
updateParam(row, index, done, loading) {
- // console.log(row);
- // this.formDisabled = true
let data = {
dict: '',
id: '',
@@ -316,8 +314,6 @@
})[0]
data.type=type.value
}
- // console.log(data);
- // return
putObj(data).then(res => {
if (res.data.data.code == 0) {
this.$message.success("鏇存柊鎴愬姛")
@@ -370,7 +366,6 @@
},
// 鏂板 / 淇敼
addOrUpdateHandle(row) {
- console.log("1111",row);
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.init(row == null ? null : row.id)
@@ -389,7 +384,9 @@
this.tableData = res.data.data.records
this.page.total = res.data.data.total
this.page.currentPage = res.data.data.records.pages
+ this.loading = false
})
+
},
//鍔ㄦ�佸悎骞舵柟娉�
rowCalc() {
@@ -460,9 +457,9 @@
</script>
<style>
-.grid-header {
+/* .grid-header {
display: none;
-}
+} */
.param-basic {
margin: 0 10px;
--
Gitblit v1.9.3