no message
This commit is contained in:
parent
22d0f750a3
commit
8a34e24bc6
10
dist/config.js
vendored
10
dist/config.js
vendored
@ -1,10 +1,10 @@
|
||||
const APP_CONFIG = {
|
||||
"APP_NAME": "聚美汽服",
|
||||
"APP_NAME": "寄托天下",
|
||||
"THEMESETTING": false,
|
||||
"API_URL": "https:\/\/jmqf.v0750.com\/adminApi",
|
||||
"APP_VER": "5.0.56",
|
||||
"TOKEN_NAME": "token",
|
||||
"WEBSOCKET": "",
|
||||
"API_URL": "https:\/\/app.gter.net\/adminApi",
|
||||
"APP_VER": "5.0.54",
|
||||
"TOKEN_NAME": "authorization",
|
||||
"WEBSOCKET": "wss:\/\/app.gter.net\/socket",
|
||||
"MY_SHOW_LOGIN_OAUTH": true,
|
||||
"SESSIONNAME": "ADMINTOKEN"
|
||||
};
|
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -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,
|
||||
#app {
|
||||
transition-property: filter;
|
||||
|
4
dist/report.html
vendored
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
1
dist/static/css/115.2d7935aa.css
vendored
Normal 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}
|
1
dist/static/css/403.0e46dcef.css
vendored
1
dist/static/css/403.0e46dcef.css
vendored
@ -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
1
dist/static/js/115.775d5343.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -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}}]);
|
1
dist/static/js/403.74cffc0a.js
vendored
1
dist/static/js/403.74cffc0a.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,10 +1,10 @@
|
||||
const APP_CONFIG = {
|
||||
"APP_NAME": "聚美汽服",
|
||||
"APP_NAME": "寄托天下",
|
||||
"THEMESETTING": false,
|
||||
"API_URL": "https:\/\/jmqf.v0750.com\/adminApi",
|
||||
"APP_VER": "5.0.56",
|
||||
"TOKEN_NAME": "token",
|
||||
"WEBSOCKET": "",
|
||||
"API_URL": "https:\/\/app.gter.net\/adminApi",
|
||||
"APP_VER": "5.0.54",
|
||||
"TOKEN_NAME": "authorization",
|
||||
"WEBSOCKET": "wss:\/\/app.gter.net\/socket",
|
||||
"MY_SHOW_LOGIN_OAUTH": true,
|
||||
"SESSIONNAME": "ADMINTOKEN"
|
||||
};
|
@ -4,7 +4,7 @@
|
||||
<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-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>
|
||||
<div class="image-slot">
|
||||
无图
|
||||
|
@ -25,8 +25,8 @@
|
||||
<el-table-column label="ID" prop="id" width="50"></el-table-column>
|
||||
<el-table-column label="" prop="status" width="38">
|
||||
<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==0" pulse type="info"></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>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="公寓名称" prop="title" minWidth="300">
|
||||
@ -47,24 +47,29 @@
|
||||
<el-table-column label="视频" prop="video" width="60">
|
||||
<template #default="scope">
|
||||
<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>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="直播" prop="live" width="60">
|
||||
<template #default="scope">
|
||||
<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>
|
||||
</template>
|
||||
</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="品牌" prop="company" width="180"></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="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">
|
||||
<template #default="scope">
|
||||
<el-button-group>
|
||||
@ -83,22 +88,23 @@
|
||||
</el-main>
|
||||
</el-container>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
<lives v-if="dialog.lives" ref="lives" @success="attachmenthandleSuccess" @closed="dialog.lives=false"></lives>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<script>
|
||||
import roomDialog from './room'
|
||||
import update from './update'
|
||||
import images from './images'
|
||||
import videos from './videos'
|
||||
import lives from './lives'
|
||||
import api from './api'
|
||||
import roomDialog from './room'
|
||||
import update from './update'
|
||||
import images from './images'
|
||||
import videos from './videos'
|
||||
import lives from './lives'
|
||||
import api from './api'
|
||||
|
||||
export default {
|
||||
export default {
|
||||
name: 'apartment',
|
||||
components: {
|
||||
roomDialog,
|
||||
@ -115,12 +121,13 @@
|
||||
images: false,
|
||||
videos: false,
|
||||
lives: false,
|
||||
stat: false,
|
||||
},
|
||||
apiObj: api.list,
|
||||
selection: [],
|
||||
search: {
|
||||
keyword: "",
|
||||
status:'0',
|
||||
status: '0',
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -128,71 +135,89 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
open(o){
|
||||
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){
|
||||
tabChange(status) {
|
||||
this.search.status = status;
|
||||
this.$refs.table.reload(this.search)
|
||||
},
|
||||
//搜索
|
||||
upsearch(){
|
||||
upsearch() {
|
||||
this.$refs.table.reload(this.search)
|
||||
},
|
||||
//增加
|
||||
add(){
|
||||
add() {
|
||||
this.dialog.update = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.update.open().setConfig()
|
||||
})
|
||||
},
|
||||
setImage(o){
|
||||
setImage(o) {
|
||||
this.dialog.images = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.images.open().remoteData(o)
|
||||
})
|
||||
},
|
||||
setVideo(o){
|
||||
setVideo(o) {
|
||||
this.dialog.videos = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.videos.open().remoteData(o)
|
||||
})
|
||||
},
|
||||
setLive(o){
|
||||
setLive(o) {
|
||||
this.dialog.lives = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.lives.open().remoteData(o)
|
||||
})
|
||||
},
|
||||
//编辑
|
||||
table_edit(row){
|
||||
table_edit(row) {
|
||||
this.dialog.update = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.update.open('edit').setConfig().setData(row)
|
||||
})
|
||||
},
|
||||
//房源类型
|
||||
table_room(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}
|
||||
async table_del(row, index) {
|
||||
var reqData = { id: row.id }
|
||||
var res = await api.post('delete', reqData);
|
||||
if(res.code == 200){
|
||||
if (res.code == 200) {
|
||||
//这里选择刷新整个表格 OR 插入/编辑现有表格数据
|
||||
this.$refs.table.tableData.splice(index, 1);
|
||||
this.$message.success("删除成功")
|
||||
}else{
|
||||
this.$alert(res.message, "提示", {type: 'error'})
|
||||
} else {
|
||||
this.$alert(res.message, "提示", { type: 'error' })
|
||||
}
|
||||
},
|
||||
//批量删除
|
||||
async batch_del(){
|
||||
async batch_del() {
|
||||
this.$confirm(`确定下架选中的 ${this.selection.length} 项吗?`, '提示', {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
@ -211,38 +236,38 @@
|
||||
})
|
||||
},
|
||||
//表格选择后回调事件
|
||||
selectionChange(selection){
|
||||
selectionChange(selection) {
|
||||
this.selection = selection;
|
||||
},
|
||||
|
||||
async attachmenthandleSuccess(data, o){
|
||||
async attachmenthandleSuccess(data, o) {
|
||||
var res = await api.post('attachmentSubmit', data)
|
||||
if (res.code==200) {
|
||||
if (res.code == 200) {
|
||||
o.close();
|
||||
this.$refs.table.refresh()
|
||||
this.$message.success("操作成功")
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
this.$alert(res.message, "提示", {type: 'error'})
|
||||
this.$alert(res.message, "提示", { type: 'error' })
|
||||
},
|
||||
//本地更新数据
|
||||
async handleSuccess(){
|
||||
async handleSuccess() {
|
||||
|
||||
this.$refs.table.refresh()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.input-mask {
|
||||
.input-mask {
|
||||
margin-left: 4px;
|
||||
z-indexz: 1;
|
||||
position: absolute;
|
||||
width: calc(100% - 50px);
|
||||
}
|
||||
}
|
||||
|
||||
.input-mask::before {
|
||||
.input-mask::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@ -251,5 +276,5 @@
|
||||
left: 0;
|
||||
pointer-events: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user