develop
commit
be897f3391
|
|
@ -1,2 +1,6 @@
|
||||||
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title></title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title></title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
||||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel="stylesheet" href="https://lcny.sk797.cn/h5/static/index.97465e7b.css"></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id="app"></div><script src="https://lcny.sk797.cn/h5/static/js/chunk-vendors.959091ef.js"></script><script src="https://lcny.sk797.cn/h5/static/js/index.4daeafb1.js"></script></body></html>
|
<<<<<<< HEAD
|
||||||
|
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel="stylesheet" href="https://lcny.sk797.cn/h5/static/index.97465e7b.css"></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id="app"></div><script src="https://lcny.sk797.cn/h5/static/js/chunk-vendors.959091ef.js"></script><script src="https://lcny.sk797.cn/h5/static/js/index.4daeafb1.js"></script></body></html>
|
||||||
|
=======
|
||||||
|
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel="stylesheet" href="/static/index.97465e7b.css"></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id="app"></div><script src="/static/js/chunk-vendors.959091ef.js"></script><script src="/static/js/index.d07e9c1f.js"></script></body></html>
|
||||||
|
>>>>>>> master
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="h-full w-full">
|
<view class="relative video-box">
|
||||||
<iframe class="w-full h-full" v-if="type=='iframe'" :src="url"></iframe>
|
<view class="absolute top-0 left-0 w-full h-full">
|
||||||
<div ref="muiPlayer" v-else>
|
<iframe class="w-full h-full" :src="url" v-if="type == 'iframe'"></iframe>
|
||||||
|
<div ref="muiPlayer" v-else></div>
|
||||||
</div>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -27,7 +27,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
videoPlayer() {
|
videoPlayer() {
|
||||||
if (this.type == 'iframe') {
|
if (this.type == 'iframe') {
|
||||||
console.log("=====");
|
console.log('=====')
|
||||||
} else {
|
} else {
|
||||||
let parse = {}
|
let parse = {}
|
||||||
if (this.type == 'm3u8') {
|
if (this.type == 'm3u8') {
|
||||||
|
|
@ -101,4 +101,9 @@ export default {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss"></style>
|
<style lang="scss">
|
||||||
|
.video-box {
|
||||||
|
width: 100%;
|
||||||
|
padding-top: 56.2%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,37 @@
|
||||||
<template>
|
<template>
|
||||||
<u-dropdown-item
|
<view>
|
||||||
:title="label"
|
<!-- <u-dropdown-item v-if="filterable">
|
||||||
v-model="status"
|
<u-input v-model="filterValue" placeholder="筛选"></u-input>
|
||||||
@change="handleChange"
|
</u-dropdown-item> -->
|
||||||
:options="getOptions"
|
<u-dropdown-item
|
||||||
></u-dropdown-item>
|
:title="label"
|
||||||
|
v-model="status"
|
||||||
|
@change="handleChange"
|
||||||
|
:options="getOptions"
|
||||||
|
>
|
||||||
|
<view class="bg-white">
|
||||||
|
<view class="px-34rpx" v-if="filterable">
|
||||||
|
<u-input v-model="filterValue" placeholder="筛选"></u-input>
|
||||||
|
</view>
|
||||||
|
<scroll-view
|
||||||
|
scroll-y="true"
|
||||||
|
:style="{
|
||||||
|
height: $u.addUnit(getOptions.length > 8 ? 930 : 'auto'),
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<u-cell-group>
|
||||||
|
<u-cell-item
|
||||||
|
@click="handleSelect(item)"
|
||||||
|
v-for="(item, i) in getOptions"
|
||||||
|
:key="i"
|
||||||
|
:title="item.label"
|
||||||
|
:arrow="false"
|
||||||
|
></u-cell-item>
|
||||||
|
</u-cell-group>
|
||||||
|
</scroll-view>
|
||||||
|
</view>
|
||||||
|
</u-dropdown-item>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { omit } from 'lodash-es'
|
import { omit } from 'lodash-es'
|
||||||
|
|
@ -33,6 +60,10 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'value',
|
default: 'value',
|
||||||
},
|
},
|
||||||
|
filterable: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
status: {
|
status: {
|
||||||
|
|
@ -46,7 +77,7 @@ export default {
|
||||||
},
|
},
|
||||||
getOptions() {
|
getOptions() {
|
||||||
const { labelField, valueField } = this
|
const { labelField, valueField } = this
|
||||||
return this.options.reduce((prev, next) => {
|
const arr = this.options.reduce((prev, next) => {
|
||||||
if (next) {
|
if (next) {
|
||||||
const value = next[valueField]
|
const value = next[valueField]
|
||||||
prev.push({
|
prev.push({
|
||||||
|
|
@ -57,10 +88,13 @@ export default {
|
||||||
}
|
}
|
||||||
return prev
|
return prev
|
||||||
}, [])
|
}, [])
|
||||||
|
if (!this.filterValue) return arr
|
||||||
|
return arr.filter((e) => e.label.includes(this.filterValue))
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
filterValue: '',
|
||||||
options: [],
|
options: [],
|
||||||
emitData: null,
|
emitData: null,
|
||||||
isFirstLoad: true,
|
isFirstLoad: true,
|
||||||
|
|
@ -70,6 +104,10 @@ export default {
|
||||||
this.fetch()
|
this.fetch()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleSelect(e) {
|
||||||
|
this.status = e.value
|
||||||
|
this.$emit('close-dropdown', this.status)
|
||||||
|
},
|
||||||
async fetch() {
|
async fetch() {
|
||||||
const api = this.api
|
const api = this.api
|
||||||
if (!api || !this.isFunction(api)) return
|
if (!api || !this.isFunction(api)) return
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<u-dropdown-item :title="label">
|
<u-dropdown-item :title="label">
|
||||||
<view class="bg-white p-30rpx">
|
<view class="bg-white p-30rpx">
|
||||||
<u-input v-model="status" :placeholder="placeholder" class="flex-1" />
|
<u-input v-model="status" :placeholder="placeholder" :clearable="false" class="flex-1" />
|
||||||
<view class="my-20rpx">
|
<view class="my-20rpx">
|
||||||
<u-line></u-line>
|
<u-line></u-line>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -239,8 +239,9 @@
|
||||||
"path" : "pages/basics/profile-detail",
|
"path" : "pages/basics/profile-detail",
|
||||||
"style" :
|
"style" :
|
||||||
{
|
{
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "基地概况",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationStyle":"custom"
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
"path" : "pages/crop/town-crop",
|
"path" : "pages/crop/town-crop",
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,6 @@ export default {
|
||||||
const resData = data.data
|
const resData = data.data
|
||||||
Object.keys(resData).map((e) => {
|
Object.keys(resData).map((e) => {
|
||||||
const zindex = this.list.findIndex(({ key }) => key == e)
|
const zindex = this.list.findIndex(({ key }) => key == e)
|
||||||
|
|
||||||
if (zindex >= 0) this.list[zindex].value = resData[e].slice(1)
|
if (zindex >= 0) this.list[zindex].value = resData[e].slice(1)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,12 @@
|
||||||
<view class="flex items-center">
|
<view class="flex items-center">
|
||||||
<view class="w-16rpx h-16rpx bg-hex-F7B379"></view>
|
<view class="w-16rpx h-16rpx bg-hex-F7B379"></view>
|
||||||
<view class="ml-10rpx">离线</view>
|
<view class="ml-10rpx">离线</view>
|
||||||
<view class="ml-10rpx text-32rpx">{{ data.value[0] }}</view>
|
<view class="ml-10rpx text-32rpx">{{ data.value[1] }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex items-center">
|
<view class="flex items-center">
|
||||||
<view class="w-16rpx h-16rpx bg-hex-EB313E"></view>
|
<view class="w-16rpx h-16rpx bg-hex-EB313E"></view>
|
||||||
<view class="ml-10rpx">故障</view>
|
<view class="ml-10rpx">故障</view>
|
||||||
<view class="ml-10rpx text-32rpx">{{ data.value[0] }}</view>
|
<view class="ml-10rpx text-32rpx">{{ data.value[2] }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,17 @@
|
||||||
<u-line></u-line>
|
<u-line></u-line>
|
||||||
</view>
|
</view>
|
||||||
<view class="py-20rpx">
|
<view class="py-20rpx">
|
||||||
|
<u-tabs
|
||||||
|
:list="desList"
|
||||||
|
bar-height="4"
|
||||||
|
height="50"
|
||||||
|
font-size="28"
|
||||||
|
gutter="18"
|
||||||
|
:current="current"
|
||||||
|
@change="changeTab"
|
||||||
|
></u-tabs>
|
||||||
|
</view>
|
||||||
|
<view class="pb-20rpx">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
:loadingType="loadingType"
|
:loadingType="loadingType"
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -21,6 +32,39 @@
|
||||||
<script>
|
<script>
|
||||||
import QiunDataCharts from '@/components/qiun-data-charts/qiun-data-charts.vue'
|
import QiunDataCharts from '@/components/qiun-data-charts/qiun-data-charts.vue'
|
||||||
import { http } from '@/api/index.js'
|
import { http } from '@/api/index.js'
|
||||||
|
|
||||||
|
const desList = [
|
||||||
|
{
|
||||||
|
key: 'turbidity',
|
||||||
|
unit: 'NTU',
|
||||||
|
name: '浊度',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'chlorine',
|
||||||
|
unit: 'mg/L',
|
||||||
|
name: '余氯',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'ph',
|
||||||
|
unit: 'PH',
|
||||||
|
name: 'PH值',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'temperature',
|
||||||
|
unit: '℃',
|
||||||
|
name: '温度',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'oxygen',
|
||||||
|
unit: 'mg/L',
|
||||||
|
name: '溶解氧',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'conductivity',
|
||||||
|
unit: 'uS/cm',
|
||||||
|
name: '电导率',
|
||||||
|
},
|
||||||
|
]
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
baseId: {
|
baseId: {
|
||||||
|
|
@ -30,6 +74,8 @@ export default {
|
||||||
components: { QiunDataCharts },
|
components: { QiunDataCharts },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
desList,
|
||||||
|
current: 0,
|
||||||
loadingType: 1,
|
loadingType: 1,
|
||||||
opts: {
|
opts: {
|
||||||
dataLabel: false, //显示数据
|
dataLabel: false, //显示数据
|
||||||
|
|
@ -53,16 +99,26 @@ export default {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
currentTab() {
|
||||||
|
return this.desList[this.current]
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
changeTab(e) {
|
||||||
|
this.current = e
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
async init() {
|
async init() {
|
||||||
try {
|
try {
|
||||||
const { data } = await http.get('/api/device-base-data-statics', {
|
const { data } = await http.get('/api/device-base-data-statics', {
|
||||||
params: {
|
params: {
|
||||||
base_id: this.baseId,
|
base_id: this.baseId,
|
||||||
device_type: 3,
|
device_type: 3,
|
||||||
|
device_column: this.currentTab.key,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
const resData = data.data
|
const resData = data.data
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,17 @@
|
||||||
<u-line></u-line>
|
<u-line></u-line>
|
||||||
</view>
|
</view>
|
||||||
<view class="py-20rpx">
|
<view class="py-20rpx">
|
||||||
|
<u-tabs
|
||||||
|
:list="desList"
|
||||||
|
bar-height="4"
|
||||||
|
height="50"
|
||||||
|
font-size="28"
|
||||||
|
gutter="18"
|
||||||
|
:current="current"
|
||||||
|
@change="changeTab"
|
||||||
|
></u-tabs>
|
||||||
|
</view>
|
||||||
|
<view class="pb-20rpx">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
:loadingType="loadingType"
|
:loadingType="loadingType"
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -62,6 +73,8 @@ export default {
|
||||||
components: { QiunDataCharts },
|
components: { QiunDataCharts },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
desList,
|
||||||
|
current: 0,
|
||||||
loadingType: 1,
|
loadingType: 1,
|
||||||
opts: {
|
opts: {
|
||||||
dataLabel: false, //显示数据
|
dataLabel: false, //显示数据
|
||||||
|
|
@ -85,16 +98,26 @@ export default {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
currentTab() {
|
||||||
|
return this.desList[this.current]
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
changeTab(e) {
|
||||||
|
this.current = e
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
async init() {
|
async init() {
|
||||||
try {
|
try {
|
||||||
const { data } = await http.get('/api/device-base-data-statics', {
|
const { data } = await http.get('/api/device-base-data-statics', {
|
||||||
params: {
|
params: {
|
||||||
base_id: this.baseId,
|
base_id: this.baseId,
|
||||||
device_type: 2,
|
device_type: 2,
|
||||||
|
device_column: this.currentTab.key,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
const resData = data.data
|
const resData = data.data
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,15 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
|
<u-navbar
|
||||||
|
:isBack="showAppbar"
|
||||||
|
:title="title"
|
||||||
|
:background="background"
|
||||||
|
:custom-back="goback"
|
||||||
|
:title-color="titleColor"
|
||||||
|
v-if="showAppbar"
|
||||||
|
:back-icon-color="titleColor"
|
||||||
|
>
|
||||||
|
</u-navbar>
|
||||||
<view class="space-y-20rpx">
|
<view class="space-y-20rpx">
|
||||||
<BaseChat
|
<BaseChat
|
||||||
:baseId="id"
|
:baseId="id"
|
||||||
|
|
@ -18,6 +28,7 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import { navigateBack } from '@/com/utils.js'
|
||||||
import { http } from '@/api/index.js'
|
import { http } from '@/api/index.js'
|
||||||
import BaseChat from './components/base-chat.vue'
|
import BaseChat from './components/base-chat.vue'
|
||||||
import SBYXZT from './components/sbyxzt.vue'
|
import SBYXZT from './components/sbyxzt.vue'
|
||||||
|
|
@ -32,10 +43,14 @@ export default {
|
||||||
QXSJ,
|
QXSJ,
|
||||||
TRJC,
|
TRJC,
|
||||||
SZJC,
|
SZJC,
|
||||||
JK
|
JK,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
background: {
|
||||||
|
backgroundColor: '#2a7dc9',
|
||||||
|
},
|
||||||
|
titleColor: '#ffffff',
|
||||||
id: '',
|
id: '',
|
||||||
devices: [],
|
devices: [],
|
||||||
crops: [],
|
crops: [],
|
||||||
|
|
@ -43,21 +58,21 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isJK(){
|
isJK() {
|
||||||
return this.devices.findIndex((e) => e.type == '监控设备') >= 0
|
return this.devices.findIndex((e) => e.type == '监控设备') >= 0
|
||||||
},
|
},
|
||||||
isTR(){
|
isTR() {
|
||||||
return this.devices.findIndex((e) => e.type == '土壤设备') >= 0
|
return this.devices.findIndex((e) => e.type == '土壤设备') >= 0
|
||||||
},
|
},
|
||||||
isQX(){
|
isQX() {
|
||||||
return this.devices.findIndex((e) => e.type == '气象设备') >= 0
|
return this.devices.findIndex((e) => e.type == '气象设备') >= 0
|
||||||
},
|
},
|
||||||
isSZ(){
|
isSZ() {
|
||||||
return this.devices.findIndex((e) => e.type == '水质设备') >= 0
|
return this.devices.findIndex((e) => e.type == '水质设备') >= 0
|
||||||
},
|
},
|
||||||
isSB(){
|
isSB() {
|
||||||
return this.devices.length > 0
|
return this.devices.length > 0
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
onLoad({ id }) {
|
onLoad({ id }) {
|
||||||
this.id = id
|
this.id = id
|
||||||
|
|
@ -77,8 +92,20 @@ export default {
|
||||||
this.devices = devices
|
this.devices = devices
|
||||||
uni.setNavigationBarTitle({ title: name })
|
uni.setNavigationBarTitle({ title: name })
|
||||||
this.crops = crops
|
this.crops = crops
|
||||||
|
try {
|
||||||
|
uni.postMessage({
|
||||||
|
data: {
|
||||||
|
even:'xxxxxi'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
goback() {
|
||||||
|
navigateBack()
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<u-sticky :h5NavHeight="h5NavHeightP">
|
<!-- <u-sticky :h5NavHeight="h5NavHeightP"> -->
|
||||||
<view class="bg-white">
|
<view class="bg-white">
|
||||||
<SearchForm
|
<SearchForm
|
||||||
:schemas="searchFormSchema"
|
:schemas="searchFormSchema"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
></SearchForm>
|
></SearchForm>
|
||||||
</view>
|
</view>
|
||||||
</u-sticky>
|
<!-- </u-sticky> -->
|
||||||
<mescroll-body
|
<mescroll-body
|
||||||
@init="mescrollInit"
|
@init="mescrollInit"
|
||||||
@up="upCallback"
|
@up="upCallback"
|
||||||
|
|
@ -147,14 +147,6 @@ export default {
|
||||||
formShow: false,
|
formShow: false,
|
||||||
baseShow: false,
|
baseShow: false,
|
||||||
searchFormSchema: [
|
searchFormSchema: [
|
||||||
{
|
|
||||||
field: 'name',
|
|
||||||
label: '名称',
|
|
||||||
component: 'Input',
|
|
||||||
componentProps: {
|
|
||||||
placeholder: '请输入名称',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'industry',
|
field: 'industry',
|
||||||
label: '农业类型',
|
label: '农业类型',
|
||||||
|
|
@ -172,6 +164,36 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'name',
|
||||||
|
label: '名称',
|
||||||
|
component: 'ApiSelect',
|
||||||
|
componentProps: ({ formActionType }) => {
|
||||||
|
return {
|
||||||
|
api: async (e) => {
|
||||||
|
const { data } = await http.get('/api/agricultural-basic', {
|
||||||
|
params: {
|
||||||
|
page: 1,
|
||||||
|
per_page: 10000,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
return [{name:'全部',key:''}].concat(data.data.map(e => ({name:e.name,key:e.name})))
|
||||||
|
},
|
||||||
|
filterable: true,
|
||||||
|
filterMethod: (e) => {},
|
||||||
|
labelField: 'name',
|
||||||
|
valueField: 'key',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// field: 'name',
|
||||||
|
// label: '名称',
|
||||||
|
// component: 'Input',
|
||||||
|
// componentProps: {
|
||||||
|
// placeholder: '请输入名称'
|
||||||
|
// },
|
||||||
|
// }
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ export default {
|
||||||
{
|
{
|
||||||
label: '基地概况',
|
label: '基地概况',
|
||||||
url: '/pages/basics/profile',
|
url: '/pages/basics/profile',
|
||||||
permission: 'super',
|
permission: 'endpoint.agricultural_base_overview.index',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@
|
||||||
<view class="video_cd">
|
<view class="video_cd">
|
||||||
<!-- #ifdef H5 -->
|
<!-- #ifdef H5 -->
|
||||||
<!-- {{ video.video_url }} -->
|
<!-- {{ video.video_url }} -->
|
||||||
<LiveVideo :id="video.id"></LiveVideo>
|
<LiveVideo :id="video.id" :key="video.id"></LiveVideo>
|
||||||
<!-- <LiveVideo :url="video.video_url" :type="video.video_type"></LiveVideo> -->
|
<!-- <LiveVideo :url="video.video_url" :type="video.video_type"></LiveVideo> -->
|
||||||
<!-- <videoM3u8H5 v-if="video.video_type=='m3u8'" :url="video.video_url" :id="`m_${index}_refsM3u8`"></videoM3u8H5>
|
<!-- <videoM3u8H5 v-if="video.video_type=='m3u8'" :url="video.video_url" :id="`m_${index}_refsM3u8`"></videoM3u8H5>
|
||||||
<video-flv-h5 v-else :url="video.video_url"></video-flv-h5> -->
|
<video-flv-h5 v-else :url="video.video_url"></video-flv-h5> -->
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -129,7 +129,7 @@
|
||||||
<view class="handle-btns">
|
<view class="handle-btns">
|
||||||
<view v-auth="['endpoint.admin_users.destroy']" class="btn_del" @click="deleteInfoId(formInfo.id)">删除</view>
|
<view v-auth="['endpoint.admin_users.destroy']" class="btn_del" @click="deleteInfoId(formInfo.id)">删除</view>
|
||||||
<view v-auth="['endpoint.admin_users.edit_password']" class="btn_edit" @click="editPwdPopup(formInfo.id)">修改密码</view>
|
<view v-auth="['endpoint.admin_users.edit_password']" class="btn_edit" @click="editPwdPopup(formInfo.id)">修改密码</view>
|
||||||
<view v-if="formInfo.banned_at" v-auth="['super']" class="btn_edit" @click="unlock(formInfo.id)">解封</view>
|
<view v-if="formInfo.banned_at" v-auth="['endpoint.admin_users.unban']" class="btn_edit" @click="unlock(formInfo.id)">解封</view>
|
||||||
<view v-auth="['endpoint.admin_users.edit']" class="btn_edit" @click="editInfoId(formInfo.id)">编辑</view>
|
<view v-auth="['endpoint.admin_users.edit']" class="btn_edit" @click="editInfoId(formInfo.id)">编辑</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue