明树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 @@ ...@@ -87,24 +87,30 @@
> >
</template> </template>
<el-button <el-button
v-if=" v-if="isPreview && formData.projectLzType == '3'"
isPreview && type="primary"
canAudit && @click="auditDialogVisible = true"
(formData.projectLzType == '3' || >初审</el-button
formData.projectLzType == '4' || >
jcFormData.projectLzType == '8') && <el-button
formData.del !== 1 v-if="isPreview && formData.projectLzType == '4'"
"
type="primary" type="primary"
@click="auditDialogVisible = true" @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 <el-button
v-if=" v-if="
isPreview && isPreview &&
canAudit && formData?.daibanUsers?.includes(userInfo?.id) &&
formData.projectLzType == '2' && hasApproveRole &&
formData.del !== 1 formData?.projectLzType == '2'
" "
type="primary" type="primary"
@click="approveDialogVisible = true" @click="approveDialogVisible = true"
...@@ -232,6 +238,10 @@ userInfo.roles.map((item) => { ...@@ -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 isTouGuanBu = userInfo.departs?.some((d) => d.name === "投资管理部门");
const currentFlowState = computed(() => { const currentFlowState = computed(() => {
const lxState = Number(formData.projectLzType) || 0; const lxState = Number(formData.projectLzType) || 0;
......
...@@ -29,9 +29,7 @@ ...@@ -29,9 +29,7 @@
size="small" size="small"
:loading="row.loading" :loading="row.loading"
@click="previewProject(row)" @click="previewProject(row)"
>{{ >{{ row.projectLzType == 8 ? "审批" : "查看" }}</el-button
canAudit && row.projectLzType == 8 ? "审批" : "查看"
}}</el-button
> >
</template> </template>
</common-table> </common-table>
...@@ -62,12 +60,6 @@ const userInfo = ...@@ -62,12 +60,6 @@ const userInfo =
(sessionStorage.getItem("userInfo") && (sessionStorage.getItem("userInfo") &&
JSON.parse(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 tableData = ref([]);
let tableColumns = 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