b0212711 by renchao@pashanhoo.com

style:审批意见模块加载功能的完善

1 parent 248f1b5f
1 <!-- 1 <!--
2 * @Description: 审批意见 2 * @Description: 审批意见
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-28 11:27:06 4 * @LastEditTime: 2023-10-23 14:05:37
5 --> 5 -->
6 <template> 6 <template>
7 <div class="spyj loadingtext"> 7 <div class="spyj" v-Loading="loading">
8 <div class="box"> 8 <div class="box">
9 <div class="spyj_title"> 9 <div class="spyj_title">
10 <div class="righttitle">审批表</div> 10 <div class="righttitle">审批表</div>
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
72 }, 72 },
73 data () { 73 data () {
74 return { 74 return {
75 loading: false,
75 currentindex: 0, 76 currentindex: 0,
76 refresh: 10, 77 refresh: 10,
77 viewEdit: false, 78 viewEdit: false,
...@@ -103,7 +104,6 @@ ...@@ -103,7 +104,6 @@
103 }, 104 },
104 105
105 }, 106 },
106 created () { },
107 methods: { 107 methods: {
108 /** 108 /**
109 * @description: dataset 109 * @description: dataset
...@@ -112,20 +112,6 @@ ...@@ -112,20 +112,6 @@
112 */ 112 */
113 dataset () { 113 dataset () {
114 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 114 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
115 // switch (this.$parent.dqhj) {
116 // case "cs":
117 // this.indexdqlc = 0;
118 // this.jdmc = "初审";
119 // break;
120 // case "fs":
121 // this.indexdqlc = 1;
122 // this.jdmc = "复审";
123 // break;
124 // case "hd":
125 // this.indexdqlc = 2;
126 // this.jdmc = "核定";
127 // break;
128 // }
129 }, 115 },
130 /** 116 /**
131 * @description: getShList 117 * @description: getShList
...@@ -133,19 +119,17 @@ ...@@ -133,19 +119,17 @@
133 * @author: renchao 119 * @author: renchao
134 */ 120 */
135 getShList () { 121 getShList () {
136 this.$startLoading(); 122 this.loading = true
137 var formdata = new FormData(); 123 var formdata = new FormData();
138 formdata.append("bsmBusiness", this.propsParam.bsmBusiness); 124 formdata.append("bsmBusiness", this.propsParam.bsmBusiness);
139 formdata.append("bestepid", this.$route.query.bestepid); 125 formdata.append("bestepid", this.$route.query.bestepid);
140 126
141 getSpyjList(formdata).then((res) => { 127 getSpyjList(formdata).then((res) => {
142
143 if (res.code === 200 && res.result) { 128 if (res.code === 200 && res.result) {
144 this.tableData = res.result; 129 this.tableData = res.result;
145 if (this.shows) { 130 if (this.shows) {
146 this.shows = false; 131 this.shows = false;
147 } 132 }
148
149 var index = this.tableData.findIndex( 133 var index = this.tableData.findIndex(
150 (item) => item.jddm === this.$parent.dqhj 134 (item) => item.jddm === this.$parent.dqhj
151 ); 135 );
...@@ -173,12 +157,9 @@ ...@@ -173,12 +157,9 @@
173 item.show = false; 157 item.show = false;
174 } 158 }
175 }); 159 });
176 this.$endLoading(); 160 this.loading = false
177
178 } 161 }
179 162 })
180 });
181
182 }, 163 },
183 /** 164 /**
184 * @description: onSubmit 165 * @description: onSubmit
......