|
@@ -6,11 +6,11 @@
|
|
|
v-model="queryParams.decideType"
|
|
|
:data="deptList"
|
|
|
:props="{
|
|
|
- value: 'deptId',
|
|
|
- label: 'deptName',
|
|
|
+ value: 'id',
|
|
|
+ label: 'label',
|
|
|
children: 'children',
|
|
|
}"
|
|
|
- value-key="deptId"
|
|
|
+ value-key="id"
|
|
|
default-expanded-keys
|
|
|
check-strictly
|
|
|
style="width: 200px"
|
|
@@ -141,7 +141,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup name="Dkjbxx">
|
|
|
-import { listDept } from "@/api/system/dept";
|
|
|
+import { userDept } from "@/api/system/dept";
|
|
|
import {
|
|
|
getDkcount,
|
|
|
listDkjbxx,
|
|
@@ -265,7 +265,6 @@ function getList() {
|
|
|
function getcount() {
|
|
|
countData.value = {};
|
|
|
let prams = countparm[route.query.type || "normal"];
|
|
|
- console.log(prams,'pramspramsprams')
|
|
|
Object.keys(prams).forEach((key) => {
|
|
|
getDkcount({
|
|
|
startTime: "",
|
|
@@ -394,8 +393,8 @@ function handleDownload(row) {
|
|
|
window.open(`${zipfile}`);
|
|
|
}
|
|
|
function getDrpt() {
|
|
|
- listDept({}).then((response) => {
|
|
|
- deptList.value = proxy.handleTree(response.data, "deptId");
|
|
|
+ userDept({}).then((response) => {
|
|
|
+ deptList.value = response.data;
|
|
|
});
|
|
|
}
|
|
|
getDrpt();
|