去除确认有效

master
lion 3 years ago
parent 2b8d4b8370
commit fd25421eb0

@ -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
})

@ -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(
<el-button
size="mini"
type="primary"
icon={map.get(key)}
plain
style={
{
'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)
if(key!="confirm_by_merchant"){
btns.push(
<el-button
size="mini"
type="primary"
icon={map.get(key)}
plain
style={
{
'margin':'0 6px 4px 0'
}
}
}>{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(

Loading…
Cancel
Save