Commit e0d0419c authored by zhengke's avatar zhengke

模版管理中心权限, 分享 公司 部门调整

parent dfbd2572
......@@ -106,7 +106,7 @@
</span>
</div>
</el-tooltip>
<el-tooltip effect="dark" content="模板管理中心" placement="right" v-if="userInfo.isTemplate">
<el-tooltip effect="dark" content="模板管理中心" placement="right" v-if="userInfo.isTemplate || userInfo.iv || userInfo.ic || userInfo.ia">
<div class="left-button q-mt-md" @click="redicetTo('/m')">
<IconStarOne size="24" theme="filled" style="color:#564bec4d"></IconStarOne>
</div>
......
......@@ -104,6 +104,10 @@ import { ref } from 'vue';
import { View,Download,EditPen,Delete,CopyDocument } from '@element-plus/icons-vue';
import { ElDialog, ElMessage, ElMessageBox } from 'element-plus';
import ConfigService from '@/services/ConfigService';
import { useUserStore } from "@/store/user";
import { storeToRefs } from "pinia";
const { userInfo } = storeToRefs(useUserStore());
const props = defineProps({
id:{
......@@ -137,8 +141,10 @@ const allOrgs = ref<any[]>([])
const allPeoples = ref<any[]>([])
const shareList = ref<any[]>([])
shareTypeItems.value.push({label:'所有人',value:0})
shareTypeItems.value.push({label:'公司',value:1})
shareTypeItems.value.push({label:'部门',value:2})
if(userInfo.value.isp) {
shareTypeItems.value.push({label:'公司',value:1})
shareTypeItems.value.push({label:'部门',value:2})
}
shareTypeItems.value.push({label:'员工',value:4})
permissions.value.push({label:'复制',value:1})
permissions.value.push({label:'编辑',value:2})
......
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