|
@@ -112,7 +112,8 @@
|
|
</el-icon>
|
|
</el-icon>
|
|
修改任务调度
|
|
修改任务调度
|
|
</div>
|
|
</div>
|
|
- <div class="my-popper-item" @click="onSetAuth(scope.row)" v-auth="'1822839350342365234'">
|
|
|
|
|
|
+ <div class="my-popper-item" v-if="!isSingle" @click="onSetAuth(scope.row)"
|
|
|
|
+ v-auth="'1822839350342365234'">
|
|
<el-icon>
|
|
<el-icon>
|
|
<Setting/>
|
|
<Setting/>
|
|
</el-icon>
|
|
</el-icon>
|
|
@@ -156,7 +157,7 @@
|
|
<el-form v-if="state.nowJob" label-width="100px" size="mini">
|
|
<el-form v-if="state.nowJob" label-width="100px" size="mini">
|
|
<el-form-item label="是否公开">
|
|
<el-form-item label="是否公开">
|
|
<el-radio-group v-model="state.nowJob.publicStatus">
|
|
<el-radio-group v-model="state.nowJob.publicStatus">
|
|
- <el-radio :label="1">公开</el-radio>
|
|
|
|
|
|
+ <el-radio :label="1">企业公开</el-radio>
|
|
<el-radio :label="0">权限组控制</el-radio>
|
|
<el-radio :label="0">权限组控制</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -212,7 +213,6 @@
|
|
</template>
|
|
</template>
|
|
<script setup>
|
|
<script setup>
|
|
import {computed, onMounted, reactive, ref, watch} from "vue";
|
|
import {computed, onMounted, reactive, ref, watch} from "vue";
|
|
-import router from "@/router";
|
|
|
|
import {ArrowDown, Plus, Search} from "@element-plus/icons-vue";
|
|
import {ArrowDown, Plus, Search} from "@element-plus/icons-vue";
|
|
import {jobCheck, jobList, jobRun, jobScheduleSet} from "@/api/job";
|
|
import {jobCheck, jobList, jobRun, jobScheduleSet} from "@/api/job";
|
|
import {ElMessage, ElMessageBox} from "element-plus";
|
|
import {ElMessage, ElMessageBox} from "element-plus";
|
|
@@ -221,26 +221,28 @@ import jobCategory from '@/components/jobCategory'
|
|
import myPage from '@/components/myPage'
|
|
import myPage from '@/components/myPage'
|
|
import vue3Cron from '@/components/cronComp/cron.vue'
|
|
import vue3Cron from '@/components/cronComp/cron.vue'
|
|
import {deleteJob} from '@/api/job'
|
|
import {deleteJob} from '@/api/job'
|
|
-import {async} from "@antv/x6/lib/registry/marker/async";
|
|
|
|
import {getAuthByEtl, typeList, groupPage, saveAuthByEtl} from '@/api/system'
|
|
import {getAuthByEtl, typeList, groupPage, saveAuthByEtl} from '@/api/system'
|
|
import util from "@/util";
|
|
import util from "@/util";
|
|
|
|
+let isSingle = computed(() => store.state.setting.isSingle)
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
getData()
|
|
getData()
|
|
- typeList().then(res => {
|
|
|
|
- let types = res.data.map(i => ({value: i.id, label: i.typeName, children: []}));
|
|
|
|
- groupPage({size: 10000, current: 1}).then(res => {
|
|
|
|
- let auths = res.data.records;
|
|
|
|
- auths = auths.map(i => {
|
|
|
|
- let {dpList, roleList, userList, blackUserList} = JSON.parse(i.permJson);
|
|
|
|
- blackUserList = blackUserList || [];
|
|
|
|
- return {...i, dpList, roleList, userList, blackUserList, value: i.id, label: i.permName};
|
|
|
|
|
|
+ if (!isSingle.value) {
|
|
|
|
+ typeList().then(res => {
|
|
|
|
+ let types = res.data.map(i => ({value: i.id, label: i.typeName, children: []}));
|
|
|
|
+ groupPage({size: 10000, current: 1}).then(res => {
|
|
|
|
+ let auths = res.data.records;
|
|
|
|
+ auths = auths.map(i => {
|
|
|
|
+ let {dpList, roleList, userList, blackUserList} = JSON.parse(i.permJson);
|
|
|
|
+ blackUserList = blackUserList || [];
|
|
|
|
+ return {...i, dpList, roleList, userList, blackUserList, value: i.id, label: i.permName};
|
|
|
|
+ });
|
|
|
|
+ types.forEach(type => {
|
|
|
|
+ type.children = auths.filter(i => i.typeId == type.value);
|
|
|
|
+ });
|
|
|
|
+ state.allAuthList = types;
|
|
});
|
|
});
|
|
- types.forEach(type => {
|
|
|
|
- type.children = auths.filter(i => i.typeId == type.value);
|
|
|
|
- });
|
|
|
|
- state.allAuthList = types;
|
|
|
|
});
|
|
});
|
|
- });
|
|
|
|
|
|
+ }
|
|
})
|
|
})
|
|
const category = ref(null)
|
|
const category = ref(null)
|
|
const state = reactive({
|
|
const state = reactive({
|