|
|
@@ -72,16 +72,6 @@
|
|
|
label="操作"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
-
|
|
|
- <!--<el-button type="success" v-if="scope.row.Status == 8" size="mini"-->
|
|
|
- <!--@click="pauseRow(scope.row,1)">-->
|
|
|
- <!--启用-->
|
|
|
- <!--</el-button>-->
|
|
|
- <!--<el-button type="warning" v-if="scope.row.Status == 1" size="mini"-->
|
|
|
- <!--@click="pauseRow(scope.row,8)">-->
|
|
|
- <!--禁用-->
|
|
|
- <!--</el-button>-->
|
|
|
-
|
|
|
<el-button type="danger" size="mini"
|
|
|
@click="pauseRowDel(scope.row)">
|
|
|
删除
|
|
|
@@ -146,7 +136,8 @@
|
|
|
<script>
|
|
|
import Global from '../Global.js'
|
|
|
import {
|
|
|
- QueryDemoVenueEquip,
|
|
|
+ QueryDemoVenueEquipByLoallout,
|
|
|
+ QueryShopListByLoallout,
|
|
|
ShopListQuery,
|
|
|
QueryShopVenue,
|
|
|
QueryVenueEquip,
|
|
|
@@ -212,17 +203,16 @@
|
|
|
row = item;
|
|
|
}
|
|
|
});
|
|
|
- that.getQueryShopVenue(row.ServiceKey, row.ServiceId);
|
|
|
+ that.getQueryShopVenue(row.Key, row.ShopID);
|
|
|
},
|
|
|
// 获取店面列表
|
|
|
getShopListSelect() {
|
|
|
let that = this;
|
|
|
let param = {
|
|
|
- token: localStorage.token,
|
|
|
- shopId: localStorage.ServiceId,
|
|
|
+ key: '73c845ca89d952074b36a5b18d961cac',
|
|
|
};
|
|
|
let postdata = qs.stringify(param);
|
|
|
- ShopListQuery(postdata).then(res => {
|
|
|
+ QueryShopListByLoallout(postdata).then(res => {
|
|
|
let json = res;
|
|
|
if (json.Code == 0) {
|
|
|
if (json.Rs == '') {
|
|
|
@@ -275,17 +265,9 @@
|
|
|
pauseRowDel(row) {
|
|
|
let that = this;
|
|
|
let line = "";
|
|
|
- that.ShopList.map(function (item) {
|
|
|
- console.log(item);
|
|
|
- if (parseInt(item.ServiceId) == parseInt(row.ShopID)) {
|
|
|
- line = item;
|
|
|
- }
|
|
|
- });
|
|
|
- console.log(row);
|
|
|
- console.log(line);
|
|
|
let param = {
|
|
|
- key: line.ServiceKey,
|
|
|
- shopId: line.ServiceId,
|
|
|
+ key: row.ShopKey,
|
|
|
+ shopId: row.ShopID,
|
|
|
svId: row.SvId,
|
|
|
eqId: row.EqId,
|
|
|
status: 9,//1:启用 8:暂停 9:删除
|
|
|
@@ -391,15 +373,18 @@
|
|
|
return false
|
|
|
}
|
|
|
let row = this.tableRadio;
|
|
|
- let line = '';
|
|
|
- that.ShopList.map(function (item) {
|
|
|
- if (parseInt(item.ShopID) == parseInt(row.ShopID)) {
|
|
|
- that.form.shopId = parseInt(item.ServiceId);
|
|
|
- line = item;
|
|
|
- }
|
|
|
- });
|
|
|
- that.getQueryShopVenue(line.ServiceKey, line.ServiceId);
|
|
|
-
|
|
|
+ // 蒙正ShopID 3 ServiceId 5
|
|
|
+ // console.log(row);
|
|
|
+ // let line = '';
|
|
|
+ // that.ShopList.map(function (item) {
|
|
|
+ // if (parseInt(item.ShopID) == parseInt(row.ShopID)) {
|
|
|
+ // line = item;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // console.log(line);
|
|
|
+ that.getQueryShopVenue(row.ShopKey, row.ShopID);
|
|
|
+
|
|
|
+ this.form.shopId = row.ShopID;
|
|
|
this.form.venveId = row.SvId;
|
|
|
this.form.userId = row.Id;
|
|
|
this.form.name = row.Name;
|
|
|
@@ -528,7 +513,7 @@
|
|
|
key: '73c845ca89d952074b36a5b18d961cac',
|
|
|
};
|
|
|
let postdata = qs.stringify(param);
|
|
|
- QueryDemoVenueEquip(postdata).then(res => {
|
|
|
+ QueryDemoVenueEquipByLoallout(postdata).then(res => {
|
|
|
let json = res;
|
|
|
if (json.Code == 0) {
|
|
|
that.loading = false;
|