Compare commits
No commits in common. "master" and "zhangwei" have entirely different histories.
|
@ -62,8 +62,5 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="module" src="/src/main.ts"></script>
|
<script type="module" src="/src/main.ts"></script>
|
||||||
<script src="/jessibuca.js"></script>
|
|
||||||
<script src="/decoder.js"></script>
|
|
||||||
<script src="/decoder.wasm"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1,19 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
|
||||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
|
||||||
<script src="./jessibuca.js"></script>
|
|
||||||
</head>
|
|
||||||
<body class="page">
|
|
||||||
<noscript>
|
|
||||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
|
|
||||||
Please enable it to continue.</strong>
|
|
||||||
</noscript>
|
|
||||||
<div id="app"></div>
|
|
||||||
<!-- built files will be auto injected -->
|
|
||||||
</body>
|
|
||||||
</html>
|
|
File diff suppressed because one or more lines are too long
|
@ -1,27 +0,0 @@
|
||||||
import request from '@/utils/request'
|
|
||||||
// 省列表
|
|
||||||
export function apiProvinceList(params: any) {
|
|
||||||
return request.get({ url: '/common/province', params })
|
|
||||||
}
|
|
||||||
// 市列表
|
|
||||||
export function apiCityList(params: any) {
|
|
||||||
return request.get({ url: '/common/city', params })
|
|
||||||
}
|
|
||||||
// 区列表
|
|
||||||
export function apiAreaList(params: any) {
|
|
||||||
return request.get({ url: '/common/area', params })
|
|
||||||
}
|
|
||||||
// 镇列表
|
|
||||||
export function apiStreetList(params: any) {
|
|
||||||
return request.get({ url: '/common/street', params })
|
|
||||||
}
|
|
||||||
// 村列表
|
|
||||||
export function apiVillageList(params: any) {
|
|
||||||
return request.get({ url: '/common/village', params })
|
|
||||||
}
|
|
||||||
|
|
||||||
// 队列表
|
|
||||||
export function apiBrigadeList() {
|
|
||||||
return request.get({ url: '/common/brigade' })
|
|
||||||
}
|
|
||||||
|
|
|
@ -19,8 +19,3 @@ export function userEdit(params: any) {
|
||||||
export function adjustMoney(params: any) {
|
export function adjustMoney(params: any) {
|
||||||
return request.post({ url: '/user.user/adjustMoney', params })
|
return request.post({ url: '/user.user/adjustMoney', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
//添加用户
|
|
||||||
export function addUser(params: any) {
|
|
||||||
return request.post({ url: '/user.user/add', params })
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,363 +0,0 @@
|
||||||
<template>
|
|
||||||
<div class="rot" >
|
|
||||||
<div class="container-shell">
|
|
||||||
|
|
||||||
<div class="option" style="display: none;">
|
|
||||||
|
|
||||||
<input
|
|
||||||
style="width: 50px"
|
|
||||||
type="number"
|
|
||||||
ref="buffer"
|
|
||||||
value="0.2"
|
|
||||||
@change="changeBuffer"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
v-model="useMSE"
|
|
||||||
ref="vod"
|
|
||||||
@change="restartPlay('mse')"
|
|
||||||
/><span>MediaSource</span>
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
v-model="useWCS"
|
|
||||||
ref="vod"
|
|
||||||
@change="restartPlay('wcs')"
|
|
||||||
/><span>webcodecs</span>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div id="container" ref="container"></div>
|
|
||||||
<div class="input" style="display: none;">
|
|
||||||
<div>输入URL:</div>
|
|
||||||
<input
|
|
||||||
type="input"
|
|
||||||
autocomplete="on"
|
|
||||||
ref="playUrl"
|
|
||||||
:value="video_url"
|
|
||||||
/>
|
|
||||||
<button v-if="!playing" @click="play">播放</button>
|
|
||||||
<button v-else @click="pause">停止</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "VideoPlayer",
|
|
||||||
props: {
|
|
||||||
video_url: String
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
jessibuca: null,
|
|
||||||
version: '',
|
|
||||||
wasm: false,
|
|
||||||
videoUrl:'',
|
|
||||||
vc: "ff",
|
|
||||||
playing: false,
|
|
||||||
quieting: true,
|
|
||||||
loaded: false, // mute
|
|
||||||
showOperateBtns: false,
|
|
||||||
showBandwidth: false,
|
|
||||||
err: "",
|
|
||||||
speed: 0,
|
|
||||||
performance: "",
|
|
||||||
volume: 1,
|
|
||||||
rotate: 0,
|
|
||||||
useWCS: false,
|
|
||||||
useMSE: true,
|
|
||||||
useOffscreen: false,
|
|
||||||
recording: false,
|
|
||||||
recordType: 'webm',
|
|
||||||
scale: 0
|
|
||||||
};
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.create();
|
|
||||||
this.videoUrl = this.video_url
|
|
||||||
window.onerror = (msg) => (this.err = msg);
|
|
||||||
|
|
||||||
setTimeout( ()=>{
|
|
||||||
this.play()
|
|
||||||
},2000 )
|
|
||||||
|
|
||||||
},
|
|
||||||
unmounted() {
|
|
||||||
this.jessibuca.destroy();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
create(options) {
|
|
||||||
options = options || {};
|
|
||||||
this.jessibuca = new window.Jessibuca(
|
|
||||||
Object.assign(
|
|
||||||
{
|
|
||||||
container: this.$refs.container,
|
|
||||||
videoBuffer: Number(this.$refs.buffer.value), // 缓存时长
|
|
||||||
isResize: false,
|
|
||||||
useWCS: this.useWCS,
|
|
||||||
useMSE: this.useMSE,
|
|
||||||
text: "",
|
|
||||||
loadingText: "疯狂加载中...",
|
|
||||||
debug: false,
|
|
||||||
decoder:"/decoder.js",
|
|
||||||
supportDblclickFullscreen: true,
|
|
||||||
showBandwidth: this.showBandwidth, // 显示网速
|
|
||||||
operateBtns: {
|
|
||||||
fullscreen: this.showOperateBtns,
|
|
||||||
screenshot: this.showOperateBtns,
|
|
||||||
play: this.showOperateBtns,
|
|
||||||
audio: this.showOperateBtns,
|
|
||||||
},
|
|
||||||
vod: this.vod,
|
|
||||||
forceNoOffscreen: !this.useOffscreen,
|
|
||||||
isNotMute: true,
|
|
||||||
timeout: 10
|
|
||||||
},
|
|
||||||
options
|
|
||||||
)
|
|
||||||
);
|
|
||||||
let _this = this;
|
|
||||||
this.jessibuca.on("load", function () {
|
|
||||||
console.log("on load");
|
|
||||||
});
|
|
||||||
|
|
||||||
this.jessibuca.on("log", function (msg) {
|
|
||||||
console.log("on log", msg);
|
|
||||||
});
|
|
||||||
this.jessibuca.on("record", function (msg) {
|
|
||||||
console.log("on record:", msg);
|
|
||||||
});
|
|
||||||
this.jessibuca.on("pause", function () {
|
|
||||||
console.log("on pause");
|
|
||||||
_this.playing = false;
|
|
||||||
});
|
|
||||||
this.jessibuca.on("play", function () {
|
|
||||||
console.log("on play");
|
|
||||||
_this.playing = true;
|
|
||||||
});
|
|
||||||
this.jessibuca.on("fullscreen", function (msg) {
|
|
||||||
console.log("on fullscreen", msg);
|
|
||||||
});
|
|
||||||
|
|
||||||
this.jessibuca.on("mute", function (msg) {
|
|
||||||
console.log("on mute", msg);
|
|
||||||
_this.quieting = msg;
|
|
||||||
});
|
|
||||||
|
|
||||||
this.jessibuca.on("mute", function (msg) {
|
|
||||||
console.log("on mute2", msg);
|
|
||||||
});
|
|
||||||
|
|
||||||
this.jessibuca.on("audioInfo", function (msg) {
|
|
||||||
console.log("audioInfo", msg);
|
|
||||||
});
|
|
||||||
this.jessibuca.on("videoInfo", function (info) {
|
|
||||||
console.log("videoInfo", info);
|
|
||||||
});
|
|
||||||
|
|
||||||
this.jessibuca.on("error", function (error) {
|
|
||||||
console.log("error", error);
|
|
||||||
});
|
|
||||||
|
|
||||||
this.jessibuca.on("timeout", function () {
|
|
||||||
console.log("timeout");
|
|
||||||
});
|
|
||||||
|
|
||||||
this.jessibuca.on('start', function () {
|
|
||||||
console.log('frame start');
|
|
||||||
})
|
|
||||||
|
|
||||||
this.jessibuca.on("performance", function (performance) {
|
|
||||||
var show = "卡顿";
|
|
||||||
if (performance === 2) {
|
|
||||||
show = "非常流畅";
|
|
||||||
} else if (performance === 1) {
|
|
||||||
show = "流畅";
|
|
||||||
}
|
|
||||||
_this.performance = show;
|
|
||||||
});
|
|
||||||
this.jessibuca.on('buffer', function (buffer) {
|
|
||||||
console.log('buffer', buffer);
|
|
||||||
})
|
|
||||||
|
|
||||||
this.jessibuca.on('stats', function (stats) {
|
|
||||||
console.log('stats', stats);
|
|
||||||
})
|
|
||||||
|
|
||||||
this.jessibuca.on('kBps', function (kBps) {
|
|
||||||
console.log('kBps', kBps);
|
|
||||||
});
|
|
||||||
|
|
||||||
this.jessibuca.on("play", () => {
|
|
||||||
this.playing = true;
|
|
||||||
this.loaded = true;
|
|
||||||
this.quieting = this.jessibuca.isMute();
|
|
||||||
});
|
|
||||||
|
|
||||||
this.jessibuca.on('recordingTimestamp', (ts) => {
|
|
||||||
console.log('recordingTimestamp', ts);
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
play() {
|
|
||||||
if (this.$refs.playUrl.value) {
|
|
||||||
this.jessibuca.play(this.$refs.playUrl.value);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mute() {
|
|
||||||
this.jessibuca.mute();
|
|
||||||
},
|
|
||||||
cancelMute() {
|
|
||||||
this.jessibuca.cancelMute();
|
|
||||||
},
|
|
||||||
|
|
||||||
pause() {
|
|
||||||
this.jessibuca.pause();
|
|
||||||
this.playing = false;
|
|
||||||
this.err = "";
|
|
||||||
this.performance = "";
|
|
||||||
},
|
|
||||||
volumeChange() {
|
|
||||||
this.jessibuca.setVolume(this.volume);
|
|
||||||
},
|
|
||||||
rotateChange() {
|
|
||||||
this.jessibuca.setRotate(this.rotate);
|
|
||||||
},
|
|
||||||
destroy() {
|
|
||||||
if (this.jessibuca) {
|
|
||||||
this.jessibuca.destroy();
|
|
||||||
}
|
|
||||||
this.create();
|
|
||||||
this.playing = false;
|
|
||||||
this.loaded = false;
|
|
||||||
this.performance = "";
|
|
||||||
},
|
|
||||||
|
|
||||||
fullscreen() {
|
|
||||||
this.jessibuca.setFullscreen(true);
|
|
||||||
},
|
|
||||||
|
|
||||||
clearView() {
|
|
||||||
this.jessibuca.clearView();
|
|
||||||
},
|
|
||||||
|
|
||||||
startRecord() {
|
|
||||||
const time = new Date().getTime();
|
|
||||||
this.jessibuca.startRecord(time, this.recordType);
|
|
||||||
},
|
|
||||||
|
|
||||||
stopAndSaveRecord() {
|
|
||||||
this.jessibuca.stopRecordAndSave();
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
screenShot() {
|
|
||||||
this.jessibuca.screenshot();
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
restartPlay(type) {
|
|
||||||
|
|
||||||
if (type === 'mse') {
|
|
||||||
this.useWCS = false;
|
|
||||||
this.useOffscreen = false;
|
|
||||||
} else if (type === 'wcs') {
|
|
||||||
this.useMSE = false
|
|
||||||
} else if (type === 'offscreen') {
|
|
||||||
this.useMSE = false
|
|
||||||
}
|
|
||||||
|
|
||||||
this.destroy();
|
|
||||||
setTimeout(() => {
|
|
||||||
this.play();
|
|
||||||
}, 100)
|
|
||||||
},
|
|
||||||
|
|
||||||
changeBuffer() {
|
|
||||||
this.jessibuca.setBufferTime(Number(this.$refs.buffer.value));
|
|
||||||
},
|
|
||||||
|
|
||||||
scaleChange() {
|
|
||||||
this.jessibuca.setScaleMode(this.scale);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<style>
|
|
||||||
.root {
|
|
||||||
display: flex;
|
|
||||||
place-content: center;
|
|
||||||
margin-top: 3rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container-shell {
|
|
||||||
position: relative;
|
|
||||||
backdrop-filter: blur(5px);
|
|
||||||
width: auto;
|
|
||||||
position: relative;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container-shell-title {
|
|
||||||
position: absolute;
|
|
||||||
color: darkgray;
|
|
||||||
top: 4px;
|
|
||||||
left: 10px;
|
|
||||||
text-shadow: 1px 1px black;
|
|
||||||
}
|
|
||||||
|
|
||||||
#container {
|
|
||||||
width: 55vw;
|
|
||||||
height: 30vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
margin-top: 10px;
|
|
||||||
color: white;
|
|
||||||
place-content: stretch;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input2 {
|
|
||||||
bottom: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input input[type='input'] {
|
|
||||||
flex: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.err {
|
|
||||||
position: absolute;
|
|
||||||
top: 40px;
|
|
||||||
left: 10px;
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
.option {
|
|
||||||
position: absolute;
|
|
||||||
top: 4px;
|
|
||||||
right: 10px;
|
|
||||||
display: flex;
|
|
||||||
place-content: center;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.option span {
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page {
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: top;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 720px) {
|
|
||||||
#container {
|
|
||||||
width: 90vw;
|
|
||||||
height: 52.7vw;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -2,9 +2,7 @@ const config = {
|
||||||
terminal: 1, //终端
|
terminal: 1, //终端
|
||||||
title: '后台管理系统', //网站默认标题
|
title: '后台管理系统', //网站默认标题
|
||||||
version: '1.6.0', //版本号
|
version: '1.6.0', //版本号
|
||||||
baseUrl: `${
|
baseUrl: `${import.meta.env.VITE_APP_BASE_URL || ''}/`, //请求接口域名
|
||||||
import.meta.env.VITE_APP_BASE_URL
|
|
||||||
}/`, //请求接口域名
|
|
||||||
// baseUrl: 'http://127.0.0.1:30005/',
|
// baseUrl: 'http://127.0.0.1:30005/',
|
||||||
urlPrefix: 'adminapi', //请求默认前缀
|
urlPrefix: 'adminapi', //请求默认前缀
|
||||||
timeout: 10 * 1000 //请求超时时长
|
timeout: 10 * 1000 //请求超时时长
|
||||||
|
|
|
@ -4,9 +4,7 @@ import install from './install'
|
||||||
import './permission'
|
import './permission'
|
||||||
import './styles/index.scss'
|
import './styles/index.scss'
|
||||||
import 'virtual:svg-icons-register'
|
import 'virtual:svg-icons-register'
|
||||||
import configs from './config/index'
|
|
||||||
|
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
app.use(install)
|
app.use(install)
|
||||||
app.provide('base_url', configs.baseUrl+configs.urlPrefix);
|
|
||||||
app.mount('#app')
|
app.mount('#app')
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="resetPage">查询</el-button>
|
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||||
<el-button @click="resetParams">重置</el-button>
|
<el-button @click="resetParams">重置</el-button>
|
||||||
<el-button @click="dialogFormVisible=true">创建</el-button>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -82,33 +81,12 @@
|
||||||
<pagination v-model="pager" @change="getLists" />
|
<pagination v-model="pager" @change="getLists" />
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-dialog v-model="dialogFormVisible" title="添加用户" width="30%">
|
|
||||||
<el-form :model="form" ref="addForm">
|
|
||||||
<el-form-item label="手机号" prop="mobile">
|
|
||||||
<el-input v-model="form.mobile" autocomplete="off" />
|
|
||||||
<span>
|
|
||||||
<el-icon><Pointer /></el-icon>
|
|
||||||
初始密码:123456
|
|
||||||
</span>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<template #footer>
|
|
||||||
<span class="dialog-footer">
|
|
||||||
<el-button @click="dialogFormVisible = false">取消</el-button>
|
|
||||||
<el-button type="primary" @click="addUser">
|
|
||||||
确定
|
|
||||||
</el-button>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup name="consumerLists">
|
<script lang="ts" setup name="consumerLists">
|
||||||
import { usePaging } from '@/hooks/usePaging'
|
import { usePaging } from '@/hooks/usePaging'
|
||||||
import { getRoutePath } from '@/router'
|
import { getRoutePath } from '@/router'
|
||||||
import { getUserList, addUser as addUserApi } from '@/api/consumer'
|
import { getUserList } from '@/api/consumer'
|
||||||
import { ElMessage } from 'element-plus'
|
|
||||||
import { ClientMap } from '@/enums/appEnums'
|
import { ClientMap } from '@/enums/appEnums'
|
||||||
const queryParams = reactive({
|
const queryParams = reactive({
|
||||||
keyword: '',
|
keyword: '',
|
||||||
|
@ -125,21 +103,5 @@ onActivated(() => {
|
||||||
getLists()
|
getLists()
|
||||||
})
|
})
|
||||||
|
|
||||||
const dialogFormVisible = ref(false)
|
|
||||||
const form = reactive({
|
|
||||||
"mobile": ""
|
|
||||||
})
|
|
||||||
const addForm = ref()
|
|
||||||
const addUser = () => {
|
|
||||||
addUserApi(form).then(() => {
|
|
||||||
ElMessage({
|
|
||||||
message: '用户添加成功',
|
|
||||||
type: 'success',
|
|
||||||
})
|
|
||||||
addForm.value.resetFields()
|
|
||||||
dialogFormVisible.value = false
|
|
||||||
getLists()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
getLists()
|
getLists()
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -10,39 +10,37 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="flex flex-wrap">
|
<div class="flex flex-wrap">
|
||||||
<div v-if="deviceData.device.land_id != ''" class="w-1/2 mb-4 md:w-1/3">
|
<div v-if="deviceData.device.land_id != ''" class="w-1/2 md:w-1/3 mb-4">
|
||||||
<div class="leading-10">所属土地:</div>
|
<div class="leading-10">所属土地:</div>
|
||||||
<div class="text-3xl text-tx-gray">ID:{{ deviceData.device.land_id }} / 名称:{{
|
<div class="text-3xl text-tx-gray">ID:{{ deviceData.device.land_id }} / 名称:{{ deviceData.device.land_title }}</div>
|
||||||
deviceData.device.land_title }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="deviceData.device.product_id != ''" class="w-1/2 mb-4 md:w-1/3">
|
<div v-if="deviceData.device.product_id != ''" class="w-1/2 md:w-1/3 mb-4">
|
||||||
<div class="leading-10">所属产品:</div>
|
<div class="leading-10">所属产品:</div>
|
||||||
<div class="text-3xl text-tx-gray">ID:{{ deviceData.device.product_id }} / 名称:{{
|
<div class="text-3xl text-tx-gray">ID:{{ deviceData.device.product_id }} / 名称:{{ deviceData.device.product_name }}</div>
|
||||||
deviceData.device.product_name }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap">
|
<div class="flex flex-wrap">
|
||||||
<div class="w-1/2 mb-4 md:w-1/6">
|
<div class="w-1/2 md:w-1/6 mb-4">
|
||||||
<div class="leading-10">设备名称:</div>
|
<div class="leading-10">设备名称:</div>
|
||||||
<div class="text-3xl text-tx-gray">{{ deviceData.device.name }}</div>
|
<div class="text-3xl text-tx-gray">{{ deviceData.device.name }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-1/2 mb-4 md:w-1/6">
|
<div class="w-1/2 md:w-1/6 mb-4">
|
||||||
<div class="leading-10">设备编码:</div>
|
<div class="leading-10">设备编码:</div>
|
||||||
<div class="text-3xl text-tx-gray">{{ deviceData.device.code }}</div>
|
<div class="text-3xl text-tx-gray">{{ deviceData.device.code }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-1/2 mb-4 md:w-1/6">
|
<div class="w-1/2 md:w-1/6 mb-4">
|
||||||
<div class="leading-10">设备类型:</div>
|
<div class="leading-10">设备类型:</div>
|
||||||
<div class="text-3xl text-tx-gray">
|
<div class="text-3xl text-tx-gray">
|
||||||
<dict-value :options="dictData.device_type" :value="deviceData.device.type" />
|
<dict-value :options="dictData.device_type" :value="deviceData.device.type" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-1/2 mb-4 md:w-1/6">
|
<div class="w-1/2 md:w-1/6 mb-4">
|
||||||
<div class="leading-10">设备状态:</div>
|
<div class="leading-10">设备状态:</div>
|
||||||
<div class="text-3xl text-tx-gray">
|
<div class="text-3xl text-tx-gray">
|
||||||
<dict-value :options="dictData.device_status" :value="deviceData.device.status" />
|
<dict-value :options="dictData.device_status" :value="deviceData.device.status" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-1/2 mb-4 md:w-1/6">
|
<div class="w-1/2 md:w-1/6 mb-4">
|
||||||
<div class="leading-10">是否在线:</div>
|
<div class="leading-10">是否在线:</div>
|
||||||
<div class="text-3xl text-tx-gray">
|
<div class="text-3xl text-tx-gray">
|
||||||
<dict-value :options="dictData.device_online_status" :value="deviceData.device.is_online" />
|
<dict-value :options="dictData.device_online_status" :value="deviceData.device.is_online" />
|
||||||
|
@ -53,35 +51,30 @@
|
||||||
|
|
||||||
<el-card class="!border-none mt-4 flex-1" shadow="never">
|
<el-card class="!border-none mt-4 flex-1" shadow="never">
|
||||||
<el-tabs v-model="activeName" class="">
|
<el-tabs v-model="activeName" class="">
|
||||||
<!-- <el-tab-pane v-if="deviceData.device.type==3" label="监控视频" name="monitor_video"> -->
|
|
||||||
<el-tab-pane label="监控视频" name="monitor_video" style="width:100vw;padding-left: 15vw;">
|
|
||||||
<Jessibuca v-if="deviceData.device.video_url != '' && showVideo " :video_url="deviceData.device.video_url"></Jessibuca>
|
|
||||||
<!-- <Jessibuca
|
|
||||||
:video_url="'http://rtsp.lihaink.cn/live/lihai_lot_walnutpi_dev_6.live.flv?secret=ywdtp2llj80ha19jhmxl4po99nsmaynt'">
|
|
||||||
</Jessibuca> -->
|
|
||||||
|
|
||||||
</el-tab-pane>
|
|
||||||
|
|
||||||
<el-tab-pane label="监控数据" name="monitor_item">
|
<el-tab-pane label="监控数据" name="monitor_item">
|
||||||
<el-row :gutter="12">
|
<el-row :gutter="12">
|
||||||
<el-col :span="6" v-for="item in deviceData.monitor_item" :key="item">
|
<el-col :span="6" v-for="item in deviceData.monitor_item" :key="item">
|
||||||
<el-card shadow="always" class="mb-4">
|
<el-card shadow="always" class="mb-4">
|
||||||
<div class="flex justify-between mb-2">
|
<div class="flex justify-between mb-2">
|
||||||
<div class="mt-2 text-sm text-tx-secondary">{{ item.name }}</div>
|
<div class="mt-2 text-sm text-tx-secondary">{{ item.name }}</div>
|
||||||
<div class="mt-2 text-sm text-tx-secondary" style="cursor: pointer;"
|
<div class="mt-2 text-sm text-tx-secondary" style="cursor: pointer;" @click="handleClick(item.device_id, item.value)">
|
||||||
@click="handleClick(item.device_id, item.value)">
|
|
||||||
历史数据
|
历史数据
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="my-6 text-3xl">{{ item.monitor_value }}</div>
|
<div class="my-6 text-3xl">{{ item.monitor_value }}</div>
|
||||||
<div class="mt-2 text-sm text-tx-secondary"><el-tag class="mr-2" type="info">只读</el-tag>{{
|
<div class="mt-2 text-sm text-tx-secondary"><el-tag class="mr-2" type="info">只读</el-tag>{{ item.last_time }}</div>
|
||||||
item.last_time }}</div>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
<el-tab-pane v-if="deviceData.device.type==3" label="监控视频" name="monitor_video">
|
||||||
|
<video
|
||||||
|
v-if="deviceData.device.video_url != ''"
|
||||||
|
:src="deviceData.device.video_url"
|
||||||
|
controls
|
||||||
|
></video>
|
||||||
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
|
@ -92,21 +85,25 @@
|
||||||
<el-table-column property="date" label="时间" width="250" />
|
<el-table-column property="date" label="时间" width="250" />
|
||||||
<el-table-column property="value" label="数据" />
|
<el-table-column property="value" label="数据" />
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination small background layout="prev, pager, next" :page-size="queryMonitorData.page_size"
|
<el-pagination
|
||||||
:total="queryMonitorData.total" class="mt-4" @current-change="handleCurrentChange" />
|
small
|
||||||
</el-dialog>
|
background
|
||||||
|
layout="prev, pager, next"
|
||||||
|
:page-size="queryMonitorData.page_size"
|
||||||
|
:total="queryMonitorData.total"
|
||||||
|
class="mt-4"
|
||||||
|
@current-change="handleCurrentChange"
|
||||||
|
/>
|
||||||
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup name="deviceDetail">
|
<script lang="ts" setup name="deviceDetail">
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import Jessibuca from '@/components/jessibuca/Jessibuca.vue'
|
|
||||||
import { useDictData } from '@/hooks/useDictOptions'
|
import { useDictData } from '@/hooks/useDictOptions'
|
||||||
import { apiDeviceDetail, apiDeviceMonitorData } from '@/api/device'
|
import { apiDeviceDetail, apiDeviceMonitorData } from '@/api/device'
|
||||||
import { timeFormat } from '@/utils/util'
|
import { timeFormat } from '@/utils/util'
|
||||||
import {useRoute} from "vue-router"
|
|
||||||
|
|
||||||
|
const activeName = ref('monitor_item')
|
||||||
const activeName = ref('monitor_video')
|
|
||||||
const deviceData: any = reactive({
|
const deviceData: any = reactive({
|
||||||
device: {},
|
device: {},
|
||||||
monitor_item: []
|
monitor_item: []
|
||||||
|
@ -128,9 +125,6 @@ const getDetails = async () => {
|
||||||
id: route.query.device_id
|
id: route.query.device_id
|
||||||
})
|
})
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
scoketData.username = res.account
|
|
||||||
scoketData.device = res.id
|
|
||||||
// pullStream(scoketData)
|
|
||||||
deviceData.device.name = res.name
|
deviceData.device.name = res.name
|
||||||
deviceData.device.code = res.code
|
deviceData.device.code = res.code
|
||||||
deviceData.device.type = res.type
|
deviceData.device.type = res.type
|
||||||
|
@ -210,38 +204,4 @@ const handleCurrentChange = (val: number) => {
|
||||||
console.log('err', err)
|
console.log('err', err)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// scoket拉流地址
|
|
||||||
const scoketData = reactive({
|
|
||||||
username: '',
|
|
||||||
device: '',
|
|
||||||
scence: 2,
|
|
||||||
|
|
||||||
})
|
|
||||||
const showVideo=ref(false)
|
|
||||||
const socket = new WebSocket('wss://iot.lihaink.cn/test');
|
|
||||||
const pullStream = (data: object) => {
|
|
||||||
const onSocketOpen = (event: any) => {
|
|
||||||
console.log("scoket打开")
|
|
||||||
socket.send(JSON.stringify(data));
|
|
||||||
showVideo.value=true
|
|
||||||
}
|
|
||||||
const onSocketClose = (event: any) => {
|
|
||||||
console.log('WebSocket连接已关闭');
|
|
||||||
}
|
|
||||||
const onSocketError = (event: any) => {
|
|
||||||
console.error('WebSocket连接发生错误');
|
|
||||||
}
|
|
||||||
socket.addEventListener('open', onSocketOpen);
|
|
||||||
socket.addEventListener('close', onSocketClose);
|
|
||||||
socket.addEventListener('error', onSocketError);
|
|
||||||
}
|
|
||||||
pullStream( {
|
|
||||||
username:route.query.userName,
|
|
||||||
device: 'lihai_lot_walnutpi_dev_' + route.query.device_id,
|
|
||||||
scence:'web'
|
|
||||||
})
|
|
||||||
onBeforeUnmount(() => {
|
|
||||||
socket.close()
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
|
@ -43,30 +43,6 @@
|
||||||
<el-form-item label="设备编码" prop="code">
|
<el-form-item label="设备编码" prop="code">
|
||||||
<el-input v-model="formData.code" clearable placeholder="请输入设备编码" />
|
<el-input v-model="formData.code" clearable placeholder="请输入设备编码" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="产品图" prop="image">
|
|
||||||
<el-upload
|
|
||||||
class="avatar-uploader"
|
|
||||||
:accept="acceptFileTypes"
|
|
||||||
v-model="formData.image"
|
|
||||||
:data="{ cid: 1 }"
|
|
||||||
:headers="{ Token: userStore.token }"
|
|
||||||
:action="action"
|
|
||||||
:show-file-list="false"
|
|
||||||
:on-success="handleAvatarSuccessAvatar"
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
v-if="formData.image"
|
|
||||||
:src="formData.image"
|
|
||||||
class="avatar"
|
|
||||||
/>
|
|
||||||
<div v-else class="avatar-uploader-icon">
|
|
||||||
<el-icon>
|
|
||||||
<Plus />
|
|
||||||
</el-icon>
|
|
||||||
</div>
|
|
||||||
</el-upload>
|
|
||||||
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="监测项" prop="monitor_item">
|
<el-form-item label="监测项" prop="monitor_item">
|
||||||
<el-select class="flex-1" v-model="formData.monitor_item" multiple clearable placeholder="请选择设备监测项">
|
<el-select class="flex-1" v-model="formData.monitor_item" multiple clearable placeholder="请选择设备监测项">
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -107,15 +83,11 @@
|
||||||
|
|
||||||
<script lang="ts" setup name="deviceEdit">
|
<script lang="ts" setup name="deviceEdit">
|
||||||
import { useDictOptions } from '@/hooks/useDictOptions'
|
import { useDictOptions } from '@/hooks/useDictOptions'
|
||||||
import {type FormInstance } from 'element-plus'
|
import type { FormInstance } from 'element-plus'
|
||||||
import Popup from '@/components/popup/index.vue'
|
import Popup from '@/components/popup/index.vue'
|
||||||
import { apiDeviceAdd, apiDeviceEdit, apiDeviceDetail, getUserList, apiProductLists} from '@/api/device'
|
import { apiDeviceAdd, apiDeviceEdit, apiDeviceDetail, getUserList, apiProductLists} from '@/api/device'
|
||||||
import { timeFormat } from '@/utils/util'
|
import { timeFormat } from '@/utils/util'
|
||||||
import type { PropType } from 'vue'
|
import type { PropType } from 'vue'
|
||||||
import {ref} from "vue";
|
|
||||||
import config from "@/config";
|
|
||||||
import useUserStore from "@/stores/modules/user";
|
|
||||||
import {ElMessage, type UploadProps} from "element-plus";
|
|
||||||
defineProps({
|
defineProps({
|
||||||
dictData: {
|
dictData: {
|
||||||
type: Object as PropType<Record<string, any[]>>,
|
type: Object as PropType<Record<string, any[]>>,
|
||||||
|
@ -126,19 +98,7 @@ const emit = defineEmits(['success', 'close'])
|
||||||
const formRef = shallowRef<FormInstance>()
|
const formRef = shallowRef<FormInstance>()
|
||||||
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
||||||
const mode = ref('add')
|
const mode = ref('add')
|
||||||
const acceptFileTypes = ref(".png, .jpg, .jpeg, image/png, image/jpeg")
|
|
||||||
const action = ref(`${config.baseUrl}${config.urlPrefix}/upload/image`)
|
|
||||||
const userStore = useUserStore()
|
|
||||||
const handleAvatarSuccessAvatar: UploadProps["onSuccess"] = (
|
|
||||||
response,
|
|
||||||
uploadFile
|
|
||||||
) => {
|
|
||||||
if (response.code == 0) {
|
|
||||||
ElMessage.error(response.msg);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
formData.image = response.data.uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 弹窗标题
|
// 弹窗标题
|
||||||
const popupTitle = computed(() => {
|
const popupTitle = computed(() => {
|
||||||
|
@ -156,7 +116,6 @@ const formData = reactive({
|
||||||
monitor_item: '',
|
monitor_item: '',
|
||||||
status: '',
|
status: '',
|
||||||
is_online: '',
|
is_online: '',
|
||||||
image: ''
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// 表单验证
|
// 表单验证
|
||||||
|
@ -260,35 +219,3 @@ defineExpose({
|
||||||
getDetail
|
getDetail
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
|
||||||
.avatar-uploader .avatar {
|
|
||||||
width: 178px;
|
|
||||||
height: 178px;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.avatar-uploader .el-upload {
|
|
||||||
width: 200px;
|
|
||||||
height: 130px;
|
|
||||||
border: 1px dashed var(--el-border-color);
|
|
||||||
border-radius: 6px;
|
|
||||||
cursor: pointer;
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
transition: var(--el-transition-duration-fast);
|
|
||||||
}
|
|
||||||
|
|
||||||
.avatar-uploader .el-upload:hover {
|
|
||||||
border-color: var(--el-color-primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-icon.avatar-uploader-icon {
|
|
||||||
font-size: 28px;
|
|
||||||
color: #8c939d;
|
|
||||||
width: 178px;
|
|
||||||
height: 178px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -2,6 +2,7 @@
|
||||||
<div>
|
<div>
|
||||||
<el-card class="!border-none mb-4" shadow="never">
|
<el-card class="!border-none mb-4" shadow="never">
|
||||||
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||||
|
>
|
||||||
<el-form-item label="用户ID" prop="user_id">
|
<el-form-item label="用户ID" prop="user_id">
|
||||||
<el-input
|
<el-input
|
||||||
class="w-[280px]"
|
class="w-[280px]"
|
||||||
|
@ -198,8 +199,7 @@
|
||||||
:to="{
|
:to="{
|
||||||
path: getRoutePath('device.device/detail'),
|
path: getRoutePath('device.device/detail'),
|
||||||
query: {
|
query: {
|
||||||
device_id: row.id,
|
device_id: row.id
|
||||||
userName:row.account
|
|
||||||
}
|
}
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
|
@ -230,7 +230,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-end mt-4">
|
<div class="flex mt-4 justify-end">
|
||||||
<pagination v-model="pager" @change="getLists" />
|
<pagination v-model="pager" @change="getLists" />
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
|
@ -38,126 +38,42 @@
|
||||||
<!-- <el-form-item label="剩余面积" prop="residual_area">
|
<!-- <el-form-item label="剩余面积" prop="residual_area">
|
||||||
<el-input v-model="formData.residual_area" clearable disabled placeholder="请输入剩余面积" />
|
<el-input v-model="formData.residual_area" clearable disabled placeholder="请输入剩余面积" />
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
|
<el-form-item label="省编码" prop="province_code">
|
||||||
<el-form-item
|
<el-input v-model="formData.province_code" clearable placeholder="请输入省编码" />
|
||||||
label="省"
|
</el-form-item>
|
||||||
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]"
|
<el-form-item label="省名称" prop="province_name">
|
||||||
prop="province_code"
|
<el-input v-model="formData.province_name" clearable placeholder="请输入省名称" />
|
||||||
>
|
</el-form-item>
|
||||||
<el-select
|
<el-form-item label="市编码" prop="city_code">
|
||||||
v-model="formData.province_code"
|
<el-input v-model="formData.city_code" clearable placeholder="请输入市编码" />
|
||||||
placeholder="请选择省"
|
</el-form-item>
|
||||||
clearable
|
<el-form-item label="市名称" prop="city_name">
|
||||||
@change="province_change"
|
<el-input v-model="formData.city_name" clearable placeholder="请输入市名称" />
|
||||||
:style="{ width: '100%' }"
|
</el-form-item>
|
||||||
>
|
<el-form-item label="县编码" prop="county_code">
|
||||||
<el-option
|
<el-input v-model="formData.county_code" clearable placeholder="请输入县编码" />
|
||||||
v-for="(item, index) in datas.provinceOptions"
|
</el-form-item>
|
||||||
:key="index"
|
<el-form-item label="县名称" prop="county_name">
|
||||||
:label="item.province_name"
|
<el-input v-model="formData.county_name" clearable placeholder="请输入县名称" />
|
||||||
:value="item.province_code"
|
</el-form-item>
|
||||||
></el-option>
|
<el-form-item label="镇编码" prop="town_code">
|
||||||
</el-select>
|
<el-input v-model="formData.town_code" clearable placeholder="请输入镇编码" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item label="镇名称" prop="town_name">
|
||||||
label="市"
|
<el-input v-model="formData.town_name" clearable placeholder="请输入镇名称" />
|
||||||
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]"
|
</el-form-item>
|
||||||
prop="city_code"
|
<el-form-item label="村编码" prop="village_code">
|
||||||
>
|
<el-input v-model="formData.village_code" clearable placeholder="请输入村编码" />
|
||||||
<el-select
|
</el-form-item>
|
||||||
v-model="formData.city_code"
|
<el-form-item label="村名称" prop="village_name">
|
||||||
placeholder="请选择市"
|
<el-input v-model="formData.village_name" clearable placeholder="请输入村名称" />
|
||||||
clearable
|
</el-form-item>
|
||||||
@change="city_change"
|
<el-form-item label="组编码" prop="group_code">
|
||||||
:style="{ width: '100%' }"
|
<el-input v-model="formData.group_code" clearable placeholder="请输入组编码" />
|
||||||
>
|
</el-form-item>
|
||||||
<el-option
|
<el-form-item label="组名称" prop="group_name">
|
||||||
v-for="(item, index) in datas.cityOptions"
|
<el-input v-model="formData.group_name" clearable placeholder="请输入组名称" />
|
||||||
:key="index"
|
</el-form-item>
|
||||||
:label="item.city_name"
|
|
||||||
:value="item.city_code"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item
|
|
||||||
label="区"
|
|
||||||
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]"
|
|
||||||
prop="county_code"
|
|
||||||
>
|
|
||||||
<el-select
|
|
||||||
v-model="formData.county_code"
|
|
||||||
placeholder="请选择区"
|
|
||||||
clearable
|
|
||||||
@change="area_change"
|
|
||||||
:style="{ width: '100%' }"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="(item, index) in datas.areaOptions"
|
|
||||||
:key="index"
|
|
||||||
:label="item.county_name"
|
|
||||||
:value="item.county_code"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item
|
|
||||||
label="镇"
|
|
||||||
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]"
|
|
||||||
prop="town_code"
|
|
||||||
>
|
|
||||||
<el-select
|
|
||||||
v-model="formData.town_code"
|
|
||||||
placeholder="请选择镇"
|
|
||||||
clearable
|
|
||||||
@change="street_change"
|
|
||||||
:style="{ width: '100%' }"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="(item, index) in datas.streetOptions"
|
|
||||||
:key="index"
|
|
||||||
:label="item.town_name"
|
|
||||||
:value="item.town_code"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item
|
|
||||||
label="村"
|
|
||||||
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]"
|
|
||||||
prop="village_code"
|
|
||||||
>
|
|
||||||
<el-select
|
|
||||||
v-model="formData.village_code"
|
|
||||||
placeholder="请选择村"
|
|
||||||
clearable
|
|
||||||
@change="village_change"
|
|
||||||
:style="{ width: '100%' }"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="(item, index) in datas.villageOptions"
|
|
||||||
:key="index"
|
|
||||||
:label="item.village_name"
|
|
||||||
:value="item.village_code"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item
|
|
||||||
label="队"
|
|
||||||
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]"
|
|
||||||
prop="group_code"
|
|
||||||
>
|
|
||||||
<el-select
|
|
||||||
v-model="formData.group_code"
|
|
||||||
placeholder="请选择队"
|
|
||||||
clearable
|
|
||||||
:style="{ width: '100%' }"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="(item, index) in datas.brigadeOptions"
|
|
||||||
:key="index"
|
|
||||||
:label="item.group_name"
|
|
||||||
:value="item.id"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="土地负责人" prop="master_name">
|
<el-form-item label="土地负责人" prop="master_name">
|
||||||
<el-input v-model="formData.master_name" clearable placeholder="请输入土地负责人" />
|
<el-input v-model="formData.master_name" clearable placeholder="请输入土地负责人" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -177,14 +93,7 @@ import { useDictOptions } from '@/hooks/useDictOptions'
|
||||||
import type { FormInstance } from 'element-plus'
|
import type { FormInstance } from 'element-plus'
|
||||||
import Popup from '@/components/popup/index.vue'
|
import Popup from '@/components/popup/index.vue'
|
||||||
import { apiLandAdd, apiLandEdit, apiLandDetail, getUserList, getUserInfo } from '@/api/land'
|
import { apiLandAdd, apiLandEdit, apiLandDetail, getUserList, getUserInfo } from '@/api/land'
|
||||||
import {
|
import { timeFormat } from '@/utils/util'
|
||||||
apiCityList,
|
|
||||||
apiAreaList,
|
|
||||||
apiStreetList,
|
|
||||||
apiProvinceList,
|
|
||||||
apiVillageList,
|
|
||||||
apiBrigadeList,
|
|
||||||
} from "@/api/common";
|
|
||||||
import type { PropType } from 'vue'
|
import type { PropType } from 'vue'
|
||||||
defineProps({
|
defineProps({
|
||||||
dictData: {
|
dictData: {
|
||||||
|
@ -199,15 +108,9 @@ const mode = ref('add')
|
||||||
|
|
||||||
// 弹窗标题
|
// 弹窗标题
|
||||||
const popupTitle = computed(() => {
|
const popupTitle = computed(() => {
|
||||||
if (mode.value == 'edit') {
|
|
||||||
getCityList();
|
|
||||||
getAreaList();
|
|
||||||
getStreetList();
|
|
||||||
getVillageList();
|
|
||||||
getBrigadeList();
|
|
||||||
}
|
|
||||||
return mode.value == 'edit' ? '编辑土地' : '新增土地'
|
return mode.value == 'edit' ? '编辑土地' : '新增土地'
|
||||||
})
|
})
|
||||||
|
|
||||||
// 表单数据
|
// 表单数据
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
id: '',
|
id: '',
|
||||||
|
@ -329,87 +232,6 @@ const handleClose = () => {
|
||||||
emit('close')
|
emit('close')
|
||||||
}
|
}
|
||||||
|
|
||||||
const datas = reactive({
|
|
||||||
provinceOptions: [],
|
|
||||||
cityOptions: [],
|
|
||||||
areaOptions: [],
|
|
||||||
streetOptions: [],
|
|
||||||
villageOptions: [],
|
|
||||||
brigadeOptions: [],
|
|
||||||
});
|
|
||||||
function province_change(value: string) {
|
|
||||||
getCityList();
|
|
||||||
// 给省名称赋值
|
|
||||||
datas['provinceOptions'].forEach((item: any) =>{
|
|
||||||
if(item.province_code == value) {
|
|
||||||
formData.province_name = item.province_name
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
function city_change(value: string) {
|
|
||||||
getAreaList();
|
|
||||||
}
|
|
||||||
function area_change(value: string) {
|
|
||||||
getStreetList();
|
|
||||||
}
|
|
||||||
function street_change(value: string) {
|
|
||||||
getVillageList();
|
|
||||||
}
|
|
||||||
function village_change(value: string) {
|
|
||||||
getBrigadeList();
|
|
||||||
}
|
|
||||||
// function brigade_change(value: string) {
|
|
||||||
// formData.brigade = value
|
|
||||||
// }
|
|
||||||
const getProvinceList = async () => {
|
|
||||||
const data = await apiProvinceList({});
|
|
||||||
datas["provinceOptions"] = data;
|
|
||||||
};
|
|
||||||
const getCityList = async () => {
|
|
||||||
const data = await apiCityList({ city: formData.province_code });
|
|
||||||
datas["cityOptions"] = data;
|
|
||||||
};
|
|
||||||
const getAreaList = async () => {
|
|
||||||
const data = await apiAreaList({ area: formData.city_code });
|
|
||||||
datas["areaOptions"] = data;
|
|
||||||
// 市名称
|
|
||||||
datas['cityOptions'].forEach((item: any) =>{
|
|
||||||
if(item.city_code == formData.city_code) {
|
|
||||||
formData.city_name = item.city_name
|
|
||||||
}
|
|
||||||
})
|
|
||||||
};
|
|
||||||
const getStreetList = async () => {
|
|
||||||
const data = await apiStreetList({ street: formData.county_code });
|
|
||||||
datas["streetOptions"] = data;
|
|
||||||
// 区名称
|
|
||||||
datas['areaOptions'].forEach((item: any) =>{
|
|
||||||
if(item.county_code == formData.county_code) {
|
|
||||||
formData.county_name = item.county_name
|
|
||||||
}
|
|
||||||
})
|
|
||||||
};
|
|
||||||
const getVillageList = async () => {
|
|
||||||
const data = await apiVillageList({ village: formData.town_code });
|
|
||||||
datas["villageOptions"] = data;
|
|
||||||
// 镇名称
|
|
||||||
datas['streetOptions'].forEach((item: any) =>{
|
|
||||||
if(item.town_code == formData.town_code) {
|
|
||||||
formData.town_name = item.town_name
|
|
||||||
}
|
|
||||||
})
|
|
||||||
};
|
|
||||||
const getBrigadeList = async () => {
|
|
||||||
const data = await apiBrigadeList();
|
|
||||||
datas["brigadeOptions"] = data;
|
|
||||||
// 镇名称
|
|
||||||
datas['villageOptions'].forEach((item: any) =>{
|
|
||||||
if(item.village_code == formData.village_code) {
|
|
||||||
formData.village_name = item.village_name
|
|
||||||
}
|
|
||||||
})
|
|
||||||
};
|
|
||||||
getProvinceList(); // 初始化即请求省份数据
|
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
open,
|
open,
|
||||||
|
|
|
@ -326,12 +326,6 @@ const actionMap = reactive<actionData>({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const irrigateMap = reactive<actionData>({
|
|
||||||
'1': '喷灌',
|
|
||||||
'2': '滴灌',
|
|
||||||
'3': '沟灌'
|
|
||||||
})
|
|
||||||
|
|
||||||
const landActionData = reactive({
|
const landActionData = reactive({
|
||||||
gridData: [{}]
|
gridData: [{}]
|
||||||
})
|
})
|
||||||
|
@ -372,9 +366,6 @@ const handleSuyuan = (data: any) => {
|
||||||
const item = actionMap[type][key] ?? '-'
|
const item = actionMap[type][key] ?? '-'
|
||||||
for (const dkey in detail) {
|
for (const dkey in detail) {
|
||||||
if (dkey == key) {
|
if (dkey == key) {
|
||||||
if (type == 3 && key == 'type') {
|
|
||||||
detail[key] = irrigateMap[detail[key]]
|
|
||||||
}
|
|
||||||
landActionData.gridData.push({
|
landActionData.gridData.push({
|
||||||
item: item,
|
item: item,
|
||||||
value: detail[key] ?? '-'
|
value: detail[key] ?? '-'
|
||||||
|
|
|
@ -203,11 +203,6 @@ const actionMap = reactive<actionData>({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const irrigateMap = reactive<actionData>({
|
|
||||||
'1': '喷灌',
|
|
||||||
'2': '滴灌',
|
|
||||||
'3': '沟灌'
|
|
||||||
})
|
|
||||||
// 选中数据
|
// 选中数据
|
||||||
const selectData = ref<any[]>([])
|
const selectData = ref<any[]>([])
|
||||||
|
|
||||||
|
@ -238,9 +233,6 @@ const handleDetail = (data: any) => {
|
||||||
detailData.gridData = [{}]
|
detailData.gridData = [{}]
|
||||||
for (const key in actionMap[data.type]) {
|
for (const key in actionMap[data.type]) {
|
||||||
const item = actionMap[data.type][key] ?? '-'
|
const item = actionMap[data.type][key] ?? '-'
|
||||||
if (data.type == 3 && key == 'type') {
|
|
||||||
action[key] = irrigateMap[action[key]]
|
|
||||||
}
|
|
||||||
detailData.gridData.push({
|
detailData.gridData.push({
|
||||||
item: item,
|
item: item,
|
||||||
value: action[key] ?? '-'
|
value: action[key] ?? '-'
|
||||||
|
|
|
@ -44,17 +44,17 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="监测类型" align="center" prop="type">
|
<el-table-column label="监测类型" align="center" prop="type">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<dict-value :options="dictData.monitor_item" :value="row.type" />
|
<dict-value :options="dictData.alarm_type" :value="row.type" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="报警内容" width="300" prop="content" show-overflow-tooltip />
|
<el-table-column label="报警内容" width="300" prop="content" show-overflow-tooltip />
|
||||||
<el-table-column label="报警数值" prop="value" show-overflow-tooltip />
|
<el-table-column label="报警数值" prop="value" show-overflow-tooltip />
|
||||||
<el-table-column label="报警时间" align="center" prop="create_time">
|
<el-table-column label="报警时间" align="center" prop="create_time">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<span>{{ row.create_time ? timeFormat(row.create_time, 'yyyy-mm-dd hh:MM:ss') : '' }}</span>
|
<span>{{ row.create_time ? timeFormat(row.create_time, 'yyyy-mm-dd hh:MM:ss') : '' }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="140" align="center" fixed="right">
|
<el-table-column label="操作" width="140" align="center" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="primary" link @click="handleDetail(row)"
|
<el-button type="primary" link @click="handleDetail(row)"
|
||||||
|
@ -123,7 +123,7 @@ const handleSelectionChange = (val: any[]) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取字典数据
|
// 获取字典数据
|
||||||
const { dictData } = useDictData('monitor_item')
|
const { dictData } = useDictData('alarm_type')
|
||||||
|
|
||||||
// 分页相关
|
// 分页相关
|
||||||
const { pager, getLists, resetParams, resetPage } = usePaging({
|
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||||
|
@ -140,9 +140,9 @@ const detailData = reactive({
|
||||||
const handleDetail = (data: any) => {
|
const handleDetail = (data: any) => {
|
||||||
detailData.gridData = [{}]
|
detailData.gridData = [{}]
|
||||||
let deviceType = ''
|
let deviceType = ''
|
||||||
for (const key in dictData['monitor_item']) {
|
for (const key in dictData['alarm_type']) {
|
||||||
if (dictData['monitor_item'][key]['value'] == data.type) {
|
if (dictData['alarm_type'][key]['value'] == data.type) {
|
||||||
deviceType = dictData['monitor_item'][key]['name']
|
deviceType = dictData['alarm_type'][key]['name']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
detailData.gridData.unshift({
|
detailData.gridData.unshift({
|
||||||
|
|
|
@ -15,33 +15,6 @@
|
||||||
<el-form-item label="产品编号" prop="code">
|
<el-form-item label="产品编号" prop="code">
|
||||||
<el-input v-model="formData.code" clearable disabled placeholder="请输入产品编号" />
|
<el-input v-model="formData.code" clearable disabled placeholder="请输入产品编号" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="产品介绍" prop="desc">
|
|
||||||
<el-input v-model="formData.desc" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="产品图" prop="image">
|
|
||||||
<el-upload
|
|
||||||
class="avatar-uploader"
|
|
||||||
:accept="acceptFileTypes"
|
|
||||||
v-model="formData.image"
|
|
||||||
:data="{ cid: 1 }"
|
|
||||||
:headers="{ Token: userStore.token }"
|
|
||||||
:action="action"
|
|
||||||
:show-file-list="false"
|
|
||||||
:on-success="handleAvatarSuccessAvatar"
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
v-if="formData.image"
|
|
||||||
:src="formData.image"
|
|
||||||
class="avatar"
|
|
||||||
/>
|
|
||||||
<div v-else class="avatar-uploader-icon">
|
|
||||||
<el-icon>
|
|
||||||
<Plus />
|
|
||||||
</el-icon>
|
|
||||||
</div>
|
|
||||||
</el-upload>
|
|
||||||
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<el-form-item v-if="formData.root == 1" label="所属用户" prop="user_id">
|
<el-form-item v-if="formData.root == 1" label="所属用户" prop="user_id">
|
||||||
<el-select
|
<el-select
|
||||||
|
@ -86,41 +59,24 @@
|
||||||
|
|
||||||
<script lang="ts" setup name="productEdit">
|
<script lang="ts" setup name="productEdit">
|
||||||
import { useDictOptions } from '@/hooks/useDictOptions'
|
import { useDictOptions } from '@/hooks/useDictOptions'
|
||||||
import { type FormInstance,
|
import type { FormInstance } from 'element-plus'
|
||||||
type UploadProps,
|
|
||||||
ElMessage,
|
|
||||||
} from 'element-plus'
|
|
||||||
import Popup from '@/components/popup/index.vue'
|
import Popup from '@/components/popup/index.vue'
|
||||||
import { apiProductAdd, apiProductEdit, apiProductDetail, getUserList, getUserInfo, apiLandLists } from '@/api/product'
|
import { apiProductAdd, apiProductEdit, apiProductDetail, getUserList, getUserInfo, apiLandLists } from '@/api/product'
|
||||||
import { timeFormat } from '@/utils/util'
|
import { timeFormat } from '@/utils/util'
|
||||||
import useUserStore from "@/stores/modules/user";
|
|
||||||
import type { PropType } from 'vue'
|
import type { PropType } from 'vue'
|
||||||
import {ref} from "vue";
|
|
||||||
import config from "@/config";
|
|
||||||
defineProps({
|
defineProps({
|
||||||
dictData: {
|
dictData: {
|
||||||
type: Object as PropType<Record<string, any[]>>,
|
type: Object as PropType<Record<string, any[]>>,
|
||||||
default: () => ({})
|
default: () => ({})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['success', 'close'])
|
const emit = defineEmits(['success', 'close'])
|
||||||
const formRef = shallowRef<FormInstance>()
|
const formRef = shallowRef<FormInstance>()
|
||||||
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
||||||
const mode = ref('add')
|
const mode = ref('add')
|
||||||
const acceptFileTypes = ref(".png, .jpg, .jpeg, image/png, image/jpeg")
|
|
||||||
const action = ref(`${config.baseUrl}${config.urlPrefix}/upload/image`)
|
|
||||||
const userStore = useUserStore()
|
|
||||||
const handleAvatarSuccessAvatar: UploadProps["onSuccess"] = (
|
|
||||||
response,
|
|
||||||
uploadFile
|
|
||||||
) => {
|
|
||||||
if (response.code == 0) {
|
|
||||||
ElMessage.error(response.msg);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
formData.image = response.data.uri;
|
|
||||||
};
|
|
||||||
// 弹窗标题
|
// 弹窗标题
|
||||||
const popupTitle = computed(() => {
|
const popupTitle = computed(() => {
|
||||||
return mode.value == 'edit' ? '编辑产品' : '新增产品'
|
return mode.value == 'edit' ? '编辑产品' : '新增产品'
|
||||||
|
@ -134,8 +90,6 @@ const formData = reactive({
|
||||||
land_id: '',
|
land_id: '',
|
||||||
code: '',
|
code: '',
|
||||||
name: '',
|
name: '',
|
||||||
desc: '',
|
|
||||||
image: '',
|
|
||||||
status: '',
|
status: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -259,35 +213,3 @@ defineExpose({
|
||||||
getDetail
|
getDetail
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
|
||||||
.avatar-uploader .avatar {
|
|
||||||
width: 178px;
|
|
||||||
height: 178px;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.avatar-uploader .el-upload {
|
|
||||||
width: 200px;
|
|
||||||
height: 130px;
|
|
||||||
border: 1px dashed var(--el-border-color);
|
|
||||||
border-radius: 6px;
|
|
||||||
cursor: pointer;
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
transition: var(--el-transition-duration-fast);
|
|
||||||
}
|
|
||||||
|
|
||||||
.avatar-uploader .el-upload:hover {
|
|
||||||
border-color: var(--el-color-primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-icon.avatar-uploader-icon {
|
|
||||||
font-size: 28px;
|
|
||||||
color: #8c939d;
|
|
||||||
width: 178px;
|
|
||||||
height: 178px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -1,46 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace app\adminapi\controller;
|
|
||||||
|
|
||||||
use think\facade\Db;
|
|
||||||
|
|
||||||
class CommonController extends BaseAdminController
|
|
||||||
{
|
|
||||||
public array $notNeedLogin = ['city', 'area', 'street','village','brigade'];
|
|
||||||
|
|
||||||
//**省列表 */
|
|
||||||
public function province()
|
|
||||||
{
|
|
||||||
$data = Db::name('geo_province')->where(['switch' => 1])->select();
|
|
||||||
return $this->data($data->toArray());
|
|
||||||
} //**市列表 */
|
|
||||||
public function city($city)
|
|
||||||
{
|
|
||||||
$data = Db::name('geo_city')->where(['province_code' => $city])->select();
|
|
||||||
return $this->data($data->toArray());
|
|
||||||
}
|
|
||||||
//**区域列表 */
|
|
||||||
public function area($area)
|
|
||||||
{
|
|
||||||
$data = Db::name('geo_county')->where(['city_code' => $area])->select();
|
|
||||||
return $this->data($data->toArray());
|
|
||||||
}
|
|
||||||
//**街道列表 */
|
|
||||||
public function street($street)
|
|
||||||
{
|
|
||||||
$data = Db::name('geo_town')->where(['county_code' => $street])->select();
|
|
||||||
return $this->data($data->toArray());
|
|
||||||
}
|
|
||||||
//**村列表 */
|
|
||||||
public function village($village)
|
|
||||||
{
|
|
||||||
$data = Db::name('geo_village')->where(['town_code' => $village])->select();
|
|
||||||
return $this->data($data->toArray());
|
|
||||||
}
|
|
||||||
//**小队列表 */
|
|
||||||
public function brigade()
|
|
||||||
{
|
|
||||||
$data = Db::name('geo_group')->select();
|
|
||||||
return $this->data($data->toArray());
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -18,13 +18,6 @@ use app\adminapi\lists\user\UserLists;
|
||||||
use app\adminapi\logic\user\UserLogic;
|
use app\adminapi\logic\user\UserLogic;
|
||||||
use app\adminapi\validate\user\AdjustUserMoney;
|
use app\adminapi\validate\user\AdjustUserMoney;
|
||||||
use app\adminapi\validate\user\UserValidate;
|
use app\adminapi\validate\user\UserValidate;
|
||||||
use app\api\validate\LoginAccountValidate;
|
|
||||||
use app\common\model\auth\Admin;
|
|
||||||
use app\common\model\auth\AdminRole;
|
|
||||||
use app\common\model\user\User;
|
|
||||||
use app\common\service\ConfigService;
|
|
||||||
use think\facade\Config;
|
|
||||||
use think\facade\Db;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户控制器
|
* 用户控制器
|
||||||
|
@ -45,43 +38,6 @@ class UserController extends BaseAdminController
|
||||||
return $this->dataLists(new UserLists());
|
return $this->dataLists(new UserLists());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function add()
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
$params = $this->request->param();
|
|
||||||
$userSn = User::createUserSn();
|
|
||||||
$passwordSalt = Config::get('project.unique_identification');
|
|
||||||
$password = create_password(123456, $passwordSalt);
|
|
||||||
$avatar = ConfigService::get('default_image', 'user_avatar');
|
|
||||||
|
|
||||||
Db::transaction(function () use($userSn,$password,$avatar,$params) {
|
|
||||||
$user = User::create([
|
|
||||||
'sn' => $userSn,
|
|
||||||
'avatar' => env('project.project_url').'/'.$avatar,
|
|
||||||
'nickname' => '用户' . $userSn,
|
|
||||||
'account' => $params['mobile'],
|
|
||||||
'mobile' => $params['mobile'],
|
|
||||||
'password' => $password,
|
|
||||||
'channel' => 6,
|
|
||||||
]);
|
|
||||||
$admin = Admin::create([
|
|
||||||
'user_id' => $user->id,
|
|
||||||
'name' => '用户' . $userSn,
|
|
||||||
'avatar' => env('project.project_url').'/'.$avatar,
|
|
||||||
'account' => $params['mobile'],
|
|
||||||
'password' => $password
|
|
||||||
]);
|
|
||||||
AdminRole::create([
|
|
||||||
'admin_id' => $admin->id,
|
|
||||||
'role_id' => 1
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
return $this->success();
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
return $this->fail($e->getMessage());
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public function datas()
|
public function datas()
|
||||||
{
|
{
|
||||||
$datas = (new UserLogic())->datas(input(''));
|
$datas = (new UserLogic())->datas(input(''));
|
||||||
|
|
|
@ -54,7 +54,6 @@ class DeviceLogic extends BaseLogic
|
||||||
'code' => $params['code'],
|
'code' => $params['code'],
|
||||||
'name' => $params['name'],
|
'name' => $params['name'],
|
||||||
'type' => $params['type'],
|
'type' => $params['type'],
|
||||||
'image' => $params['image'],
|
|
||||||
'monitor_item' => $params['monitor_item'],
|
'monitor_item' => $params['monitor_item'],
|
||||||
'video_url' => $params['video_url'],
|
'video_url' => $params['video_url'],
|
||||||
'status' => $params['status'],
|
'status' => $params['status'],
|
||||||
|
@ -104,7 +103,6 @@ class DeviceLogic extends BaseLogic
|
||||||
'code' => $params['code'],
|
'code' => $params['code'],
|
||||||
'name' => $params['name'],
|
'name' => $params['name'],
|
||||||
'type' => $params['type'],
|
'type' => $params['type'],
|
||||||
'image' => $params['image'],
|
|
||||||
'monitor_item' => $params['monitor_item'],
|
'monitor_item' => $params['monitor_item'],
|
||||||
'video_url' => $params['video_url'],
|
'video_url' => $params['video_url'],
|
||||||
'status' => $params['status'],
|
'status' => $params['status'],
|
||||||
|
@ -204,17 +202,16 @@ class DeviceLogic extends BaseLogic
|
||||||
if (!empty($detail['monitor_item'])) {
|
if (!empty($detail['monitor_item'])) {
|
||||||
$monitorItemArray = explode(',', $detail['monitor_item']);
|
$monitorItemArray = explode(',', $detail['monitor_item']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$dictTypeId = Db::name('dict_type')->where('type', 'monitor_item')->value('id');
|
$dictTypeId = Db::name('dict_type')->where('type', 'monitor_item')->value('id');
|
||||||
$monitorItemArray = Db::name('dict_data')->where('type_id', $dictTypeId)->whereIn('value', $monitorItemArray)->field(['name', 'value'])->select()->toArray();
|
$monitorItemArray = Db::name('dict_data')->where('type_id', $dictTypeId)->whereIn('value', $monitorItemArray)->field(['name', 'value'])->select()->toArray();
|
||||||
foreach($monitorItemArray as $k=>$v) {
|
foreach($monitorItemArray as $k=>$v) {
|
||||||
$monitorItemArray[$k]['device_id'] = $params['id'];
|
$monitorItemArray[$k]['device_id'] = $params['id'];
|
||||||
$monitorItemArray[$k]['monitor_value'] = '-';
|
$monitorItemArray[$k]['monitor_value'] = '-';
|
||||||
$monitorItemArray[$k]['last_time'] = '-';
|
$monitorItemArray[$k]['last_time'] = '-';
|
||||||
$monitorData = Db::name('land_collection')->where('device_id', $params['id'])->order(['id' => 'desc'])->find();
|
$monitorData = Db::name('device_monitor_data')->where('device_id', $params['id'])->where('monitor_item', $v['value'])->order(['id' => 'desc'])->find();
|
||||||
if (!empty($monitorData)) {
|
if (!empty($monitorData)) {
|
||||||
$monitorItemArray[$k]['monitor_value'] = $monitorData[$v['value']];
|
$monitorItemArray[$k]['monitor_value'] = $monitorData['monitor_value'];
|
||||||
$monitorItemArray[$k]['last_time'] =$monitorData['create_time'];
|
$monitorItemArray[$k]['last_time'] = date('Y-m-d H:i:s', $monitorData['create_time']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$detail['monitor_item'] = $monitorItemArray;
|
$detail['monitor_item'] = $monitorItemArray;
|
||||||
|
@ -231,14 +228,14 @@ class DeviceLogic extends BaseLogic
|
||||||
$limitOffset = ($pageNo - 1) * $pageSize;
|
$limitOffset = ($pageNo - 1) * $pageSize;
|
||||||
$limitLength = $pageSize;
|
$limitLength = $pageSize;
|
||||||
$where['device_id'] = $params['id'];
|
$where['device_id'] = $params['id'];
|
||||||
$lists = Db::name('land_collection')
|
$where['monitor_item'] = $params['monitor_type'];
|
||||||
|
$lists = Db::name('device_monitor_data')
|
||||||
->where($where)
|
->where($where)
|
||||||
->field(["{$params['monitor_type']} as monitor_value", 'id', 'create_time'])
|
|
||||||
->limit($limitOffset, $limitLength)
|
->limit($limitOffset, $limitLength)
|
||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
->select()
|
->select()
|
||||||
->toArray();
|
->toArray();
|
||||||
$count = Db::name('land_collection')->where($where)->count();
|
$count = Db::name('device_monitor_data')->where($where)->count();
|
||||||
return compact('lists', 'count', 'page_no', 'page_size');
|
return compact('lists', 'count', 'page_no', 'page_size');
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -56,8 +56,6 @@ class ProductLogic extends BaseLogic
|
||||||
'user_id' => $userId,
|
'user_id' => $userId,
|
||||||
'code' => $params['code'],
|
'code' => $params['code'],
|
||||||
'name' => $params['name'],
|
'name' => $params['name'],
|
||||||
'desc' => $params['desc'],
|
|
||||||
'image' => $params['image'],
|
|
||||||
'status' => $status,
|
'status' => $status,
|
||||||
]);
|
]);
|
||||||
if (!empty($params['land_id'])) {
|
if (!empty($params['land_id'])) {
|
||||||
|
@ -105,8 +103,6 @@ class ProductLogic extends BaseLogic
|
||||||
'user_id' => $userId,
|
'user_id' => $userId,
|
||||||
'code' => $params['code'],
|
'code' => $params['code'],
|
||||||
'name' => $params['name'],
|
'name' => $params['name'],
|
||||||
'desc' => $params['desc'],
|
|
||||||
'image' => $params['image'],
|
|
||||||
'status' => $status,
|
'status' => $status,
|
||||||
]);
|
]);
|
||||||
if (!empty($params['land_id'])) {
|
if (!empty($params['land_id'])) {
|
||||||
|
|
|
@ -1,237 +0,0 @@
|
||||||
<?php
|
|
||||||
namespace app\api\controller;
|
|
||||||
|
|
||||||
use app\common\model\device\Device;
|
|
||||||
use app\common\model\device\DeviceOffline;
|
|
||||||
use app\common\model\device\MonitorAlarm;
|
|
||||||
use app\common\model\device\MonitorThreshold;
|
|
||||||
use app\common\model\land\LandProduct;
|
|
||||||
use app\common\model\LandCollection;
|
|
||||||
use app\common\model\product\ProductDevice;
|
|
||||||
use app\common\model\User;
|
|
||||||
use Exception;
|
|
||||||
use think\Db;
|
|
||||||
use think\facade\Log;
|
|
||||||
|
|
||||||
class DataCollectController extends BaseApiController
|
|
||||||
{
|
|
||||||
public array $notNeedLogin = ['collect', 'disabled'];
|
|
||||||
// 种植数据采集
|
|
||||||
public function collect()
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
$parmas = $this->request->post();
|
|
||||||
Log::info('采集消息发布'.json_encode($parmas));
|
|
||||||
if(!$parmas || !isset($parmas['username']) || $parmas['username']==''){
|
|
||||||
return $this->fail('参数错误');
|
|
||||||
}
|
|
||||||
|
|
||||||
// mqtt服务端 消息发布事件
|
|
||||||
if ($parmas['event'] == 'message.publish') {
|
|
||||||
$payload= json_decode($parmas['payload'], true);
|
|
||||||
$user = User::where('account', $parmas['username'])->find();
|
|
||||||
|
|
||||||
$device = explode('_', $parmas['topic']); // 命名规则:camera_deviceid deviceid为设备主键id
|
|
||||||
$deviceId = $device[1]; // 设备id
|
|
||||||
|
|
||||||
$productDevice = ProductDevice::where('device_id', $deviceId)->find();
|
|
||||||
$landProduct = LandProduct::where('product_id', $productDevice['product_id'])->find();
|
|
||||||
$landId = $landProduct['land_id']; // 土地id
|
|
||||||
$data = [
|
|
||||||
'user_id' => $user['id'],
|
|
||||||
'land_id' => $landId,
|
|
||||||
'device_id' => $deviceId,
|
|
||||||
'qos'=>$parmas['qos'],
|
|
||||||
'wind_speed' => $payload['wind_speed'],
|
|
||||||
'wind_direction' => $payload['wind_direction'],
|
|
||||||
'ambient_temperature' => $payload['ambient_temperature'],
|
|
||||||
'ambient_humidity' => $payload['ambient_humidity'],
|
|
||||||
'carbon_dioxide' => $payload['carbon_dioxide'],
|
|
||||||
'ambient_air_pressure' => $payload['ambient_air_pressure'],
|
|
||||||
'rainfall' => $payload['rainfall'],
|
|
||||||
'ambient_lighting' => $payload['ambient_lighting'],
|
|
||||||
'soil_temperature' => $payload['soil_temperature'],
|
|
||||||
'soil_conductivity' => $payload['soil_conductivity'],
|
|
||||||
'soil_moisture' => $payload['soil_moisture'],
|
|
||||||
'soil_PH' => $payload['soil_PH'],
|
|
||||||
'soil_potassium_phosphate_nitrogen' => $payload['soil_potassium_phosphate_nitrogen'],
|
|
||||||
'soil_potassium_phosphate_phosphorus' => $payload['soil_potassium_phosphate_phosphorus'],
|
|
||||||
'soil_potassium_phosphate_potassium' => $payload['soil_potassium_phosphate_potassium'],
|
|
||||||
'client_id'=>$parmas['clientid'],
|
|
||||||
'create_time'=>date('Y-m-d H:i:s'),
|
|
||||||
'update_time'=>date('Y-m-d H:i:s'),
|
|
||||||
];
|
|
||||||
|
|
||||||
LandCollection::create($data);
|
|
||||||
|
|
||||||
// 设备告警
|
|
||||||
$monitorThreshold = (new MonitorThreshold())->select()->toArray()[0];
|
|
||||||
// 风速告警
|
|
||||||
if ($payload['wind_speed'] > $monitorThreshold['wind_speed_max']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'wind_speed', '风速偏快' ,$payload['wind_speed']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ambient_temperature 环境温度
|
|
||||||
if ($payload['ambient_temperature'] < $monitorThreshold['air_temp_min']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'ambient_temperature', '气温偏低' ,$payload['ambient_temperature']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ambient_temperature 环境温度
|
|
||||||
if ($payload['ambient_temperature'] > $monitorThreshold['air_temp_max']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'ambient_temperature', '气温偏高' ,$payload['ambient_temperature']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ambient_humidity 环境湿度
|
|
||||||
if ($payload['ambient_humidity'] < $monitorThreshold['air_mois_min']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'ambient_humidity', '环境湿度偏低' ,$payload['ambient_humidity']);
|
|
||||||
}
|
|
||||||
// ambient_humidity 环境湿度
|
|
||||||
if ($payload['ambient_humidity'] < $monitorThreshold['air_mois_max']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'ambient_humidity', '环境湿度偏高' ,$payload['ambient_humidity']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// carbon_dioxide 二氧化碳含量
|
|
||||||
if ($payload['carbon_dioxide'] > $monitorThreshold['air_co2_content_max']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'carbon_dioxide', '空气二氧化碳含量偏高' ,$payload['carbon_dioxide']);
|
|
||||||
}
|
|
||||||
// carbon_dioxide 二氧化碳含量
|
|
||||||
if ($payload['carbon_dioxide'] < $monitorThreshold['air_co2_content_min']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'carbon_dioxide', '空气二氧化碳含量偏低' ,$payload['carbon_dioxide']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ambient_air_pressure 大气压力
|
|
||||||
if ($payload['ambient_air_pressure'] >= 120)
|
|
||||||
{
|
|
||||||
self::createAlarm($landId, $deviceId, 'ambient_air_pressure', '大气压力偏高' ,$payload['ambient_air_pressure']);
|
|
||||||
}
|
|
||||||
if ($payload['ambient_air_pressure'] < 10)
|
|
||||||
{
|
|
||||||
self::createAlarm($landId, $deviceId, 'ambient_air_pressure', '大气压力偏低' ,$payload['ambient_air_pressure']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// rainfall 雨量
|
|
||||||
// if ($payload['rainfall'] >= 100)
|
|
||||||
// ambient_lighting 光照
|
|
||||||
|
|
||||||
// soil_temperature 土壤温度
|
|
||||||
if ($payload['soil_temperature'] >= $monitorThreshold['soil_temp_max']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'soil_temperature', '土壤温度偏高' ,$payload['soil_temperature']);
|
|
||||||
}
|
|
||||||
// soil_temperature 土壤温度
|
|
||||||
if ($payload['soil_temperature'] < $monitorThreshold['soil_temp_min']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'soil_temperature', '土壤温度偏低' ,$payload['soil_temperature']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// soil_conductivity 土壤电导率
|
|
||||||
// if ($payload['soil_conductivity'] < $monitorThreshold['soil_mois_max']) {
|
|
||||||
// self::createAlarm($land[3], $deviceId, '土壤电导率', '土壤湿度偏高' ,$payload['soil_conductivity']);
|
|
||||||
// }
|
|
||||||
// if ($payload['soil_conductivity'] < $monitorThreshold['soil_mois_min']) {
|
|
||||||
// self::createAlarm($land[3], $deviceId, '土壤电导率', '土壤湿度偏低' ,$payload['soil_conductivity']);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// soil_conductivity 土壤湿度
|
|
||||||
if ($payload['soil_moisture'] < $monitorThreshold['soil_mois_max']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'soil_moisture', '土壤湿度偏高' ,$payload['soil_moisture']);
|
|
||||||
}
|
|
||||||
if ($payload['soil_moisture'] < $monitorThreshold['soil_mois_min']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'soil_moisture', '土壤湿度偏低' ,$payload['soil_moisture']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// soil_PH 土壤ph值
|
|
||||||
if ($payload['soil_PH'] < $monitorThreshold['soil_ph_max']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'soil_PH', '土壤PH值偏碱性' ,$payload['soil_moisture']);
|
|
||||||
}
|
|
||||||
if ($payload['soil_PH'] < $monitorThreshold['soil_ph_min']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'soil_PH', '土壤PH值偏酸性' ,$payload['soil_moisture']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// soil_potassium_phosphate_nitrogen 土壤磷酸钾:氮
|
|
||||||
if ($payload['soil_potassium_phosphate_nitrogen'] < $monitorThreshold['soil_n_content_max']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'soil_potassium_phosphate_nitrogen', '土壤磷酸钾-含氮量偏高' ,$payload['soil_potassium_phosphate_nitrogen']);
|
|
||||||
}
|
|
||||||
if ($payload['soil_potassium_phosphate_nitrogen'] < $monitorThreshold['soil_n_content_min']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'soil_potassium_phosphate_nitrogen', '土壤磷酸钾-含氮量偏低' ,$payload['soil_potassium_phosphate_nitrogen']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// soil_potassium_phosphate_phosphorus 土壤磷酸钾:磷
|
|
||||||
if ($payload['soil_potassium_phosphate_phosphorus'] < $monitorThreshold['soil_p_content_max']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'soil_potassium_phosphate_phosphorus', '土壤磷酸钾-含磷量偏高' ,$payload['soil_potassium_phosphate_phosphorus']);
|
|
||||||
}
|
|
||||||
if ($payload['soil_potassium_phosphate_phosphorus'] < $monitorThreshold['soil_p_content_min']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'soil_potassium_phosphate_phosphorus', '土壤磷酸钾-含磷量偏低' ,$payload['soil_potassium_phosphate_phosphorus']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// soil_potassium_phosphate_potassium 土壤磷酸钾:钾
|
|
||||||
if ($payload['soil_potassium_phosphate_potassium'] < $monitorThreshold['soil_k_content_max']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'soil_potassium_phosphate_potassium', '土壤磷酸钾-含钾量偏高' ,$payload['soil_potassium_phosphate_potassium']);
|
|
||||||
}
|
|
||||||
if ($payload['soil_potassium_phosphate_potassium'] < $monitorThreshold['soil_k_content_min']) {
|
|
||||||
self::createAlarm($landId, $deviceId, 'soil_potassium_phosphate_potassium', '土壤磷酸钾-含钾量偏低' ,$payload['soil_potassium_phosphate_potassium']);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->success('接收成功', ['user_name'=>$parmas['username'], 'topic'=>$parmas['topic']]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// mqtt服务端 连接断开事件 客户端断开表示该土块的所有设备都已断开 共用同一个mqtt客户端
|
|
||||||
if ($parmas['event'] == 'client.disconnected') {
|
|
||||||
// lihai_lot_walnutpi_dev_6 clientid 命名规则
|
|
||||||
|
|
||||||
$device = strstr($parmas['clientid'], 'dev_');
|
|
||||||
$device = explode('_', $device);
|
|
||||||
$deviceId = $device[1]; // 设备id
|
|
||||||
|
|
||||||
$productDevice = ProductDevice::where('device_id', $deviceId)->find();
|
|
||||||
$landProduct = LandProduct::where('product_id', $productDevice['product_id'])->find();
|
|
||||||
$landId = $landProduct['land_id']; // 土地id
|
|
||||||
// 查询该土地关联的设备
|
|
||||||
$addData = [
|
|
||||||
'land_id' => $landId,
|
|
||||||
'device_id' => $deviceId,
|
|
||||||
'last_online_time' => $parmas['disconnected_at']/1000,
|
|
||||||
'disconnected_time' => $parmas['disconnected_at']/1000,
|
|
||||||
'create_time' => time(),
|
|
||||||
'update_time' => time()
|
|
||||||
];
|
|
||||||
DeviceOffline::create($addData);
|
|
||||||
Device::where('id', $deviceId)->update(['is_online' => 2]);
|
|
||||||
return $this->success('接收成功');
|
|
||||||
}
|
|
||||||
// 连接链接事件 设备已上线
|
|
||||||
if ($parmas['event'] == 'client.connected') {
|
|
||||||
// lihai_lot_walnutpi_dev_6 clientid 命名规则
|
|
||||||
$device = strstr($parmas['clientid'], 'dev_');
|
|
||||||
$device = explode('_', $device);
|
|
||||||
$deviceId = $device[1]; // 设备id
|
|
||||||
Device::where('id', $deviceId)->update(['is_online' => 1]);
|
|
||||||
return $this->success('接收成功');
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (Exception $e) {
|
|
||||||
return $this->fail($e->getMessage());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function createAlarm($user_id, $device_id, $type, $content, $value)
|
|
||||||
{
|
|
||||||
$data = [
|
|
||||||
'land_id' => $user_id,
|
|
||||||
'device_id' => $device_id,
|
|
||||||
'type' => $type,
|
|
||||||
'content' => $content,
|
|
||||||
'value' => $value,
|
|
||||||
'create_time' => time(),
|
|
||||||
'update_time' => time(),
|
|
||||||
];
|
|
||||||
|
|
||||||
MonitorAlarm::create($data);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function disabled()
|
|
||||||
{
|
|
||||||
$parmas = $this->request->post();
|
|
||||||
Log::info('连接断开事件'.json_encode($parmas));
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -4,11 +4,8 @@ namespace app\api\controller;
|
||||||
use app\common\enum\notice\NoticeEnum;
|
use app\common\enum\notice\NoticeEnum;
|
||||||
use app\common\model\action\Action;
|
use app\common\model\action\Action;
|
||||||
use app\common\model\device\Device;
|
use app\common\model\device\Device;
|
||||||
use app\common\model\device\MonitorThreshold;
|
|
||||||
use app\common\model\file\File;
|
|
||||||
use app\common\model\land\Land;
|
use app\common\model\land\Land;
|
||||||
use app\common\model\land\LandProduct;
|
use app\common\model\land\LandProduct;
|
||||||
use app\common\model\LandCollection;
|
|
||||||
use app\common\model\monitor\MonitorData;
|
use app\common\model\monitor\MonitorData;
|
||||||
use app\common\model\plant\Plant;
|
use app\common\model\plant\Plant;
|
||||||
use app\common\model\product\ProductDevice;
|
use app\common\model\product\ProductDevice;
|
||||||
|
@ -45,47 +42,31 @@ class IndexController extends BaseApiController
|
||||||
if($landProduct->isEmpty()){
|
if($landProduct->isEmpty()){
|
||||||
$data['monitor'] = [];
|
$data['monitor'] = [];
|
||||||
}else{
|
}else{
|
||||||
$productDevice = ProductDevice::where('product_id',$landProduct['product_id'])->findOrEmpty();
|
$monitor = MonitorData::where('product_id',$landProduct['product_id'])->order('id desc')->findOrEmpty();
|
||||||
$device = Device::where('id', $productDevice['device_id'])->findOrEmpty();
|
if($monitor->isEmpty()){
|
||||||
$data['video_url'] = $device['video_url'];
|
|
||||||
$data['device_id'] = $device['id'];
|
|
||||||
// 监控视频封面
|
|
||||||
$file = File::where('cid', $device['id'])->order('id', 'desc')->findOrEmpty();
|
|
||||||
$data['video_cover'] = isset($file['uri'])? env('project.project_url').'/'.$file['uri']: '';
|
|
||||||
$landCollection = LandCollection::where('land_id',$params['land_id'])->order('id desc')->findOrEmpty();
|
|
||||||
if($landCollection->isEmpty()){
|
|
||||||
$data['monitor'] = [];
|
$data['monitor'] = [];
|
||||||
}else{
|
}else{
|
||||||
$data['monitor']['soil_monitor_data'] = [
|
$data['monitor']['soil_monitor_data'] = [
|
||||||
'soil_temperature'=>$landCollection['soil_temperature'],
|
'wind_direction'=>$monitor['wind_direction'],
|
||||||
'soil_moisture'=>$landCollection['soil_moisture'],
|
'wind_speed'=>$monitor['wind_speed'],
|
||||||
'conductivity'=>$landCollection['soil_conductivity'],
|
'air_temperature'=>$monitor['air_temperature'],
|
||||||
'ph'=>$landCollection['soil_PH'],
|
'air_moisture'=>$monitor['air_moisture'],
|
||||||
'n_content'=>$landCollection['soil_potassium_phosphate_nitrogen'],
|
'co2_content'=>$monitor['co2_content'],
|
||||||
'p_content'=>$landCollection['soil_potassium_phosphate_phosphorus'],
|
'pressure'=>$monitor['pressure'],
|
||||||
'k_content'=>$landCollection['soil_potassium_phosphate_potassium'],
|
'rainfall'=>$monitor['rainfall'],
|
||||||
'create_time' => $landCollection['create_time']
|
'light_intensity'=>$monitor['light_intensity'],
|
||||||
|
'create_time' => $monitor['create_time']
|
||||||
];
|
];
|
||||||
$data['monitor']['air_monitor_data'] = [
|
$data['monitor']['air_monitor_data'] = [
|
||||||
'wind_direction'=>$landCollection['wind_direction'],
|
'soil_temperature'=>$monitor['soil_temperature'],
|
||||||
'wind_speed'=>$landCollection['wind_speed'],
|
'soil_moisture'=>$monitor['soil_moisture'],
|
||||||
'air_temperature'=>$landCollection['ambient_temperature'],
|
'conductivity'=>$monitor['conductivity'],
|
||||||
'air_moisture'=>$landCollection['ambient_humidity'],
|
'ph'=>$monitor['ph'],
|
||||||
'co2_content'=>$landCollection['carbon_dioxide'],
|
'n_content'=>$monitor['n_content'],
|
||||||
'pressure'=>$landCollection['ambient_air_pressure'],
|
'p_content'=>$monitor['p_content'],
|
||||||
'rainfall'=>$landCollection['rainfall'],
|
'k_content'=>$monitor['k_content'],
|
||||||
'light_intensity'=>$landCollection['ambient_lighting'],
|
'create_time' => $monitor['create_time']
|
||||||
'create_time' => $landCollection['create_time']
|
|
||||||
];
|
];
|
||||||
$monitorThreshold = MonitorThreshold::select();
|
|
||||||
if($monitorThreshold->toArray()!=null){
|
|
||||||
$monitorThreshold=$monitorThreshold[0];
|
|
||||||
}else{
|
|
||||||
$monitorThreshold=[];
|
|
||||||
}
|
|
||||||
$monitorThreshold['ambient_air_pressure_max'] = 120;
|
|
||||||
$monitorThreshold['ambient_air_pressure_min'] = 10;
|
|
||||||
$data['monitor']['threshold'] = $monitorThreshold;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $this->success('请求成功',$data);
|
return $this->success('请求成功',$data);
|
||||||
|
@ -155,9 +136,9 @@ class IndexController extends BaseApiController
|
||||||
if($plantInfo->isEmpty()){
|
if($plantInfo->isEmpty()){
|
||||||
return $this->fail('种植信息错误');
|
return $this->fail('种植信息错误');
|
||||||
}
|
}
|
||||||
// if($plantInfo['status'] != 2){
|
if($plantInfo['status'] != 2){
|
||||||
// return $this->fail('种植信息状态错误');
|
return $this->fail('种植信息状态错误');
|
||||||
// }
|
}
|
||||||
$landInfo = Land::where('id',$plantInfo['land_id'])->findOrEmpty();
|
$landInfo = Land::where('id',$plantInfo['land_id'])->findOrEmpty();
|
||||||
if($landInfo->isEmpty()){
|
if($landInfo->isEmpty()){
|
||||||
return $this->fail('土地信息错误');
|
return $this->fail('土地信息错误');
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
public function add(): Json
|
public function add(): Json
|
||||||
{
|
{
|
||||||
//获取参数并验证
|
//获取参数并验证
|
||||||
$fields = ['title','area','province_code','city_code','county_code','address','master_name','master_phone','pic', 'longitude', 'latitude'];
|
$fields = ['title','area','province_code','city_code','county_code','address','master_name','master_phone','pic'];
|
||||||
$params = $this->request->post($fields);
|
$params = $this->request->post($fields);
|
||||||
foreach($fields as $v){
|
foreach($fields as $v){
|
||||||
if(!isset($params[$v]) || $params[$v] == ''){
|
if(!isset($params[$v]) || $params[$v] == ''){
|
||||||
|
@ -104,8 +104,6 @@
|
||||||
'address' => $params['address'],
|
'address' => $params['address'],
|
||||||
'master_name' => $params['master_name'],
|
'master_name' => $params['master_name'],
|
||||||
'master_phone' => $params['master_phone'],
|
'master_phone' => $params['master_phone'],
|
||||||
'longitude' => floatval($params['longitude']),
|
|
||||||
'latitude' => floatval($params['latitude']),
|
|
||||||
'pic' => $params['pic'],
|
'pic' => $params['pic'],
|
||||||
'create_time' => time(),
|
'create_time' => time(),
|
||||||
'update_time' => time(),
|
'update_time' => time(),
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
namespace app\api\controller;
|
namespace app\api\controller;
|
||||||
|
|
||||||
use app\common\enum\FileEnum;
|
use app\common\enum\FileEnum;
|
||||||
use app\common\model\file\File;
|
|
||||||
use app\common\service\UploadService;
|
use app\common\service\UploadService;
|
||||||
use Exception;
|
use Exception;
|
||||||
use think\response\Json;
|
use think\response\Json;
|
||||||
|
@ -27,7 +26,7 @@ use think\response\Json;
|
||||||
*/
|
*/
|
||||||
class UploadController extends BaseApiController
|
class UploadController extends BaseApiController
|
||||||
{
|
{
|
||||||
public array $notNeedLogin=['uploadVideoCover'];
|
|
||||||
/**
|
/**
|
||||||
* @notes 上传图片
|
* @notes 上传图片
|
||||||
* @return Json
|
* @return Json
|
||||||
|
@ -45,44 +44,5 @@ class UploadController extends BaseApiController
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function uploadVideoCover()
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
$deviceId = $this->request->param('device_id', '');
|
|
||||||
// Base64编码的图片字符串
|
|
||||||
$base64Image = $this->request->param('image'); // 这里只展示部分内容
|
|
||||||
|
|
||||||
// 去除前面的"data:"标识
|
|
||||||
$base64Data = substr($base64Image, strpos($base64Image, ',') + 1);
|
|
||||||
|
|
||||||
// 将Base64编码的图片字符串转换为二进制数据
|
|
||||||
$binaryData = base64_decode($base64Data);
|
|
||||||
|
|
||||||
// 创建图像对象
|
|
||||||
$imageObject = imagecreatefromstring($binaryData);
|
|
||||||
$saveDir = 'uploads/images/' . date('Ymd'). '/';
|
|
||||||
if (!is_dir($saveDir)) {
|
|
||||||
mkdir($saveDir, 0755, true);
|
|
||||||
}
|
|
||||||
$fileName = uniqid().'.png';
|
|
||||||
|
|
||||||
// 保存图片
|
|
||||||
imagepng($imageObject, $saveDir.$fileName);
|
|
||||||
|
|
||||||
$file = File::create([
|
|
||||||
'cid' => $deviceId,
|
|
||||||
'type' => FileEnum::IMAGE_TYPE,
|
|
||||||
'name' => $fileName,
|
|
||||||
'uri' => $saveDir . $fileName,
|
|
||||||
'source' => FileEnum::SOURCE_USER,
|
|
||||||
'source_id' => $this->userId,
|
|
||||||
'create_time' => time(),
|
|
||||||
]);
|
|
||||||
return $this->success('上传成功', ['url'=>env('project.project_url').'/'.$saveDir.$fileName]);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
return $this->fail($e->getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,101 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace app\api\controller\dataview;
|
|
||||||
|
|
||||||
use app\api\controller\BaseApiController;
|
|
||||||
use app\common\model\device\Device;
|
|
||||||
use app\common\model\device\MonitorAlarm;
|
|
||||||
use app\common\model\land\LandPlant;
|
|
||||||
use think\App;
|
|
||||||
use think\Exception;
|
|
||||||
use think\exception\ErrorException;
|
|
||||||
use think\exception\HttpResponseException;
|
|
||||||
use think\exception\ValidateException;
|
|
||||||
|
|
||||||
class DeviceController extends BaseApiController
|
|
||||||
{
|
|
||||||
public array $notNeedLogin = ['deviceAlarmCount', 'deviceCount'];
|
|
||||||
|
|
||||||
public $areaCode;
|
|
||||||
public $streetCode;
|
|
||||||
|
|
||||||
public function initialize()
|
|
||||||
{
|
|
||||||
parent::initialize();
|
|
||||||
$this->areaCode = $this->request->param('areaCode', '');
|
|
||||||
$this->streetCode = $this->request->param('streetCode', '');
|
|
||||||
if ($this->areaCode == '') {
|
|
||||||
throw new ValidateException('未获取到位置信息');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 设备告警统计
|
|
||||||
public function deviceAlarmCount()
|
|
||||||
{
|
|
||||||
$landId = $this->request->get('land_id', 0);
|
|
||||||
$list = MonitorAlarm::alias('ma')->field('ma.*,d.code AS device_code,d.name AS device_name,d.image')
|
|
||||||
->join('device d', 'ma.device_id=d.id')
|
|
||||||
->join('product_device pd', 'd.id=pd.device_id')
|
|
||||||
->join('land_product lp', 'pd.product_id=lp.product_id')
|
|
||||||
->join('land l', 'l.id=lp.land_id')
|
|
||||||
->where(function ($query) use ($landId) {
|
|
||||||
if ($landId != 0) {
|
|
||||||
$query->where('ma.land_id', $landId);
|
|
||||||
} else {
|
|
||||||
if ($this->streetCode != '') {
|
|
||||||
$query->where('l.town_code', $this->streetCode);
|
|
||||||
} else {
|
|
||||||
$query->where('l.county_code', $this->areaCode);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
->order('ma.id', 'desc')
|
|
||||||
->limit(100)
|
|
||||||
->select();
|
|
||||||
return $this->success('成功', compact('list'));
|
|
||||||
}
|
|
||||||
|
|
||||||
// 监测设备数量统计
|
|
||||||
public function deviceCount()
|
|
||||||
{
|
|
||||||
$total = Device::alias('d')
|
|
||||||
->join('product_device pd', 'd.id=pd.device_id')
|
|
||||||
->join('land_product lp', 'pd.product_id=lp.product_id')
|
|
||||||
->join('land l', 'l.id=lp.land_id')
|
|
||||||
->where(function ($query) {
|
|
||||||
if ($this->streetCode != '') {
|
|
||||||
$query->where('l.town_code', $this->streetCode);
|
|
||||||
} else {
|
|
||||||
$query->where('l.county_code', $this->areaCode);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
->count();
|
|
||||||
|
|
||||||
$online = Device::alias('d')
|
|
||||||
->join('product_device pd', 'd.id=pd.device_id')
|
|
||||||
->join('land_product lp', 'pd.product_id=lp.product_id')
|
|
||||||
->join('land l', 'l.id=lp.land_id')
|
|
||||||
->where(function ($query) {
|
|
||||||
if ($this->streetCode != '') {
|
|
||||||
$query->where('l.town_code', $this->streetCode);
|
|
||||||
} else {
|
|
||||||
$query->where('l.county_code', $this->areaCode);
|
|
||||||
}
|
|
||||||
})->where('d.is_online', 1)->count();
|
|
||||||
$offline = Device::alias('d')
|
|
||||||
->join('product_device pd', 'd.id=pd.device_id')
|
|
||||||
->join('land_product lp', 'pd.product_id=lp.product_id')
|
|
||||||
->join('land l', 'l.id=lp.land_id')
|
|
||||||
->where(function ($query) {
|
|
||||||
if ($this->streetCode != '') {
|
|
||||||
$query->where('l.town_code', $this->streetCode);
|
|
||||||
} else {
|
|
||||||
$query->where('l.county_code', $this->areaCode);
|
|
||||||
}
|
|
||||||
})->where('d.is_online', 2)->count();
|
|
||||||
|
|
||||||
return $this->success('成功', compact('total', 'online', 'offline'));
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,251 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace app\api\controller\dataview;
|
|
||||||
|
|
||||||
use app\api\controller\BaseApiController;
|
|
||||||
use app\common\model\device\Device;
|
|
||||||
use app\common\model\device\MonitorAlarm;
|
|
||||||
use app\common\model\device\MonitorThreshold;
|
|
||||||
use app\common\model\land\Land;
|
|
||||||
use app\common\model\land\LandPlant;
|
|
||||||
use app\common\model\land\Product;
|
|
||||||
use app\common\model\LandCollection;
|
|
||||||
use think\facade\Db;
|
|
||||||
use think\exception\ValidateException;
|
|
||||||
|
|
||||||
class LandController extends BaseApiController
|
|
||||||
{
|
|
||||||
|
|
||||||
public array $notNeedLogin = ['plantProductCount',
|
|
||||||
'landCollectionList',
|
|
||||||
'landMonitorAlarmHistory',
|
|
||||||
'productList',
|
|
||||||
'landList',
|
|
||||||
'centralCount',
|
|
||||||
'areaPlantTypeCount',
|
|
||||||
'monitorInfo',
|
|
||||||
'deviceCount'
|
|
||||||
];
|
|
||||||
|
|
||||||
public $areaCode;
|
|
||||||
public $streetCode;
|
|
||||||
|
|
||||||
public function initialize()
|
|
||||||
{
|
|
||||||
parent::initialize();
|
|
||||||
$this->areaCode = $this->request->param('areaCode', '');
|
|
||||||
$this->streetCode = $this->request->param('streetCode', '');
|
|
||||||
if ($this->areaCode == '') {
|
|
||||||
throw new ValidateException('未获取到位置信息');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 溯源产品统计
|
|
||||||
public function plantProductCount()
|
|
||||||
{
|
|
||||||
$list = LandPlant::alias('lp')->join('land l', 'l.id=lp.land_id')->field('lp.id,lp.kind,lp.qr_code')
|
|
||||||
->where(function ($query) {
|
|
||||||
if ($this->streetCode != '') {
|
|
||||||
$query->where('l.town_code', $this->streetCode);
|
|
||||||
} else {
|
|
||||||
$query->where('l.county_code', $this->areaCode);
|
|
||||||
}
|
|
||||||
})->limit(30)->select();
|
|
||||||
return $this->success('成功', compact('list'));
|
|
||||||
}
|
|
||||||
|
|
||||||
// 智能预警数据
|
|
||||||
public function landCollectionList()
|
|
||||||
{
|
|
||||||
// 先排序,再分组
|
|
||||||
$subQuery = Db::name('land_collection')
|
|
||||||
->order('id', 'desc')
|
|
||||||
->buildSql();
|
|
||||||
|
|
||||||
$list = Db::table($subQuery)->alias('lc')
|
|
||||||
->field('lc.*,l.title')
|
|
||||||
->join('land l', 'l.id=lc.land_id')
|
|
||||||
->where(function ($query) {
|
|
||||||
if ($this->streetCode != '') {
|
|
||||||
$query->where('l.town_code', $this->streetCode);
|
|
||||||
} else {
|
|
||||||
$query->where('l.county_code', $this->areaCode);
|
|
||||||
}
|
|
||||||
})->order('lc.id', 'desc')->group('l.id')->limit(30)->select();
|
|
||||||
return $this->success('成功', compact('list'));
|
|
||||||
}
|
|
||||||
|
|
||||||
// 预警历史记录
|
|
||||||
public function landMonitorAlarmHistory()
|
|
||||||
{
|
|
||||||
$landId = $this->request->get('land_id');
|
|
||||||
// 最近7日
|
|
||||||
$start = date('Y-m-d', strtotime('-6 day'));
|
|
||||||
$end= date('Y-m-d H:i:s', time());
|
|
||||||
$typeRow = ['soil_temperature', 'soil_moisture', 'soil_PH', 'soil_potassium_phosphate_nitrogen', 'wind_speed', 'ambient_temperature', 'ambient_humidity', 'carbon_dioxide'];
|
|
||||||
$list = [];
|
|
||||||
foreach ($typeRow as $type) {
|
|
||||||
// 土壤磷酸钾-氮磷钾
|
|
||||||
if ($type == 'soil_potassium_phosphate_nitrogen') {
|
|
||||||
$alarmCount = MonitorAlarm::where('land_id', $landId)
|
|
||||||
->whereIn('type', ['soil_potassium_phosphate_nitrogen',
|
|
||||||
'soil_potassium_phosphate_phosphorus',
|
|
||||||
'soil_potassium_phosphate_potassium'
|
|
||||||
])
|
|
||||||
->count();
|
|
||||||
|
|
||||||
$dataList = LandCollection::where('land_id', $landId)
|
|
||||||
->field(['soil_potassium_phosphate_nitrogen',
|
|
||||||
'soil_potassium_phosphate_phosphorus',
|
|
||||||
'soil_potassium_phosphate_potassium', "STR_TO_DATE(create_time,
|
|
||||||
'%Y-%m-%d') as day"])
|
|
||||||
->whereBetweenTime('create_time', $start, $end)
|
|
||||||
->group("STR_TO_DATE(create_time, '%Y-%m-%d')")
|
|
||||||
->select();
|
|
||||||
|
|
||||||
|
|
||||||
// 组装折线图数据
|
|
||||||
$historyList = [];
|
|
||||||
$timeRow = [];
|
|
||||||
$valueRow = [];
|
|
||||||
foreach ($dataList as $row) {
|
|
||||||
$timeRow[] = $row['day'];
|
|
||||||
unset($row['day']);
|
|
||||||
$valueRow[] = $row;
|
|
||||||
}
|
|
||||||
$historyList[]['time'] = $timeRow;
|
|
||||||
$historyList[]['value'] = $valueRow;
|
|
||||||
} else {
|
|
||||||
$alarmCount = MonitorAlarm::where('land_id', $landId)
|
|
||||||
->where('type', $type)
|
|
||||||
->count();
|
|
||||||
|
|
||||||
$dataList = LandCollection::where('land_id', $landId)
|
|
||||||
->field("$type,STR_TO_DATE(create_time, '%Y-%m-%d') as day")
|
|
||||||
->whereBetweenTime('create_time', $start, $end)
|
|
||||||
->group("STR_TO_DATE(create_time, '%Y-%m-%d')")
|
|
||||||
->select()->toArray();
|
|
||||||
|
|
||||||
// 组装折线图数据
|
|
||||||
$historyList = [];
|
|
||||||
$timeRow = [];
|
|
||||||
$valueRow = [];
|
|
||||||
foreach ($dataList as $row) {
|
|
||||||
$timeRow[] = $row['day'];
|
|
||||||
$valueRow[] = $row[$type];
|
|
||||||
}
|
|
||||||
$historyList[]['time'] = $timeRow;
|
|
||||||
$historyList[]['value'] = $valueRow;
|
|
||||||
}
|
|
||||||
|
|
||||||
$list[$type] = compact('alarmCount', 'historyList');
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->success('成功', compact('list'));
|
|
||||||
}
|
|
||||||
|
|
||||||
// 土地列表
|
|
||||||
public function landList()
|
|
||||||
{
|
|
||||||
$list = Land::alias('l')->field('l.*,d.video_url,d.id as device_id')->join('land_product lp', 'lp.land_id=l.id')
|
|
||||||
->join('product_device pd', 'lp.product_id=pd.product_id')
|
|
||||||
->join('device d', 'pd.device_id=d.id')
|
|
||||||
->where(function ($query) {
|
|
||||||
if ($this->streetCode != '') {
|
|
||||||
$query->where('l.town_code', $this->streetCode);
|
|
||||||
} else {
|
|
||||||
$query->where('l.county_code', $this->areaCode);
|
|
||||||
}
|
|
||||||
})->select();
|
|
||||||
return $this->success('成功', compact('list'));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function productList()
|
|
||||||
{
|
|
||||||
$list = Product::alias('p')->field('p.*')
|
|
||||||
->join('land_product lp', 'p.id=lp.product_id')
|
|
||||||
->join('land l', 'lp.land_id=l.id')
|
|
||||||
->where(function ($query) {
|
|
||||||
if ($this->streetCode != '') {
|
|
||||||
$query->where('l.town_code', $this->streetCode);
|
|
||||||
} else {
|
|
||||||
$query->where('l.county_code', $this->areaCode);
|
|
||||||
}
|
|
||||||
})->select();
|
|
||||||
return $this->success('成功', compact('list'));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function centralCount()
|
|
||||||
{
|
|
||||||
|
|
||||||
$query = Land::alias('l')->where(function ($query) {
|
|
||||||
if ($this->streetCode != '') {
|
|
||||||
$query->where('l.town_code', $this->streetCode);
|
|
||||||
} else {
|
|
||||||
$query->where('l.county_code', $this->areaCode);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// 地块数量
|
|
||||||
$landCount = $query->count();
|
|
||||||
// 种植面积
|
|
||||||
$totalArea = $query->sum('total_area');
|
|
||||||
// 种植种类
|
|
||||||
$plantCount = $query->join('land_plant lp', 'l.id = lp.land_id')->group('kind')->count();
|
|
||||||
|
|
||||||
return $this->success('成功', compact('landCount', 'totalArea', 'plantCount'));
|
|
||||||
}
|
|
||||||
|
|
||||||
// 第二页 种植面积/种类
|
|
||||||
public function areaPlantTypeCount()
|
|
||||||
{
|
|
||||||
$landId = $this->request->get('land_id');
|
|
||||||
$query = Land::alias('l')->where('l.id', $landId);
|
|
||||||
// 种植面积
|
|
||||||
$totalArea = $query->value('total_area');
|
|
||||||
// 种植种类
|
|
||||||
$plantKindList = $query->field('lp.land_id,lp.kind')->join('land_plant lp', 'l.id = lp.land_id')->group('lp.kind')->select();
|
|
||||||
return $this->success('成功', compact('totalArea', 'plantKindList'));
|
|
||||||
}
|
|
||||||
|
|
||||||
// 第二页 气象环境监测
|
|
||||||
public function monitorInfo()
|
|
||||||
{
|
|
||||||
$landId = $this->request->get('land_id');
|
|
||||||
// 气象信息
|
|
||||||
$landCollection = LandCollection::where('land_id', $landId)->order('id', 'desc')->find();
|
|
||||||
$monitorThreshold = MonitorThreshold::select()->toArray()[0];
|
|
||||||
$monitorThreshold['ambient_air_pressure_max'] = 120;
|
|
||||||
$monitorThreshold['ambient_air_pressure_min'] = 10;
|
|
||||||
return $this->success('成功', compact('landCollection', 'monitorThreshold'));
|
|
||||||
}
|
|
||||||
|
|
||||||
// 监测设备数量统计
|
|
||||||
public function deviceCount()
|
|
||||||
{
|
|
||||||
$landId = $this->request->get('land_id');
|
|
||||||
$total = Land::alias('l')
|
|
||||||
->join('land_product lp', 'l.id=lp.land_id')
|
|
||||||
->join('product_device pd', 'lp.product_id=pd.product_id')
|
|
||||||
->join('device d', 'pd.device_id=d.id')
|
|
||||||
->where('l.id', $landId)
|
|
||||||
->count();
|
|
||||||
|
|
||||||
$online = Land::alias('l')
|
|
||||||
->join('land_product lp', 'l.id=lp.land_id')
|
|
||||||
->join('product_device pd', 'lp.product_id=pd.product_id')
|
|
||||||
->join('device d', 'pd.device_id=d.id')
|
|
||||||
->where('l.id', $landId)
|
|
||||||
->where('d.is_online', 1)->count();
|
|
||||||
|
|
||||||
$offline = Land::alias('l')
|
|
||||||
->join('land_product lp', 'l.id=lp.land_id')
|
|
||||||
->join('product_device pd', 'lp.product_id=pd.product_id')
|
|
||||||
->join('device d', 'pd.device_id=d.id')
|
|
||||||
->where('l.id', $landId)
|
|
||||||
->where('d.is_online', 2)->count();
|
|
||||||
|
|
||||||
return $this->success('成功', compact('total', 'online', 'offline'));
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
namespace app\api\logic;
|
namespace app\api\logic;
|
||||||
|
|
||||||
use app\api\validate\LoginAccountValidate;
|
|
||||||
use app\common\cache\WebScanLoginCache;
|
use app\common\cache\WebScanLoginCache;
|
||||||
use app\common\logic\BaseLogic;
|
use app\common\logic\BaseLogic;
|
||||||
use app\common\model\auth\Admin;
|
use app\common\model\auth\Admin;
|
||||||
|
@ -54,13 +53,7 @@ class LoginLogic extends BaseLogic
|
||||||
$passwordSalt = Config::get('project.unique_identification');
|
$passwordSalt = Config::get('project.unique_identification');
|
||||||
$password = create_password($params['password'], $passwordSalt);
|
$password = create_password($params['password'], $passwordSalt);
|
||||||
$avatar = ConfigService::get('default_image', 'user_avatar');
|
$avatar = ConfigService::get('default_image', 'user_avatar');
|
||||||
// 校验短信验证码
|
|
||||||
$verifyCode = intval($params['verify_code']);
|
|
||||||
$params['account'] = $params['mobile'];
|
|
||||||
if((new LoginAccountValidate())->checkCode($verifyCode, [], $params) === true) {
|
|
||||||
self::setError('验证码错误');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Db::transaction(function () use($userSn,$password,$avatar,$params) {
|
Db::transaction(function () use($userSn,$password,$avatar,$params) {
|
||||||
$user = User::create([
|
$user = User::create([
|
||||||
'sn' => $userSn,
|
'sn' => $userSn,
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
|
|
||||||
class GeoController extends BaseLikeAdminController
|
class GeoController extends BaseLikeAdminController
|
||||||
{
|
{
|
||||||
public array $notNeedLogin=['province','city', 'county','towns','villages','groups'];
|
|
||||||
// 获取省份
|
// 获取省份
|
||||||
public function province(): Json
|
public function province(): Json
|
||||||
{
|
{
|
||||||
|
@ -50,7 +49,7 @@
|
||||||
if(empty($county_code)){
|
if(empty($county_code)){
|
||||||
return $this->fail('请选择区县');
|
return $this->fail('请选择区县');
|
||||||
}
|
}
|
||||||
$data = Town::field('town_code,town_name,lng,lat')->where('county_code',$county_code)->select();
|
$data = Town::field('town_code,town_name')->where('county_code',$county_code)->select();
|
||||||
return $this->success('请求成功',$data->toArray());
|
return $this->success('请求成功',$data->toArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace app\common\model;
|
|
||||||
|
|
||||||
class LandCollection extends BaseModel
|
|
||||||
{
|
|
||||||
protected $name = 'land_collection';
|
|
||||||
}
|
|
|
@ -1,13 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace app\common\model\device;
|
|
||||||
|
|
||||||
use app\common\model\BaseModel;
|
|
||||||
use think\model\concern\SoftDelete;
|
|
||||||
|
|
||||||
class DeviceOffline extends BaseModel
|
|
||||||
{
|
|
||||||
use SoftDelete;
|
|
||||||
protected $name = 'device_offline';
|
|
||||||
|
|
||||||
}
|
|
|
@ -1 +1 @@
|
||||||
import o from"./error.08561be1.js";import{d as r,o as i,c as p,T as m,K as e,a as t}from"./@vue.108c970a.js";import"./element-plus.5df6f736.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.ed788fee.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const s="/admin/assets/no_perms.a56e95a5.png",a={class:"error404"},u=t("div",{class:"flex justify-center"},[t("img",{class:"w-[150px] h-[150px]",src:s,alt:""})],-1),U=r({__name:"403",setup(c){return(n,_)=>(i(),p("div",a,[m(o,{code:"403",title:"\u60A8\u7684\u8D26\u53F7\u6743\u9650\u4E0D\u8DB3\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u6DFB\u52A0\u6743\u9650\uFF01","show-btn":!1},{content:e(()=>[u]),_:1})]))}});export{U as default};
|
import o from"./error.9f3ebc86.js";import{d as r,o as i,c as p,T as m,K as e,a as t}from"./@vue.108c970a.js";import"./element-plus.7a22678c.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.ed788fee.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const s="/admin/assets/no_perms.a56e95a5.png",a={class:"error404"},u=t("div",{class:"flex justify-center"},[t("img",{class:"w-[150px] h-[150px]",src:s,alt:""})],-1),U=r({__name:"403",setup(c){return(n,_)=>(i(),p("div",a,[m(o,{code:"403",title:"\u60A8\u7684\u8D26\u53F7\u6743\u9650\u4E0D\u8DB3\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u6DFB\u52A0\u6743\u9650\uFF01","show-btn":!1},{content:e(()=>[u]),_:1})]))}});export{U as default};
|
|
@ -0,0 +1 @@
|
||||||
|
import o from"./error.9f3ebc86.js";import{d as r,o as t,c as m,T as p}from"./@vue.108c970a.js";import"./element-plus.7a22678c.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.ed788fee.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const i={class:"error404"},P=r({__name:"404",setup(e){return(u,c)=>(t(),m("div",i,[p(o,{code:"404",title:"\u54CE\u5440\uFF0C\u51FA\u9519\u4E86\uFF01\u60A8\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728\u2026"})]))}});export{P as default};
|
|
@ -1 +0,0 @@
|
||||||
import o from"./error.08561be1.js";import{d as r,o as t,c as m,T as p}from"./@vue.108c970a.js";import"./element-plus.5df6f736.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.ed788fee.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const i={class:"error404"},P=r({__name:"404",setup(e){return(u,c)=>(t(),m("div",i,[p(o,{code:"404",title:"\u54CE\u5440\uFF0C\u51FA\u9519\u4E86\uFF01\u60A8\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728\u2026"})]))}});export{P as default};
|
|
|
@ -1 +0,0 @@
|
||||||
import"./account-adjust.vue_vue_type_script_setup_true_lang.03f532ae.js";import{_ as M}from"./account-adjust.vue_vue_type_script_setup_true_lang.03f532ae.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.5f547370.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";export{M as default};
|
|
|
@ -0,0 +1 @@
|
||||||
|
import"./account-adjust.vue_vue_type_script_setup_true_lang.62cf9661.js";import{_ as M}from"./account-adjust.vue_vue_type_script_setup_true_lang.62cf9661.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.3e52675c.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";export{M as default};
|
|
@ -1 +1 @@
|
||||||
import{C as k,G as x,H as B,B as R,D as g}from"./element-plus.5df6f736.js";import{P as N}from"./index.5f547370.js";import{f as F}from"./index.1f78e617.js";import{d as q,s as C,_ as A,b as I,w as D,o as S,J as j,K as a,a as G,T as o,R as r,S as b,u as P}from"./@vue.108c970a.js";const T={class:"pr-8"},U=r("\u589E\u52A0\u4F59\u989D"),H=r("\u6263\u51CF\u4F59\u989D"),L=q({__name:"account-adjust",props:{show:{type:Boolean,required:!0},value:{type:[Number,String],required:!0}},emits:["update:show","confirm"],setup(d,{emit:p}){const i=d,n=C(),u=A({action:1,num:"",remark:""}),s=C(),c=I(()=>Number(i.value)+Number(u.num)*(u.action==1?1:-1)),E={num:[{required:!0,message:"\u8BF7\u8F93\u5165\u8C03\u6574\u7684\u91D1\u989D"}]},w=e=>{if(e.includes("-"))return F.msgError("\u8BF7\u8F93\u5165\u6B63\u6574\u6570");u.num=e},h=async()=>{var e;await((e=n.value)==null?void 0:e.validate()),p("confirm",u)},v=()=>{var e;p("update:show",!1),(e=n.value)==null||e.resetFields()};return D(()=>i.show,e=>{var l,t;e?(l=s.value)==null||l.open():(t=s.value)==null||t.close()}),D(c,e=>{e<0&&(F.msgError("\u8C03\u6574\u540E\u4F59\u989D\u9700\u5927\u4E8E0"),u.num="")}),(e,l)=>{const t=k,f=x,y=B,_=R,V=g;return S(),j(N,{ref_key:"popupRef",ref:s,title:"\u4F59\u989D\u8C03\u6574",width:"500px",onConfirm:h,async:!0,onClose:v},{default:a(()=>[G("div",T,[o(V,{ref_key:"formRef",ref:n,model:u,"label-width":"120px",rules:E},{default:a(()=>[o(t,{label:"\u5F53\u524D\u4F59\u989D"},{default:a(()=>[r("\xA5 "+b(d.value),1)]),_:1}),o(t,{label:"\u4F59\u989D\u589E\u51CF",required:"",prop:"action"},{default:a(()=>[o(y,{modelValue:u.action,"onUpdate:modelValue":l[0]||(l[0]=m=>u.action=m)},{default:a(()=>[o(f,{label:1},{default:a(()=>[U]),_:1}),o(f,{label:2},{default:a(()=>[H]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(t,{label:"\u8C03\u6574\u4F59\u989D",prop:"num"},{default:a(()=>[o(_,{"model-value":u.num,placeholder:"\u8BF7\u8F93\u5165\u8C03\u6574\u7684\u91D1\u989D",type:"number",onInput:w},null,8,["model-value"])]),_:1}),o(t,{label:"\u8C03\u6574\u540E\u4F59\u989D"},{default:a(()=>[r(" \xA5 "+b(P(c)),1)]),_:1}),o(t,{label:"\u5907\u6CE8",prop:"remark"},{default:a(()=>[o(_,{modelValue:u.remark,"onUpdate:modelValue":l[1]||(l[1]=m=>u.remark=m),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])]),_:1},512)}}});export{L as _};
|
import{C as k,G as x,H as B,B as R,D as g}from"./element-plus.7a22678c.js";import{P as N}from"./index.3e52675c.js";import{f as F}from"./index.5f377089.js";import{d as q,s as C,_ as A,b as I,w as D,o as S,J as j,K as a,a as G,T as o,R as r,S as b,u as P}from"./@vue.108c970a.js";const T={class:"pr-8"},U=r("\u589E\u52A0\u4F59\u989D"),H=r("\u6263\u51CF\u4F59\u989D"),L=q({__name:"account-adjust",props:{show:{type:Boolean,required:!0},value:{type:[Number,String],required:!0}},emits:["update:show","confirm"],setup(d,{emit:p}){const i=d,n=C(),u=A({action:1,num:"",remark:""}),s=C(),c=I(()=>Number(i.value)+Number(u.num)*(u.action==1?1:-1)),E={num:[{required:!0,message:"\u8BF7\u8F93\u5165\u8C03\u6574\u7684\u91D1\u989D"}]},w=e=>{if(e.includes("-"))return F.msgError("\u8BF7\u8F93\u5165\u6B63\u6574\u6570");u.num=e},h=async()=>{var e;await((e=n.value)==null?void 0:e.validate()),p("confirm",u)},v=()=>{var e;p("update:show",!1),(e=n.value)==null||e.resetFields()};return D(()=>i.show,e=>{var l,t;e?(l=s.value)==null||l.open():(t=s.value)==null||t.close()}),D(c,e=>{e<0&&(F.msgError("\u8C03\u6574\u540E\u4F59\u989D\u9700\u5927\u4E8E0"),u.num="")}),(e,l)=>{const t=k,f=x,y=B,_=R,V=g;return S(),j(N,{ref_key:"popupRef",ref:s,title:"\u4F59\u989D\u8C03\u6574",width:"500px",onConfirm:h,async:!0,onClose:v},{default:a(()=>[G("div",T,[o(V,{ref_key:"formRef",ref:n,model:u,"label-width":"120px",rules:E},{default:a(()=>[o(t,{label:"\u5F53\u524D\u4F59\u989D"},{default:a(()=>[r("\xA5 "+b(d.value),1)]),_:1}),o(t,{label:"\u4F59\u989D\u589E\u51CF",required:"",prop:"action"},{default:a(()=>[o(y,{modelValue:u.action,"onUpdate:modelValue":l[0]||(l[0]=m=>u.action=m)},{default:a(()=>[o(f,{label:1},{default:a(()=>[U]),_:1}),o(f,{label:2},{default:a(()=>[H]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(t,{label:"\u8C03\u6574\u4F59\u989D",prop:"num"},{default:a(()=>[o(_,{"model-value":u.num,placeholder:"\u8BF7\u8F93\u5165\u8C03\u6574\u7684\u91D1\u989D",type:"number",onInput:w},null,8,["model-value"])]),_:1}),o(t,{label:"\u8C03\u6574\u540E\u4F59\u989D"},{default:a(()=>[r(" \xA5 "+b(P(c)),1)]),_:1}),o(t,{label:"\u5907\u6CE8",prop:"remark"},{default:a(()=>[o(_,{modelValue:u.remark,"onUpdate:modelValue":l[1]||(l[1]=m=>u.remark=m),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])]),_:1},512)}}});export{L as _};
|
|
@ -1 +0,0 @@
|
||||||
import"./add-nav.vue_vue_type_script_setup_true_lang.fc8d47fa.js";import{_ as Y}from"./add-nav.vue_vue_type_script_setup_true_lang.fc8d47fa.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.75a5ec45.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./picker.60257d01.js";import"./index.5f547370.js";import"./picker.966d5ace.js";import"./index.39d7fad9.js";import"./index.vue_vue_type_script_setup_true_lang.1938e45e.js";import"./index.301703a6.js";import"./index.vue_vue_type_script_setup_true_lang.dc1b37d1.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.882c7954.js";import"./vue.d688b76a.js";import"./sortablejs.1b122128.js";export{Y as default};
|
|
|
@ -0,0 +1 @@
|
||||||
|
import"./add-nav.vue_vue_type_script_setup_true_lang.301f7047.js";import{_ as Y}from"./add-nav.vue_vue_type_script_setup_true_lang.301f7047.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.d8e27955.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./picker.67fb0523.js";import"./index.3e52675c.js";import"./picker.9f771ba1.js";import"./index.cc5d82bd.js";import"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import"./index.0c099ee7.js";import"./index.vue_vue_type_script_setup_true_lang.aa7eacaa.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.0b47cde1.js";import"./vue.118acae4.js";import"./sortablejs.9ffc750f.js";export{Y as default};
|
|
@ -1 +1 @@
|
||||||
import{B,w as D}from"./element-plus.5df6f736.js";import{_ as F}from"./index.75a5ec45.js";import{_ as A}from"./picker.60257d01.js";import{_ as y}from"./picker.966d5ace.js";import{f as p,b as E}from"./index.1f78e617.js";import{D as C}from"./vuedraggable.882c7954.js";import{d as U,b as w,o as c,c as N,a as e,T as t,K as m,J as $,u as r,j as z,R}from"./@vue.108c970a.js";const T={class:"bg-fill-light flex items-center w-full p-4 mb-4 cursor-move"},j={class:"upload-btn w-[60px] h-[60px]"},I={class:"ml-3 flex-1"},J={class:"flex"},K=e("span",{class:"text-tx-regular flex-none mr-3"},"\u540D\u79F0",-1),L={class:"flex mt-[18px]"},P=e("span",{class:"text-tx-regular flex-none mr-3"},"\u94FE\u63A5",-1),q=R("\u6DFB\u52A0"),X=U({__name:"add-nav",props:{modelValue:{type:Array,default:()=>[]},max:{type:Number,default:10},min:{type:Number,default:1}},emits:["update:modelValue"],setup(_,{emit:i}){const o=_,s=w({get(){return o.modelValue},set(a){i("update:modelValue",a)}}),f=()=>{var a;((a=o.modelValue)==null?void 0:a.length)<o.max?s.value.push({image:"",name:"\u5BFC\u822A\u540D\u79F0",link:{}}):p.msgError(`\u6700\u591A\u6DFB\u52A0${o.max}\u4E2A`)},V=a=>{var u;if(((u=o.modelValue)==null?void 0:u.length)<=o.min)return p.msgError(`\u6700\u5C11\u4FDD\u7559${o.min}\u4E2A`);s.value.splice(a,1)};return(a,u)=>{const x=E,g=y,h=B,v=A,b=F,k=D;return c(),N("div",null,[e("div",null,[t(r(C),{class:"draggable",modelValue:r(s),"onUpdate:modelValue":u[0]||(u[0]=l=>z(s)?s.value=l:null),animation:"300"},{item:m(({element:l,index:d})=>[(c(),$(b,{class:"max-w-[400px]",key:d,onClose:n=>V(d)},{default:m(()=>[e("div",T,[t(g,{modelValue:l.image,"onUpdate:modelValue":n=>l.image=n,"upload-class":"bg-body",size:"60px","exclude-domain":""},{upload:m(()=>[e("div",j,[t(x,{name:"el-icon-Plus",size:20})])]),_:2},1032,["modelValue","onUpdate:modelValue"]),e("div",I,[e("div",J,[K,t(h,{modelValue:l.name,"onUpdate:modelValue":n=>l.name=n,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),e("div",L,[P,t(v,{modelValue:l.link,"onUpdate:modelValue":n=>l.link=n},null,8,["modelValue","onUpdate:modelValue"])])])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])]),e("div",null,[t(k,{type:"primary",onClick:f},{default:m(()=>[q]),_:1})])])}}});export{X as _};
|
import{B,w as D}from"./element-plus.7a22678c.js";import{_ as F}from"./index.d8e27955.js";import{_ as A}from"./picker.67fb0523.js";import{_ as y}from"./picker.9f771ba1.js";import{f as p,b as E}from"./index.5f377089.js";import{D as C}from"./vuedraggable.0b47cde1.js";import{d as U,b as w,o as c,c as N,a as e,T as t,K as m,J as $,u as r,j as z,R}from"./@vue.108c970a.js";const T={class:"bg-fill-light flex items-center w-full p-4 mb-4 cursor-move"},j={class:"upload-btn w-[60px] h-[60px]"},I={class:"ml-3 flex-1"},J={class:"flex"},K=e("span",{class:"text-tx-regular flex-none mr-3"},"\u540D\u79F0",-1),L={class:"flex mt-[18px]"},P=e("span",{class:"text-tx-regular flex-none mr-3"},"\u94FE\u63A5",-1),q=R("\u6DFB\u52A0"),X=U({__name:"add-nav",props:{modelValue:{type:Array,default:()=>[]},max:{type:Number,default:10},min:{type:Number,default:1}},emits:["update:modelValue"],setup(_,{emit:i}){const o=_,s=w({get(){return o.modelValue},set(a){i("update:modelValue",a)}}),f=()=>{var a;((a=o.modelValue)==null?void 0:a.length)<o.max?s.value.push({image:"",name:"\u5BFC\u822A\u540D\u79F0",link:{}}):p.msgError(`\u6700\u591A\u6DFB\u52A0${o.max}\u4E2A`)},V=a=>{var u;if(((u=o.modelValue)==null?void 0:u.length)<=o.min)return p.msgError(`\u6700\u5C11\u4FDD\u7559${o.min}\u4E2A`);s.value.splice(a,1)};return(a,u)=>{const x=E,g=y,h=B,v=A,b=F,k=D;return c(),N("div",null,[e("div",null,[t(r(C),{class:"draggable",modelValue:r(s),"onUpdate:modelValue":u[0]||(u[0]=l=>z(s)?s.value=l:null),animation:"300"},{item:m(({element:l,index:d})=>[(c(),$(b,{class:"max-w-[400px]",key:d,onClose:n=>V(d)},{default:m(()=>[e("div",T,[t(g,{modelValue:l.image,"onUpdate:modelValue":n=>l.image=n,"upload-class":"bg-body",size:"60px","exclude-domain":""},{upload:m(()=>[e("div",j,[t(x,{name:"el-icon-Plus",size:20})])]),_:2},1032,["modelValue","onUpdate:modelValue"]),e("div",I,[e("div",J,[K,t(h,{modelValue:l.name,"onUpdate:modelValue":n=>l.name=n,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),e("div",L,[P,t(v,{modelValue:l.link,"onUpdate:modelValue":n=>l.link=n},null,8,["modelValue","onUpdate:modelValue"])])])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])]),e("div",null,[t(k,{type:"primary",onClick:f},{default:m(()=>[q]),_:1})])])}}});export{X as _};
|
|
@ -1 +1 @@
|
||||||
import{r as e}from"./index.1f78e617.js";function a(t){return e.get({url:"/article.articleCate/lists",params:t})}function l(t){return e.get({url:"/article.articleCate/all",params:t})}function i(t){return e.post({url:"/article.articleCate/add",params:t})}function c(t){return e.post({url:"/article.articleCate/edit",params:t})}function u(t){return e.post({url:"/article.articleCate/delete",params:t})}function n(t){return e.get({url:"/article.articleCate/detail",params:t})}function s(t){return e.post({url:"/article.articleCate/updateStatus",params:t})}function o(t){return e.get({url:"/article.article/lists",params:t})}function d(t){return e.post({url:"/article.article/add",params:t})}function f(t){return e.post({url:"/article.article/edit",params:t})}function C(t){return e.post({url:"/article.article/delete",params:t})}function p(t){return e.get({url:"/article.article/detail",params:t})}function g(t){return e.post({url:"/article.article/updateStatus",params:t})}export{c as a,i as b,n as c,a as d,u as e,s as f,p as g,l as h,f as i,d as j,o as k,g as l,C as m};
|
import{r as e}from"./index.5f377089.js";function a(t){return e.get({url:"/article.articleCate/lists",params:t})}function l(t){return e.get({url:"/article.articleCate/all",params:t})}function i(t){return e.post({url:"/article.articleCate/add",params:t})}function c(t){return e.post({url:"/article.articleCate/edit",params:t})}function u(t){return e.post({url:"/article.articleCate/delete",params:t})}function n(t){return e.get({url:"/article.articleCate/detail",params:t})}function s(t){return e.post({url:"/article.articleCate/updateStatus",params:t})}function o(t){return e.get({url:"/article.article/lists",params:t})}function d(t){return e.post({url:"/article.article/add",params:t})}function f(t){return e.post({url:"/article.article/edit",params:t})}function C(t){return e.post({url:"/article.article/delete",params:t})}function p(t){return e.get({url:"/article.article/detail",params:t})}function g(t){return e.post({url:"/article.article/updateStatus",params:t})}export{c as a,i as b,n as c,a as d,u as e,s as f,p as g,l as h,f as i,d as j,o as k,g as l,C as m};
|
|
@ -1 +0,0 @@
|
||||||
import"./attr-setting.vue_vue_type_script_setup_true_lang.7dd3f842.js";import{_ as bm}from"./attr-setting.vue_vue_type_script_setup_true_lang.7dd3f842.js";import"./index.3e6cce16.js";import"./attr.vue_vue_type_script_setup_true_lang.c325841e.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.75a5ec45.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./picker.60257d01.js";import"./index.5f547370.js";import"./picker.966d5ace.js";import"./index.39d7fad9.js";import"./index.vue_vue_type_script_setup_true_lang.1938e45e.js";import"./index.301703a6.js";import"./index.vue_vue_type_script_setup_true_lang.dc1b37d1.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.882c7954.js";import"./vue.d688b76a.js";import"./sortablejs.1b122128.js";import"./content.vue_vue_type_script_setup_true_lang.e2fc3e26.js";import"./decoration-img.be977d66.js";import"./attr.vue_vue_type_script_setup_true_lang.8b6abd04.js";import"./content.cc417c69.js";import"./attr.vue_vue_type_script_setup_true_lang.29b8c481.js";import"./add-nav.vue_vue_type_script_setup_true_lang.fc8d47fa.js";import"./content.ad08ced2.js";import"./attr.vue_vue_type_script_setup_true_lang.bc941db6.js";import"./content.vue_vue_type_script_setup_true_lang.a14319ca.js";import"./attr.vue_vue_type_script_setup_true_lang.5c3426f9.js";import"./content.68253a05.js";import"./decoration.025d06d7.js";import"./attr.vue_vue_type_script_setup_true_lang.688b76f6.js";import"./content.a57edad2.js";import"./attr.vue_vue_type_script_setup_true_lang.653f50f8.js";import"./content.vue_vue_type_script_setup_true_lang.52ced7fa.js";import"./attr.vue_vue_type_script_setup_true_lang.6ea07177.js";import"./content.a4d2d9b0.js";export{bm as default};
|
|
|
@ -0,0 +1 @@
|
||||||
|
import"./attr-setting.vue_vue_type_script_setup_true_lang.8d5194a3.js";import{_ as bm}from"./attr-setting.vue_vue_type_script_setup_true_lang.8d5194a3.js";import"./index.75f54b1f.js";import"./attr.vue_vue_type_script_setup_true_lang.51736fce.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.d8e27955.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./picker.67fb0523.js";import"./index.3e52675c.js";import"./picker.9f771ba1.js";import"./index.cc5d82bd.js";import"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import"./index.0c099ee7.js";import"./index.vue_vue_type_script_setup_true_lang.aa7eacaa.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.0b47cde1.js";import"./vue.118acae4.js";import"./sortablejs.9ffc750f.js";import"./content.vue_vue_type_script_setup_true_lang.a42b5145.js";import"./decoration-img.8aa092f0.js";import"./attr.vue_vue_type_script_setup_true_lang.1709118b.js";import"./content.50a21f4b.js";import"./attr.vue_vue_type_script_setup_true_lang.8cf7deb4.js";import"./add-nav.vue_vue_type_script_setup_true_lang.301f7047.js";import"./content.21b92142.js";import"./attr.vue_vue_type_script_setup_true_lang.8fe2bd96.js";import"./content.vue_vue_type_script_setup_true_lang.47d3879e.js";import"./attr.vue_vue_type_script_setup_true_lang.5c3426f9.js";import"./content.a4d4449a.js";import"./decoration.9022c4ae.js";import"./attr.vue_vue_type_script_setup_true_lang.688b76f6.js";import"./content.41c01a3d.js";import"./attr.vue_vue_type_script_setup_true_lang.ce023652.js";import"./content.vue_vue_type_script_setup_true_lang.653e69c3.js";import"./attr.vue_vue_type_script_setup_true_lang.6ea07177.js";import"./content.ac951336.js";export{bm as default};
|
|
@ -1 +1 @@
|
||||||
import{e as c}from"./index.3e6cce16.js";import{d as l,o as t,c as p,a as d,S as m,J as r,P as f,u as g,aH as y}from"./@vue.108c970a.js";const b={class:"pages-setting"},u={class:"title flex items-center before:w-[3px] before:h-[14px] before:block before:bg-primary before:mr-2"},v=l({__name:"attr-setting",props:{widget:{type:Object,default:()=>({})},type:{type:String,default:"mobile"}},setup(e){return(w,x)=>{var s,a,n,o,i;return t(),p("div",b,[d("div",u,m((s=e.widget)==null?void 0:s.title),1),(t(),r(y,null,[(t(),r(f((n=g(c)[(a=e.widget)==null?void 0:a.name])==null?void 0:n.attr),{class:"pt-5 pr-4",content:(o=e.widget)==null?void 0:o.content,styles:(i=e.widget)==null?void 0:i.styles,type:e.type},null,8,["content","styles","type"]))],1024))])}}});export{v as _};
|
import{e as c}from"./index.75f54b1f.js";import{d as l,o as t,c as p,a as d,S as m,J as r,P as f,u as g,aH as y}from"./@vue.108c970a.js";const b={class:"pages-setting"},u={class:"title flex items-center before:w-[3px] before:h-[14px] before:block before:bg-primary before:mr-2"},v=l({__name:"attr-setting",props:{widget:{type:Object,default:()=>({})},type:{type:String,default:"mobile"}},setup(e){return(w,x)=>{var s,a,n,o,i;return t(),p("div",b,[d("div",u,m((s=e.widget)==null?void 0:s.title),1),(t(),r(y,null,[(t(),r(f((n=g(c)[(a=e.widget)==null?void 0:a.name])==null?void 0:n.attr),{class:"pt-5 pr-4",content:(o=e.widget)==null?void 0:o.content,styles:(i=e.widget)==null?void 0:i.styles,type:e.type},null,8,["content","styles","type"]))],1024))])}}});export{v as _};
|
|
@ -1 +0,0 @@
|
||||||
import"./attr.vue_vue_type_script_setup_true_lang.29b8c481.js";import{_ as Z}from"./attr.vue_vue_type_script_setup_true_lang.29b8c481.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./add-nav.vue_vue_type_script_setup_true_lang.fc8d47fa.js";import"./index.75a5ec45.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./picker.60257d01.js";import"./index.5f547370.js";import"./picker.966d5ace.js";import"./index.39d7fad9.js";import"./index.vue_vue_type_script_setup_true_lang.1938e45e.js";import"./index.301703a6.js";import"./index.vue_vue_type_script_setup_true_lang.dc1b37d1.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.882c7954.js";import"./vue.d688b76a.js";import"./sortablejs.1b122128.js";export{Z as default};
|
|
|
@ -1 +0,0 @@
|
||||||
import"./attr.vue_vue_type_script_setup_true_lang.c325841e.js";import{_ as Y}from"./attr.vue_vue_type_script_setup_true_lang.c325841e.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.75a5ec45.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./picker.60257d01.js";import"./index.5f547370.js";import"./picker.966d5ace.js";import"./index.39d7fad9.js";import"./index.vue_vue_type_script_setup_true_lang.1938e45e.js";import"./index.301703a6.js";import"./index.vue_vue_type_script_setup_true_lang.dc1b37d1.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.882c7954.js";import"./vue.d688b76a.js";import"./sortablejs.1b122128.js";export{Y as default};
|
|
|
@ -1 +0,0 @@
|
||||||
import"./attr.vue_vue_type_script_setup_true_lang.653f50f8.js";import{_ as Y}from"./attr.vue_vue_type_script_setup_true_lang.653f50f8.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.75a5ec45.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./picker.60257d01.js";import"./index.5f547370.js";import"./picker.966d5ace.js";import"./index.39d7fad9.js";import"./index.vue_vue_type_script_setup_true_lang.1938e45e.js";import"./index.301703a6.js";import"./index.vue_vue_type_script_setup_true_lang.dc1b37d1.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.882c7954.js";import"./vue.d688b76a.js";import"./sortablejs.1b122128.js";export{Y as default};
|
|
|
@ -1 +0,0 @@
|
||||||
import"./attr.vue_vue_type_script_setup_true_lang.bc941db6.js";import{_ as Z}from"./attr.vue_vue_type_script_setup_true_lang.bc941db6.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./add-nav.vue_vue_type_script_setup_true_lang.fc8d47fa.js";import"./index.75a5ec45.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./picker.60257d01.js";import"./index.5f547370.js";import"./picker.966d5ace.js";import"./index.39d7fad9.js";import"./index.vue_vue_type_script_setup_true_lang.1938e45e.js";import"./index.301703a6.js";import"./index.vue_vue_type_script_setup_true_lang.dc1b37d1.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.882c7954.js";import"./vue.d688b76a.js";import"./sortablejs.1b122128.js";export{Z as default};
|
|
|
@ -0,0 +1 @@
|
||||||
|
import"./attr.vue_vue_type_script_setup_true_lang.ce023652.js";import{_ as Y}from"./attr.vue_vue_type_script_setup_true_lang.ce023652.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.d8e27955.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./picker.67fb0523.js";import"./index.3e52675c.js";import"./picker.9f771ba1.js";import"./index.cc5d82bd.js";import"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import"./index.0c099ee7.js";import"./index.vue_vue_type_script_setup_true_lang.aa7eacaa.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.0b47cde1.js";import"./vue.118acae4.js";import"./sortablejs.9ffc750f.js";export{Y as default};
|
|
@ -1 +0,0 @@
|
||||||
import"./attr.vue_vue_type_script_setup_true_lang.8b6abd04.js";import{_ as X}from"./attr.vue_vue_type_script_setup_true_lang.8b6abd04.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./picker.966d5ace.js";import"./index.5f547370.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.39d7fad9.js";import"./index.vue_vue_type_script_setup_true_lang.1938e45e.js";import"./index.75a5ec45.js";import"./index.301703a6.js";import"./index.vue_vue_type_script_setup_true_lang.dc1b37d1.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.882c7954.js";import"./vue.d688b76a.js";import"./sortablejs.1b122128.js";export{X as default};
|
|
|
@ -0,0 +1 @@
|
||||||
|
import"./attr.vue_vue_type_script_setup_true_lang.8cf7deb4.js";import{_ as Z}from"./attr.vue_vue_type_script_setup_true_lang.8cf7deb4.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./add-nav.vue_vue_type_script_setup_true_lang.301f7047.js";import"./index.d8e27955.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./picker.67fb0523.js";import"./index.3e52675c.js";import"./picker.9f771ba1.js";import"./index.cc5d82bd.js";import"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import"./index.0c099ee7.js";import"./index.vue_vue_type_script_setup_true_lang.aa7eacaa.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.0b47cde1.js";import"./vue.118acae4.js";import"./sortablejs.9ffc750f.js";export{Z as default};
|
|
@ -0,0 +1 @@
|
||||||
|
import"./attr.vue_vue_type_script_setup_true_lang.51736fce.js";import{_ as Y}from"./attr.vue_vue_type_script_setup_true_lang.51736fce.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.d8e27955.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./picker.67fb0523.js";import"./index.3e52675c.js";import"./picker.9f771ba1.js";import"./index.cc5d82bd.js";import"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import"./index.0c099ee7.js";import"./index.vue_vue_type_script_setup_true_lang.aa7eacaa.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.0b47cde1.js";import"./vue.118acae4.js";import"./sortablejs.9ffc750f.js";export{Y as default};
|
|
@ -0,0 +1 @@
|
||||||
|
import"./attr.vue_vue_type_script_setup_true_lang.1709118b.js";import{_ as X}from"./attr.vue_vue_type_script_setup_true_lang.1709118b.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./picker.9f771ba1.js";import"./index.3e52675c.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.cc5d82bd.js";import"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import"./index.d8e27955.js";import"./index.0c099ee7.js";import"./index.vue_vue_type_script_setup_true_lang.aa7eacaa.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.0b47cde1.js";import"./vue.118acae4.js";import"./sortablejs.9ffc750f.js";export{X as default};
|
|
@ -0,0 +1 @@
|
||||||
|
import"./attr.vue_vue_type_script_setup_true_lang.8fe2bd96.js";import{_ as Z}from"./attr.vue_vue_type_script_setup_true_lang.8fe2bd96.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./add-nav.vue_vue_type_script_setup_true_lang.301f7047.js";import"./index.d8e27955.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./picker.67fb0523.js";import"./index.3e52675c.js";import"./picker.9f771ba1.js";import"./index.cc5d82bd.js";import"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import"./index.0c099ee7.js";import"./index.vue_vue_type_script_setup_true_lang.aa7eacaa.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.0b47cde1.js";import"./vue.118acae4.js";import"./sortablejs.9ffc750f.js";export{Z as default};
|
|
@ -1 +1 @@
|
||||||
import{B as c,C as i,D as F}from"./element-plus.5df6f736.js";import{_ as p}from"./picker.966d5ace.js";import{d as r,o as f,c as V,T as e,K as o,a as m}from"./@vue.108c970a.js";const B=m("div",{class:"form-tips"},"\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A200*200\u50CF\u7D20\uFF1B\u56FE\u7247\u683C\u5F0F\uFF1Ajpg\u3001png\u3001jpeg",-1),A=r({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){return(E,l)=>{const a=c,n=i,d=p,s=F;return f(),V("div",null,[e(s,{"label-width":"90px"},{default:o(()=>[e(n,{label:"\u5BA2\u670D\u6807\u9898"},{default:o(()=>[e(a,{class:"w-[400px]",modelValue:t.content.title,"onUpdate:modelValue":l[0]||(l[0]=u=>t.content.title=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u670D\u52A1\u65F6\u95F4"},{default:o(()=>[e(a,{class:"w-[400px]",modelValue:t.content.time,"onUpdate:modelValue":l[1]||(l[1]=u=>t.content.time=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u8054\u7CFB\u7535\u8BDD"},{default:o(()=>[e(a,{class:"w-[400px]",modelValue:t.content.mobile,"onUpdate:modelValue":l[2]||(l[2]=u=>t.content.mobile=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5BA2\u670D\u4E8C\u7EF4\u7801"},{default:o(()=>[m("div",null,[e(d,{modelValue:t.content.qrcode,"onUpdate:modelValue":l[3]||(l[3]=u=>t.content.qrcode=u),"exclude-domain":""},null,8,["modelValue"]),B])]),_:1})]),_:1})])}}});export{A as _};
|
import{B as c,C as i,D as F}from"./element-plus.7a22678c.js";import{_ as p}from"./picker.9f771ba1.js";import{d as r,o as f,c as V,T as e,K as o,a as m}from"./@vue.108c970a.js";const B=m("div",{class:"form-tips"},"\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A200*200\u50CF\u7D20\uFF1B\u56FE\u7247\u683C\u5F0F\uFF1Ajpg\u3001png\u3001jpeg",-1),A=r({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){return(E,l)=>{const a=c,n=i,d=p,s=F;return f(),V("div",null,[e(s,{"label-width":"90px"},{default:o(()=>[e(n,{label:"\u5BA2\u670D\u6807\u9898"},{default:o(()=>[e(a,{class:"w-[400px]",modelValue:t.content.title,"onUpdate:modelValue":l[0]||(l[0]=u=>t.content.title=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u670D\u52A1\u65F6\u95F4"},{default:o(()=>[e(a,{class:"w-[400px]",modelValue:t.content.time,"onUpdate:modelValue":l[1]||(l[1]=u=>t.content.time=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u8054\u7CFB\u7535\u8BDD"},{default:o(()=>[e(a,{class:"w-[400px]",modelValue:t.content.mobile,"onUpdate:modelValue":l[2]||(l[2]=u=>t.content.mobile=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5BA2\u670D\u4E8C\u7EF4\u7801"},{default:o(()=>[m("div",null,[e(d,{modelValue:t.content.qrcode,"onUpdate:modelValue":l[3]||(l[3]=u=>t.content.qrcode=u),"exclude-domain":""},null,8,["modelValue"]),B])]),_:1})]),_:1})])}}});export{A as _};
|
|
@ -1 +1 @@
|
||||||
import{G as D,H as U,C as v,B as w,w as N,D as R}from"./element-plus.5df6f736.js";import{_ as $}from"./index.75a5ec45.js";import{_ as j}from"./picker.60257d01.js";import{_ as G}from"./picker.966d5ace.js";import{f as b}from"./index.1f78e617.js";import{D as I}from"./vuedraggable.882c7954.js";import{d as O,o as n,c as T,T as l,K as t,J as s,Q as _,a as r,u as H,R as p}from"./@vue.108c970a.js";const J=p("\u5F00\u542F"),K=p("\u505C\u7528"),Q={class:"flex-1"},S=r("div",{class:"form-tips"},"\u6700\u591A\u6DFB\u52A05\u5F20\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A750px*340px",-1),q={class:"bg-fill-light flex items-center w-full p-4 mt-4 cursor-move"},z={class:"ml-3 flex-1"},L=p("\u6DFB\u52A0\u56FE\u7247"),te=O({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},type:{type:String,default:"mobile"}},setup(o){const c=o,i=5,g=()=>{var d;((d=c.content.data)==null?void 0:d.length)<i?c.content.data.push({image:"",name:"",link:{}}):b.msgError(`\u6700\u591A\u6DFB\u52A0${i}\u5F20\u56FE\u7247`)},k=d=>{var u;if(((u=c.content.data)==null?void 0:u.length)<=1)return b.msgError("\u6700\u5C11\u4FDD\u7559\u4E00\u5F20\u56FE\u7247");c.content.data.splice(d,1)};return(d,u)=>{const f=D,h=U,m=v,y=G,F=w,B=j,x=$,A=N,C=R;return n(),T("div",null,[l(C,{"label-width":"70px"},{default:t(()=>{var V;return[o.type=="mobile"?(n(),s(m,{key:0,label:"\u662F\u5426\u542F\u7528"},{default:t(()=>[l(h,{modelValue:o.content.enabled,"onUpdate:modelValue":u[0]||(u[0]=e=>o.content.enabled=e)},{default:t(()=>[l(f,{label:1},{default:t(()=>[J]),_:1}),l(f,{label:0},{default:t(()=>[K]),_:1})]),_:1},8,["modelValue"])]),_:1})):_("",!0),l(m,{label:"\u56FE\u7247\u8BBE\u7F6E"},{default:t(()=>[r("div",Q,[S,l(H(I),{class:"draggable",modelValue:o.content.data,"onUpdate:modelValue":u[1]||(u[1]=e=>o.content.data=e),animation:"300"},{item:t(({element:e,index:E})=>[(n(),s(x,{key:E,onClose:a=>k(E),class:"max-w-[400px]"},{default:t(()=>[r("div",q,[l(y,{modelValue:e.image,"onUpdate:modelValue":a=>e.image=a,"upload-class":"bg-body","exclude-domain":""},null,8,["modelValue","onUpdate:modelValue"]),r("div",z,[l(m,{label:"\u56FE\u7247\u540D\u79F0"},{default:t(()=>[l(F,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(m,{class:"mt-[18px]",label:"\u56FE\u7247\u94FE\u63A5"},{default:t(()=>[o.type=="mobile"?(n(),s(B,{key:0,modelValue:e.link,"onUpdate:modelValue":a=>e.link=a},null,8,["modelValue","onUpdate:modelValue"])):_("",!0),o.type=="pc"?(n(),s(F,{key:1,placeholder:"\u8BF7\u8F93\u5165\u94FE\u63A5",modelValue:e.link.path,"onUpdate:modelValue":a=>e.link.path=a},null,8,["modelValue","onUpdate:modelValue"])):_("",!0)]),_:2},1024)])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])])]),_:1}),((V=o.content.data)==null?void 0:V.length)<i?(n(),s(m,{key:1},{default:t(()=>[l(A,{type:"primary",onClick:g},{default:t(()=>[L]),_:1})]),_:1})):_("",!0)]}),_:1})])}}});export{te as _};
|
import{G as D,H as U,C as v,B as w,w as N,D as R}from"./element-plus.7a22678c.js";import{_ as $}from"./index.d8e27955.js";import{_ as j}from"./picker.67fb0523.js";import{_ as G}from"./picker.9f771ba1.js";import{f as b}from"./index.5f377089.js";import{D as I}from"./vuedraggable.0b47cde1.js";import{d as O,o as n,c as T,T as l,K as t,J as s,Q as _,a as r,u as H,R as p}from"./@vue.108c970a.js";const J=p("\u5F00\u542F"),K=p("\u505C\u7528"),Q={class:"flex-1"},S=r("div",{class:"form-tips"},"\u6700\u591A\u6DFB\u52A05\u5F20\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A750px*340px",-1),q={class:"bg-fill-light flex items-center w-full p-4 mt-4 cursor-move"},z={class:"ml-3 flex-1"},L=p("\u6DFB\u52A0\u56FE\u7247"),te=O({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},type:{type:String,default:"mobile"}},setup(o){const c=o,i=5,g=()=>{var d;((d=c.content.data)==null?void 0:d.length)<i?c.content.data.push({image:"",name:"",link:{}}):b.msgError(`\u6700\u591A\u6DFB\u52A0${i}\u5F20\u56FE\u7247`)},k=d=>{var u;if(((u=c.content.data)==null?void 0:u.length)<=1)return b.msgError("\u6700\u5C11\u4FDD\u7559\u4E00\u5F20\u56FE\u7247");c.content.data.splice(d,1)};return(d,u)=>{const f=D,h=U,m=v,y=G,F=w,B=j,x=$,A=N,C=R;return n(),T("div",null,[l(C,{"label-width":"70px"},{default:t(()=>{var V;return[o.type=="mobile"?(n(),s(m,{key:0,label:"\u662F\u5426\u542F\u7528"},{default:t(()=>[l(h,{modelValue:o.content.enabled,"onUpdate:modelValue":u[0]||(u[0]=e=>o.content.enabled=e)},{default:t(()=>[l(f,{label:1},{default:t(()=>[J]),_:1}),l(f,{label:0},{default:t(()=>[K]),_:1})]),_:1},8,["modelValue"])]),_:1})):_("",!0),l(m,{label:"\u56FE\u7247\u8BBE\u7F6E"},{default:t(()=>[r("div",Q,[S,l(H(I),{class:"draggable",modelValue:o.content.data,"onUpdate:modelValue":u[1]||(u[1]=e=>o.content.data=e),animation:"300"},{item:t(({element:e,index:E})=>[(n(),s(x,{key:E,onClose:a=>k(E),class:"max-w-[400px]"},{default:t(()=>[r("div",q,[l(y,{modelValue:e.image,"onUpdate:modelValue":a=>e.image=a,"upload-class":"bg-body","exclude-domain":""},null,8,["modelValue","onUpdate:modelValue"]),r("div",z,[l(m,{label:"\u56FE\u7247\u540D\u79F0"},{default:t(()=>[l(F,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(m,{class:"mt-[18px]",label:"\u56FE\u7247\u94FE\u63A5"},{default:t(()=>[o.type=="mobile"?(n(),s(B,{key:0,modelValue:e.link,"onUpdate:modelValue":a=>e.link=a},null,8,["modelValue","onUpdate:modelValue"])):_("",!0),o.type=="pc"?(n(),s(F,{key:1,placeholder:"\u8BF7\u8F93\u5165\u94FE\u63A5",modelValue:e.link.path,"onUpdate:modelValue":a=>e.link.path=a},null,8,["modelValue","onUpdate:modelValue"])):_("",!0)]),_:2},1024)])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])])]),_:1}),((V=o.content.data)==null?void 0:V.length)<i?(n(),s(m,{key:1},{default:t(()=>[l(A,{type:"primary",onClick:g},{default:t(()=>[L]),_:1})]),_:1})):_("",!0)]}),_:1})])}}});export{te as _};
|
|
@ -1 +1 @@
|
||||||
import{G as _,H as i,C as r,B as f,D as p}from"./element-plus.5df6f736.js";import{_ as V}from"./add-nav.vue_vue_type_script_setup_true_lang.fc8d47fa.js";import{d as b,o as E,c as x,T as e,K as t,a as B,R as d}from"./@vue.108c970a.js";const F=d("\u6A2A\u6392"),y=d("\u7AD6\u6392"),C={class:"flex-1"},R=b({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(l){return(D,o)=>{const u=_,s=i,n=r,m=f,c=p;return E(),x("div",null,[e(c,{"label-width":"70px"},{default:t(()=>[e(n,{label:"\u6392\u7248\u6837\u5F0F"},{default:t(()=>[e(s,{modelValue:l.content.style,"onUpdate:modelValue":o[0]||(o[0]=a=>l.content.style=a)},{default:t(()=>[e(u,{label:1},{default:t(()=>[F]),_:1}),e(u,{label:2},{default:t(()=>[y]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(n,{label:"\u6807\u9898\u540D\u79F0"},{default:t(()=>[e(m,{class:"w-[400px]",modelValue:l.content.title,"onUpdate:modelValue":o[1]||(o[1]=a=>l.content.title=a)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u83DC\u5355\u8BBE\u7F6E"},{default:t(()=>[B("div",C,[e(V,{modelValue:l.content.data,"onUpdate:modelValue":o[2]||(o[2]=a=>l.content.data=a)},null,8,["modelValue"])])]),_:1})]),_:1})])}}});export{R as _};
|
import{G as _,H as i,C as r,B as f,D as p}from"./element-plus.7a22678c.js";import{_ as V}from"./add-nav.vue_vue_type_script_setup_true_lang.301f7047.js";import{d as b,o as E,c as x,T as e,K as t,a as B,R as d}from"./@vue.108c970a.js";const F=d("\u6A2A\u6392"),y=d("\u7AD6\u6392"),C={class:"flex-1"},R=b({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(l){return(D,o)=>{const u=_,s=i,n=r,m=f,c=p;return E(),x("div",null,[e(c,{"label-width":"70px"},{default:t(()=>[e(n,{label:"\u6392\u7248\u6837\u5F0F"},{default:t(()=>[e(s,{modelValue:l.content.style,"onUpdate:modelValue":o[0]||(o[0]=a=>l.content.style=a)},{default:t(()=>[e(u,{label:1},{default:t(()=>[F]),_:1}),e(u,{label:2},{default:t(()=>[y]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(n,{label:"\u6807\u9898\u540D\u79F0"},{default:t(()=>[e(m,{class:"w-[400px]",modelValue:l.content.title,"onUpdate:modelValue":o[1]||(o[1]=a=>l.content.title=a)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u83DC\u5355\u8BBE\u7F6E"},{default:t(()=>[B("div",C,[e(V,{modelValue:l.content.data,"onUpdate:modelValue":o[2]||(o[2]=a=>l.content.data=a)},null,8,["modelValue"])])]),_:1})]),_:1})])}}});export{R as _};
|
|
@ -1 +1 @@
|
||||||
import{G as c,H as r,C as i,D as f}from"./element-plus.5df6f736.js";import{_ as p}from"./add-nav.vue_vue_type_script_setup_true_lang.fc8d47fa.js";import{d as F,o as E,c as b,T as e,K as t,a as d,R as s}from"./@vue.108c970a.js";const V=s("\u5F00\u542F"),x=s("\u505C\u7528"),B={class:"flex-1"},A=d("div",{class:"form-tips mb-4"},"\u6700\u591A\u53EF\u6DFB\u52A010\u4E2A\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A100px*100px",-1),D=F({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(o){return(C,a)=>{const u=c,m=r,n=i,_=f;return E(),b("div",null,[e(_,{"label-width":"70px"},{default:t(()=>[e(n,{label:"\u662F\u5426\u542F\u7528"},{default:t(()=>[e(m,{modelValue:o.content.enabled,"onUpdate:modelValue":a[0]||(a[0]=l=>o.content.enabled=l)},{default:t(()=>[e(u,{label:1},{default:t(()=>[V]),_:1}),e(u,{label:0},{default:t(()=>[x]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(n,{label:"\u83DC\u5355\u8BBE\u7F6E"},{default:t(()=>[d("div",B,[A,e(p,{modelValue:o.content.data,"onUpdate:modelValue":a[1]||(a[1]=l=>o.content.data=l)},null,8,["modelValue"])])]),_:1})]),_:1})])}}});export{D as _};
|
import{G as c,H as r,C as i,D as f}from"./element-plus.7a22678c.js";import{_ as p}from"./add-nav.vue_vue_type_script_setup_true_lang.301f7047.js";import{d as F,o as E,c as b,T as e,K as t,a as d,R as s}from"./@vue.108c970a.js";const V=s("\u5F00\u542F"),x=s("\u505C\u7528"),B={class:"flex-1"},A=d("div",{class:"form-tips mb-4"},"\u6700\u591A\u53EF\u6DFB\u52A010\u4E2A\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A100px*100px",-1),D=F({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(o){return(C,a)=>{const u=c,m=r,n=i,_=f;return E(),b("div",null,[e(_,{"label-width":"70px"},{default:t(()=>[e(n,{label:"\u662F\u5426\u542F\u7528"},{default:t(()=>[e(m,{modelValue:o.content.enabled,"onUpdate:modelValue":a[0]||(a[0]=l=>o.content.enabled=l)},{default:t(()=>[e(u,{label:1},{default:t(()=>[V]),_:1}),e(u,{label:0},{default:t(()=>[x]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(n,{label:"\u83DC\u5355\u8BBE\u7F6E"},{default:t(()=>[d("div",B,[A,e(p,{modelValue:o.content.data,"onUpdate:modelValue":a[1]||(a[1]=l=>o.content.data=l)},null,8,["modelValue"])])]),_:1})]),_:1})])}}});export{D as _};
|
|
@ -1 +1 @@
|
||||||
import{G as D,H as y,C as U,B as v,w,D as N}from"./element-plus.5df6f736.js";import{_ as R}from"./index.75a5ec45.js";import{_ as $}from"./picker.60257d01.js";import{_ as j}from"./picker.966d5ace.js";import{f as F}from"./index.1f78e617.js";import{D as G}from"./vuedraggable.882c7954.js";import{d as I,o as _,c as O,T as e,K as t,a as m,u as T,J as E,Q as H,R as r}from"./@vue.108c970a.js";const J=r("\u5F00\u542F"),K=r("\u505C\u7528"),Q={class:"flex-1"},q=m("div",{class:"form-tips"},"\u6700\u591A\u6DFB\u52A05\u5F20\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A750px*200px",-1),z={class:"bg-fill-light flex items-center w-full p-4 mt-4 cursor-move"},L={class:"ml-3 flex-1"},M=r("\u6DFB\u52A0\u56FE\u7247"),te=I({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(a){const s=a,c=5,V=()=>{var u;((u=s.content.data)==null?void 0:u.length)<c?s.content.data.push({image:"",name:"",link:{}}):F.msgError(`\u6700\u591A\u6DFB\u52A0${c}\u5F20\u56FE\u7247`)},g=u=>{var l;if(((l=s.content.data)==null?void 0:l.length)<=1)return F.msgError("\u6700\u5C11\u4FDD\u7559\u4E00\u5F20\u56FE\u7247");s.content.data.splice(u,1)};return(u,l)=>{const i=D,b=y,d=U,h=j,B=v,k=$,x=R,A=w,C=N;return _(),O("div",null,[e(C,{"label-width":"70px"},{default:t(()=>{var p;return[e(d,{label:"\u662F\u5426\u542F\u7528"},{default:t(()=>[e(b,{modelValue:a.content.enabled,"onUpdate:modelValue":l[0]||(l[0]=o=>a.content.enabled=o)},{default:t(()=>[e(i,{label:1},{default:t(()=>[J]),_:1}),e(i,{label:0},{default:t(()=>[K]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u56FE\u7247\u8BBE\u7F6E"},{default:t(()=>[m("div",Q,[q,e(T(G),{class:"draggable",modelValue:a.content.data,"onUpdate:modelValue":l[1]||(l[1]=o=>a.content.data=o),animation:"300"},{item:t(({element:o,index:f})=>[(_(),E(x,{key:f,onClose:n=>g(f),class:"max-w-[400px]"},{default:t(()=>[m("div",z,[e(h,{modelValue:o.image,"onUpdate:modelValue":n=>o.image=n,"upload-class":"bg-body","exclude-domain":""},null,8,["modelValue","onUpdate:modelValue"]),m("div",L,[e(d,{label:"\u56FE\u7247\u540D\u79F0"},{default:t(()=>[e(B,{modelValue:o.name,"onUpdate:modelValue":n=>o.name=n,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e(d,{class:"mt-[18px]",label:"\u56FE\u7247\u94FE\u63A5"},{default:t(()=>[e(k,{modelValue:o.link,"onUpdate:modelValue":n=>o.link=n},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])])]),_:1}),((p=a.content.data)==null?void 0:p.length)<c?(_(),E(d,{key:0},{default:t(()=>[e(A,{type:"primary",onClick:V},{default:t(()=>[M]),_:1})]),_:1})):H("",!0)]}),_:1})])}}});export{te as _};
|
import{G as D,H as y,C as U,B as v,w,D as N}from"./element-plus.7a22678c.js";import{_ as R}from"./index.d8e27955.js";import{_ as $}from"./picker.67fb0523.js";import{_ as j}from"./picker.9f771ba1.js";import{f as F}from"./index.5f377089.js";import{D as G}from"./vuedraggable.0b47cde1.js";import{d as I,o as _,c as O,T as e,K as t,a as m,u as T,J as E,Q as H,R as r}from"./@vue.108c970a.js";const J=r("\u5F00\u542F"),K=r("\u505C\u7528"),Q={class:"flex-1"},q=m("div",{class:"form-tips"},"\u6700\u591A\u6DFB\u52A05\u5F20\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A750px*200px",-1),z={class:"bg-fill-light flex items-center w-full p-4 mt-4 cursor-move"},L={class:"ml-3 flex-1"},M=r("\u6DFB\u52A0\u56FE\u7247"),te=I({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(a){const s=a,c=5,V=()=>{var u;((u=s.content.data)==null?void 0:u.length)<c?s.content.data.push({image:"",name:"",link:{}}):F.msgError(`\u6700\u591A\u6DFB\u52A0${c}\u5F20\u56FE\u7247`)},g=u=>{var l;if(((l=s.content.data)==null?void 0:l.length)<=1)return F.msgError("\u6700\u5C11\u4FDD\u7559\u4E00\u5F20\u56FE\u7247");s.content.data.splice(u,1)};return(u,l)=>{const i=D,b=y,d=U,h=j,B=v,k=$,x=R,A=w,C=N;return _(),O("div",null,[e(C,{"label-width":"70px"},{default:t(()=>{var p;return[e(d,{label:"\u662F\u5426\u542F\u7528"},{default:t(()=>[e(b,{modelValue:a.content.enabled,"onUpdate:modelValue":l[0]||(l[0]=o=>a.content.enabled=o)},{default:t(()=>[e(i,{label:1},{default:t(()=>[J]),_:1}),e(i,{label:0},{default:t(()=>[K]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u56FE\u7247\u8BBE\u7F6E"},{default:t(()=>[m("div",Q,[q,e(T(G),{class:"draggable",modelValue:a.content.data,"onUpdate:modelValue":l[1]||(l[1]=o=>a.content.data=o),animation:"300"},{item:t(({element:o,index:f})=>[(_(),E(x,{key:f,onClose:n=>g(f),class:"max-w-[400px]"},{default:t(()=>[m("div",z,[e(h,{modelValue:o.image,"onUpdate:modelValue":n=>o.image=n,"upload-class":"bg-body","exclude-domain":""},null,8,["modelValue","onUpdate:modelValue"]),m("div",L,[e(d,{label:"\u56FE\u7247\u540D\u79F0"},{default:t(()=>[e(B,{modelValue:o.name,"onUpdate:modelValue":n=>o.name=n,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e(d,{class:"mt-[18px]",label:"\u56FE\u7247\u94FE\u63A5"},{default:t(()=>[e(k,{modelValue:o.link,"onUpdate:modelValue":n=>o.link=n},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])])]),_:1}),((p=a.content.data)==null?void 0:p.length)<c?(_(),E(d,{key:0},{default:t(()=>[e(A,{type:"primary",onClick:V},{default:t(()=>[M]),_:1})]),_:1})):H("",!0)]}),_:1})])}}});export{te as _};
|
|
@ -1 +0,0 @@
|
||||||
import"./auth.vue_vue_type_script_setup_true_lang.ef8836be.js";import{_ as O}from"./auth.vue_vue_type_script_setup_true_lang.ef8836be.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./role.89849e2e.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.5f547370.js";import"./menu.6c5160df.js";export{O as default};
|
|
|
@ -0,0 +1 @@
|
||||||
|
import"./auth.vue_vue_type_script_setup_true_lang.50ae6370.js";import{_ as O}from"./auth.vue_vue_type_script_setup_true_lang.50ae6370.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./role.3d6dce20.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.3e52675c.js";import"./menu.be6425f5.js";export{O as default};
|
|
@ -1 +1 @@
|
||||||
import{T as q,E as P,F as H,C as I,D as J,N as M}from"./element-plus.5df6f736.js";import{a as O}from"./role.89849e2e.js";import{P as U}from"./index.5f547370.js";import{q as j}from"./index.1f78e617.js";import{m as z}from"./menu.6c5160df.js";import{d as G,s as p,r as c,_ as Q,o as v,c as W,T as o,K as u,L as X,J as Y,a as k,n as y}from"./@vue.108c970a.js";const Z={class:"edit-popup"},ne=G({__name:"auth",emits:["success","close"],setup($,{expose:C,emit:f}){const t=p(),_=p(),r=p(),x=c(!1),d=c(!0),i=c(!1),h=c([]),m=c([]),s=Q({id:"",name:"",desc:"",sort:0,menu_id:[]}),b={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0",trigger:["blur"]}]},g=()=>{i.value=!0,z().then(e=>{m.value=e,h.value=j(e),y(()=>{D()}),i.value=!1})},E=()=>{var a,n;const e=(a=t.value)==null?void 0:a.getCheckedKeys(),l=(n=t.value)==null?void 0:n.getHalfCheckedKeys();return e==null||e.unshift.apply(e,l),e},D=()=>{s.menu_id.forEach(e=>{y(()=>{var l;(l=t.value)==null||l.setChecked(e,!0,!1)})})},w=e=>{const l=m.value;for(let a=0;a<l.length;a++)t.value.store.nodesMap[l[a].id].expanded=e},F=e=>{var l,a;e?(l=t.value)==null||l.setCheckedKeys(h.value.map(n=>n.id)):(a=t.value)==null||a.setCheckedKeys([])},A=async()=>{var e,l;await((e=_.value)==null?void 0:e.validate()),s.menu_id=E(),await O(s),(l=r.value)==null||l.close(),f("success")},K=()=>{f("close")},R=()=>{var e;(e=r.value)==null||e.open()},B=async e=>{for(const l in s)e[l]!=null&&e[l]!=null&&(s[l]=e[l])};return g(),C({open:R,setFormData:B}),(e,l)=>{const a=H,n=q,T=I,V=P,S=J,L=M;return v(),W("div",Z,[o(U,{ref_key:"popupRef",ref:r,title:"\u5206\u914D\u6743\u9650",async:!0,width:"550px",onConfirm:A,onClose:K},{default:u(()=>[X((v(),Y(S,{class:"ls-form",ref_key:"formRef",ref:_,rules:b,model:s,"label-width":"60px"},{default:u(()=>[o(V,{class:"h-[400px] sm:h-[600px]"},{default:u(()=>[o(T,{label:"\u6743\u9650",prop:"menu_id"},{default:u(()=>[k("div",null,[o(a,{label:"\u5C55\u5F00/\u6298\u53E0",onChange:w}),o(a,{label:"\u5168\u9009/\u4E0D\u5168\u9009",onChange:F}),o(a,{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=N=>d.value=N),label:"\u7236\u5B50\u8054\u52A8"},null,8,["modelValue"]),k("div",null,[o(n,{ref_key:"treeRef",ref:t,data:m.value,props:{label:"name",children:"children"},"check-strictly":!d.value,"node-key":"id","default-expand-all":x.value,"show-checkbox":""},null,8,["data","check-strictly","default-expand-all"])])])]),_:1})]),_:1})]),_:1},8,["model"])),[[L,i.value]])]),_:1},512)])}}});export{ne as _};
|
import{T as q,E as P,F as H,C as I,D as J,N as M}from"./element-plus.7a22678c.js";import{a as O}from"./role.3d6dce20.js";import{P as U}from"./index.3e52675c.js";import{q as j}from"./index.5f377089.js";import{m as z}from"./menu.be6425f5.js";import{d as G,s as p,r as c,_ as Q,o as v,c as W,T as o,K as u,L as X,J as Y,a as k,n as y}from"./@vue.108c970a.js";const Z={class:"edit-popup"},ne=G({__name:"auth",emits:["success","close"],setup($,{expose:C,emit:f}){const t=p(),_=p(),r=p(),x=c(!1),d=c(!0),i=c(!1),h=c([]),m=c([]),s=Q({id:"",name:"",desc:"",sort:0,menu_id:[]}),b={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0",trigger:["blur"]}]},g=()=>{i.value=!0,z().then(e=>{m.value=e,h.value=j(e),y(()=>{D()}),i.value=!1})},E=()=>{var a,n;const e=(a=t.value)==null?void 0:a.getCheckedKeys(),l=(n=t.value)==null?void 0:n.getHalfCheckedKeys();return e==null||e.unshift.apply(e,l),e},D=()=>{s.menu_id.forEach(e=>{y(()=>{var l;(l=t.value)==null||l.setChecked(e,!0,!1)})})},w=e=>{const l=m.value;for(let a=0;a<l.length;a++)t.value.store.nodesMap[l[a].id].expanded=e},F=e=>{var l,a;e?(l=t.value)==null||l.setCheckedKeys(h.value.map(n=>n.id)):(a=t.value)==null||a.setCheckedKeys([])},A=async()=>{var e,l;await((e=_.value)==null?void 0:e.validate()),s.menu_id=E(),await O(s),(l=r.value)==null||l.close(),f("success")},K=()=>{f("close")},R=()=>{var e;(e=r.value)==null||e.open()},B=async e=>{for(const l in s)e[l]!=null&&e[l]!=null&&(s[l]=e[l])};return g(),C({open:R,setFormData:B}),(e,l)=>{const a=H,n=q,T=I,V=P,S=J,L=M;return v(),W("div",Z,[o(U,{ref_key:"popupRef",ref:r,title:"\u5206\u914D\u6743\u9650",async:!0,width:"550px",onConfirm:A,onClose:K},{default:u(()=>[X((v(),Y(S,{class:"ls-form",ref_key:"formRef",ref:_,rules:b,model:s,"label-width":"60px"},{default:u(()=>[o(V,{class:"h-[400px] sm:h-[600px]"},{default:u(()=>[o(T,{label:"\u6743\u9650",prop:"menu_id"},{default:u(()=>[k("div",null,[o(a,{label:"\u5C55\u5F00/\u6298\u53E0",onChange:w}),o(a,{label:"\u5168\u9009/\u4E0D\u5168\u9009",onChange:F}),o(a,{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=N=>d.value=N),label:"\u7236\u5B50\u8054\u52A8"},null,8,["modelValue"]),k("div",null,[o(n,{ref_key:"treeRef",ref:t,data:m.value,props:{label:"name",children:"children"},"check-strictly":!d.value,"node-key":"id","default-expand-all":x.value,"show-checkbox":""},null,8,["data","check-strictly","default-expand-all"])])])]),_:1})]),_:1})]),_:1},8,["model"])),[[L,i.value]])]),_:1},512)])}}});export{ne as _};
|
|
@ -1 +1 @@
|
||||||
import{K as U,B as K,C as N,Q as P,R,w as I,D as O,I as S,L as j,M as z,N as $}from"./element-plus.5df6f736.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.1938e45e.js";import{_ as J}from"./index.1f78e617.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.2b417e0a.js";import{d as w,_ as Q,o as r,c as b,T as e,K as o,a8 as G,u,U as H,a6 as W,L as X,J as h,a as m,R as p,S as B,O as Y,j as Z}from"./@vue.108c970a.js";import{g as ee,a as te}from"./finance.9455230a.js";import{u as oe}from"./useDictOptions.8d220934.js";import{u as ae}from"./usePaging.2a59f422.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const ne=p("\u67E5\u8BE2"),le=p("\u91CD\u7F6E"),ue={class:"flex items-center"},ie={class:"flex justify-end mt-4"},se=w({name:"articleLists"}),We=w({...se,setup(re){const a=Q({user_info:"",change_type:"",start_time:"",end_time:""}),{pager:i,getLists:_,resetPage:c,resetParams:E}=ae({fetchFun:te,params:a}),{optionsData:C}=oe({change_type:{api:ee}});return _(),(me,n)=>{const D=U,v=K,s=N,d=P,y=R,x=M,f=I,V=O,g=S,l=j,T=J,A=z,k=q,L=$;return r(),b("div",null,[e(g,{class:"!border-none",shadow:"never"},{default:o(()=>[e(D,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u7528\u6237\u8D26\u6237\u53D8\u52A8\u8BB0\u5F55",closable:!1,"show-icon":""}),e(V,{ref:"formRef",class:"mb-[-16px] mt-[16px]",model:a,inline:!0},{default:o(()=>[e(s,{label:"\u7528\u6237\u4FE1\u606F"},{default:o(()=>[e(v,{class:"w-[280px]",modelValue:a.user_info,"onUpdate:modelValue":n[0]||(n[0]=t=>a.user_info=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7F16\u53F7/\u6635\u79F0/\u624B\u673A\u53F7",clearable:"",onKeyup:G(u(c),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(s,{label:"\u53D8\u52A8\u7C7B\u578B"},{default:o(()=>[e(y,{class:"w-[280px]",modelValue:a.change_type,"onUpdate:modelValue":n[1]||(n[1]=t=>a.change_type=t)},{default:o(()=>[e(d,{label:"\u5168\u90E8",value:""}),(r(!0),b(H,null,W(u(C).change_type,(t,F)=>(r(),h(d,{key:F,label:t,value:F},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u8BB0\u5F55\u65F6\u95F4"},{default:o(()=>[e(x,{startTime:a.start_time,"onUpdate:startTime":n[2]||(n[2]=t=>a.start_time=t),endTime:a.end_time,"onUpdate:endTime":n[3]||(n[3]=t=>a.end_time=t)},null,8,["startTime","endTime"])]),_:1}),e(s,null,{default:o(()=>[e(f,{type:"primary",onClick:u(c)},{default:o(()=>[ne]),_:1},8,["onClick"]),e(f,{onClick:u(E)},{default:o(()=>[le]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),e(g,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[X((r(),h(A,{size:"large",data:u(i).lists},{default:o(()=>[e(l,{label:"\u7528\u6237\u7F16\u53F7",prop:"sn","min-width":"100"}),e(l,{label:"\u7528\u6237\u6635\u79F0","min-width":"160"},{default:o(({row:t})=>[m("div",ue,[e(T,{class:"flex-none mr-2",src:t.avatar,width:40,height:40,"preview-teleported":"",fit:"contain"},null,8,["src"]),p(" "+B(t.nickname),1)])]),_:1}),e(l,{label:"\u624B\u673A\u53F7\u7801",prop:"mobile","min-width":"100"}),e(l,{label:"\u53D8\u52A8\u91D1\u989D",prop:"change_amount","min-width":"100"},{default:o(({row:t})=>[m("span",{class:Y({"text-error":t.action==2})},B(t.change_amount),3)]),_:1}),e(l,{label:"\u5269\u4F59\u91D1\u989D",prop:"left_amount","min-width":"100"}),e(l,{label:"\u53D8\u52A8\u7C7B\u578B",prop:"change_type_desc","min-width":"120"}),e(l,{label:"\u6765\u6E90\u5355\u53F7",prop:"source_sn","min-width":"100"}),e(l,{label:"\u8BB0\u5F55\u65F6\u95F4",prop:"create_time","min-width":"120"})]),_:1},8,["data"])),[[L,u(i).loading]]),m("div",ie,[e(k,{modelValue:u(i),"onUpdate:modelValue":n[4]||(n[4]=t=>Z(i)?i.value=t:null),onChange:u(_)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{We as default};
|
import{K as U,B as K,C as N,Q as P,R,w as I,D as O,I as S,L as j,M as z,N as $}from"./element-plus.7a22678c.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import{_ as J}from"./index.5f377089.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.f8debc0c.js";import{d as w,_ as Q,o as r,c as b,T as e,K as o,a8 as G,u,U as H,a6 as W,L as X,J as h,a as m,R as p,S as B,O as Y,j as Z}from"./@vue.108c970a.js";import{g as ee,a as te}from"./finance.96b03281.js";import{u as oe}from"./useDictOptions.82ca10d3.js";import{u as ae}from"./usePaging.2a59f422.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const ne=p("\u67E5\u8BE2"),le=p("\u91CD\u7F6E"),ue={class:"flex items-center"},ie={class:"flex justify-end mt-4"},se=w({name:"articleLists"}),We=w({...se,setup(re){const a=Q({user_info:"",change_type:"",start_time:"",end_time:""}),{pager:i,getLists:_,resetPage:c,resetParams:E}=ae({fetchFun:te,params:a}),{optionsData:C}=oe({change_type:{api:ee}});return _(),(me,n)=>{const D=U,v=K,s=N,d=P,y=R,x=M,f=I,V=O,g=S,l=j,T=J,A=z,k=q,L=$;return r(),b("div",null,[e(g,{class:"!border-none",shadow:"never"},{default:o(()=>[e(D,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u7528\u6237\u8D26\u6237\u53D8\u52A8\u8BB0\u5F55",closable:!1,"show-icon":""}),e(V,{ref:"formRef",class:"mb-[-16px] mt-[16px]",model:a,inline:!0},{default:o(()=>[e(s,{label:"\u7528\u6237\u4FE1\u606F"},{default:o(()=>[e(v,{class:"w-[280px]",modelValue:a.user_info,"onUpdate:modelValue":n[0]||(n[0]=t=>a.user_info=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7F16\u53F7/\u6635\u79F0/\u624B\u673A\u53F7",clearable:"",onKeyup:G(u(c),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(s,{label:"\u53D8\u52A8\u7C7B\u578B"},{default:o(()=>[e(y,{class:"w-[280px]",modelValue:a.change_type,"onUpdate:modelValue":n[1]||(n[1]=t=>a.change_type=t)},{default:o(()=>[e(d,{label:"\u5168\u90E8",value:""}),(r(!0),b(H,null,W(u(C).change_type,(t,F)=>(r(),h(d,{key:F,label:t,value:F},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u8BB0\u5F55\u65F6\u95F4"},{default:o(()=>[e(x,{startTime:a.start_time,"onUpdate:startTime":n[2]||(n[2]=t=>a.start_time=t),endTime:a.end_time,"onUpdate:endTime":n[3]||(n[3]=t=>a.end_time=t)},null,8,["startTime","endTime"])]),_:1}),e(s,null,{default:o(()=>[e(f,{type:"primary",onClick:u(c)},{default:o(()=>[ne]),_:1},8,["onClick"]),e(f,{onClick:u(E)},{default:o(()=>[le]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),e(g,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[X((r(),h(A,{size:"large",data:u(i).lists},{default:o(()=>[e(l,{label:"\u7528\u6237\u7F16\u53F7",prop:"sn","min-width":"100"}),e(l,{label:"\u7528\u6237\u6635\u79F0","min-width":"160"},{default:o(({row:t})=>[m("div",ue,[e(T,{class:"flex-none mr-2",src:t.avatar,width:40,height:40,"preview-teleported":"",fit:"contain"},null,8,["src"]),p(" "+B(t.nickname),1)])]),_:1}),e(l,{label:"\u624B\u673A\u53F7\u7801",prop:"mobile","min-width":"100"}),e(l,{label:"\u53D8\u52A8\u91D1\u989D",prop:"change_amount","min-width":"100"},{default:o(({row:t})=>[m("span",{class:Y({"text-error":t.action==2})},B(t.change_amount),3)]),_:1}),e(l,{label:"\u5269\u4F59\u91D1\u989D",prop:"left_amount","min-width":"100"}),e(l,{label:"\u53D8\u52A8\u7C7B\u578B",prop:"change_type_desc","min-width":"120"}),e(l,{label:"\u6765\u6E90\u5355\u53F7",prop:"source_sn","min-width":"100"}),e(l,{label:"\u8BB0\u5F55\u65F6\u95F4",prop:"create_time","min-width":"120"})]),_:1},8,["data"])),[[L,u(i).loading]]),m("div",ie,[e(k,{modelValue:u(i),"onUpdate:modelValue":n[4]||(n[4]=t=>Z(i)?i.value=t:null),onChange:u(_)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{We as default};
|
|
@ -1 +0,0 @@
|
||||||
import"./bind.vue_vue_type_script_setup_true_name_landEdit_lang.8306c976.js";import{_ as O}from"./bind.vue_vue_type_script_setup_true_name_landEdit_lang.8306c976.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./useDictOptions.8d220934.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.5f547370.js";import"./product.b8535e4b.js";export{O as default};
|
|
|
@ -1 +0,0 @@
|
||||||
import"./bind.vue_vue_type_script_setup_true_name_landEdit_lang.d3a4505a.js";import{_ as O}from"./bind.vue_vue_type_script_setup_true_name_landEdit_lang.d3a4505a.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./useDictOptions.8d220934.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.5f547370.js";import"./land.814edfce.js";export{O as default};
|
|
|
@ -0,0 +1 @@
|
||||||
|
import"./bind.vue_vue_type_script_setup_true_name_landEdit_lang.a163625d.js";import{_ as O}from"./bind.vue_vue_type_script_setup_true_name_landEdit_lang.a163625d.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./useDictOptions.82ca10d3.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.3e52675c.js";import"./product.e40fbdff.js";export{O as default};
|
|
@ -0,0 +1 @@
|
||||||
|
import"./bind.vue_vue_type_script_setup_true_name_landEdit_lang.b5af5da4.js";import{_ as O}from"./bind.vue_vue_type_script_setup_true_name_landEdit_lang.b5af5da4.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./useDictOptions.82ca10d3.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.3e52675c.js";import"./land.d2a5dbca.js";export{O as default};
|
|
@ -1 +1 @@
|
||||||
import{B as L,C as O,Q as P,R as S,D as T}from"./element-plus.5df6f736.js";import{u as j}from"./useDictOptions.8d220934.js";import{P as J}from"./index.5f547370.js";import{a as _,b as K}from"./product.b8535e4b.js";import"./lodash.33f675f2.js";import{d as F,s as v,r as B,b as N,_ as E,o as r,c as b,T as t,K as u,u as D,U as Q,a6 as z,J as G}from"./@vue.108c970a.js";const H={class:"edit-popup"},M=F({name:"landEdit"}),oe=F({...M,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(W,{expose:C,emit:c}){const p=v(),n=v(),m=B("add"),V=N(()=>m.value="\u7ED1\u5B9A\u8BBE\u5907"),l=E({id:"",name:"",device_id:""}),k=E({device_id:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED1\u5B9A\u8BBE\u5907",trigger:["blur"]}]}),w=async o=>{for(const e in l)o[e]!=null&&o[e]!=null&&(l[e]=o[e])},{optionsData:f}=j({device:{api:_}}),d=B(!1),g=async o=>{d.value=!0;const e=await _({name:o!=null?o:""});f.device=e,d.value=!1},y=async()=>{var e,s;await((e=p.value)==null?void 0:e.validate());const o={...l};await K(o),(s=n.value)==null||s.close(),c("success")},A=(o="add")=>{var e;m.value=o,(e=n.value)==null||e.open()},R=()=>{c("close")};return C({open:A,setFormData:w}),(o,e)=>{const s=L,i=O,h=P,x=S,I=T;return r(),b("div",H,[t(J,{ref_key:"popupRef",ref:n,title:D(V),async:!0,width:"650px",onConfirm:y,onClose:R},{default:u(()=>[t(I,{ref_key:"formRef",ref:p,model:l,"label-width":"120px",rules:k},{default:u(()=>[t(i,{label:"\u4EA7\u54C1ID",prop:"id"},{default:u(()=>[t(s,{modelValue:l.id,"onUpdate:modelValue":e[0]||(e[0]=a=>l.id=a),disabled:"",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1ID"},null,8,["modelValue"])]),_:1}),t(i,{label:"\u4EA7\u54C1\u540D\u79F0",prop:"name"},{default:u(()=>[t(s,{modelValue:l.name,"onUpdate:modelValue":e[1]||(e[1]=a=>l.name=a),disabled:"",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(i,{label:"\u7ED1\u5B9A\u8BBE\u5907",prop:"device_id"},{default:u(()=>[t(x,{modelValue:l.device_id,"onUpdate:modelValue":e[2]||(e[2]=a=>l.device_id=a),filterable:"",multiple:"",remote:"","reserve-keyword":"",placeholder:"\u8BF7\u8F93\u5165\u8BBE\u5907\u4FE1\u606F","remote-method":g,loading:d.value},{default:u(()=>[(r(!0),b(Q,null,z(D(f).device,(a,U)=>(r(),G(h,{key:U,label:a.deviceinfo,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title"])])}}});export{oe as _};
|
import{B as L,C as O,Q as P,R as S,D as T}from"./element-plus.7a22678c.js";import{u as j}from"./useDictOptions.82ca10d3.js";import{P as J}from"./index.3e52675c.js";import{a as _,b as K}from"./product.e40fbdff.js";import"./lodash.ec5da75f.js";import{d as F,s as v,r as B,b as N,_ as E,o as r,c as b,T as t,K as u,u as D,U as Q,a6 as z,J as G}from"./@vue.108c970a.js";const H={class:"edit-popup"},M=F({name:"landEdit"}),oe=F({...M,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(W,{expose:C,emit:c}){const p=v(),n=v(),m=B("add"),V=N(()=>m.value="\u7ED1\u5B9A\u8BBE\u5907"),l=E({id:"",name:"",device_id:""}),k=E({device_id:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED1\u5B9A\u8BBE\u5907",trigger:["blur"]}]}),w=async o=>{for(const e in l)o[e]!=null&&o[e]!=null&&(l[e]=o[e])},{optionsData:f}=j({device:{api:_}}),d=B(!1),g=async o=>{d.value=!0;const e=await _({name:o!=null?o:""});f.device=e,d.value=!1},y=async()=>{var e,s;await((e=p.value)==null?void 0:e.validate());const o={...l};await K(o),(s=n.value)==null||s.close(),c("success")},A=(o="add")=>{var e;m.value=o,(e=n.value)==null||e.open()},R=()=>{c("close")};return C({open:A,setFormData:w}),(o,e)=>{const s=L,i=O,h=P,x=S,I=T;return r(),b("div",H,[t(J,{ref_key:"popupRef",ref:n,title:D(V),async:!0,width:"650px",onConfirm:y,onClose:R},{default:u(()=>[t(I,{ref_key:"formRef",ref:p,model:l,"label-width":"120px",rules:k},{default:u(()=>[t(i,{label:"\u4EA7\u54C1ID",prop:"id"},{default:u(()=>[t(s,{modelValue:l.id,"onUpdate:modelValue":e[0]||(e[0]=a=>l.id=a),disabled:"",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1ID"},null,8,["modelValue"])]),_:1}),t(i,{label:"\u4EA7\u54C1\u540D\u79F0",prop:"name"},{default:u(()=>[t(s,{modelValue:l.name,"onUpdate:modelValue":e[1]||(e[1]=a=>l.name=a),disabled:"",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(i,{label:"\u7ED1\u5B9A\u8BBE\u5907",prop:"device_id"},{default:u(()=>[t(x,{modelValue:l.device_id,"onUpdate:modelValue":e[2]||(e[2]=a=>l.device_id=a),filterable:"",multiple:"",remote:"","reserve-keyword":"",placeholder:"\u8BF7\u8F93\u5165\u8BBE\u5907\u4FE1\u606F","remote-method":g,loading:d.value},{default:u(()=>[(r(!0),b(Q,null,z(D(f).device,(a,U)=>(r(),G(h,{key:U,label:a.deviceinfo,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title"])])}}});export{oe as _};
|
|
@ -1 +1 @@
|
||||||
import{B as L,C as U,Q as O,R as S,D as T}from"./element-plus.5df6f736.js";import{u as j}from"./useDictOptions.8d220934.js";import{P as J}from"./index.5f547370.js";import{a as _,b as K}from"./land.814edfce.js";import"./lodash.33f675f2.js";import{d as B,s as F,r as b,b as N,_ as E,o as p,c as v,T as u,K as a,u as D,U as Q,a6 as z,J as G}from"./@vue.108c970a.js";const H={class:"edit-popup"},M=B({name:"landEdit"}),te=B({...M,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(W,{expose:C,emit:c}){const i=F(),n=F(),m=b("add"),V=N(()=>m.value="\u7ED1\u5B9A\u4EA7\u54C1"),t=E({id:"",title:"",product_id:""}),g=E({product_id:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED1\u5B9A\u4EA7\u54C1",trigger:["blur"]}]}),k=async o=>{for(const e in t)o[e]!=null&&o[e]!=null&&(t[e]=o[e])},{optionsData:f}=j({product:{api:_}}),d=b(!1),w=async o=>{d.value=!0;const e=await _({name:o!=null?o:""});f.product=e,d.value=!1},y=async()=>{var e,s;await((e=i.value)==null?void 0:e.validate());const o={...t};await K(o),(s=n.value)==null||s.close(),c("success")},A=(o="add")=>{var e;m.value=o,(e=n.value)==null||e.open()},R=()=>{c("close")};return C({open:A,setFormData:k,setProduct:async o=>{console.log(o)}}),(o,e)=>{const s=L,r=U,h=O,P=S,x=T;return p(),v("div",H,[u(J,{ref_key:"popupRef",ref:n,title:D(V),async:!0,width:"650px",onConfirm:y,onClose:R},{default:a(()=>[u(x,{ref_key:"formRef",ref:i,model:t,"label-width":"120px",rules:g},{default:a(()=>[u(r,{label:"\u571F\u5730ID",prop:"id"},{default:a(()=>[u(s,{modelValue:t.id,"onUpdate:modelValue":e[0]||(e[0]=l=>t.id=l),disabled:"",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730ID"},null,8,["modelValue"])]),_:1}),u(r,{label:"\u571F\u5730\u540D\u79F0",prop:"title"},{default:a(()=>[u(s,{modelValue:t.title,"onUpdate:modelValue":e[1]||(e[1]=l=>t.title=l),disabled:"",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730\u540D\u79F0"},null,8,["modelValue"])]),_:1}),u(r,{label:"\u7ED1\u5B9A\u4EA7\u54C1",prop:"product_id"},{default:a(()=>[u(P,{modelValue:t.product_id,"onUpdate:modelValue":e[2]||(e[2]=l=>t.product_id=l),remote:"",filterable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1\u4FE1\u606F","remote-method":w,loading:d.value},{default:a(()=>[(p(!0),v(Q,null,z(D(f).product,(l,I)=>(p(),G(h,{key:I,label:l.productinfo,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title"])])}}});export{te as _};
|
import{B as L,C as U,Q as O,R as S,D as T}from"./element-plus.7a22678c.js";import{u as j}from"./useDictOptions.82ca10d3.js";import{P as J}from"./index.3e52675c.js";import{a as _,b as K}from"./land.d2a5dbca.js";import"./lodash.ec5da75f.js";import{d as B,s as F,r as b,b as N,_ as E,o as p,c as v,T as u,K as a,u as D,U as Q,a6 as z,J as G}from"./@vue.108c970a.js";const H={class:"edit-popup"},M=B({name:"landEdit"}),te=B({...M,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(W,{expose:C,emit:c}){const i=F(),n=F(),m=b("add"),V=N(()=>m.value="\u7ED1\u5B9A\u4EA7\u54C1"),t=E({id:"",title:"",product_id:""}),g=E({product_id:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED1\u5B9A\u4EA7\u54C1",trigger:["blur"]}]}),k=async o=>{for(const e in t)o[e]!=null&&o[e]!=null&&(t[e]=o[e])},{optionsData:f}=j({product:{api:_}}),d=b(!1),w=async o=>{d.value=!0;const e=await _({name:o!=null?o:""});f.product=e,d.value=!1},y=async()=>{var e,s;await((e=i.value)==null?void 0:e.validate());const o={...t};await K(o),(s=n.value)==null||s.close(),c("success")},A=(o="add")=>{var e;m.value=o,(e=n.value)==null||e.open()},R=()=>{c("close")};return C({open:A,setFormData:k,setProduct:async o=>{console.log(o)}}),(o,e)=>{const s=L,r=U,h=O,P=S,x=T;return p(),v("div",H,[u(J,{ref_key:"popupRef",ref:n,title:D(V),async:!0,width:"650px",onConfirm:y,onClose:R},{default:a(()=>[u(x,{ref_key:"formRef",ref:i,model:t,"label-width":"120px",rules:g},{default:a(()=>[u(r,{label:"\u571F\u5730ID",prop:"id"},{default:a(()=>[u(s,{modelValue:t.id,"onUpdate:modelValue":e[0]||(e[0]=l=>t.id=l),disabled:"",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730ID"},null,8,["modelValue"])]),_:1}),u(r,{label:"\u571F\u5730\u540D\u79F0",prop:"title"},{default:a(()=>[u(s,{modelValue:t.title,"onUpdate:modelValue":e[1]||(e[1]=l=>t.title=l),disabled:"",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u571F\u5730\u540D\u79F0"},null,8,["modelValue"])]),_:1}),u(r,{label:"\u7ED1\u5B9A\u4EA7\u54C1",prop:"product_id"},{default:a(()=>[u(P,{modelValue:t.product_id,"onUpdate:modelValue":e[2]||(e[2]=l=>t.product_id=l),remote:"",filterable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA7\u54C1\u4FE1\u606F","remote-method":w,loading:d.value},{default:a(()=>[(p(!0),v(Q,null,z(D(f).product,(l,I)=>(p(),G(h,{key:I,label:l.productinfo,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title"])])}}});export{te as _};
|
|
@ -1 +1 @@
|
||||||
import{K as s,I as c,L as l,w as _,M as d}from"./element-plus.5df6f736.js";import{s as F}from"./system.3931f2c5.js";import{f as B}from"./index.1f78e617.js";import{d as r,r as E,o as C,c as f,T as t,K as o,R as h}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const b={class:"cache"},D=h("\u6E05\u9664\u7CFB\u7EDF\u7F13\u5B58"),w=r({name:"cache"}),nt=r({...w,setup(A){const a=E([{content:"\u7CFB\u7EDF\u7F13\u5B58",desc:"\u7CFB\u7EDF\u8FD0\u884C\u8FC7\u7A0B\u4E2D\u4EA7\u751F\u7684\u5404\u7C7B\u7F13\u5B58\u6570\u636E"}]),i=async()=>{await B.confirm("\u786E\u8BA4\u6E05\u9664\u7CFB\u7EDF\u7F13\u5B58\uFF1F"),await F()};return(k,x)=>{const m=s,u=c,e=l,n=_,p=d;return C(),f("div",b,[t(u,{class:"!border-none",shadow:"never"},{default:o(()=>[t(m,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u7BA1\u7406\u7CFB\u7EDF\u8FD0\u884C\u8FC7\u7A0B\u4E2D\u4EA7\u751F\u7684\u7F13\u5B58",closable:!1,"show-icon":""})]),_:1}),t(u,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[t(p,{data:a.value,size:"large"},{default:o(()=>[t(e,{label:"\u7BA1\u7406\u5185\u5BB9",prop:"content","min-width":"130"}),t(e,{label:"\u5185\u5BB9\u8BF4\u660E",prop:"desc","min-width":"180"}),t(e,{label:"\u64CD\u4F5C",width:"130",fixed:"right"},{default:o(()=>[t(n,{type:"primary",link:"",onClick:i},{default:o(()=>[D]),_:1})]),_:1})]),_:1},8,["data"])]),_:1})])}}});export{nt as default};
|
import{K as s,I as c,L as l,w as _,M as d}from"./element-plus.7a22678c.js";import{s as F}from"./system.d0a4a311.js";import{f as B}from"./index.5f377089.js";import{d as r,r as E,o as C,c as f,T as t,K as o,R as h}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const b={class:"cache"},D=h("\u6E05\u9664\u7CFB\u7EDF\u7F13\u5B58"),w=r({name:"cache"}),nt=r({...w,setup(A){const a=E([{content:"\u7CFB\u7EDF\u7F13\u5B58",desc:"\u7CFB\u7EDF\u8FD0\u884C\u8FC7\u7A0B\u4E2D\u4EA7\u751F\u7684\u5404\u7C7B\u7F13\u5B58\u6570\u636E"}]),i=async()=>{await B.confirm("\u786E\u8BA4\u6E05\u9664\u7CFB\u7EDF\u7F13\u5B58\uFF1F"),await F()};return(k,x)=>{const m=s,u=c,e=l,n=_,p=d;return C(),f("div",b,[t(u,{class:"!border-none",shadow:"never"},{default:o(()=>[t(m,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u7BA1\u7406\u7CFB\u7EDF\u8FD0\u884C\u8FC7\u7A0B\u4E2D\u4EA7\u751F\u7684\u7F13\u5B58",closable:!1,"show-icon":""})]),_:1}),t(u,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[t(p,{data:a.value,size:"large"},{default:o(()=>[t(e,{label:"\u7BA1\u7406\u5185\u5BB9",prop:"content","min-width":"130"}),t(e,{label:"\u5185\u5BB9\u8BF4\u660E",prop:"desc","min-width":"180"}),t(e,{label:"\u64CD\u4F5C",width:"130",fixed:"right"},{default:o(()=>[t(n,{type:"primary",link:"",onClick:i},{default:o(()=>[D]),_:1})]),_:1})]),_:1},8,["data"])]),_:1})])}}});export{nt as default};
|
|
@ -1,4 +1,4 @@
|
||||||
import{c as $,g as B}from"./axios.c2a2014a.js";var R={exports:{}};/*!
|
import{c as $,g as B}from"./axios.eb055ccc.js";var R={exports:{}};/*!
|
||||||
* clipboard.js v2.0.11
|
* clipboard.js v2.0.11
|
||||||
* https://clipboardjs.com/
|
* https://clipboardjs.com/
|
||||||
*
|
*
|
|
@ -0,0 +1 @@
|
||||||
|
import"./code-preview.vue_vue_type_script_setup_true_lang.96755359.js";import{_ as L}from"./code-preview.vue_vue_type_script_setup_true_lang.96755359.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";export{L as default};
|
|
@ -1 +0,0 @@
|
||||||
import"./code-preview.vue_vue_type_script_setup_true_lang.6557b3c9.js";import{_ as L}from"./code-preview.vue_vue_type_script_setup_true_lang.6557b3c9.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";export{L as default};
|
|
|
@ -1 +1 @@
|
||||||
import{E as x,y as k,J as w,w as B,x as D}from"./element-plus.5df6f736.js";import{f as r,b as T}from"./index.1f78e617.js";import{u as j}from"./vue-clipboard3.dc900a40.js";import{d as N,r as U,b as $,a3 as F,o as s,c as m,T as o,K as t,U as J,a6 as R,u as S,j as K,J as L,a as i,R as P}from"./@vue.108c970a.js";const q={class:"code-preview"},z={class:"flex",style:{height:"50vh"}},A=P(" \u590D\u5236 "),Q=N({__name:"code-preview",props:{modelValue:{type:Boolean},code:null},emits:["update:modelValue"],setup(c,{emit:p}){const _=c,{toClipboard:f}=j(),u=U("index0"),b=async l=>{try{await f(l),r.msgSuccess("\u590D\u5236\u6210\u529F")}catch{r.msgError("\u590D\u5236\u5931\u8D25")}},n=$({get(){return _.modelValue},set(l){p("update:modelValue",l)}});return(l,a)=>{const h=F("highlightjs"),V=x,v=T,g=B,y=D,C=k,E=w;return s(),m("div",q,[o(E,{modelValue:S(n),"onUpdate:modelValue":a[1]||(a[1]=e=>K(n)?n.value=e:null),width:"900px",title:"\u4EE3\u7801\u9884\u89C8"},{default:t(()=>[o(C,{modelValue:u.value,"onUpdate:modelValue":a[0]||(a[0]=e=>u.value=e)},{default:t(()=>[(s(!0),m(J,null,R(c.code,(e,d)=>(s(),L(y,{label:e.name,name:`index${d}`,key:d},{default:t(()=>[i("div",z,[o(V,{class:"flex-1"},{default:t(()=>[o(h,{autodetect:"",code:e.content},null,8,["code"])]),_:2},1024),i("div",null,[o(g,{onClick:G=>b(e.content),type:"primary",link:""},{icon:t(()=>[o(v,{name:"el-icon-CopyDocument"})]),default:t(()=>[A]),_:2},1032,["onClick"])])])]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}});export{Q as _};
|
import{E as x,y as k,J as w,w as B,x as D}from"./element-plus.7a22678c.js";import{f as r,b as T}from"./index.5f377089.js";import{u as j}from"./vue-clipboard3.be0dfeee.js";import{d as N,r as U,b as $,a3 as F,o as s,c as m,T as o,K as t,U as J,a6 as R,u as S,j as K,J as L,a as i,R as P}from"./@vue.108c970a.js";const q={class:"code-preview"},z={class:"flex",style:{height:"50vh"}},A=P(" \u590D\u5236 "),Q=N({__name:"code-preview",props:{modelValue:{type:Boolean},code:null},emits:["update:modelValue"],setup(c,{emit:p}){const _=c,{toClipboard:f}=j(),u=U("index0"),b=async l=>{try{await f(l),r.msgSuccess("\u590D\u5236\u6210\u529F")}catch{r.msgError("\u590D\u5236\u5931\u8D25")}},n=$({get(){return _.modelValue},set(l){p("update:modelValue",l)}});return(l,a)=>{const h=F("highlightjs"),V=x,v=T,g=B,y=D,C=k,E=w;return s(),m("div",q,[o(E,{modelValue:S(n),"onUpdate:modelValue":a[1]||(a[1]=e=>K(n)?n.value=e:null),width:"900px",title:"\u4EE3\u7801\u9884\u89C8"},{default:t(()=>[o(C,{modelValue:u.value,"onUpdate:modelValue":a[0]||(a[0]=e=>u.value=e)},{default:t(()=>[(s(!0),m(J,null,R(c.code,(e,d)=>(s(),L(y,{label:e.name,name:`index${d}`,key:d},{default:t(()=>[i("div",z,[o(V,{class:"flex-1"},{default:t(()=>[o(h,{autodetect:"",code:e.content},null,8,["code"])]),_:2},1024),i("div",null,[o(g,{onClick:G=>b(e.content),type:"primary",link:""},{icon:t(()=>[o(v,{name:"el-icon-CopyDocument"})]),default:t(()=>[A]),_:2},1032,["onClick"])])])]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}});export{Q as _};
|
|
@ -1 +1 @@
|
||||||
import{r as t}from"./index.1f78e617.js";function o(e){return t.get({url:"/tools.generator/generateTable",params:e})}function n(e){return t.get({url:"/tools.generator/dataTable",params:e})}function a(e){return t.post({url:"/tools.generator/selectTable",params:e})}function l(e){return t.get({url:"/tools.generator/detail",params:e})}function s(e){return t.post({url:"/tools.generator/syncColumn",params:e})}function u(e){return t.post({url:"/tools.generator/delete",params:e})}function g(e){return t.post({url:"/tools.generator/edit",params:e})}function i(e){return t.post({url:"/tools.generator/preview",params:e})}function c(e){return t.post({url:"/tools.generator/generate",params:e})}function f(){return t.get({url:"/tools.generator/getModels"})}export{f as a,o as b,u as c,i as d,c as e,n as f,g,a as h,s,l as t};
|
import{r as t}from"./index.5f377089.js";function o(e){return t.get({url:"/tools.generator/generateTable",params:e})}function n(e){return t.get({url:"/tools.generator/dataTable",params:e})}function a(e){return t.post({url:"/tools.generator/selectTable",params:e})}function l(e){return t.get({url:"/tools.generator/detail",params:e})}function s(e){return t.post({url:"/tools.generator/syncColumn",params:e})}function u(e){return t.post({url:"/tools.generator/delete",params:e})}function g(e){return t.post({url:"/tools.generator/edit",params:e})}function i(e){return t.post({url:"/tools.generator/preview",params:e})}function c(e){return t.post({url:"/tools.generator/generate",params:e})}function f(){return t.get({url:"/tools.generator/getModels"})}export{f as a,o as b,u as c,i as d,c as e,n as f,g,a as h,s,l as t};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
import{r}from"./index.5f377089.js";function u(e){return r.get({url:"/user.user/lists",params:e},{ignoreCancelToken:!0})}function s(e){return r.get({url:"/user.user/detail",params:e})}function n(e){return r.post({url:"/user.user/edit",params:e})}function o(e){return r.post({url:"/user.user/adjustMoney",params:e})}export{o as a,u as b,s as g,n as u};
|
|
@ -1 +0,0 @@
|
||||||
import{r as e}from"./index.1f78e617.js";function s(r){return e.get({url:"/user.user/lists",params:r},{ignoreCancelToken:!0})}function t(r){return e.get({url:"/user.user/detail",params:r})}function n(r){return e.post({url:"/user.user/edit",params:r})}function o(r){return e.post({url:"/user.user/adjustMoney",params:r})}function a(r){return e.post({url:"/user.user/add",params:r})}export{o as a,s as b,a as c,t as g,n as u};
|
|
|
@ -0,0 +1 @@
|
||||||
|
import"./content.vue_vue_type_script_setup_true_lang.a42b5145.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.a42b5145.js";import"./decoration-img.8aa092f0.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";export{M as default};
|
|
@ -1 +1 @@
|
||||||
import{b as x,d as _}from"./index.1f78e617.js";import c from"./decoration-img.be977d66.js";import{d as u,o as t,c as e,a as r,S as s,Q as p,U as a,a6 as l,T as m}from"./@vue.108c970a.js";import"./element-plus.5df6f736.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const f={class:"my-service"},h={key:0,class:"title px-[15px] py-[10px]"},y={key:1,class:"flex flex-wrap pt-[20px] pb-[10px]"},v={class:"mt-[7px]"},b={key:2},g={class:"ml-[10px] flex-1"},k=u({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(o){return(w,B)=>{const d=x;return t(),e("div",f,[o.content.title?(t(),e("div",h,[r("div",null,s(o.content.title),1)])):p("",!0),o.content.style==1?(t(),e("div",y,[(t(!0),e(a,null,l(o.content.data,(i,n)=>(t(),e("div",{key:n,class:"flex flex-col items-center w-1/4 mb-[15px]"},[m(c,{width:"26px",height:"26px",src:i.image,alt:""},null,8,["src"]),r("div",v,s(i.name),1)]))),128))])):p("",!0),o.content.style==2?(t(),e("div",b,[(t(!0),e(a,null,l(o.content.data,(i,n)=>(t(),e("div",{key:n,class:"flex items-center border-b border-[#e5e5e5] h-[50px] px-[12px]"},[m(c,{width:"24px",height:"24px",src:i.image,alt:""},null,8,["src"]),r("div",g,s(i.name),1),r("div",null,[m(d,{name:"el-icon-ArrowRight"})])]))),128))])):p("",!0)])}}});const st=_(k,[["__scopeId","data-v-26886ebe"]]);export{st as default};
|
import{b as x,d as _}from"./index.5f377089.js";import c from"./decoration-img.8aa092f0.js";import{d as u,o as t,c as e,a as r,S as s,Q as p,U as a,a6 as l,T as m}from"./@vue.108c970a.js";import"./element-plus.7a22678c.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const f={class:"my-service"},h={key:0,class:"title px-[15px] py-[10px]"},y={key:1,class:"flex flex-wrap pt-[20px] pb-[10px]"},v={class:"mt-[7px]"},b={key:2},g={class:"ml-[10px] flex-1"},k=u({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(o){return(w,B)=>{const d=x;return t(),e("div",f,[o.content.title?(t(),e("div",h,[r("div",null,s(o.content.title),1)])):p("",!0),o.content.style==1?(t(),e("div",y,[(t(!0),e(a,null,l(o.content.data,(i,n)=>(t(),e("div",{key:n,class:"flex flex-col items-center w-1/4 mb-[15px]"},[m(c,{width:"26px",height:"26px",src:i.image,alt:""},null,8,["src"]),r("div",v,s(i.name),1)]))),128))])):p("",!0),o.content.style==2?(t(),e("div",b,[(t(!0),e(a,null,l(o.content.data,(i,n)=>(t(),e("div",{key:n,class:"flex items-center border-b border-[#e5e5e5] h-[50px] px-[12px]"},[m(c,{width:"24px",height:"24px",src:i.image,alt:""},null,8,["src"]),r("div",g,s(i.name),1),r("div",null,[m(d,{name:"el-icon-ArrowRight"})])]))),128))])):p("",!0)])}}});const st=_(k,[["__scopeId","data-v-26886ebe"]]);export{st as default};
|
|
@ -0,0 +1 @@
|
||||||
|
import"./content.vue_vue_type_script_setup_true_lang.47d3879e.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.47d3879e.js";import"./decoration-img.8aa092f0.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";export{M as default};
|
|
@ -1 +1 @@
|
||||||
import{d as r,b as i}from"./index.1f78e617.js";import{o as e,c as m,a as t,T as c,b7 as s,b6 as a}from"./@vue.108c970a.js";import"./element-plus.5df6f736.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const _={},n=o=>(s("data-v-3514bdd8"),o=o(),a(),o),d={class:"search"},l={class:"search-con flex items-center px-[15px]"},f=n(()=>t("span",{class:"ml-[5px]"},"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",-1));function h(o,x){const p=i;return e(),m("div",d,[t("div",l,[c(p,{name:"el-icon-Search",size:17}),f])])}const X=r(_,[["render",h],["__scopeId","data-v-3514bdd8"]]);export{X as default};
|
import{d as r,b as i}from"./index.5f377089.js";import{o as e,c as m,a as t,T as c,b7 as s,b6 as a}from"./@vue.108c970a.js";import"./element-plus.7a22678c.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const _={},n=o=>(s("data-v-3514bdd8"),o=o(),a(),o),d={class:"search"},l={class:"search-con flex items-center px-[15px]"},f=n(()=>t("span",{class:"ml-[5px]"},"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",-1));function h(o,x){const p=i;return e(),m("div",d,[t("div",l,[c(p,{name:"el-icon-Search",size:17}),f])])}const X=r(_,[["render",h],["__scopeId","data-v-3514bdd8"]]);export{X as default};
|
|
@ -1 +0,0 @@
|
||||||
import"./content.vue_vue_type_script_setup_true_lang.52ced7fa.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.52ced7fa.js";import"./decoration-img.be977d66.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";export{M as default};
|
|
|
@ -1 +1 @@
|
||||||
import i from"./decoration-img.be977d66.js";import{d as p,o as r,c as m,T as c,a as o,S as e,b7 as s,b6 as n}from"./@vue.108c970a.js";import{d as a}from"./index.1f78e617.js";import"./element-plus.5df6f736.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const d=t=>(s("data-v-2cdedb7a"),t=t(),n(),t),u={class:"customer-service"},_={class:"text-[15px] mt-[7px] font-medium"},l={class:"text-[#666] mt-[20px]"},x={class:"text-[#666] mt-[7px]"},f=d(()=>o("div",{class:"text-white text-[16px] rounded-[42px] bg-[#4173FF] w-full h-[42px] flex justify-center items-center mt-[50px]"}," \u4FDD\u5B58\u4E8C\u7EF4\u7801\u56FE\u7247 ",-1)),h=p({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){return(F,v)=>(r(),m("div",u,[c(i,{width:"140px",height:"140px",src:t.content.qrcode,alt:""},null,8,["src"]),o("div",_,e(t.content.title),1),o("div",l,"\u670D\u52A1\u65F6\u95F4\uFF1A"+e(t.content.time),1),o("div",x,"\u5BA2\u670D\u7535\u8BDD\uFF1A"+e(t.content.mobile),1),f]))}});const ot=a(h,[["__scopeId","data-v-2cdedb7a"]]);export{ot as default};
|
import i from"./decoration-img.8aa092f0.js";import{d as p,o as r,c as m,T as c,a as o,S as e,b7 as s,b6 as n}from"./@vue.108c970a.js";import{d as a}from"./index.5f377089.js";import"./element-plus.7a22678c.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const d=t=>(s("data-v-2cdedb7a"),t=t(),n(),t),u={class:"customer-service"},_={class:"text-[15px] mt-[7px] font-medium"},l={class:"text-[#666] mt-[20px]"},x={class:"text-[#666] mt-[7px]"},f=d(()=>o("div",{class:"text-white text-[16px] rounded-[42px] bg-[#4173FF] w-full h-[42px] flex justify-center items-center mt-[50px]"}," \u4FDD\u5B58\u4E8C\u7EF4\u7801\u56FE\u7247 ",-1)),h=p({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){return(F,v)=>(r(),m("div",u,[c(i,{width:"140px",height:"140px",src:t.content.qrcode,alt:""},null,8,["src"]),o("div",_,e(t.content.title),1),o("div",l,"\u670D\u52A1\u65F6\u95F4\uFF1A"+e(t.content.time),1),o("div",x,"\u5BA2\u670D\u7535\u8BDD\uFF1A"+e(t.content.mobile),1),f]))}});const ot=a(h,[["__scopeId","data-v-2cdedb7a"]]);export{ot as default};
|
|
@ -1 +0,0 @@
|
||||||
import"./content.vue_vue_type_script_setup_true_lang.a14319ca.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.a14319ca.js";import"./decoration-img.be977d66.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";export{M as default};
|
|
|
@ -1 +0,0 @@
|
||||||
import"./content.vue_vue_type_script_setup_true_lang.e2fc3e26.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.e2fc3e26.js";import"./decoration-img.be977d66.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";export{M as default};
|
|
|
@ -1 +1 @@
|
||||||
import{b as n,d as m}from"./index.1f78e617.js";import{g as d}from"./decoration.025d06d7.js";import{d as l,r as _,o as s,c as i,U as x,a6 as f,a as t,Q as u,S as c,T as v,b7 as b,b6 as h}from"./@vue.108c970a.js";import"./element-plus.5df6f736.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const y=o=>(b("data-v-18ea8db2"),o=o(),h(),o),w={class:"news"},g=y(()=>t("div",{class:"flex items-center news-title mx-[10px] my-[15px] text-[17px] font-medium"}," \u6700\u65B0\u8D44\u8BAF ",-1)),j={key:0,class:"mr-[10px]"},k=["src"],B={class:"flex flex-col justify-between flex-1"},D={class:"text-[15px] font-medium line-clamp-2"},S={class:"line-clamp-1 text-sm mt-[8px]"},I={class:"text-[#999] text-xs w-full flex justify-between mt-[8px]"},V={class:"flex items-center"},N={class:"ml-[5px]"},A=l({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(o){const p=_([]);return(async()=>{const r=await d({limit:10});p.value=r})(),(r,F)=>{const a=n;return s(),i("div",w,[g,(s(!0),i(x,null,f(p.value,e=>(s(),i("div",{key:e.id,class:"news-card flex bg-white px-[10px] py-[16px] text-[#333] border-[#f2f2f2] border-b"},[e.image?(s(),i("div",j,[t("img",{src:e.image,class:"w-[120px] h-[90px] object-contain"},null,8,k)])):u("",!0),t("div",B,[t("div",D,c(e.title),1),t("div",S,c(e.desc),1),t("div",I,[t("div",null,c(e.create_time),1),t("div",V,[v(a,{name:"el-icon-View"}),t("div",N,c(e.click),1)])])])]))),128))])}}});const ft=m(A,[["__scopeId","data-v-18ea8db2"]]);export{ft as default};
|
import{b as n,d as m}from"./index.5f377089.js";import{g as d}from"./decoration.9022c4ae.js";import{d as l,r as _,o as s,c as i,U as x,a6 as f,a as t,Q as u,S as c,T as v,b7 as b,b6 as h}from"./@vue.108c970a.js";import"./element-plus.7a22678c.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const y=o=>(b("data-v-18ea8db2"),o=o(),h(),o),w={class:"news"},g=y(()=>t("div",{class:"flex items-center news-title mx-[10px] my-[15px] text-[17px] font-medium"}," \u6700\u65B0\u8D44\u8BAF ",-1)),j={key:0,class:"mr-[10px]"},k=["src"],B={class:"flex flex-col justify-between flex-1"},D={class:"text-[15px] font-medium line-clamp-2"},S={class:"line-clamp-1 text-sm mt-[8px]"},I={class:"text-[#999] text-xs w-full flex justify-between mt-[8px]"},V={class:"flex items-center"},N={class:"ml-[5px]"},A=l({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(o){const p=_([]);return(async()=>{const r=await d({limit:10});p.value=r})(),(r,F)=>{const a=n;return s(),i("div",w,[g,(s(!0),i(x,null,f(p.value,e=>(s(),i("div",{key:e.id,class:"news-card flex bg-white px-[10px] py-[16px] text-[#333] border-[#f2f2f2] border-b"},[e.image?(s(),i("div",j,[t("img",{src:e.image,class:"w-[120px] h-[90px] object-contain"},null,8,k)])):u("",!0),t("div",B,[t("div",D,c(e.title),1),t("div",S,c(e.desc),1),t("div",I,[t("div",null,c(e.create_time),1),t("div",V,[v(a,{name:"el-icon-View"}),t("div",N,c(e.click),1)])])])]))),128))])}}});const ft=m(A,[["__scopeId","data-v-18ea8db2"]]);export{ft as default};
|
|
@ -1 +1 @@
|
||||||
import{d as r}from"./index.1f78e617.js";import{o as i,c as e,b7 as m,b6 as s,a as o}from"./@vue.108c970a.js";import"./element-plus.5df6f736.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const c="/admin/assets/default_avatar.fa19527b.png";const _={},p=t=>(m("data-v-4b1b613f"),t=t(),s(),t),a={class:"user-info flex items-center px-[25px]"},n=p(()=>o("img",{src:c,class:"w-[60px] h-[60px]",alt:""},null,-1)),d=p(()=>o("div",{class:"text-white text-[18px] ml-[10px]"},"\u672A\u767B\u5F55",-1)),l=[n,d];function f(t,x){return i(),e("div",a,l)}const X=r(_,[["render",f],["__scopeId","data-v-4b1b613f"]]);export{X as default};
|
import{d as r}from"./index.5f377089.js";import{o as i,c as e,b7 as m,b6 as s,a as o}from"./@vue.108c970a.js";import"./element-plus.7a22678c.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const c="/admin/assets/default_avatar.fa19527b.png";const _={},p=t=>(m("data-v-4b1b613f"),t=t(),s(),t),a={class:"user-info flex items-center px-[25px]"},n=p(()=>o("img",{src:c,class:"w-[60px] h-[60px]",alt:""},null,-1)),d=p(()=>o("div",{class:"text-white text-[18px] ml-[10px]"},"\u672A\u767B\u5F55",-1)),l=[n,d];function f(t,x){return i(),e("div",a,l)}const X=r(_,[["render",f],["__scopeId","data-v-4b1b613f"]]);export{X as default};
|
|
@ -0,0 +1 @@
|
||||||
|
import"./content.vue_vue_type_script_setup_true_lang.653e69c3.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.653e69c3.js";import"./decoration-img.8aa092f0.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";export{M as default};
|
|
@ -1 +1 @@
|
||||||
import o from"./decoration-img.be977d66.js";import{d as r,o as e,c as t,a,U as l,a6 as p,T as i,S as d}from"./@vue.108c970a.js";const m={class:"nav bg-white pt-[15px] pb-[8px]"},_={class:"flex flex-wrap"},x={class:"mt-[7px]"},b=r({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(n){return(f,u)=>(e(),t("div",m,[a("div",_,[(e(!0),t(l,null,p(n.content.data,(s,c)=>(e(),t("div",{key:c,class:"flex flex-col items-center w-1/5 mb-[15px]"},[i(o,{width:"41px",height:"41px",src:s.image,alt:""},null,8,["src"]),a("div",x,d(s.name),1)]))),128))])]))}});export{b as _};
|
import o from"./decoration-img.8aa092f0.js";import{d as r,o as e,c as t,a,U as l,a6 as p,T as i,S as d}from"./@vue.108c970a.js";const m={class:"nav bg-white pt-[15px] pb-[8px]"},_={class:"flex flex-wrap"},x={class:"mt-[7px]"},b=r({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(n){return(f,u)=>(e(),t("div",m,[a("div",_,[(e(!0),t(l,null,p(n.content.data,(s,c)=>(e(),t("div",{key:c,class:"flex flex-col items-center w-1/5 mb-[15px]"},[i(o,{width:"41px",height:"41px",src:s.image,alt:""},null,8,["src"]),a("div",x,d(s.name),1)]))),128))])]))}});export{b as _};
|
|
@ -1 +1 @@
|
||||||
import o from"./decoration-img.be977d66.js";import{d as s,b as c,o as r,c as i,a as p,T as m,u as d}from"./@vue.108c970a.js";const u={class:"banner mx-[10px] mt-[10px]"},_={class:"banner-image"},h=s({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){const n=t,a=c(()=>{const{data:e}=n.content;return Array.isArray(e)&&e[0]?e[0].image:""});return(e,l)=>(r(),i("div",u,[p("div",_,[m(o,{width:"100%",height:"100px",src:d(a),fit:"contain"},null,8,["src"])])]))}});export{h as _};
|
import o from"./decoration-img.8aa092f0.js";import{d as s,b as c,o as r,c as i,a as p,T as m,u as d}from"./@vue.108c970a.js";const u={class:"banner mx-[10px] mt-[10px]"},_={class:"banner-image"},h=s({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){const n=t,a=c(()=>{const{data:e}=n.content;return Array.isArray(e)&&e[0]?e[0].image:""});return(e,l)=>(r(),i("div",u,[p("div",_,[m(o,{width:"100%",height:"100px",src:d(a),fit:"contain"},null,8,["src"])])]))}});export{h as _};
|
|
@ -1 +1 @@
|
||||||
import s from"./decoration-img.be977d66.js";import{d as c,b as r,o,c as i,a as l,T as h,u as m,Z as u}from"./@vue.108c970a.js";const d={class:"banner-image w-full h-full"},p=c({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},height:{type:String,default:"170px"}},setup(e){const a=e,n=r(()=>{const{data:t}=a.content;return Array.isArray(t)&&t[0]?t[0].image:""});return(t,f)=>(o(),i("div",{class:"banner",style:u(e.styles)},[l("div",d,[h(s,{width:"100%",height:e.styles.height||e.height,src:m(n),fit:"contain"},null,8,["height","src"])])],4))}});export{p as _};
|
import s from"./decoration-img.8aa092f0.js";import{d as c,b as r,o,c as i,a as l,T as h,u as m,Z as u}from"./@vue.108c970a.js";const d={class:"banner-image w-full h-full"},p=c({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},height:{type:String,default:"170px"}},setup(e){const a=e,n=r(()=>{const{data:t}=a.content;return Array.isArray(t)&&t[0]?t[0].image:""});return(t,f)=>(o(),i("div",{class:"banner",style:u(e.styles)},[l("div",d,[h(s,{width:"100%",height:e.styles.height||e.height,src:m(n),fit:"contain"},null,8,["height","src"])])],4))}});export{p as _};
|
|
@ -1 +1 @@
|
||||||
import{c as p}from"./color.da05fa89.js";import{b as k}from"./balanced-match.d2a36341.js";import{b as $}from"./debug.1c707d7b.js";var M={},g=k,s=$.exports("css-color-function:parse"),E=A;function A(e){typeof e!="string"&&(e=e.toString()),s("string %s",e);function f(n){var a=n.exec(e);if(!!a)return e=e.slice(a[0].length),a.slice(1)}function c(){f(/^\s+/)}function o(){var n=f(/^\)/);if(!!n)return s("rparen"),n}function h(){var n=f(/^([\+\-\*])/);if(!!n){var a={};return a.type="modifier",a.value=n[0],s("modifier %o",a),a}}function v(){var n=f(/^([^\)\s]+)/);if(!!n){var a={};return a.type="number",a.value=n[0],s("number %o",a),a}}function t(){for(var n=[],a;a=h()||u()||v();)n.push(a),c();return s("args %o",n),n}function r(){var n=f(/^(\w+)\(/);if(!!n){c();var a={};return a.type="function",a.name=n[0],a.arguments=t(),o(),s("adjuster %o",a),a}}function i(){var n={};n.type="color";var a=f(/([^\)\s]+)/)[0];if(a.indexOf("(")!=-1){var l=f(/([^\)]*?\))/)[0];a=a+l}return n.value=a,c(),n}function u(){if(!!e.match(/^color\(/)){var n=g("(",")",e);if(!n)throw new SyntaxError("Missing closing parenthese for '"+e+"'");if(n.body==="")throw new SyntaxError("color() function cannot be empty");e=n.body,c();var a={};a.type="function",a.name="color",a.arguments=[u()||i()],s("function arguments %o",a.arguments);for(var l;l=r();)a.arguments.push(l),c();return e=n.post,c(),s("function %o",a),a}}return u()}var S={};(function(e){var f=p;e.red=c("red"),e.blue=c("blue"),e.green=c("green"),e.alpha=e.a=c("alpha"),e.rgb=function(){},e.hue=e.h=o("hue"),e.saturation=e.s=o("saturation"),e.lightness=e.l=o("lightness"),e.whiteness=e.w=o("whiteness"),e.blackness=e.b=o("blackness"),e.blend=function(t,r){var i=t.alpha();t.alpha(1);var u=new f(r[0].value),n=1-parseInt(r[1].value,10)/100;t.mix(u,n).alpha(i)},e.tint=function(t,r){r.unshift({type:"argument",value:"white"}),e.blend(t,r)},e.shade=function(t,r){r.unshift({type:"argument",value:"black"}),e.blend(t,r)},e.contrast=function(t,r){r.length==0&&r.push({type:"argument",value:"100%"});var i=1-parseInt(r[0].value,10)/100,u=t.luminosity()<.5?new f({h:t.hue(),w:100,b:0}):new f({h:t.hue(),w:0,b:100}),n=u,a=4.5;if(t.contrast(u)>a){var n=v(a,t,u),l=n.alpha();n.alpha(1),n.mix(u,i).alpha(l)}t.hwb(n.hwb())};function c(t){return function(r,i){var u;i[0].type=="modifier"&&(u=i.shift().value);var n=i[0].value;n.indexOf("%")!=-1?(n=parseInt(n,10)/100,u?u!="*"&&(n=r[t]()*n):n=n*(t=="alpha"?1:255)):n=Number(n),r[t](h(r[t](),n,u))}}function o(t){return function(r,i){var u;i[0].type=="modifier"&&(u=i.shift().value);var n=parseFloat(i[0].value,10);r[t](h(r[t](),n,u))}}function h(t,r,i){switch(i){case"+":return t+r;case"-":return t-r;case"*":return t*r;default:return r}}function v(t,r,i){r.hue();for(var u=r.clone(),n=r.whiteness(),a=r.blackness(),l=i.whiteness(),m=i.blackness();Math.abs(n-l)>1||Math.abs(a-m)>1;){var b=Math.round((l+n)/2),w=Math.round((m+a)/2);u.whiteness(b),u.blackness(w),u.contrast(r)>t?(l=b,m=w):(n=b,a=w)}return u}})(S);var C=k,I=p,O=E,y=S,R=j;function j(e){var f=e.indexOf("color(");if(f==-1)return e;if(e=e.slice(f),e=C("(",")",e),!e)throw new SyntaxError("Missing closing parenthese for '"+e+"'");var c=O("color("+e.body+")");return d(c)+j(e.post)}function d(e){var f=new I(e.arguments[0].type=="function"?d(e.arguments[0]):e.arguments[0].value),c=e.arguments.slice(1);return c.forEach(function(o){var h=o.name;if(!y[h])throw new Error("Unknown <color-adjuster> '"+h+"'");o.arguments.forEach(function(v){v.type=="function"&&v.name=="color"&&(v.value=d(v),v.type="color",delete v.name)}),y[h](f,o.arguments)}),f.rgbString()}var B=R,_=E;M.convert=B;M.parse=_;export{M as l};
|
import{c as p}from"./color.b6d632a4.js";import{b as k}from"./balanced-match.d2a36341.js";import{b as $}from"./debug.3a33898e.js";var M={},g=k,s=$.exports("css-color-function:parse"),E=A;function A(e){typeof e!="string"&&(e=e.toString()),s("string %s",e);function f(n){var a=n.exec(e);if(!!a)return e=e.slice(a[0].length),a.slice(1)}function c(){f(/^\s+/)}function o(){var n=f(/^\)/);if(!!n)return s("rparen"),n}function h(){var n=f(/^([\+\-\*])/);if(!!n){var a={};return a.type="modifier",a.value=n[0],s("modifier %o",a),a}}function v(){var n=f(/^([^\)\s]+)/);if(!!n){var a={};return a.type="number",a.value=n[0],s("number %o",a),a}}function t(){for(var n=[],a;a=h()||u()||v();)n.push(a),c();return s("args %o",n),n}function r(){var n=f(/^(\w+)\(/);if(!!n){c();var a={};return a.type="function",a.name=n[0],a.arguments=t(),o(),s("adjuster %o",a),a}}function i(){var n={};n.type="color";var a=f(/([^\)\s]+)/)[0];if(a.indexOf("(")!=-1){var l=f(/([^\)]*?\))/)[0];a=a+l}return n.value=a,c(),n}function u(){if(!!e.match(/^color\(/)){var n=g("(",")",e);if(!n)throw new SyntaxError("Missing closing parenthese for '"+e+"'");if(n.body==="")throw new SyntaxError("color() function cannot be empty");e=n.body,c();var a={};a.type="function",a.name="color",a.arguments=[u()||i()],s("function arguments %o",a.arguments);for(var l;l=r();)a.arguments.push(l),c();return e=n.post,c(),s("function %o",a),a}}return u()}var S={};(function(e){var f=p;e.red=c("red"),e.blue=c("blue"),e.green=c("green"),e.alpha=e.a=c("alpha"),e.rgb=function(){},e.hue=e.h=o("hue"),e.saturation=e.s=o("saturation"),e.lightness=e.l=o("lightness"),e.whiteness=e.w=o("whiteness"),e.blackness=e.b=o("blackness"),e.blend=function(t,r){var i=t.alpha();t.alpha(1);var u=new f(r[0].value),n=1-parseInt(r[1].value,10)/100;t.mix(u,n).alpha(i)},e.tint=function(t,r){r.unshift({type:"argument",value:"white"}),e.blend(t,r)},e.shade=function(t,r){r.unshift({type:"argument",value:"black"}),e.blend(t,r)},e.contrast=function(t,r){r.length==0&&r.push({type:"argument",value:"100%"});var i=1-parseInt(r[0].value,10)/100,u=t.luminosity()<.5?new f({h:t.hue(),w:100,b:0}):new f({h:t.hue(),w:0,b:100}),n=u,a=4.5;if(t.contrast(u)>a){var n=v(a,t,u),l=n.alpha();n.alpha(1),n.mix(u,i).alpha(l)}t.hwb(n.hwb())};function c(t){return function(r,i){var u;i[0].type=="modifier"&&(u=i.shift().value);var n=i[0].value;n.indexOf("%")!=-1?(n=parseInt(n,10)/100,u?u!="*"&&(n=r[t]()*n):n=n*(t=="alpha"?1:255)):n=Number(n),r[t](h(r[t](),n,u))}}function o(t){return function(r,i){var u;i[0].type=="modifier"&&(u=i.shift().value);var n=parseFloat(i[0].value,10);r[t](h(r[t](),n,u))}}function h(t,r,i){switch(i){case"+":return t+r;case"-":return t-r;case"*":return t*r;default:return r}}function v(t,r,i){r.hue();for(var u=r.clone(),n=r.whiteness(),a=r.blackness(),l=i.whiteness(),m=i.blackness();Math.abs(n-l)>1||Math.abs(a-m)>1;){var b=Math.round((l+n)/2),w=Math.round((m+a)/2);u.whiteness(b),u.blackness(w),u.contrast(r)>t?(l=b,m=w):(n=b,a=w)}return u}})(S);var C=k,I=p,O=E,y=S,R=j;function j(e){var f=e.indexOf("color(");if(f==-1)return e;if(e=e.slice(f),e=C("(",")",e),!e)throw new SyntaxError("Missing closing parenthese for '"+e+"'");var c=O("color("+e.body+")");return d(c)+j(e.post)}function d(e){var f=new I(e.arguments[0].type=="function"?d(e.arguments[0]):e.arguments[0].value),c=e.arguments.slice(1);return c.forEach(function(o){var h=o.name;if(!y[h])throw new Error("Unknown <color-adjuster> '"+h+"'");o.arguments.forEach(function(v){v.type=="function"&&v.name=="color"&&(v.value=d(v),v.type="color",delete v.name)}),y[h](f,o.arguments)}),f.rgbString()}var B=R,_=E;M.convert=B;M.parse=_;export{M as l};
|
|
@ -0,0 +1 @@
|
||||||
|
import"./data-table.vue_vue_type_script_setup_true_lang.63ba437a.js";import{_ as P}from"./data-table.vue_vue_type_script_setup_true_lang.63ba437a.js";import"./element-plus.7a22678c.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.3e52675c.js";import"./index.5f377089.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import"./usePaging.2a59f422.js";import"./code.5efcdc00.js";export{P as default};
|
|
@ -1 +0,0 @@
|
||||||
import"./data-table.vue_vue_type_script_setup_true_lang.49ddbc4b.js";import{_ as P}from"./data-table.vue_vue_type_script_setup_true_lang.49ddbc4b.js";import"./element-plus.5df6f736.js";import"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.5f547370.js";import"./index.1f78e617.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./index.vue_vue_type_script_setup_true_lang.1938e45e.js";import"./usePaging.2a59f422.js";import"./code.9a5ede0d.js";export{P as default};
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue