mirror of https://github.com/jumpserver/jumpserver
添加失败点击提示
parent
7e185197aa
commit
b673fec532
|
@ -204,7 +204,7 @@
|
||||||
{% if info.success %}
|
{% if info.success %}
|
||||||
<td class="text-center" style="color: #1ab394;" >{{ info.success | yesno:"成功,失败,未知" }} </td>
|
<td class="text-center" style="color: #1ab394;" >{{ info.success | yesno:"成功,失败,未知" }} </td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td class="text-center" style="color: #ec4758;cursor: help" title="{{ info.result }}" >{{ info.success | yesno:"成功,失败,未知" }} </td>
|
<td class="text-center push_failed" style="color: #ec4758;cursor: help" title="{{ info.result }}">{{ info.success | yesno:"成功,失败,未知" }} </td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td class="text-center" ><a class="fa fa-times del" href="{% url 'role_recycle' %}?role_id={{ role.id }}&asset_id={{ asset.id }}" style="color: #ec4758;"></a></td>
|
<td class="text-center" ><a class="fa fa-times del" href="{% url 'role_recycle' %}?role_id={{ role.id }}&asset_id={{ asset.id }}" style="color: #ec4758;"></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -321,7 +321,13 @@
|
||||||
});
|
});
|
||||||
var url = '/jperm/role/push/?id={{ role.id }}&asset_id=' + check_array.join(',');
|
var url = '/jperm/role/push/?id={{ role.id }}&asset_id=' + check_array.join(',');
|
||||||
$(this).attr('href', url)
|
$(this).attr('href', url)
|
||||||
})
|
});
|
||||||
|
|
||||||
|
$('.push_failed').click(function() {
|
||||||
|
var fail_reason = $(this).attr('title');
|
||||||
|
layer.alert(fail_reason)
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue