style:样式修改
Showing
4 changed files
with
55 additions
and
25 deletions
| ... | @@ -119,7 +119,7 @@ | ... | @@ -119,7 +119,7 @@ |
| 119 | </div> | 119 | </div> |
| 120 | <div class="d-center" v-if="!$store.state.business.Edit && titleName == 'sjmx'"> | 120 | <div class="d-center" v-if="!$store.state.business.Edit && titleName == 'sjmx'"> |
| 121 | <btn nativeType="cz" @click="dialogVisible = false">取 消</btn> | 121 | <btn nativeType="cz" @click="dialogVisible = false">取 消</btn> |
| 122 | <btn nativeType="cx" @click="submitForm">确 定</btn> | 122 | <btn nativeType="cx" @click="submitForm">保 存</btn> |
| 123 | </div> | 123 | </div> |
| 124 | <div class="d-center" v-if="!$store.state.business.Edit && titleName == 'xml'"> | 124 | <div class="d-center" v-if="!$store.state.business.Edit && titleName == 'xml'"> |
| 125 | <btn nativeType="cx" @click="handleResubmit">重新上报</btn> | 125 | <btn nativeType="cx" @click="handleResubmit">重新上报</btn> |
| ... | @@ -294,10 +294,9 @@ export default { | ... | @@ -294,10 +294,9 @@ export default { |
| 294 | }) | 294 | }) |
| 295 | } | 295 | } |
| 296 | let listRes = await this.$refs["editItem"].handleUpdateForm() | 296 | let listRes = await this.$refs["editItem"].handleUpdateForm() |
| 297 | console.log(headRes, listRes); | ||
| 298 | if (headRes.data?.code == 200 && listRes == 200) { | 297 | if (headRes.data?.code == 200 && listRes == 200) { |
| 299 | this.$message({ | 298 | this.$message({ |
| 300 | message: '上报成功', | 299 | message: '修改成功', |
| 301 | type: 'success' | 300 | type: 'success' |
| 302 | }) | 301 | }) |
| 303 | } | 302 | } |
| ... | @@ -325,7 +324,7 @@ export default { | ... | @@ -325,7 +324,7 @@ export default { |
| 325 | if (res.code == 200) { | 324 | if (res.code == 200) { |
| 326 | _this.resultInfo = res.message | 325 | _this.resultInfo = res.message |
| 327 | _this.$message({ | 326 | _this.$message({ |
| 328 | message: '上报成功', | 327 | message: '修改成功', |
| 329 | type: 'success' | 328 | type: 'success' |
| 330 | }) | 329 | }) |
| 331 | } | 330 | } | ... | ... |
| ... | @@ -189,14 +189,28 @@ export default { | ... | @@ -189,14 +189,28 @@ export default { |
| 189 | render: (h, scope) => { | 189 | render: (h, scope) => { |
| 190 | return ( | 190 | return ( |
| 191 | <div> | 191 | <div> |
| 192 | <el-button | 192 | { |
| 193 | type="primary" | 193 | scope.row.receiveState == 2 ? |
| 194 | onClick={() => { | 194 | <el-button |
| 195 | this.handleDetails(scope.row); | 195 | type="text" |
| 196 | }} | 196 | style="color:#67C23A" |
| 197 | > | 197 | onClick={() => { |
| 198 | 详情 | 198 | this.handleDetails(scope.row); |
| 199 | </el-button> | 199 | }} |
| 200 | > | ||
| 201 | 修改 | ||
| 202 | <i class="el-icon-d-arrow-right"></i> | ||
| 203 | </el-button> : | ||
| 204 | <el-button | ||
| 205 | type="text" | ||
| 206 | onClick={() => { | ||
| 207 | this.handleDetails(scope.row); | ||
| 208 | }} | ||
| 209 | > | ||
| 210 | 详情 | ||
| 211 | <i class="el-icon-d-arrow-right"></i> | ||
| 212 | </el-button> | ||
| 213 | } | ||
| 200 | </div> | 214 | </div> |
| 201 | ) | 215 | ) |
| 202 | } | 216 | } | ... | ... |
| ... | @@ -192,13 +192,14 @@ class data { | ... | @@ -192,13 +192,14 @@ class data { |
| 192 | return ( | 192 | return ( |
| 193 | <div> | 193 | <div> |
| 194 | <el-button | 194 | <el-button |
| 195 | size="mini" | 195 | type="text" |
| 196 | type="primary" | 196 | style="color:#67C23A" |
| 197 | onClick={() => { | 197 | onClick={() => { |
| 198 | vm.handleEdit(scope.row); | 198 | vm.handleEdit(scope.row); |
| 199 | }} | 199 | }} |
| 200 | > | 200 | > |
| 201 | 编辑 | 201 | 修改 |
| 202 | <i class="el-icon-d-arrow-right"></i> | ||
| 202 | </el-button> | 203 | </el-button> |
| 203 | </div> | 204 | </div> |
| 204 | ); | 205 | ); | ... | ... |
| ... | @@ -156,15 +156,31 @@ export default { | ... | @@ -156,15 +156,31 @@ export default { |
| 156 | render: (h, scope) => { | 156 | render: (h, scope) => { |
| 157 | return ( | 157 | return ( |
| 158 | <div> | 158 | <div> |
| 159 | <el-button | 159 | { |
| 160 | size="mini" | 160 | scope.row.exchangeState == 2 ? |
| 161 | type="primary" | 161 | <el-button |
| 162 | onClick={() => { | 162 | size="mini" |
| 163 | this.handleDetail(scope.row); | 163 | type="text" |
| 164 | }} | 164 | style="color:#67C23A" |
| 165 | > | 165 | onClick={() => { |
| 166 | 详情 | 166 | this.handleDetail(scope.row); |
| 167 | </el-button> | 167 | }} |
| 168 | > | ||
| 169 | 修改 | ||
| 170 | <i class="el-icon-d-arrow-right"></i> | ||
| 171 | </el-button> : | ||
| 172 | <el-button | ||
| 173 | size="mini" | ||
| 174 | type="text" | ||
| 175 | onClick={() => { | ||
| 176 | this.handleDetail(scope.row); | ||
| 177 | }} | ||
| 178 | > | ||
| 179 | 详情 | ||
| 180 | <i class="el-icon-d-arrow-right"></i> | ||
| 181 | </el-button> | ||
| 182 | } | ||
| 183 | |||
| 168 | </div> | 184 | </div> |
| 169 | ); | 185 | ); |
| 170 | }, | 186 | }, |
| ... | @@ -203,7 +219,7 @@ export default { | ... | @@ -203,7 +219,7 @@ export default { |
| 203 | this.$refs.editLog.isShow(row); | 219 | this.$refs.editLog.isShow(row); |
| 204 | if (row.exchangeState == 2) { | 220 | if (row.exchangeState == 2) { |
| 205 | this.$store.dispatch('business/setReportLogEdit') | 221 | this.$store.dispatch('business/setReportLogEdit') |
| 206 | } else { | 222 | } else { |
| 207 | this.$store.dispatch('business/setEdit') | 223 | this.$store.dispatch('business/setEdit') |
| 208 | } | 224 | } |
| 209 | }, | 225 | }, | ... | ... |
-
Please register or sign in to post a comment