zgg 3 hónapja
szülő
commit
1a8f2ffc4b
1 módosított fájl, 26 hozzáadás és 25 törlés
  1. 26 25
      application/admin/view/convey_cate/index.html

+ 26 - 25
application/admin/view/convey_cate/index.html

@@ -87,31 +87,32 @@
                     }},
                 {label:'开始地点',name:'startsName',index:'startsName',width:80,editable: false,sortable: false},
                 {label:'结束地点',name:'endsName',index:'endsName',width:80,editable: false,sortable: false},
-                // {label:'任务优先级',name:'priorityName',index:'priorityName',width:80,editable: false,sortable: false},
+                {label:'任务优先级',name:'priorityName',index:'priorityName',width:60,editable: false,sortable: false},
                 // {label:'任务优先级',index:'priority',width:40, editable: true, edittype: "select", editoptions:{value:{2:'常规',3:'紧急'},formatter: "select"}},
-                {label:'任务优先级',name:'priority',index:'priority',width:60,sortable: true,formatter: function (a, b, c) {
-                        let priorityList = c.priorityList;
-
-                        let arr = [];
-                        for (let a in priorityList) {
-                            arr.push({
-                                key: a,
-                                value: priorityList[a]
-                            })
-                        }
-                        let str = '';
-                            str += '<select style="width: 100%;" name="priority" onchange="yxjChange('+c.id+',this)">';
-                            for (let i=0; i< arr.length;i++){
-                                if(i === a){
-                                    str += '<option value="'+arr[i].key+'" selected>'+arr[i].value+'</option>';
-                                }else {
-                                    str += '<option value="'+arr[i].key+'">'+arr[i].value+'</option>';
-                                }
-                        }
-                        str += '</select>';
-
-                        return str;
-                    }},
+                // {label:'任务优先级',name:'priority',index:'priority',width:60,sortable: true,formatter: function (a, b, c) {
+                //         let priorityList = c.priorityList;
+                    
+                //         let arr = [];
+                //         for (let a in priorityList) {
+                //             arr.push({
+                //                 key: a,
+                //                 value: priorityList[a]
+                //             })
+                //         }
+
+                //         let str = '';
+                //             str += '<select style="width: 100%;" name="priority" onchange="yxjChange('+c.id+',this)">';
+                //             for (let i=0; i< arr.length;i++){
+                //                 if(arr[i].key == a){
+                //                     str += '<option value="'+arr[i].key+'" selected >'+arr[i].value+'</option>';
+                //                 }else {
+                //                     str += '<option value="'+arr[i].key+'">'+arr[i].value+'</option>';
+                //                 }
+                //         }
+                //         str += '</select>';
+
+                //         return str;
+                //     }},
 
 
 
@@ -202,7 +203,7 @@
             id:id,
             priority:$(_self).val(),
         })
-
+    
     }
 
     var timeData = [];