8b653a1d by xiaomiao

--no commit message

1 parent 4b43d29a
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
58 </el-form> 58 </el-form>
59 </div> 59 </div>
60 <div class="submit_button" v-if="ableOperation"> 60 <div class="submit_button" v-if="ableOperation">
61 <el-button type="primary" @click="onSubmit()">保存</el-button> 61 <el-button type="primary" :disabled="shows" @click="onSubmit()">保存</el-button>
62 </div> 62 </div>
63 </div> 63 </div>
64 <!-- <el-empty v-if="isNoData" description="暂无数据"></el-empty> --> 64 <!-- <el-empty v-if="isNoData" description="暂无数据"></el-empty> -->
...@@ -87,6 +87,7 @@ export default { ...@@ -87,6 +87,7 @@ export default {
87 falg1: false, 87 falg1: false,
88 jdmc: "", 88 jdmc: "",
89 indexdqlc: 0, 89 indexdqlc: 0,
90 shows:false
90 }; 91 };
91 }, 92 },
92 93
...@@ -128,7 +129,6 @@ export default { ...@@ -128,7 +129,6 @@ export default {
128 * @author: renchao 129 * @author: renchao
129 */ 130 */
130 getShList() { 131 getShList() {
131 let that = this;
132 this.$startLoading(); 132 this.$startLoading();
133 var formdata = new FormData(); 133 var formdata = new FormData();
134 formdata.append("bsmBusiness", this.propsParam.bsmBusiness); 134 formdata.append("bsmBusiness", this.propsParam.bsmBusiness);
...@@ -138,6 +138,10 @@ export default { ...@@ -138,6 +138,10 @@ export default {
138 this.$endLoading(); 138 this.$endLoading();
139 if (res.code === 200 && res.result) { 139 if (res.code === 200 && res.result) {
140 this.tableData = res.result; 140 this.tableData = res.result;
141 if(this.shows){
142 this.shows=false
143 }
144
141 var index = this.tableData.findIndex( 145 var index = this.tableData.findIndex(
142 (item) => item.jddm === this.$parent.dqhj 146 (item) => item.jddm === this.$parent.dqhj
143 ); 147 );
...@@ -179,6 +183,7 @@ export default { ...@@ -179,6 +183,7 @@ export default {
179 * @author: renchao 183 * @author: renchao
180 */ 184 */
181 onSubmit() { 185 onSubmit() {
186 this.shows=true
182 this.tableData.forEach((item, index) => { 187 this.tableData.forEach((item, index) => {
183 item["bsmBusiness"] = this.propsParam.bsmBusiness; 188 item["bsmBusiness"] = this.propsParam.bsmBusiness;
184 item["czjg"] = "1"; 189 item["czjg"] = "1";
...@@ -187,6 +192,7 @@ export default { ...@@ -187,6 +192,7 @@ export default {
187 if (res.code === 200) { 192 if (res.code === 200) {
188 this.$message.success("保存成功"); 193 this.$message.success("保存成功");
189 this.refresh += 1; 194 this.refresh += 1;
195 this.getShList();
190 } else { 196 } else {
191 this.$message.error(res.message); 197 this.$message.error(res.message);
192 } 198 }
......