diff --git a/src/utils/request.js b/src/utils/request.js index 6a85292..4bf6b98 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -14,7 +14,7 @@ let loading ; const service = axios.create({ baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url // withCredentials: true, // send cookies when cross-domain requests - timeout: 10000, // request timeout + timeout: 100000, // request timeout isLoading:true }) diff --git a/src/views/order/index.vue b/src/views/order/index.vue index 0c4915b..693f574 100644 --- a/src/views/order/index.vue +++ b/src/views/order/index.vue @@ -194,35 +194,38 @@ export default { ['follow_by_merchant','el-icon-s-comment'], ['accept_by_merchant','el-icon-s-promotion'], ['return_by_merchant','el-icon-refresh-left'], - ['confirm_by_merchant','el-icon-check'], + // ['confirm_by_merchant','el-icon-check'], ['mark_cancel_by_merchant','el-icon-circle-close'], ['finish_by_merchant','el-icon-edit-outline'] ]) let btns = [] if(typeof row?.merchant_actions == 'object'){ for(let key in row.merchant_actions){ - btns.push( - { - _this.$refs['operate'].form.item_id = row.id - _this.$refs['operate'].form.action = key - _this.$refs['operate'].isShow = true - console.log(key) + if(key!="confirm_by_merchant"){ + btns.push( + {row.merchant_actions[key]} - ) + on={ + { + ['click']:e => { + _this.$refs['operate'].form.item_id = row.id + _this.$refs['operate'].form.action = key + _this.$refs['operate'].isShow = true + console.log(key) + } + } + }>{row.merchant_actions[key]} + ) + } + } } btns.push(