|
|
@@ -243,6 +243,47 @@ function escDo(){
|
|
|
$(".boundtj p").html("");
|
|
|
$(".boundtj").hide();
|
|
|
}
|
|
|
+
|
|
|
+function editkw(){
|
|
|
+ let id = $(that).data('id');
|
|
|
+ let kuwei = $(that).data('kuwei');
|
|
|
+ $(".boundtj div p:eq(0)").html('<textarea style="width:95%" name="kuwei" >'+kuwei+'</textarea><input type="hidden" name="id" value="'+id+'" />');
|
|
|
+ $(".boundtj div p:eq(1)").html("<font class='obaddgo' onclick='doAddKw()'>确 定</font><font class='esc' onclick='escDo()'>取 消</font>");
|
|
|
+ $(".boundtj").show();
|
|
|
+}
|
|
|
+
|
|
|
+function doAddKw(){
|
|
|
+ let obj = {}
|
|
|
+ obj.id = $(".boundtj input[name='id']").val();
|
|
|
+ obj.kuwei = $(".boundtj textarea[name='kuwei']").val();
|
|
|
+ escDo();
|
|
|
+ $.post("/goodimglibrary/editkuwei", obj, function(a){
|
|
|
+ if(a.success){
|
|
|
+ layx.confirm('提示',a.msg,null,{
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ label:'确定',
|
|
|
+ callback:function(id, button, event){
|
|
|
+ layx.destroy(id);
|
|
|
+ $(".search span").click();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],dialogIcon:'success',shadable:0.6
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ layx.confirm('提示',a.msg,null,{
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ label:'确定',
|
|
|
+ callback:function(id, button, event){
|
|
|
+ layx.destroy(id);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],dialogIcon:'error',shadable:0.6
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }, "json")
|
|
|
+}
|
|
|
</script>
|
|
|
<script type="text/javascript" src="{$theme}js/excel/xlxswidth.js"></script>
|
|
|
{Template footer}
|