Commit 32e55518 by 周志凯

styles: update mall

1 parent 360cf225
Showing 42 changed files with 191 additions and 571 deletions
......@@ -514,6 +514,9 @@ const management = {
editMenu(roleUnid, appUnid, params, config) {
return req('post', `${window._vionConfig.menuUrl}/api/v1/auth/roles/${roleUnid}/apps/${appUnid}/menus`, params, config)
},
delMenuNode(appUnid, menuUnid, params, config) {
return req('delete', `${window._vionConfig.menuUrl}/api/v1/auth/apps/${appUnid}/menus/${menuUnid}`, params, config)
},
/**
* 给角色分配菜单 默认 vion
*/
......
......@@ -518,7 +518,7 @@ const zh_CN = {
aliveTime: '心跳时间',
tabWarn: '数据报警',
tabPush: '数据推送',
notifyKpiMall: '商场',
notifyKpiMall: '书店',
notifyKpiGate: '监控点',
notifyDeviceStatus: '设备状态',
faceData: '报表数据',
......@@ -670,7 +670,7 @@ const zh_CN = {
ip: '请输入IP地址',
deviceNumber: '请输入设备序列号',
Site: '请输入监控点名称',
mall: '请选择所属广场',
mall: '请选择所属书店',
nodata: '无数据',
x: 'X轴',
y: 'Y轴',
......@@ -720,7 +720,8 @@ const zh_CN = {
intervalSelect: '请选择间隔时间',
orderNumberSelect: '请输入阶数',
startMinSelect: '请输入开始分钟',
endMinSelect: '请输入结束分钟'
endMinSelect: '请输入结束分钟',
timeSelect: '请选择时间'
},
message:{
get: '获取',
......@@ -804,8 +805,8 @@ const zh_CN = {
deviceSelect: '请选择设备序列号!',
unsupportChartType: '图表类型不支持!',
businessTimeErr: '营业时间设置失败!',
addMallErr: '添加广场失败!',
editMallErr: '编辑广场失败!',
addMallErr: '添加书店失败!',
editMallErr: '编辑书店失败!',
emptyShop: '区域为空!',
notSupportFunction: '您没有此功能的访问权限或项目使用的硬件产品不支持此功能!!',
customLossTimeVaild: '自定义流失时间不合法!'
......
......@@ -57,7 +57,7 @@ Object.keys(custom).forEach(key => {
// 读取配置文件 多项目 默认6.0 平台
document.title = '阅读空间'
Vue.prototype.$Project = 'store'
Vue.prototype.$Project = 'mall'
// 读取配置文件 菜单权限 默认有菜单权限
Vue.prototype.$Menu = window._vionConfig.allMenu || false;
......
<template>
<div class="addition-heatmap" @mousemove="mousemoveHandle" @mouseout="mouseoutHandle">
<el-header height="70px">
<span class="seq-title">门店客流统计</span>
<span class="seq-title">{{ $t('echartsTitle.faceDistributionfaceTraffic') }}</span>
<span class="more-option-wrapper" @click="showCollapse">
<span class="more-option-text">更多选项</span>
<span class="more-option-text">{{ $t('asis.moreOp') }}</span>
<i :class="moreOptVisible ? 'el-icon-arrow-down more-option-arrow' : 'el-icon-arrow-down more-option-arrow more-option-up'"></i>
</span>
</el-header>
......@@ -11,17 +11,17 @@
<div class="heatmap-condition" v-show="moreOptVisible">
<ul class="condition-box">
<li class="condition-item">
<span class="condition-item-text">店铺: </span>
<span class="condition-item-text">{{ $t('asisTab.storeT') }}</span>
<div class="condition-item-option">
<el-select v-model="storeVal" placeholder="选择门店">
<el-select v-model="storeVal" :placeholder="$t('pholder.shopS')">
<!-- <el-option v-for="" :key=""></el-option> -->
</el-select>
</div>
</li>
<li class="condition-item">
<span class="condition-item-text">日期: </span>
<span class="condition-item-text">{{ $t('asisTab.date') }}</span>
<div class="condition-item-option">
<el-date-picker v-model="timeVal" class="time-opt" placeholder="请选择时间" :picker-options="pickerOptions1"></el-date-picker>
<el-date-picker v-model="timeVal" class="time-opt" :placeholder="$t('pholder.timeSelect')" :picker-options="pickerOptions1"></el-date-picker>
</div>
</li>
<li class="condition-item">
......
......@@ -341,29 +341,11 @@ export default {
},
created() {
this.yearTime = new Date();
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop',
'format': 'format',
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
this.tabClickHandle(0);
let _this = this;
_this.windowWidth = window.innerWidth
......
......@@ -357,14 +357,8 @@ export default {
}
},
created() {
this.tabItem = [];
if (this.$Project === 'mall') {
this.tabItem = (['mall', 'gate', 'floor', 'zone', 'format']).map(item => ({ label: item, value: item }))
this.gateLevelList = ['all', 'mall', 'floor', 'zone'].map(item => ({ label: item, value: item }))
} else {
this.tabItem = ['mall'].map(item => ({ label: item, value: item }))
this.gateLevelList = ['all', 'mall'].map(item => ({ label: item, value: item }))
}
this.tabItem = ['mall'].map(item => ({ label: item, value: item }))
this.gateLevelList = ['all', 'mall'].map(item => ({ label: item, value: item }))
},
mounted() {
this.tabClickHandle('mall');
......
......@@ -391,28 +391,11 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop'
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
},
methods: {
i18nFormatter(label){
......
......@@ -268,28 +268,11 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop'
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
},
methods: {
i18nFormatter(label){
......
......@@ -266,20 +266,12 @@ export default {
}
},
created() {
this.tabItem = [];
if (this.$Project === "mall") {
this.tabItem = ["mall", "floor"].map(item => ({
label: item,
value: item
}));
} else {
this.tabItem = [
{
label: "mall",
value: "mall"
}
];
}
this.tabItem = [
{
label: "mall",
value: "mall"
}
];
this.asisLevel = "mall";
},
mounted() {
......
......@@ -308,47 +308,18 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
// 'mall': 'mall',
// 'inOut': 'io',
'floor': 'floor',
// 'store': 'shop'
};
let gateleve = {
'all': 'all',
'mall': 'mall',
'floor': 'floor',
'store': 'zone',
}
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
for(let i in gateleve) {
this.gateLevelList.push({
label: i,
value: gateleve[i],
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}];
this.gateLevelList = [{
label: 'all',
value: 'all'
}, {
label: 'mall',
value: 'mall'
}];
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}];
this.gateLevelList = [{
label: 'all',
value: 'all'
}, {
label: 'mall',
value: 'mall'
}];
},
watch: {
dayTime(val) {
......@@ -885,6 +856,7 @@ export default {
mounted() {
let {dayDate, weekDate, monthDate , yearDate, customDate} = this.createDate();
this.dayTime = dayDate;
this.tabClickHandle(0);
// this.weekTime = this.weekTime ? this.weekTime : new Date();
// this.monthTime = this.monthTime ? this.monthTime : new Date();
// this.yearTime = this.yearTime ? this.yearTime : new Date();
......
......@@ -324,34 +324,17 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
// // 'inOut': 'io',
// 'floor': 'floor',
// 'store': 'shop'
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}
// , {
// label: 'inOut',
// value: 'io',
// className: 'analysis-item'
// }
]
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}
// , {
// label: 'inOut',
// value: 'io',
// className: 'analysis-item'
// }
]
this.tabClickHandle(0);
},
watcn: {
......
......@@ -262,29 +262,11 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop',
'format': 'format'
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
this.tabClickHandle(0);
},
watch: {
......
......@@ -332,28 +332,11 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop'
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
this.tabClickHandle(0);
},
mounted() {
......
......@@ -314,34 +314,17 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
// 'inOut': 'io',
// 'floor': 'floor',
// 'store': 'shop'
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
},
// {
// label: 'inOut',
// value: 'io',
// className: 'analysis-item'
// }
]
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
},
// {
// label: 'inOut',
// value: 'io',
// className: 'analysis-item'
// }
]
this.tabClickHandle(0);
},
watch: {
......
......@@ -177,25 +177,11 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'floor': 'floor'
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem.push({
label: 'floor',
value: 'floor',
className: 'analysis-item'
})
}
this.tabItem.push({
label: 'floor',
value: 'floor',
className: 'analysis-item'
})
},
watch: {
dayTime(val) {
......
......@@ -293,34 +293,17 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
// // 'inOut': 'io',
// 'floor': 'floor',
// 'store': 'shop'
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}
// , {
// label: 'inOut',
// value: 'io',
// className: 'analysis-item'
// }
]
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}
// , {
// label: 'inOut',
// value: 'io',
// className: 'analysis-item'
// }
]
this.tabClickHandle(0);
},
methods: {
......
......@@ -401,29 +401,11 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop',
'format': 'format'
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
this.tabClickHandle(0);
},
methods: {
......
......@@ -114,18 +114,10 @@ export default {
}
},
created() {
this.tabItem = []
if (this.$Project === 'mall') {
this.tabItem = ['mall'].map(item => ({
label: item,
value: item
}))
} else {
this.tabItem = [{
label: 'mall',
value: 'mall'
}]
}
this.tabItem = [{
label: 'mall',
value: 'mall'
}]
this.asisLevel = 'mall'
},
methods: {
......
......@@ -379,28 +379,11 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop'
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
this.tabClickHandle(0);
},
methods: {
......
......@@ -366,41 +366,11 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop',
'format': 'format'
};
let gateleve = {
'all': 'all',
'mall': 'mall',
'floor': 'floor',
'store': 'zone',
}
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
for(let i in gateleve) {
this.gateLevelList.push({
label: i,
value: gateleve[i],
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}];
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}];
this.tabClickHandle(0);
},
watch: {
......
......@@ -348,28 +348,11 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop'
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
this.tabClickHandle(0);
},
watch: {
......
......@@ -229,41 +229,11 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop',
'format': 'format'
};
let gateleve = {
'all': 'all',
'mall': 'mall',
'floor': 'floor',
'store': 'zone',
}
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
for(let i in gateleve) {
this.gateLevelList.push({
label: i,
value: gateleve[i],
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}];
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}];
},
methods: {
i18nFormatter(label){
......@@ -628,6 +598,7 @@ export default {
},
mounted() {
// this.tabClickHandle(0);
this.tabClickHandle(0);
this.time1Val = this.time1Val || [this.dayReduce(new Date(), 15), dateUnit.dateFormat(new Date(), 'yyyy-MM-dd')];
this.time2Val = this.time2Val || [this.dayReduce(new Date(), 30), this.dayReduce(new Date(), 16)];
// this.initAsis();
......
......@@ -273,41 +273,11 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop',
'format': 'format'
};
let gateleve = {
'all': 'all',
'mall': 'mall',
'floor': 'floor',
'store': 'zone',
}
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
for(let i in gateleve) {
this.gateLevelList.push({
label: i,
value: gateleve[i],
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}];
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}];
this.tabClickHandle(0);
},
watch: {
......
......@@ -269,29 +269,11 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop',
'format': 'format'
};
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}]
this.tabClickHandle(0);
},
watch: {
......
......@@ -270,48 +270,18 @@ export default {
}
},
created() {
this.tabItem = [];
if(this.$Project === 'mall') {
let localCondition = {
'mall': 'mall',
'inOut': 'io',
'floor': 'floor',
'store': 'shop',
'format': 'format'
};
let gateleve = {
'all': 'all',
'mall': 'mall',
'floor': 'floor',
'store': 'zone',
}
for(let i in localCondition) {
this.tabItem.push({
label: i,
value: localCondition[i],
className: 'analysis-item'
})
}
for(let i in gateleve) {
this.gateLevelList.push({
label: i,
value: gateleve[i],
})
}
} else {
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}];
this.gateLevelList = [{
label: 'all',
value: 'all'
}, {
label: 'mall',
value: 'mall'
}];
}
this.tabItem = [{
label: 'mall',
value: 'mall',
className: 'analysis-item'
}];
this.gateLevelList = [{
label: 'all',
value: 'all'
}, {
label: 'mall',
value: 'mall'
}];
this.tabClickHandle(0);
let _this = this;
_this.windowWidth = window.innerWidth
......
......@@ -93,7 +93,7 @@ export default {
{ required: true, message: '请选择状态', trigger: 'change' },
],
// mallId: [
// { required: true, message: '请选择店', trigger: 'change' },
// { required: true, message: '请选择店', trigger: 'change' },
// ],
// accountId: [
// { required: true, message: '请选择集团', trigger: 'blur' },
......
......@@ -113,11 +113,15 @@ export default {
editDialogVisible: false,
uploadHeader: {},
editForm: {
logoPath: '',
name: '',
manager: '',
expireDate: '',
mapDisplay: 1,
mapLongitude: null,
mapLatitude: null,
mapZoom: 0
logoPath: '',
mapZoom: 0,
intro: ''
},
logoUploadUrl: window._vionConfig.apiUrl + "/accounts/upload",
logoPathUrl: window._vionConfig.imagesUrl + "/images/",
......@@ -150,15 +154,17 @@ export default {
});
},
dialogInit(data) {
console.log(data)
this.rowId = data.id;
Object.keys(data).forEach(k => {
Object.keys(this.editForm).forEach(k => {
this.editForm[k] = data[k]
})
this.editDialogVisible = true
this.editForm.mapLongitude = data.mapLongitude || null
this.editForm.mapLatitude = data.mapLatitude || null
this.editForm.mapZoom = data.mapZoom || 11
this.editForm.logoPath = data.logoPath || ""
this.editDialogVisible = true
console.log('editForm', this.editForm)
},
beforeAvatarUpload(file) {
const isJPG = file.type === "image/jpeg";
......
......@@ -112,10 +112,10 @@ export default {
{ required: true, message: '请输入设备序列号', trigger: 'blur' }
],
accountId: [{
required: true, message: '请选择集团', trigger: 'change'
required: true, message: '请选择商户', trigger: 'change'
}],
mallId: [{
required: true, message: '请选择店', trigger: 'change'
required: true, message: '请选择店', trigger: 'change'
}]
},
curMallId: null,
......
......@@ -6,7 +6,7 @@
:close-on-click-modal="false"
@close="bindDialogClose">
<div class="mall-sel-box">
<el-select class="belong-mall-sel" v-model="belongMallVal" placeholder="选择所属门店">
<el-select class="belong-mall-sel" v-model="belongMallVal" :placeholder="$t('pholder.mall')">
<el-option v-for="(mallItem, mallIndex) in belongMallList" :label="mallItem.name" :value="mallItem.id" :key="mallIndex"></el-option>
</el-select>
</div>
......
......@@ -112,10 +112,10 @@ export default {
{ required: true, message: '请输入设备序列号', trigger: 'blur' }
],
accountId: [{
required: true, message: '请选择集团', trigger: 'change'
required: true, message: '请选择商户', trigger: 'change'
}],
mallId: [{
required: true, message: '请选择店', trigger: 'change'
required: true, message: '请选择店', trigger: 'change'
}]
},
curMallId: null,
......
......@@ -90,7 +90,7 @@ export default {
// { required: true, message: '请选择状态', trigger: 'blur' },
// ],
mallId: [
{ required: true, message: '请选择店', trigger: 'change' },
{ required: true, message: '请选择店', trigger: 'change' },
],
// accountId: [
// { required: true, message: '请选择集团', trigger: 'change' },
......@@ -126,7 +126,7 @@ export default {
dialogInit(data) {
this.rowId = data.id;
this.editForm = data;
this.editForm.floorPlan = data.floorPlan ? data.floorPlan : '';
this.editForm.floorPlan = data.floorPlan || '';
this.editDialogVisible = true;
},
dialogOpen(formDatas) {
......
......@@ -11,7 +11,7 @@
</span>-->
<!-- <span class="titles">广场选择</span> -->
<div class="manage-select-box">
<el-select v-model="mallValue" filterable placeholder="广场选择" @change="mallChange">
<el-select v-model="mallValue" filterable :placeholder="$t('pholder.shopS')" @change="mallChange">
<el-option
v-for="item in mallListForTerm"
:key="item.id"
......
......@@ -200,7 +200,7 @@ export default {
{ validator: checkY, trigger: 'change' }
],
mallId: [
{ required: true, message: '请选择店', trigger: 'change' },
{ required: true, message: '请选择店', trigger: 'change' },
],
// accountId: [
// { required: true, message: '请选择集团', trigger: 'blur' }
......
......@@ -197,7 +197,7 @@ export default {
{ validator: checkY, trigger: 'change' }
],
mallId: [
{ required: true, message: '请选择店', trigger: 'change' },
{ required: true, message: '请选择店', trigger: 'change' },
],
// accountId: [
// { required: true, message: '请选择集团', trigger: 'blur' }
......
......@@ -321,7 +321,7 @@ export default {
// { required: true, message: '请输入y坐标', trigger: 'change' },
{ validator: checkY, trigger: "change" }
],
mallId: [{ required: true, message: "请选择店", trigger: "change" }],
mallId: [{ required: true, message: "请选择店", trigger: "change" }],
// accountId: [
// { required: true, message: '请选择集团', trigger: 'blur' }
// ],
......
......@@ -271,7 +271,7 @@ export default {
type: [{ required: true, message: "请选择类型", trigger: "change" }],
status: [{ required: true, message: "请选择状态", trigger: "change" }],
// mallId: [
// { required: true, message: '请选择店', trigger: 'change' },
// { required: true, message: '请选择店', trigger: 'change' },
// ],
// accountId: [
// { required: true, message: '请选择集团', trigger: 'blur' },
......
......@@ -243,6 +243,7 @@ export default {
getTableData() {
this.dataMsg = this.$t('echartsTitle.loading')
let _mallId = this.mallValue || null;
if (!this.blocValue || !_mallId) return
let _floorId = this.floorValue || null;
var tabelParams = {
accountId: this.blocValue,
......
......@@ -199,6 +199,7 @@ export default {
this.btnDisabled = false;
},
delNode(ev, n, d, s) {
const { appunid } = this
let e = ev || window.event;
e.stopPropagation();
this.$confirm(
......@@ -212,22 +213,21 @@ export default {
)
.then(() => {
this.$api.management
.delGroup(d.unid, {
// _t: Date.parse(new Date()) / 1000
})
.delMenuNode(appunid, d.unid)
.then(res => {
if (res.data.code == 200) {
if (d.unid == this.groupForm.unid) {
this.groupForm = {
name: "",
// nameEn: '',
pid: -1,
pUnid: -1,
id: "",
unid: '',
intro: ""
};
}
console.log(res)
if (res.data.ecode === 200) {
// if (d.unid == this.groupForm.unid) {
// this.groupForm = {
// name: "",
// // nameEn: '',
// pid: -1,
// pUnid: -1,
// id: "",
// unid: '',
// intro: ""
// };
// }
let parent = n.parent;
let children = parent.data.children || parent.data;
let index = children.findIndex(item => item.unid === d.unid);
......
......@@ -22,8 +22,8 @@
</div>
<el-table :data="tableData" class="asis-table baseasis-table" :max-height="tableHeight">
<el-table-column prop="orderNum" align="center" label="序号"></el-table-column>
<el-table-column prop="mallId" align="center" label="店ID"></el-table-column>
<el-table-column prop="name" align="center" label="店名称" show-overflow-tooltip></el-table-column>
<el-table-column prop="mallId" align="center" label="店ID"></el-table-column>
<el-table-column prop="name" align="center" label="店名称" show-overflow-tooltip></el-table-column>
<el-table-column prop="countdate" align="center" label="日期" :formatter="dateFormatter"></el-table-column>
<el-table-column prop="count" align="center" label="多次到店人数"></el-table-column>
</el-table>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!