Browse Source

清理log语句 格式代码

develop
zhaoxianglong 9 months ago
parent
commit
6a6d00d1a7
  1. 47
      ruoyi-ui/src/views/system/non-automatic-warning/index.vue

47
ruoyi-ui/src/views/system/non-automatic-warning/index.vue

@ -3,16 +3,16 @@
<!-- 添加或修改请填写功能名称对话框 -->
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="用户名称" prop="APPKEY">
<el-input v-model="form.APPKEY" placeholder="请输入用户名称" />
<el-input v-model="form.APPKEY" placeholder="请输入用户名称"/>
</el-form-item>
<el-form-item label="用户密码" prop="APPSECRET">
<el-input v-model="form.APPSECRET" placeholder="请输入用户密码" />
<el-input v-model="form.APPSECRET" placeholder="请输入用户密码"/>
</el-form-item>
<el-form-item label="请求路径" prop="URI">
<el-input v-model="form.URI" placeholder="请输入请求路径" />
<el-input v-model="form.URI" placeholder="请输入请求路径"/>
</el-form-item>
<el-form-item label="请求端口" prop="IP">
<el-input v-model="form.IP" placeholder="请输入请求端口" />
<el-input v-model="form.IP" placeholder="请输入请求端口"/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
@ -22,17 +22,18 @@
</template>
<script>
import { eventSubscription } from "@/api/system/NonAutomaticWarning";
import { eventSubscription } from '@/api/system/NonAutomaticWarning'
export default {
name: "NonAutomaticWarning",
name: 'NonAutomaticWarning',
data() {
return {
//
form: {
APPKEY:'22825659',
APPSECRET:'7Qcq3fr1gaYws6QhyDqt',
URI:'/artemis/api/common/v1/event/getTopicInfo',
IP:'10.0.81.28'
APPKEY: '22825659',
APPSECRET: '7Qcq3fr1gaYws6QhyDqt',
URI: '/artemis/api/common/v1/event/getTopicInfo',
IP: '10.0.81.28'
},
//
rules: {
@ -47,37 +48,35 @@ export default {
],
IP: [
{ required: true, message: '请输入请求端口', trigger: 'blur' }
],
]
}
}
};
},
methods: {
//
reset() {
this.form = {
APPKEY:'22825659',
APPSECRET:'7Qcq3fr1gaYws6QhyDqt',
URI:'/artemis/api/common/v1/event/getTopicInfo',
IP:'10.0.81.28'
APPKEY: '22825659',
APPSECRET: '7Qcq3fr1gaYws6QhyDqt',
URI: '/artemis/api/common/v1/event/getTopicInfo',
IP: '10.0.81.28'
// APPKEY:null,
// APPSECRET:null,
// URI:null,
// IP:null
};
this.resetForm("form");
}
this.resetForm('form')
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
this.$refs['form'].validate(valid => {
if (valid) {
console.log(this.form)
eventSubscription(this.form).then((response)=>{
console.log(response)
eventSubscription(this.form).then(response => {
})
this.reset()
}
});
})
}
}
};
}
</script>

Loading…
Cancel
Save