|
@@ -79,6 +79,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import myPagination from "@/components/common/myPagination";
|
|
|
+import { mapGetters, mapActions } from "vuex";
|
|
|
import { getLib, getAllbusiness, getEqCode, getRelation } from "@/api/scan/request"
|
|
|
import tools from "@/utils/scan/tools"
|
|
|
|
|
@@ -112,6 +113,9 @@ export default {
|
|
|
type: [Array]
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters("layout", ["projectId", "secret", "userId"]),
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
search: "", //搜索文案
|
|
@@ -202,8 +206,8 @@ export default {
|
|
|
|
|
|
getData() {
|
|
|
let param = param = {
|
|
|
- ProjId: this.$route.query.projId,
|
|
|
- secret: this.$route.query.secret,
|
|
|
+ ProjId: this.projectId,
|
|
|
+ secret: this.secret,
|
|
|
data: {
|
|
|
criteria: {
|
|
|
type: ["Sy"]
|
|
@@ -232,8 +236,8 @@ export default {
|
|
|
//查询id对应系统
|
|
|
getRelation(table) {
|
|
|
getRelation({
|
|
|
- ProjId: this.$route.query.projId,
|
|
|
- secret: this.$route.query.secret,
|
|
|
+ ProjId: this.projectId,
|
|
|
+ secret: this.secret,
|
|
|
criterias: {
|
|
|
criteria: {
|
|
|
"to_id": this.infos,
|
|
@@ -277,9 +281,9 @@ export default {
|
|
|
this.iframeSrc =
|
|
|
process.env.BASE_URL +
|
|
|
":8889/#/details?perjectId=" +
|
|
|
- this.$route.query.projId +
|
|
|
+ this.projectId +
|
|
|
"&secret=" +
|
|
|
- this.$route.query.secret +
|
|
|
+ this.secret +
|
|
|
"&FmId=" +
|
|
|
infos.id +
|
|
|
"&type=1&code=" +
|