|
|
|
|
@ -147,7 +147,7 @@
|
|
|
|
|
</el-form> |
|
|
|
|
<div class="mb-25 flex between"> |
|
|
|
|
<div> |
|
|
|
|
<el-button type="primary" :disabled="!canAdd" @click="add()">添加</el-button> |
|
|
|
|
<el-button type="primary" @click="add()">添加</el-button> |
|
|
|
|
<el-button type="primary" @click="handleExport">数据导出</el-button> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
@ -364,12 +364,11 @@ import {
|
|
|
|
|
updateComplaintCollection |
|
|
|
|
} from "@/api/data/complaintCollection.ts"; |
|
|
|
|
import Complaint_detail from "@/components/data/complaint_detail.vue"; |
|
|
|
|
import useUserStore from "@/stores/modules/user.ts"; |
|
|
|
|
|
|
|
|
|
const route = useRoute() |
|
|
|
|
const catchStore = useCatchStore(); |
|
|
|
|
const show = ref(false); |
|
|
|
|
const userStore = useUserStore(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// region 列表 |
|
|
|
|
|
|
|
|
|
@ -404,7 +403,6 @@ const list = ref([]);
|
|
|
|
|
const total = ref(0); |
|
|
|
|
const loading = ref(false) |
|
|
|
|
const getList = async () => { |
|
|
|
|
hasPermission() |
|
|
|
|
console.log("===============xxx==================") |
|
|
|
|
console.log(dict.value.sfssSourceTable) |
|
|
|
|
loading.value = true; |
|
|
|
|
@ -442,17 +440,6 @@ onMounted(() => {
|
|
|
|
|
// endregion |
|
|
|
|
|
|
|
|
|
// region添加相关 |
|
|
|
|
|
|
|
|
|
// 添加按钮禁用 |
|
|
|
|
function hasPermission() { |
|
|
|
|
console.log("=================userStore===================") |
|
|
|
|
console.log(userStore.user) |
|
|
|
|
return userStore.user.roleCodes.includes('admin_1') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const canAdd = computed(() => hasPermission()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const createEmptyAddForm = () => ({ |
|
|
|
|
// 来源:级联组件用 |
|
|
|
|
sourcePath: [], |
|
|
|
|
|