作业票模板改动,以及管理员权限变动

This commit is contained in:
shijing 2023-05-25 13:57:22 +08:00
parent 5a910c67d1
commit 4a9694c429
6 changed files with 17 additions and 11 deletions

View File

@ -294,12 +294,12 @@
mounted() {
let that = this;
that.oplId = that.id; //ID
that.operationId = that.wfId; //zuoyeID
this.$nextTick(()=>{
that.getOplData();
that.getworkerList();
that.getgasList();
that.getOperation();
})
},
methods: {
@ -325,6 +325,8 @@
that.form = res;
that.oplcateCode = res.cate_code;
that.ticketId = res.ticket;
that.operationId = res.operation; //zuoyeID
that.getOperation();
res.create_imgs_.forEach(item=>{
console.log(item)
that.create_imgs_list.push({

View File

@ -13,9 +13,10 @@ export default {
return
}
let permissions = tool.data.get("PERMISSIONS");
if (permissions.indexOf('superuser') > -1){
return
}
// if (permissions.indexOf('superuser') > -1){
// return
// }
if (!permissions.some((v) => v === binding.value)) el.parentNode.removeChild(el);
}
}

View File

@ -13,9 +13,9 @@ export default {
return
}
let permissions = tool.data.get("PERMISSIONS");
if (permissions.indexOf('superuser') > -1){
return
}
// if (permissions.indexOf('superuser') > -1){
// return
// }
const flag = judementSameArr(binding.value, permissions);
if (!flag) el.parentNode.removeChild(el);
}

View File

@ -41,7 +41,7 @@
<el-form-item v-if="form.obj_cate=='people'" label="触发人:">
<span v-if="form.employee_">{{ form.employee_.name }}</span>
</el-form-item>
<el-form-item v-if="form.obj_cate=='opl'" label="触发作业:"><span>{{ form.operation_name }}</span></el-form-item>
<el-form-item v-if="form.obj_cate=='opl'" label="触发作业:"><span @click="oplClick(form.opl)">{{ form.operation_name }}</span></el-form-item>
<el-form-item v-if="form.obj_cate=='area'" label="触发区域:"><span v-if="form.area_">{{ form.area_.name }}</span></el-form-item>
</el-col>
<el-col :span="10">
@ -271,6 +271,9 @@ export default {
return res;
});
},
oplClick(opl){
this.$emit("oplDetail",opl);
},
},
};
</script>

View File

@ -87,7 +87,7 @@
</scTable>
</el-card>
<el-drawer :size="'50%'" v-model="showLimited" class="scOplDrawer" :show-close="showClose" id="scOplDrawer">
<sc-fire :id="oplId" :wfId="operationId"></sc-fire>
<sc-fire :id="oplId"></sc-fire>
</el-drawer>
</el-main>
</template>

View File

@ -211,7 +211,7 @@
</div>
</el-dialog>
<el-drawer :size="'50%'" v-model="showLimited" title="作业许可证详情" :close-on-click-modal="false">
<sc-fire :id="projectId" :wfId="operationId"></sc-fire>
<sc-fire :id="projectId"></sc-fire>
</el-drawer>
</template>