南昌市物联网技防平台-小程序
Administrator
2021-05-28 a2772f2e4e44a60e181e47559ce337d1fec75856
客户信息新增,登记修改,巡逻修改
5 files modified
212 ■■■■ changed files
pages/equipment/equipment.vue 3 ●●●●● patch | view | raw | blame | history
pages/infoRegistration/infoCheck.vue 96 ●●●● patch | view | raw | blame | history
pages/infoRegistration/infoRegistration.vue 107 ●●●●● patch | view | raw | blame | history
pages/map/map.vue 2 ●●● patch | view | raw | blame | history
pages/patrol/patrol.vue 4 ●●● patch | view | raw | blame | history
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({
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>
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>
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>
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>