no message

This commit is contained in:
小陌 2024-03-18 17:21:53 +08:00
parent 22d0f750a3
commit 8a34e24bc6
13 changed files with 211 additions and 186 deletions

10
dist/config.js vendored
View File

@ -1,10 +1,10 @@
const APP_CONFIG = { const APP_CONFIG = {
"APP_NAME": "聚美汽服", "APP_NAME": "寄托天下",
"THEMESETTING": false, "THEMESETTING": false,
"API_URL": "https:\/\/jmqf.v0750.com\/adminApi", "API_URL": "https:\/\/app.gter.net\/adminApi",
"APP_VER": "5.0.56", "APP_VER": "5.0.54",
"TOKEN_NAME": "token", "TOKEN_NAME": "authorization",
"WEBSOCKET": "", "WEBSOCKET": "wss:\/\/app.gter.net\/socket",
"MY_SHOW_LOGIN_OAUTH": true, "MY_SHOW_LOGIN_OAUTH": true,
"SESSIONNAME": "ADMINTOKEN" "SESSIONNAME": "ADMINTOKEN"
}; };

2
dist/index.html vendored
View File

@ -1,4 +1,4 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/echarts.49558cc4.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.af2834df.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.28dd0594.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.34563575.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.74059501.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="adminui"><div class="app-loading"><div class="app-loading__logo"><img src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/logo.png"/></div><div class="app-loading-text"><span class="app-loading-preloader">X</span> <span class="app-loading-preloader">-</span> <span class="app-loading-preloader">A</span> <span class="app-loading-preloader">d</span> <span class="app-loading-preloader">m</span> <span class="app-loading-preloader">i</span> <span class="app-loading-preloader">n</span><div class="app-loading-viewtext-container"><span class="app-loading-viewtext">X</span> <span class="app-loading-viewtext">-</span> <span class="app-loading-viewtext">A</span> <span class="app-loading-viewtext">d</span> <span class="app-loading-viewtext">m</span> <span class="app-loading-viewtext">i</span> <span class="app-loading-viewtext">n</span></div></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>html, <!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/echarts.49558cc4.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.af2834df.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.55e97977.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.34563575.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.db9f2ae7.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="adminui"><div class="app-loading"><div class="app-loading__logo"><img src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/logo.png"/></div><div class="app-loading-text"><span class="app-loading-preloader">X</span> <span class="app-loading-preloader">-</span> <span class="app-loading-preloader">A</span> <span class="app-loading-preloader">d</span> <span class="app-loading-preloader">m</span> <span class="app-loading-preloader">i</span> <span class="app-loading-preloader">n</span><div class="app-loading-viewtext-container"><span class="app-loading-viewtext">X</span> <span class="app-loading-viewtext">-</span> <span class="app-loading-viewtext">A</span> <span class="app-loading-viewtext">d</span> <span class="app-loading-viewtext">m</span> <span class="app-loading-viewtext">i</span> <span class="app-loading-viewtext">n</span></div></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>html,
body, body,
#app { #app {
transition-property: filter; transition-property: filter;

4
dist/report.html vendored

File diff suppressed because one or more lines are too long

1
dist/static/css/115.2d7935aa.css vendored Normal file
View File

@ -0,0 +1 @@
.input-mask[data-v-11ee222e]{margin-left:4px;z-indexz:1;position:absolute;width:calc(100% - 50px)}.input-mask[data-v-11ee222e]:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:auto;cursor:pointer}

View File

@ -1 +0,0 @@
.input-mask[data-v-2be1269c]{margin-left:4px;z-indexz:1;position:absolute;width:calc(100% - 50px)}.input-mask[data-v-2be1269c]:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:auto;cursor:pointer}

File diff suppressed because one or more lines are too long

1
dist/static/js/115.775d5343.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[251],{251:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var r=a(6808),l=a(9511);const n={class:"left-panel"},i={class:"right-panel"},s={class:"right-panel-search"};function c(e,t,a,c,o,u){const h=(0,r.up)("el-date-picker"),p=(0,r.up)("el-input"),d=(0,r.up)("el-button"),m=(0,r.up)("el-header"),g=(0,r.up)("el-table-column"),f=(0,r.up)("xTable"),w=(0,r.up)("el-main"),b=(0,r.up)("el-container");return(0,r.wg)(),(0,r.j4)(b,{class:"container"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",n,[(0,r.Wm)(h,{modelValue:o.date,"onUpdate:modelValue":t[0]||(t[0]=e=>o.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,r._)("div",i,[(0,r._)("div",s,[(0,r.Wm)(p,{modelValue:o.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>o.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,r.Wm)(d,{type:"primary",icon:"el-icon-search",onClick:u.upsearch},null,8,["onClick"])])])])),_:1}),(0,r.Wm)(w,{class:"nopadding"},{default:(0,r.w5)((()=>[(0,r.Wm)(f,{ref:"table",api:o.api,params:o.search,tableColumn:o.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:u.rowClick},{default:(0,r.w5)((()=>[(0,r.Wm)(g,{type:"index",width:"60",align:"center"},{default:(0,r.w5)((e=>[(0,r._)("span",null,(0,l.zw)(e.$index+(o.currentPage-1)*o.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})}var o=a(9515),u=a(1843),h={name:"log",components:{columnItem:o.Z,xMenuItem:u.Z},data(){return{infoDrawer:!1,chartoption:{},typeList:[],date:[],data:[],search:{},api:"",current:"",config:{},tableColumn:{},column:"default",currentPage:1,limit:20}},mounted(){this.getType()},watch:{current(){this.search.type=this.current,this.getCurrent()}},methods:{sideClick(e){this.info=e,this.search.type=e.value,this.current=e.value,this.column=e.column||"column"},changeURLArg(e,t,a){var r=t+"=([^&]*)";if(""===a)return e=e.replace(new RegExp("&?"+r,"gi"),""),e=e.replace(new RegExp("\\??"+r+"&?","gi"),"?"),e;var l=t+"="+a;if(e.match(r)){var n="("+t+"=)([^&]*)";return n=e.replace(new RegExp(n,"gi"),l),n}return e.match("[?]")?e+"&"+l:e+"?"+l},nodeClick(e){if(e.disabled)return!1;this.current=e.label,this.column=e.column||"column"},getType(){this.$http.get("log/admin/types",{type:this.$route.query.type},{cacheparameters:!0}).then((e=>{if(200==e.code){Object.assign(this.$data,e.data);for(const e in this.search)Object.prototype.hasOwnProperty.call(this.$route.query,e)&&(this.search[e]=this.$route.query[e])}}))},getCurrent(){this.tableColumn=this.config[this.column]||this.config.default,this.api||(this.api="log/admin/lists"),this.$refs.table.reload(this.search);let e=window.location.href;for(const[t,a]of Object.entries(this.search))e=this.changeURLArg(e,t,a);history.replaceState(Object.assign({},window.history.state,{url:e}),"null",e)},upsearch(){this.getCurrent()},rowClick(e){this.infoDrawer=!0,this.$nextTick((()=>{this.$refs.info.setData(e)}))}}},p=a(8700);const d=(0,p.Z)(h,[["render",c],["__scopeId","data-v-eba8b6d4"]]);var m=d}}]); "use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[251],{251:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var r=a(6808),l=a(9511);const n={class:"left-panel"},i={class:"right-panel"},s={class:"right-panel-search"};function c(e,t,a,c,o,u){const h=(0,r.up)("el-date-picker"),p=(0,r.up)("el-input"),d=(0,r.up)("el-button"),m=(0,r.up)("el-header"),g=(0,r.up)("el-table-column"),f=(0,r.up)("xTable"),w=(0,r.up)("el-main"),b=(0,r.up)("el-container");return(0,r.wg)(),(0,r.j4)(b,{class:"container"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",n,[(0,r.Wm)(h,{modelValue:o.date,"onUpdate:modelValue":t[0]||(t[0]=e=>o.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,r._)("div",i,[(0,r._)("div",s,[(0,r.Wm)(p,{modelValue:o.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>o.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,r.Wm)(d,{type:"primary",icon:"el-icon-search",onClick:u.upsearch},null,8,["onClick"])])])])),_:1}),(0,r.Wm)(w,{class:"nopadding"},{default:(0,r.w5)((()=>[(0,r.Wm)(f,{ref:"table",api:o.api,params:o.search,tableColumn:o.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:u.rowClick},{default:(0,r.w5)((()=>[(0,r.Wm)(g,{type:"index",width:"60",align:"center"},{default:(0,r.w5)((e=>[(0,r._)("span",null,(0,l.zw)(e.$index+(o.currentPage-1)*o.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})}var o=a(8686),u=a(1843),h={name:"log",components:{columnItem:o.Z,xMenuItem:u.Z},data(){return{infoDrawer:!1,chartoption:{},typeList:[],date:[],data:[],search:{},api:"",current:"",config:{},tableColumn:{},column:"default",currentPage:1,limit:20}},mounted(){this.getType()},watch:{current(){this.search.type=this.current,this.getCurrent()}},methods:{sideClick(e){this.info=e,this.search.type=e.value,this.current=e.value,this.column=e.column||"column"},changeURLArg(e,t,a){var r=t+"=([^&]*)";if(""===a)return e=e.replace(new RegExp("&?"+r,"gi"),""),e=e.replace(new RegExp("\\??"+r+"&?","gi"),"?"),e;var l=t+"="+a;if(e.match(r)){var n="("+t+"=)([^&]*)";return n=e.replace(new RegExp(n,"gi"),l),n}return e.match("[?]")?e+"&"+l:e+"?"+l},nodeClick(e){if(e.disabled)return!1;this.current=e.label,this.column=e.column||"column"},getType(){this.$http.get("log/admin/types",{type:this.$route.query.type},{cacheparameters:!0}).then((e=>{if(200==e.code){Object.assign(this.$data,e.data);for(const e in this.search)Object.prototype.hasOwnProperty.call(this.$route.query,e)&&(this.search[e]=this.$route.query[e])}}))},getCurrent(){this.tableColumn=this.config[this.column]||this.config.default,this.api||(this.api="log/admin/lists"),this.$refs.table.reload(this.search);let e=window.location.href;for(const[t,a]of Object.entries(this.search))e=this.changeURLArg(e,t,a);history.replaceState(Object.assign({},window.history.state,{url:e}),"null",e)},upsearch(){this.getCurrent()},rowClick(e){this.infoDrawer=!0,this.$nextTick((()=>{this.$refs.info.setData(e)}))}}},p=a(8700);const d=(0,p.Z)(h,[["render",c],["__scopeId","data-v-eba8b6d4"]]);var m=d}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,10 @@
const APP_CONFIG = { const APP_CONFIG = {
"APP_NAME": "聚美汽服", "APP_NAME": "寄托天下",
"THEMESETTING": false, "THEMESETTING": false,
"API_URL": "https:\/\/jmqf.v0750.com\/adminApi", "API_URL": "https:\/\/app.gter.net\/adminApi",
"APP_VER": "5.0.56", "APP_VER": "5.0.54",
"TOKEN_NAME": "token", "TOKEN_NAME": "authorization",
"WEBSOCKET": "", "WEBSOCKET": "wss:\/\/app.gter.net\/socket",
"MY_SHOW_LOGIN_OAUTH": true, "MY_SHOW_LOGIN_OAUTH": true,
"SESSIONNAME": "ADMINTOKEN" "SESSIONNAME": "ADMINTOKEN"
}; };

View File

@ -4,7 +4,7 @@
<x-avatar v-if="item.columntype == 'avatar' || item.component == 'avatar'" :name="item.name" :options="bind" :data="row"></x-avatar> <x-avatar v-if="item.columntype == 'avatar' || item.component == 'avatar'" :name="item.name" :options="bind" :data="row"></x-avatar>
<el-badge v-else-if="item.columntype == 'badge' || item.columntype == 'imagegroup'" :value="getType(row[item.name])" @click="handleClick(row, item)" v-bind="bind" style="cursor: pointer; "></el-badge> <el-badge v-else-if="item.columntype == 'badge' || item.columntype == 'imagegroup'" :value="getType(row[item.name])" @click="handleClick(row, item)" v-bind="bind" style="cursor: pointer; "></el-badge>
<el-link v-else-if="item.columntype == 'link'" v-bind="bind" @click="handleClick(row, item)"> {{ row[item.name] }} </el-link> <el-link v-else-if="item.columntype == 'link'" v-bind="bind" @click="handleClick(row, item)"> {{ row[item.name] }} </el-link>
<el-image v-else-if="item.columntype == 'image'" :preview-src-list="[getImg(row[item.name])]" :preview-teleported="true" hide-on-click-modal="true" lazy="true" style="max-width: 60px; height: 26px; border-radius: 2px;" fit="cover" :src="getImg(row[item.name])"> <el-image v-else-if="item.columntype == 'image'" :preview-src-list="[getImg(row[item.image || item.name])]" :preview-teleported="true" hide-on-click-modal="true" lazy="true" style="max-width: 60px; height: 26px; border-radius: 2px;" fit="cover" :src="getImg(row[item.name])">
<template #error> <template #error>
<div class="image-slot"> <div class="image-slot">
无图 无图

View File

@ -25,13 +25,13 @@
<el-table-column label="ID" prop="id" width="50"></el-table-column> <el-table-column label="ID" prop="id" width="50"></el-table-column>
<el-table-column label="" prop="status" width="38"> <el-table-column label="" prop="status" width="38">
<template #default="scope"> <template #default="scope">
<x-status-indicator v-if="scope.row.status==1" pulse type="success"></x-status-indicator> <x-status-indicator v-if="scope.row.status == 1" pulse type="success"></x-status-indicator>
<x-status-indicator v-if="scope.row.status==0" pulse type="info"></x-status-indicator> <x-status-indicator v-if="scope.row.status == 0" pulse type="info"></x-status-indicator>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公寓名称" prop="title" minWidth="300"> <el-table-column label="公寓名称" prop="title" minWidth="300">
<template #default="scope"> <template #default="scope">
<img :src="scope.row.image" height="25" style="border-radius: 8px;"> <img :src="scope.row.image" height="25" style="border-radius: 8px;">
<label class="input-mask"> <label class="input-mask">
<input style="cursor: pointer; " class="el-input__inner" type="text" readonly :value="scope.row.title"> <input style="cursor: pointer; " class="el-input__inner" type="text" readonly :value="scope.row.title">
</label> </label>
@ -47,24 +47,29 @@
<el-table-column label="视频" prop="video" width="60"> <el-table-column label="视频" prop="video" width="60">
<template #default="scope"> <template #default="scope">
<el-link :underline="false" size="small" @click="setVideo(scope.row)"> <el-link :underline="false" size="small" @click="setVideo(scope.row)">
<el-badge :value="Object.keys(scope.row.video||{}).length" type="warning"></el-badge> <el-badge :value="Object.keys(scope.row.video || {}).length" type="warning"></el-badge>
</el-link> </el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="直播" prop="live" width="60"> <el-table-column label="直播" prop="live" width="60">
<template #default="scope"> <template #default="scope">
<el-link :underline="false" size="small" @click="setLive(scope.row)"> <el-link :underline="false" size="small" @click="setLive(scope.row)">
<el-badge :value="Object.keys(scope.row.live||{}).length" type="info"></el-badge> <el-badge :value="Object.keys(scope.row.live || {}).length" type="info"></el-badge>
</el-link> </el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="浏览" prop="viewnum" width="90">
<template #default="scope">
<el-button link type="warning" size="small" @click="xtablehandleClick(scope.row)">
{{ scope.row.viewnum }}
</el-button>
</template>
</el-table-column>
<el-table-column label="客服ID" prop="customerservice" width="80"></el-table-column> <el-table-column label="客服ID" prop="customerservice" width="80"></el-table-column>
<el-table-column label="品牌" prop="company" width="180"></el-table-column> <el-table-column label="品牌" prop="company" width="180"></el-table-column>
<el-table-column label="租金" prop="rentprice" width="80"></el-table-column> <el-table-column label="租金" prop="rentprice" width="80"></el-table-column>
<el-table-column label="排序" prop="sort" width="100"></el-table-column> <el-table-column label="排序" prop="sort" width="100"></el-table-column>
<el-table-column label="添加时间" prop="timestamp" width="150"></el-table-column> <el-table-column label="添加时间" prop="timestamp" width="150"></el-table-column>
<el-table-column label="浏览" prop="viewnum" width="90"></el-table-column>
<el-table-column label="操作" fixed="right" align="left" width="195"> <el-table-column label="操作" fixed="right" align="left" width="195">
<template #default="scope"> <template #default="scope">
<el-button-group> <el-button-group>
@ -75,181 +80,201 @@
<template #reference> <template #reference>
<el-button type="info" size="small">下架</el-button> <el-button type="info" size="small">下架</el-button>
</template> </template>
</el-popconfirm> --> </el-popconfirm> -->
</el-button-group> </el-button-group>
</template> </template>
</el-table-column> </el-table-column>
</xTable> </xTable>
</el-main> </el-main>
</el-container> </el-container>
<room-dialog v-if="dialog.room" ref="roomDialog" @success="handleSuccess" @closed="dialog.room=false"></room-dialog> <room-dialog v-if="dialog.room" ref="roomDialog" @success="handleSuccess" @closed="dialog.room = false"></room-dialog>
<update v-if="dialog.update" ref="update" @success="handleSuccess" @closed="dialog.update=false"></update> <update v-if="dialog.update" ref="update" @success="handleSuccess" @closed="dialog.update = false"></update>
<images v-if="dialog.images" ref="images" @success="attachmenthandleSuccess" @closed="dialog.images=false"></images> <images v-if="dialog.images" ref="images" @success="attachmenthandleSuccess" @closed="dialog.images = false"></images>
<videos v-if="dialog.videos" ref="videos" @success="attachmenthandleSuccess" @closed="dialog.videos=false"></videos> <videos v-if="dialog.videos" ref="videos" @success="attachmenthandleSuccess" @closed="dialog.videos = false"></videos>
<lives v-if="dialog.lives" ref="lives" @success="attachmenthandleSuccess" @closed="dialog.lives=false"></lives> <lives v-if="dialog.lives" ref="lives" @success="attachmenthandleSuccess" @closed="dialog.lives = false"></lives>
<x-stat v-if="dialog.stat" ref="xtablestat" @closed="dialog.stat = ''"></x-stat>
</template> </template>
<script> <script>
import roomDialog from './room' import roomDialog from './room'
import update from './update' import update from './update'
import images from './images' import images from './images'
import videos from './videos' import videos from './videos'
import lives from './lives' import lives from './lives'
import api from './api' import api from './api'
export default { export default {
name: 'apartment', name: 'apartment',
components: { components: {
roomDialog, roomDialog,
update, update,
videos, videos,
images, images,
lives, lives,
}, },
data() { data() {
return { return {
dialog: { dialog: {
room: false, room: false,
update: false, update: false,
images: false, images: false,
videos: false, videos: false,
lives: false, lives: false,
}, stat: false,
apiObj: api.list,
selection: [],
search: {
keyword: "",
status:'0',
}
}
},
mounted() {
},
methods: {
open(o){
window.open(o.apartmentposter)
}, },
// apiObj: api.list,
tabChange(status){ selection: [],
this.search.status = status; search: {
this.$refs.table.reload(this.search) keyword: "",
}, status: '0',
//
upsearch(){
this.$refs.table.reload(this.search)
},
//
add(){
this.dialog.update = true
this.$nextTick(() => {
this.$refs.update.open().setConfig()
})
},
setImage(o){
this.dialog.images = true
this.$nextTick(() => {
this.$refs.images.open().remoteData(o)
})
},
setVideo(o){
this.dialog.videos = true
this.$nextTick(() => {
this.$refs.videos.open().remoteData(o)
})
},
setLive(o){
this.dialog.lives = true
this.$nextTick(() => {
this.$refs.lives.open().remoteData(o)
})
},
//
table_edit(row){
this.dialog.update = true
this.$nextTick(() => {
this.$refs.update.open('edit').setConfig().setData(row)
})
},
//
table_room(row){
this.dialog.room = true
this.$nextTick(() => {
this.$refs.roomDialog.open('edit').setData(row)
})
},
//
async table_del(row, index){
var reqData = {id: row.id}
var res = await api.post('delete', reqData);
if(res.code == 200){
// OR /
this.$refs.table.tableData.splice(index, 1);
this.$message.success("删除成功")
}else{
this.$alert(res.message, "提示", {type: 'error'})
}
},
//
async batch_del(){
this.$confirm(`确定下架选中的 ${this.selection.length} 项吗?`, '提示', {
type: 'warning'
}).then(() => {
const loading = this.$loading();
this.selection.forEach(item => {
this.$refs.table.tableData.forEach((itemI, indexI) => {
if (item.id === itemI.id) {
this.$refs.table.tableData.splice(indexI, 1)
}
})
})
loading.close();
this.$message.success("操作成功")
}).catch(() => {
})
},
//
selectionChange(selection){
this.selection = selection;
},
async attachmenthandleSuccess(data, o){
var res = await api.post('attachmentSubmit', data)
if (res.code==200) {
o.close();
this.$refs.table.refresh()
this.$message.success("操作成功")
return ;
}
this.$alert(res.message, "提示", {type: 'error'})
},
//
async handleSuccess(){
this.$refs.table.refresh()
} }
} }
},
mounted() {
},
methods: {
open(o) {
window.open(o.apartmentposter)
},
xtablehandleClick(row) {
this.dialog.stat = true
this.$nextTick(() => {
this.$refs.xtablestat.open().setData(row).setConfig({
key: 'id',
name: 'apartment',
label: '查看' + row.title + '统计',
remoteurl: 'stat/admin/item',
type: 'drawer',
param: {
date: [
]
}
});
})
return;
},
//
tabChange(status) {
this.search.status = status;
this.$refs.table.reload(this.search)
},
//
upsearch() {
this.$refs.table.reload(this.search)
},
//
add() {
this.dialog.update = true
this.$nextTick(() => {
this.$refs.update.open().setConfig()
})
},
setImage(o) {
this.dialog.images = true
this.$nextTick(() => {
this.$refs.images.open().remoteData(o)
})
},
setVideo(o) {
this.dialog.videos = true
this.$nextTick(() => {
this.$refs.videos.open().remoteData(o)
})
},
setLive(o) {
this.dialog.lives = true
this.$nextTick(() => {
this.$refs.lives.open().remoteData(o)
})
},
//
table_edit(row) {
this.dialog.update = true
this.$nextTick(() => {
this.$refs.update.open('edit').setConfig().setData(row)
})
},
//
table_room(row) {
this.dialog.room = true
this.$nextTick(() => {
this.$refs.roomDialog.open('edit').setData(row)
})
},
//
async table_del(row, index) {
var reqData = { id: row.id }
var res = await api.post('delete', reqData);
if (res.code == 200) {
// OR /
this.$refs.table.tableData.splice(index, 1);
this.$message.success("删除成功")
} else {
this.$alert(res.message, "提示", { type: 'error' })
}
},
//
async batch_del() {
this.$confirm(`确定下架选中的 ${this.selection.length} 项吗?`, '提示', {
type: 'warning'
}).then(() => {
const loading = this.$loading();
this.selection.forEach(item => {
this.$refs.table.tableData.forEach((itemI, indexI) => {
if (item.id === itemI.id) {
this.$refs.table.tableData.splice(indexI, 1)
}
})
})
loading.close();
this.$message.success("操作成功")
}).catch(() => {
})
},
//
selectionChange(selection) {
this.selection = selection;
},
async attachmenthandleSuccess(data, o) {
var res = await api.post('attachmentSubmit', data)
if (res.code == 200) {
o.close();
this.$refs.table.refresh()
this.$message.success("操作成功")
return;
}
this.$alert(res.message, "提示", { type: 'error' })
},
//
async handleSuccess() {
this.$refs.table.refresh()
}
} }
}
</script> </script>
<style scoped> <style scoped>
.input-mask { .input-mask {
margin-left: 4px; margin-left: 4px;
z-indexz: 1; z-indexz: 1;
position: absolute; position: absolute;
width: calc(100% - 50px); width: calc(100% - 50px);
} }
.input-mask::before { .input-mask::before {
content: ""; content: "";
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
left: 0; left: 0;
pointer-events: auto; pointer-events: auto;
cursor: pointer; cursor: pointer;
} }
</style> </style>