明树Git Lab

Commit a023cb2e authored by zhanghan's avatar zhanghan

1

parent 69691c22
Pipeline #111353 passed with stage
in 20 seconds
......@@ -87,24 +87,30 @@
>
</template>
<el-button
v-if="
isPreview &&
canAudit &&
(formData.projectLzType == '3' ||
formData.projectLzType == '4' ||
jcFormData.projectLzType == '8') &&
formData.del !== 1
"
v-if="isPreview && formData.projectLzType == '3'"
type="primary"
@click="auditDialogVisible = true"
>初审</el-button
>
<el-button
v-if="isPreview && formData.projectLzType == '4'"
type="primary"
@click="auditDialogVisible = true"
>{{ formData.projectLzType == "3" ? "初审" : "审核" }}</el-button
>审核</el-button
>
<el-button
v-if="isPreview && jcFormData.projectLzType == '8'"
type="primary"
@click="auditDialogVisible = true"
>审核</el-button
>
<el-button
v-if="
isPreview &&
canAudit &&
formData.projectLzType == '2' &&
formData.del !== 1
formData?.daibanUsers?.includes(userInfo?.id) &&
hasApproveRole &&
formData?.projectLzType == '2'
"
type="primary"
@click="approveDialogVisible = true"
......@@ -232,6 +238,10 @@ userInfo.roles.map((item) => {
}
});
const hasApproveRole = userInfo.roles?.some((item) => {
return ["tgbzfz", "tgbjbr", "xmssdwbmz"].includes(item.key);
});
const isTouGuanBu = userInfo.departs?.some((d) => d.name === "投资管理部门");
const currentFlowState = computed(() => {
const lxState = Number(formData.projectLzType) || 0;
......
......@@ -29,9 +29,7 @@
size="small"
:loading="row.loading"
@click="previewProject(row)"
>{{
canAudit && row.projectLzType == 8 ? "审批" : "查看"
}}</el-button
>{{ row.projectLzType == 8 ? "审批" : "查看" }}</el-button
>
</template>
</common-table>
......@@ -62,12 +60,6 @@ const userInfo =
(sessionStorage.getItem("userInfo") &&
JSON.parse(sessionStorage.getItem("userInfo"))) ||
{};
let canAudit = ref(false);
userInfo.roles.map((item) => {
if (["xmlx_sp", "xmjc_sp"].includes(item.key)) {
canAudit.value = true;
}
});
let tableData = ref([]);
let tableColumns = ref([
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment