去除确认有效

master
lion 3 years ago
parent 2b8d4b8370
commit fd25421eb0

@ -14,7 +14,7 @@ let loading ;
const service = axios.create({ const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests // withCredentials: true, // send cookies when cross-domain requests
timeout: 10000, // request timeout timeout: 100000, // request timeout
isLoading:true isLoading:true
}) })

@ -194,35 +194,38 @@ export default {
['follow_by_merchant','el-icon-s-comment'], ['follow_by_merchant','el-icon-s-comment'],
['accept_by_merchant','el-icon-s-promotion'], ['accept_by_merchant','el-icon-s-promotion'],
['return_by_merchant','el-icon-refresh-left'], ['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'], ['mark_cancel_by_merchant','el-icon-circle-close'],
['finish_by_merchant','el-icon-edit-outline'] ['finish_by_merchant','el-icon-edit-outline']
]) ])
let btns = [] let btns = []
if(typeof row?.merchant_actions == 'object'){ if(typeof row?.merchant_actions == 'object'){
for(let key in row.merchant_actions){ for(let key in row.merchant_actions){
btns.push( if(key!="confirm_by_merchant"){
<el-button btns.push(
size="mini" <el-button
type="primary" size="mini"
icon={map.get(key)} type="primary"
plain icon={map.get(key)}
style={ plain
{ style={
'margin':'0 6px 4px 0' {
} 'margin':'0 6px 4px 0'
}
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]}</el-button> 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]}</el-button>
)
}
} }
} }
btns.push( btns.push(

Loading…
Cancel
Save