|
|
@@ -500,21 +500,18 @@ var F_UserCode=localStorage.getItem('F_UserCode');
|
|
500
|
500
|
|
|
501
|
501
|
console.log(typeof(F_UserCode))
|
|
502
|
502
|
function Remove(val,row){
|
|
503
|
|
- if(row.createUser=F_UserCode){
|
|
504
|
|
- console.log(row.createUser)
|
|
|
503
|
+ console.log(row.CreateUser)
|
|
|
504
|
+ if(row.CreateUser==F_UserCode){
|
|
505
|
505
|
return '<div class="imgs" ><a onclick= remove("' + val + '") >删除</a></div>';
|
|
506
|
|
- }else{
|
|
507
|
|
- return '<div class="imgs" ><a onclick= remove("' + val + '") ></a></div>';
|
|
508
|
506
|
}
|
|
509
|
507
|
|
|
510
|
508
|
}
|
|
511
|
509
|
|
|
512
|
510
|
|
|
513
|
|
-function remove(str){
|
|
514
|
|
-
|
|
|
511
|
+function remove(str,row){
|
|
515
|
512
|
layer.confirm('确定删除当前记录?', {
|
|
516
|
513
|
btn: ['是', '否'] //按钮
|
|
517
|
|
- }, function() {
|
|
|
514
|
+ }, function(row) {
|
|
518
|
515
|
/*执行删除*/
|
|
519
|
516
|
$.ajax({
|
|
520
|
517
|
type: "get",
|