|
|
@@ -96,12 +96,12 @@ function queryTask() {
|
|
|
{ width: 160, text: '出勤人员', type: 'string', flex: true, sort: 'down', colClass: 'text-center', field: 'userNames' },
|
|
|
// {width: 120, text: '状态', type: 'string', flex: true, colClass: '',field: 'check_status_name'}
|
|
|
];
|
|
|
- if (user.roles[0].id == 20 || user.roles[0].id == 21) {
|
|
|
+ if (hasRole(ROLE_DDZS_ADMIN) || hasRole(ROLE_DDZS)) {
|
|
|
var colFunc = { width: 160, text: '操作', type: 'string', flex: true, field: 'id', colClass: 'text-center' };
|
|
|
colFunc.oper = $.zui.store.get("task_table_btn_1");
|
|
|
cols.push(colFunc);
|
|
|
$("#saveButton").show();
|
|
|
- } else if (user.roles[0].id == 16 || user.roles[0].id == 17) {
|
|
|
+ } else if (hasRole(ROLE_WRECKER_MANAGER) || hasRole(ROLE_WRECKER_NQ) || hasRole(ROLE_WRECKER)) {
|
|
|
var colFunc = { width: 160, text: '操作', type: 'imagebutton', flex: true, field: 'videos', colClass: 'text-center' };
|
|
|
colFunc.oper = $.zui.store.get("task_table_btn_1");
|
|
|
cols.push(colFunc);
|
|
|
@@ -216,12 +216,11 @@ function checkUpdate(id) {
|
|
|
setRecordUser();
|
|
|
$("#carUserSatisfaction").val(redata.car_user_satisfaction);
|
|
|
var userids = redata.users.split(",");
|
|
|
- setTimeout(function (){
|
|
|
+ setTimeout(function() {
|
|
|
for (var i in userids) {
|
|
|
$('span[data-id="' + userids[i] + '"] input').click();
|
|
|
}
|
|
|
- }
|
|
|
- ,500);
|
|
|
+ }, 500);
|
|
|
$("#recordUser").val(redata.userNames);
|
|
|
$("#addr").val(redata.addr);
|
|
|
})
|