jc
fanluyan 11 months ago
parent 7cae1278a1
commit acea3b29eb

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

@ -24,7 +24,10 @@
icon="el-icon-search"
></el-button>
</span>
<equipmentStatus ref="equipmentStatusRef"></equipmentStatus
<equipmentStatus
ref="equipmentStatusRef"
:statusFlag="statusFlag"
></equipmentStatus
></el-tab-pane>
</el-tabs>
</div>
@ -66,7 +69,8 @@ export default {
this.statusFlag = true;
//
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开头的请求路径
//target: "http://192.168.1.190:8080", //190 需要去掉/Api
//target: "http://61.169.135.146:9911/", //运维 覆冰
target: "http://61.169.135.146:40080/", //dell
target: "http://61.169.135.146:9911/", //运维 覆冰
// target: "http://61.169.135.146:40080/", //dell
//target: "http://192.168.50.198:8093", //java本机
changOrigin: true, //是否开启跨域
pathRewrite: {

Loading…
Cancel
Save