sujunling 2 år sedan
förälder
incheckning
25e2af764f
1 ändrade filer med 9 tillägg och 8 borttagningar
  1. 9 8
      src/views/resource/plat/item/EmpowerInfo.vue

+ 9 - 8
src/views/resource/plat/item/EmpowerInfo.vue

@@ -50,14 +50,15 @@ export default defineComponent({
                 if (r?.resp_code == 0 && r?.datas?.length) {
                     var a = r.datas.find(i => i.resInfo.SERVICEID == e.SERVICEID);
                     if (a) {
-                        var shyj = [];
-                        if (a?.shlc?.length > 1) {
-                            a.shlc.map((i, index) => {
-                                if (index != 0 && index != a.shlc.length - 1) {
-                                    shyj.push(i.USER_NAME + ":" + i.CHECKINFO)
-                                }
-                            })
-                        }
+                        // var shyj = [];
+                        // if (a?.shlc?.length > 1) {
+                        //     a.shlc.map((i, index) => {
+                        //         if (index != 0 && index != a.shlc.length - 1) {
+                        //             shyj.push(i.USER_NAME + ":" + i.CHECKINFO)
+                        //         }
+                        //     })
+                        // }
+                        var shyj = a?.shlc?.slice(1, -1).map(i => i.USER_NAME + ":" + i.CHECKINFO) || [];
                         shyjInfo.value = shyj.join(";");
                         info.value = a;
                     }