jc
fanluyan 11 months ago
parent 7cae1278a1
commit acea3b29eb

@ -339,6 +339,7 @@ export default {
// ipDialog, // ipDialog,
// photoDialog, // photoDialog,
}, },
props: ["statusFlag"],
data() { data() {
return { return {
roleName: "", roleName: "",
@ -381,12 +382,19 @@ export default {
this.roleName = localStorage.getItem("userName"); this.roleName = localStorage.getItem("userName");
}, },
mounted() { mounted() {
this.getSearchdy(); // if (this.statusFlag) {
this.getProtocol(); // this.getSearchdy();
this.getactiveList(); // this.getProtocol();
// this.getactiveList();
// }
}, },
watch: {}, watch: {},
methods: { methods: {
initfn() {
this.getSearchdy();
this.getProtocol();
this.getactiveList();
},
// //
getSearchdy() { getSearchdy() {
getSearchInfo({ type: 1 }) getSearchInfo({ type: 1 })

@ -24,7 +24,10 @@
icon="el-icon-search" icon="el-icon-search"
></el-button> ></el-button>
</span> </span>
<equipmentStatus ref="equipmentStatusRef"></equipmentStatus <equipmentStatus
ref="equipmentStatusRef"
:statusFlag="statusFlag"
></equipmentStatus
></el-tab-pane> ></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
@ -66,7 +69,8 @@ export default {
this.statusFlag = true; this.statusFlag = true;
// //
if (this.$refs.equipmentStatusRef) { if (this.$refs.equipmentStatusRef) {
this.$refs.equipmentStatusRef.onSubmit(); // someOtherMethod this.$refs.equipmentStatusRef.initfn(); // someOtherMethod
//this.$refs.equipmentStatusRef.onSubmit(); // someOtherMethod
} }
} }
// //

@ -23,8 +23,8 @@ module.exports = defineConfig({
//表示拦截以/api开头的请求路径 //表示拦截以/api开头的请求路径
//target: "http://192.168.1.190:8080", //190 需要去掉/Api //target: "http://192.168.1.190:8080", //190 需要去掉/Api
//target: "http://61.169.135.146:9911/", //运维 覆冰 target: "http://61.169.135.146:9911/", //运维 覆冰
target: "http://61.169.135.146:40080/", //dell // target: "http://61.169.135.146:40080/", //dell
//target: "http://192.168.50.198:8093", //java本机 //target: "http://192.168.50.198:8093", //java本机
changOrigin: true, //是否开启跨域 changOrigin: true, //是否开启跨域
pathRewrite: { pathRewrite: {

Loading…
Cancel
Save