From a2772f2e4e44a60e181e47559ce337d1fec75856 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 28 May 2021 00:18:17 +0800
Subject: [PATCH] 客户信息新增,登记修改,巡逻修改
---
pages/infoRegistration/infoCheck.vue | 96 +++++++++++++++++++-----
pages/infoRegistration/infoRegistration.vue | 107 +++++++++++++++++---------
pages/patrol/patrol.vue | 4
pages/map/map.vue | 2
pages/equipment/equipment.vue | 3
5 files changed, 151 insertions(+), 61 deletions(-)
diff --git a/pages/equipment/equipment.vue b/pages/equipment/equipment.vue
index 800e809..d20d90f 100644
--- a/pages/equipment/equipment.vue
+++ b/pages/equipment/equipment.vue
@@ -114,6 +114,9 @@
// url: 'http://localhost:89/equipment/equipment/AppSubmit?'+params, //仅为示例,并非真实接口地址。
url: 'https://web.byisf.com/api/blade-jfpts/equipment/equipment/AppSubmit?'+params, //仅为示例,并非真实接口地址。
method:'POST',
+ data:{
+
+ },
success: (res) => {
if(res.data.code==200){
uni.showToast({
diff --git a/pages/infoRegistration/infoCheck.vue b/pages/infoRegistration/infoCheck.vue
index 6a093f5..f44d98d 100644
--- a/pages/infoRegistration/infoCheck.vue
+++ b/pages/infoRegistration/infoCheck.vue
@@ -2,28 +2,29 @@
<view class="content">
<view class="row regis-info">
<text class="info-title"><!-- <span style="color: red;">* --></span>客户名称: </text>
- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入客户名称" placeholder-class="placeholder" />
+ <input class="input" type="text" v-model="tenantName" placeholder="请输入客户名称" placeholder-class="placeholder" />
+ </view>
+ <view class="row regis-info-linkman">
+ <text class="info-title"><!-- <span style="color: red;">* --></span>联系人: </text>
+ <input class="input" type="text" v-model="linkman" placeholder="请输入联系人名称" placeholder-class="placeholder" />
</view>
<view class="row regis-info">
<text class="info-title"><!-- <span style="color: red;">* --></span>联系电话: </text>
- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入联系电话" placeholder-class="placeholder" />
+ <input class="input" type="text" v-model="contactNumber" placeholder="请输入联系电话" placeholder-class="placeholder" />
</view>
<view class="row regis-info">
<text class="info-title"><!-- <span style="color: red;">* --></span>客户地址: </text>
- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入客户地址" placeholder-class="placeholder" />
+ <input class="input" type="text" v-model="address" placeholder="请输入客户地址" placeholder-class="placeholder" />
</view>
<view class="row regis-info">
<text class="info-title"><!-- <span style="color: red;">* --></span>客户类型: </text>
- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入客户类型" placeholder-class="placeholder" />
- </view>
- <view class="row regis-info">
- <text class="info-title"><!-- <span style="color: red;">* --></span>安防等级: </text>
- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请选择安防等级" placeholder-class="placeholder" />
+ <input class="input" type="text" v-model="type" placeholder="请输入客户类型" placeholder-class="placeholder" />
</view>
<view class="row regis-info-desc">
- <text class="info-title"><!-- <span style="color: red;">* --></span>备注: </text>
- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入备注" placeholder-class="placeholder" />
+ <text class="info-title"><!-- <span style="color: red;">* --></span>域名地址: </text>
+ <input class="input" type="text" v-model="domain" placeholder="请输入域名地址" placeholder-class="placeholder" />
</view>
+
<button class="btn" @click="confirm">上传</button>
</view>
</view>
@@ -33,24 +34,55 @@
export default{
data () {
return {
- deviceNumber:"",
- serialNumber:"",
- contacts:"",
- calls:"",
- paddress:"",
- deploymenttime:"",
- deviceName:"",
+ tenantName:"",
+ linkman:"",
+ contactNumber:"",
+ address:"",
+ type:null,
+ domain:"",
display:'none',
display1:'none',
display2:'none',
- display3:'none'
+ display3:'none',
+ array:[],
+ index:0,
+ value: '',
+ tenantlist:[
+ {
+ value: '选项1',
+ label: '黄金糕'
+ }
+ ]
}
},
onLoad() {
},
methods: {
-
+ confirm(){
+ uni.request({
+ // url: 'http://localhost:89/equipment/equipment/AppSubmit?'+params, //仅为示例,并非真实接口地址。
+ url: 'https://web.byisf.com/api/blade-system/tenant/submit', //仅为示例,并非真实接口地址。
+ method:'POST',
+ data:{
+ "tenantName":this.tenantName,
+ "linkman":this.linkman,
+ "contactNumber":this.contactNumber,
+ "address":this.address,
+ "type":this.type,
+ "domain":this.domain,
+ },
+ success: (res) => {
+ if(res.data.code==200){
+ uni.showToast({
+ title: '提交成功!',
+ duration: 2000
+ });
+ }
+ }
+ });
+ }
+
}
}
</script>
@@ -73,7 +105,22 @@
.regis-info-desc input{
position: relative;
- left: 110rpx;
+ left: 40rpx;
+ top: 27rpx;
+ letter-spacing: 1rpx;
+ }
+
+ .regis-info-linkman{
+ width: 100%;
+ height: 100rpx;
+ position: relative;
+ left: 20rpx;
+ border-bottom: 0.05px solid #B4BCCC;
+ }
+
+ .regis-info-linkman input{
+ position: relative;
+ left: 70rpx;
top: 27rpx;
letter-spacing: 1rpx;
}
@@ -103,4 +150,13 @@
color: #FFFFFF;
letter-spacing: 2rpx;
}
+
+ .region-select {
+ position: relative;
+ left: 40rpx;
+ top: 20rpx;
+ width: 400rpx;
+ height: 60rpx;
+ /* border: 1rpx solid #C8C9CC; */
+ }
</style>
diff --git a/pages/infoRegistration/infoRegistration.vue b/pages/infoRegistration/infoRegistration.vue
index 58efa8d..f44d98d 100644
--- a/pages/infoRegistration/infoRegistration.vue
+++ b/pages/infoRegistration/infoRegistration.vue
@@ -2,36 +2,27 @@
<view class="content">
<view class="row regis-info">
<text class="info-title"><!-- <span style="color: red;">* --></span>客户名称: </text>
- <view class="uni-list">
- <view class="uni-list-cell">
- <view class="uni-list-cell-db">
- <picker @change="bindPickerChange" :value="index" :range="array">
- <view class="uni-input">{{array[index]}}</view>
- </picker>
- </view>
- </view>
- </view>
- <!-- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入客户名称" placeholder-class="placeholder" /> -->
+ <input class="input" type="text" v-model="tenantName" placeholder="请输入客户名称" placeholder-class="placeholder" />
+ </view>
+ <view class="row regis-info-linkman">
+ <text class="info-title"><!-- <span style="color: red;">* --></span>联系人: </text>
+ <input class="input" type="text" v-model="linkman" placeholder="请输入联系人名称" placeholder-class="placeholder" />
</view>
<view class="row regis-info">
<text class="info-title"><!-- <span style="color: red;">* --></span>联系电话: </text>
- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入联系电话" placeholder-class="placeholder" />
+ <input class="input" type="text" v-model="contactNumber" placeholder="请输入联系电话" placeholder-class="placeholder" />
</view>
<view class="row regis-info">
<text class="info-title"><!-- <span style="color: red;">* --></span>客户地址: </text>
- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入客户地址" placeholder-class="placeholder" />
+ <input class="input" type="text" v-model="address" placeholder="请输入客户地址" placeholder-class="placeholder" />
</view>
<view class="row regis-info">
<text class="info-title"><!-- <span style="color: red;">* --></span>客户类型: </text>
- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入客户类型" placeholder-class="placeholder" />
- </view>
- <view class="row regis-info">
- <text class="info-title"><!-- <span style="color: red;">* --></span>安防等级: </text>
- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请选择安防等级" placeholder-class="placeholder" />
+ <input class="input" type="text" v-model="type" placeholder="请输入客户类型" placeholder-class="placeholder" />
</view>
<view class="row regis-info-desc">
- <text class="info-title"><!-- <span style="color: red;">* --></span>备注: </text>
- <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入备注" placeholder-class="placeholder" />
+ <text class="info-title"><!-- <span style="color: red;">* --></span>域名地址: </text>
+ <input class="input" type="text" v-model="domain" placeholder="请输入域名地址" placeholder-class="placeholder" />
</view>
<button class="btn" @click="confirm">上传</button>
@@ -43,29 +34,55 @@
export default{
data () {
return {
- deviceNumber:"",
- serialNumber:"",
- contacts:"",
- calls:"",
- paddress:"",
- deploymenttime:"",
- deviceName:"",
+ tenantName:"",
+ linkman:"",
+ contactNumber:"",
+ address:"",
+ type:null,
+ domain:"",
display:'none',
display1:'none',
display2:'none',
display3:'none',
- array:['中国', '美国', '巴西', '日本'],
- index:0
+ array:[],
+ index:0,
+ value: '',
+ tenantlist:[
+ {
+ value: '选项1',
+ label: '黄金糕'
+ }
+ ]
}
},
onLoad() {
},
methods: {
- bindPickerChange: function(e) {
- console.log('picker发送选择改变,携带值为', e.target.value)
- this.index = e.target.value
- },
+ confirm(){
+ uni.request({
+ // url: 'http://localhost:89/equipment/equipment/AppSubmit?'+params, //仅为示例,并非真实接口地址。
+ url: 'https://web.byisf.com/api/blade-system/tenant/submit', //仅为示例,并非真实接口地址。
+ method:'POST',
+ data:{
+ "tenantName":this.tenantName,
+ "linkman":this.linkman,
+ "contactNumber":this.contactNumber,
+ "address":this.address,
+ "type":this.type,
+ "domain":this.domain,
+ },
+ success: (res) => {
+ if(res.data.code==200){
+ uni.showToast({
+ title: '提交成功!',
+ duration: 2000
+ });
+ }
+ }
+ });
+ }
+
}
}
</script>
@@ -88,7 +105,22 @@
.regis-info-desc input{
position: relative;
- left: 110rpx;
+ left: 40rpx;
+ top: 27rpx;
+ letter-spacing: 1rpx;
+ }
+
+ .regis-info-linkman{
+ width: 100%;
+ height: 100rpx;
+ position: relative;
+ left: 20rpx;
+ border-bottom: 0.05px solid #B4BCCC;
+ }
+
+ .regis-info-linkman input{
+ position: relative;
+ left: 70rpx;
top: 27rpx;
letter-spacing: 1rpx;
}
@@ -119,11 +151,12 @@
letter-spacing: 2rpx;
}
- .uni-list {
+ .region-select {
position: relative;
left: 40rpx;
- top: 28rpx;
- width: 300rpx;
- height: 30rpx;
+ top: 20rpx;
+ width: 400rpx;
+ height: 60rpx;
+ /* border: 1rpx solid #C8C9CC; */
}
</style>
diff --git a/pages/map/map.vue b/pages/map/map.vue
index 8a37d8a..54dc77f 100644
--- a/pages/map/map.vue
+++ b/pages/map/map.vue
@@ -32,7 +32,7 @@
}
this.urls = "https://web.byisf.com/xcxjingqingmap/xcxmap.html?data=" + data;
// this.dataList = data;
- // console.log(this.urls);
+ console.log(this.urls);
},
}
</script>
diff --git a/pages/patrol/patrol.vue b/pages/patrol/patrol.vue
index da3fedb..6465a8e 100644
--- a/pages/patrol/patrol.vue
+++ b/pages/patrol/patrol.vue
@@ -30,9 +30,7 @@
}else{
data = options.data;
}
- this.urls = "https://web.byisf.com/xcxjingqingmap/xcxmap.html?data=" + data;
- // this.dataList = data;
- // console.log(this.urls);
+ this.urls = "https://web.byisf.com/xcxjingqingmap_patrol/xcxmap.html";
},
}
</script>
--
Gitblit v1.9.3