From 42f05d2b835ed1ee41ca32cf76fe11849a890cb4 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 06 五月 2021 14:26:03 +0800 Subject: [PATCH] 金币完善 --- service-goldcorn/src/main/resources/static/source-get-list.html | 26 +++++++++++++++++++++++--- 1 files changed, 23 insertions(+), 3 deletions(-) diff --git a/service-goldcorn/src/main/resources/static/source-get-list.html b/service-goldcorn/src/main/resources/static/source-get-list.html index 7b6ba82..7afb606 100644 --- a/service-goldcorn/src/main/resources/static/source-get-list.html +++ b/service-goldcorn/src/main/resources/static/source-get-list.html @@ -252,15 +252,20 @@ cols: [ [{type: 'checkbox', title: "ID"}, {field: 'id', width: 80, sort: true, title: "ID"}, - {field: 'appCode', width: 120, title: "搴旂敤鏍囪瘑"}, - {field: 'appName', width: 120, title: "搴旂敤鍚嶇О"}, + {field: 'icon', templet:'#iconTpl', edit: 'text', sort: true, width: 150, title: "鍥炬爣"}, {field: 'sourceName', edit: 'text', sort: true, width: 150, title: "鏉ユ簮鍚嶇О"}, {field: 'sourceCode', edit: 'text', sort: true, width: 120, title: "鏉ユ簮鏍囪瘑"}, + {field: 'state', edit: 'text',templet:'#stateTpl', sort: true, width: 120, title: "鐘舵��"}, + {field: 'weight', edit: 'text', sort: true, width: 80, title: "鏉冮噸"}, {field: 'goldCorn', edit: 'text', sort: true, width: 100, title: "閲戝竵鏁伴噺"}, + {field: 'maxDayCount', edit: 'text', sort: true, width: 100, title: "姣忔棩鏈�澶ф鏁�"}, + {field: 'minTimeSpan', edit: 'text', sort: true, width: 100, title: "姣忔闂撮殧鏃堕棿锛堢锛�"}, {field: 'sourceDesc', edit: 'text', width: 200, title: "鏉ユ簮绠�浠�"}, {field: 'remarks', edit: 'text', width: 200, title: "澶囨敞"}, {field: 'createTime', sort: true, width: 150, title: "鍒涘缓鏃堕棿"}, {field: 'updateTime', sort: true, width: 150, title: "淇敼鏃堕棿"}, + {field: 'appCode', width: 120, title: "搴旂敤鏍囪瘑"}, + {field: 'appName', width: 120, title: "搴旂敤鍚嶇О"}, // {field: 'status', width: 80, title: "鐘舵��", templet: "#statusContainer"}, {fixed: 'right', width: 150, title: "鎿嶄綔", toolbar: '#deleteContainer'}, ] @@ -332,7 +337,22 @@ </script> -<script> + +<script type="text/html" id="iconTpl"> + {{# if(d.icon ){ }} + <img src="{{d.icon}}" style="height:100%;" /> + {{# } else { }} + {{# } }} +</script> + +<script type="text/html" id="stateTpl"> + {{# if(d.state==1 ){ }} + <span>澶栨樉</span> + {{# } else if(d.state==2) { }} + <span>涓嶅鏄�</span> + {{# } else { }} + <span>绂佺敤</span> + {{# } }} </script> </html> \ No newline at end of file -- Gitblit v1.8.0