|
@@ -55,14 +55,26 @@
|
|
|
:maxlength="50" @input="inputRestriction"
|
|
:maxlength="50" @input="inputRestriction"
|
|
|
/> -->
|
|
/> -->
|
|
|
<div style="width: 200px; height: 30px">
|
|
<div style="width: 200px; height: 30px">
|
|
|
- <org-tree-select
|
|
|
|
|
|
|
+ <!-- <org-tree-select
|
|
|
size="mini"
|
|
size="mini"
|
|
|
v-model="queryParams.checkOrgIds"
|
|
v-model="queryParams.checkOrgIds"
|
|
|
ref="checkorgTreeSelect"
|
|
ref="checkorgTreeSelect"
|
|
|
:disable="true"
|
|
:disable="true"
|
|
|
@change="getList"
|
|
@change="getList"
|
|
|
>
|
|
>
|
|
|
- </org-tree-select>
|
|
|
|
|
|
|
+ </org-tree-select> -->
|
|
|
|
|
+ <tree-select
|
|
|
|
|
+ v-model="queryParams.checkOrgIds"
|
|
|
|
|
+ :options="deptOptions"
|
|
|
|
|
+ :show-count="true"
|
|
|
|
|
+ :normalizer="tenantIdnormalizer"
|
|
|
|
|
+ :props="{ checkStrictly: true, label: 'name' }"
|
|
|
|
|
+ placeholder="请选择组织机构"
|
|
|
|
|
+ clearValueText="清除"
|
|
|
|
|
+ :noChildrenText="''"
|
|
|
|
|
+ noOptionsText="没有数据"
|
|
|
|
|
+ noResultsText="没有搜索结果"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="任务进度" prop="status">
|
|
<el-form-item label="任务进度" prop="status">
|
|
@@ -400,6 +412,7 @@ import { getLabel } from "@/views/commonOption.js";
|
|
|
import OrgTreeSelect from "@/components/orgTreeSelect";
|
|
import OrgTreeSelect from "@/components/orgTreeSelect";
|
|
|
import { checkPermi } from "@/utils/permission.js";
|
|
import { checkPermi } from "@/utils/permission.js";
|
|
|
import dayjs from "dayjs";
|
|
import dayjs from "dayjs";
|
|
|
|
|
+import { deptTreeSelect } from "@/api/system/public";
|
|
|
import request from "@/utils/request";
|
|
import request from "@/utils/request";
|
|
|
export default {
|
|
export default {
|
|
|
name: "Saftask",
|
|
name: "Saftask",
|
|
@@ -413,6 +426,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ // 机构树选项
|
|
|
|
|
+ deptOptions: [],
|
|
|
loading: false,
|
|
loading: false,
|
|
|
showSearch: true,
|
|
showSearch: true,
|
|
|
total: 0,
|
|
total: 0,
|
|
@@ -473,10 +488,27 @@ export default {
|
|
|
...mapGetters(["orgName", "userId", "roleList", "orgId"]),
|
|
...mapGetters(["orgName", "userId", "roleList", "orgId"]),
|
|
|
},
|
|
},
|
|
|
activated (){
|
|
activated (){
|
|
|
- console.log("刷新");
|
|
|
|
|
|
|
+ // console.log("刷新");
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getDeptTree() {
|
|
|
|
|
+ deptTreeSelect().then((response) => {
|
|
|
|
|
+ // console.log(response,"sss")
|
|
|
|
|
+ this.deptOptions = response.data;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ /** treeSelect组件自定义数据*/
|
|
|
|
|
+ tenantIdnormalizer(node, instanceId) {
|
|
|
|
|
+ if (node.children && !node.children.length) {
|
|
|
|
|
+ delete node.children;
|
|
|
|
|
+ }
|
|
|
|
|
+ return {
|
|
|
|
|
+ id: node.id,
|
|
|
|
|
+ label: node.shortName,
|
|
|
|
|
+ children: node.children,
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
async onDown(pdfUrl) {
|
|
async onDown(pdfUrl) {
|
|
|
window.open(pdfUrl);
|
|
window.open(pdfUrl);
|
|
|
},
|
|
},
|
|
@@ -503,7 +535,7 @@ export default {
|
|
|
getLabel,
|
|
getLabel,
|
|
|
showDetail(row) {
|
|
showDetail(row) {
|
|
|
let path = "/core/safetycheck/detail/" + row.id;
|
|
let path = "/core/safetycheck/detail/" + row.id;
|
|
|
- console.log(path,"path")
|
|
|
|
|
|
|
+ // console.log(path,"path")
|
|
|
this.$router.push(path);
|
|
this.$router.push(path);
|
|
|
},
|
|
},
|
|
|
showscanRecord(row) {
|
|
showscanRecord(row) {
|
|
@@ -560,7 +592,7 @@ export default {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
resetQuery() {
|
|
resetQuery() {
|
|
|
- this.queryParams.checkOrgIds = [];
|
|
|
|
|
|
|
+ this.queryParams.checkOrgIds = null;
|
|
|
this.queryParams.range = [];
|
|
this.queryParams.range = [];
|
|
|
this.resetForm("queryParams");
|
|
this.resetForm("queryParams");
|
|
|
this.getList();
|
|
this.getList();
|
|
@@ -585,7 +617,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
async getList() {
|
|
async getList() {
|
|
|
- console.log(this.queryParams, "this.queryParams2222");
|
|
|
|
|
|
|
+ // console.log(this.queryParams, "this.queryParams2222");
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
api
|
|
api
|
|
|
.page(this.queryParams)
|
|
.page(this.queryParams)
|
|
@@ -660,7 +692,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
async mounted() {
|
|
async mounted() {
|
|
|
this.selectLoadRoles();
|
|
this.selectLoadRoles();
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
|
|
+ created(){ this.getDeptTree();},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|