|
|
@@ -1,191 +1,435 @@
|
|
|
<template>
|
|
|
- <basic-container>
|
|
|
+ <div class="broadcastList">
|
|
|
+ <div class="broadPaning">
|
|
|
+ <div class="broadPaning-body">
|
|
|
+ <!-- 直播列表 -->
|
|
|
+ <template v-else>
|
|
|
+ <div class="table-item"
|
|
|
+ v-for="(item,index) in liveroomList"
|
|
|
+ :key="index">
|
|
|
+ <div class="headItemp5">
|
|
|
+ <el-link type="primary" @click="showWheeldrawBtn(item)">
|
|
|
+ 大转盘
|
|
|
+ </el-link>
|
|
|
+ <span style="width: 0.625rem;"> </span>
|
|
|
+ <el-link type="info">
|
|
|
+ 分享有奖
|
|
|
+ </el-link>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- </basic-container>
|
|
|
+ <!-- 大转盘 -->
|
|
|
+ <Modal width="70%" v-model="wheeldrawmodel" title="大转盘" @on-ok="wheeldrawok" @on-cancel="wheeldrawcancel">
|
|
|
+ <div style="height:25rem;width:100%;overflow-y: auto;">
|
|
|
+ <Form ref="wheeldrawformItem" :model="wheeldrawformItem" :rules="ruleInline" :label-width="80">
|
|
|
+ <Form-item class="wheeldraw-dialog-width" label="名称" prop="name">
|
|
|
+ <Input v-model="wheeldrawformItem.name" placeholder="请输入"></Input>
|
|
|
+ </Form-item>
|
|
|
+ <Form-item class="wheeldraw-dialog-width" label="直播间">
|
|
|
+ <span>{{ broadcastDetailData.name }}</span>
|
|
|
+ </Form-item>
|
|
|
+ <Form-item class="wheeldraw-dialog-width" required label="城市" prop="city" v-if="roleName == '全部权限' || roleName == '省公司'">
|
|
|
+ <Cascader :data="Citydata"
|
|
|
+ trigger="hover"
|
|
|
+ placeholder="请选择地址"
|
|
|
+ v-model="wheeldrawformItem.city"></Cascader>
|
|
|
+ </Form-item>
|
|
|
+ <Form-item class="wheeldraw-dialog-width" required label="城市" prop="city" v-else>
|
|
|
+ <Input v-model="roleName" :disabled="disabled"></Input>
|
|
|
+ </Form-item>
|
|
|
+ <Form-item class="wheeldraw-dialog-width" label="是否开启">
|
|
|
+ <i-switch v-model="wheeldrawformItem.switch" @on-change="wheeldrawswitchchange"></i-switch>
|
|
|
+ </Form-item>
|
|
|
+ <Form-item class="wheeldraw-dialog-width" required label="奖项" prop="prize">
|
|
|
+ <div v-show="wheelPrizelist.length <= 0">
|
|
|
+ <Row v-for="tag, index in dynamicTags" :key="index" style="margin-bottom: 0.625rem;">
|
|
|
+ <Col span="10">
|
|
|
+ <span>序号{{ index+1 }}</span>
|
|
|
+ <Select style="width:80%;" @on-change="prizeSelect">
|
|
|
+ <Option v-for="item in prizeList" :value="item.id">
|
|
|
+ {{ item.name }}
|
|
|
+ </Option>
|
|
|
+ <Page :total="prizeTotalPage"
|
|
|
+ size="small"
|
|
|
+ :page-size="prizePageSize"
|
|
|
+ :current="prizeCurrentPage"
|
|
|
+ @on-change="handlePageName"
|
|
|
+ style="text-align: right;"
|
|
|
+ />
|
|
|
+ </Select>
|
|
|
+ </Col>
|
|
|
+ <Col span="6">
|
|
|
+ <span>个数</span>
|
|
|
+ <Input-number :min="1" style="width: 80%;" @on-change="handlePrizeNum"></Input-number>
|
|
|
+ </Col>
|
|
|
+ <Col span="6">
|
|
|
+ <span>概率</span>
|
|
|
+ <Input-number :min="1" style="width: 30%;" @on-change="handlePrizeGL1"></Input-number>
|
|
|
+ / 100
|
|
|
+ <!-- <Input-number :min="1" style="width: 30%;" @on-change="handlePrizeGL2"></Input-number> -->
|
|
|
+ </Col>
|
|
|
+ <Col span="1" v-if="(index+1) == dynamicTags">
|
|
|
+ <Button type="text" @click="showInput">
|
|
|
+ <Icon type="plus"></Icon>
|
|
|
+ </Button>
|
|
|
+ </Col>
|
|
|
+ <Col span="1" v-show="dynamicTags > 1">
|
|
|
+ <Button type="text" @click="reducePrizeOption((index))">
|
|
|
+ <Icon type="minus"></Icon>
|
|
|
+ </Button>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ </div>
|
|
|
+ <div v-show="wheelPrizelist.length > 0">
|
|
|
+ <Row v-for="tag, index in wheelPrizelist" :key="index" style="margin-bottom: 0.625rem;">
|
|
|
+ <Col span="10">
|
|
|
+ <span>序号{{ index+1 }}</span>
|
|
|
+ <Select style="width:80%;" @on-change="prizeSelect">
|
|
|
+ <Option v-for="item in prizeList" :value="item.id">
|
|
|
+ {{ item.name }}
|
|
|
+ <!-- {{ tag.prizename }} -->
|
|
|
+ </Option>
|
|
|
+ <Page :total="prizeTotalPage"
|
|
|
+ size="small"
|
|
|
+ :page-size="prizePageSize"
|
|
|
+ :current="prizeCurrentPage"
|
|
|
+ @on-change="handlePageName"
|
|
|
+ style="text-align: right;"
|
|
|
+ />
|
|
|
+ </Select>
|
|
|
+ </Col>
|
|
|
+ <Col span="6">
|
|
|
+ <span>个数</span>
|
|
|
+ <Input-number :min="1" style="width: 80%;" v-model="tag.prizenum" @on-change="handlePrizeNum"></Input-number>
|
|
|
+ </Col>
|
|
|
+ <Col span="6">
|
|
|
+ <span>概率</span>
|
|
|
+ <Input-number :min="1" style="width: 30%;" v-model="tag.lotteryprobability1" @on-change="handlePrizeGL1"></Input-number>
|
|
|
+ / 100
|
|
|
+ <!-- <Input-number :min="1" style="width: 30%;" @on-change="handlePrizeGL2"></Input-number> -->
|
|
|
+ </Col>
|
|
|
+ <Col span="1" v-if="(index+1) == wheelPrizelist.length">
|
|
|
+ <Button type="text" @click="showInput">
|
|
|
+ <Icon type="plus"></Icon>
|
|
|
+ </Button>
|
|
|
+ </Col>
|
|
|
+ <Col span="1" v-show="wheelPrizelist.length > 1">
|
|
|
+ <Button type="text" @click="reducePrizeOption((index))">
|
|
|
+ <Icon type="minus"></Icon>
|
|
|
+ </Button>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="margin-top: 1.25rem;text-align: center;">
|
|
|
+ <Button type="error" @click="clearBothPrize">清除所有奖项</Button>
|
|
|
+ </div>
|
|
|
+ </Form-item>
|
|
|
+ </Form>
|
|
|
+ </div>
|
|
|
+ </Modal>
|
|
|
+
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import {getList as getListShip, getDetail as getDetailShip, add as addShip, update as updateShip, remove as removeShip} from "@/api/ship/ship";
|
|
|
- import {mapGetters} from "vuex";
|
|
|
-
|
|
|
export default {
|
|
|
- data() {
|
|
|
+ name: "broadcastList",
|
|
|
+ data () {
|
|
|
return {
|
|
|
- formShip: {},
|
|
|
- queryShip: {},
|
|
|
- loadingShip: true,
|
|
|
- pageShip: {
|
|
|
- pageSize: 10,
|
|
|
- currentPage: 1,
|
|
|
- total: 0
|
|
|
+ searchName: '',
|
|
|
+ modal1: false,
|
|
|
+ modal2: false,
|
|
|
+ modal3: false,
|
|
|
+ modal4: false,
|
|
|
+ liveroomList: [],
|
|
|
+ cityChecks: [],
|
|
|
+ Citydata: [],
|
|
|
+ pushAddr: "",
|
|
|
+ province: "", // 省
|
|
|
+ city: "", // 市
|
|
|
+ country: "", // 区
|
|
|
+ pageTotal: 100,
|
|
|
+ pageSize: 10,
|
|
|
+ pageCurrent: 1,
|
|
|
+ deleconfimStatus: false,
|
|
|
+ visible: false,
|
|
|
+ roleName: '',
|
|
|
+ showChooseAddress: false,
|
|
|
+ loginCity: '',
|
|
|
+ wheeldrawmodel: false,
|
|
|
+ wheeldrawformItem: {
|
|
|
+ name: '',
|
|
|
+ city: [],
|
|
|
+ switch: false,
|
|
|
+ prize: '',
|
|
|
+ prizenum: 1,
|
|
|
+ prizecode: '',
|
|
|
+ prizelevel: '',
|
|
|
+ lotteryprobability1: 1,
|
|
|
+ lotteryprobability2: 1,
|
|
|
+ prizechance: ''
|
|
|
},
|
|
|
- selectionListShip: [],
|
|
|
- optionShip: {
|
|
|
- height:'auto',
|
|
|
- calcHeight: 30,
|
|
|
- tip: false,
|
|
|
- searchShow: true,
|
|
|
- searchMenuSpan: 6,
|
|
|
- border: true,
|
|
|
- index: true,
|
|
|
- viewBtn: true,
|
|
|
- selection: true,
|
|
|
- dialogClickModal: false,
|
|
|
- column: [
|
|
|
- {
|
|
|
- label: "编号",
|
|
|
- prop: "code",
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: "请输入编号",
|
|
|
- trigger: "blur"
|
|
|
- }]
|
|
|
- },
|
|
|
- {
|
|
|
- label: "名称",
|
|
|
- prop: "name",
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: "请输入名称",
|
|
|
- trigger: "blur"
|
|
|
- }]
|
|
|
- },
|
|
|
- ]
|
|
|
+ broadcastDetailData: '',
|
|
|
+ disabled: true,
|
|
|
+ prize1List: [
|
|
|
+ {
|
|
|
+ value: 'yidengjiang',
|
|
|
+ label: '一等奖'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 'erdengjiang',
|
|
|
+ label: '二等奖'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ inputVisible: false,
|
|
|
+ inputValue: '',
|
|
|
+ dynamicTags: 1,
|
|
|
+ showReduceIcon: false,
|
|
|
+ ruleInline: {
|
|
|
+ name: [
|
|
|
+ { required: true, message: '名称必填', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ // code: [
|
|
|
+ // { required: true, message: '奖项编码必填', trigger: 'blur' }
|
|
|
+ // ],
|
|
|
+ // city: [
|
|
|
+ // { required: true, message: '直播地区必填', trigger: 'blur' }
|
|
|
+ // ],
|
|
|
+ // level: [
|
|
|
+ // { required: true, message: '奖项等级必填', trigger: 'blur' }
|
|
|
+ // ]
|
|
|
},
|
|
|
- dataShip: []
|
|
|
- };
|
|
|
+ prizeTotalPage: 100,
|
|
|
+ prizePageSize: 10,
|
|
|
+ prizeCurrentPage: 1,
|
|
|
+ prizeList: [],
|
|
|
+ prizeItemData: '',
|
|
|
+ wheelPrizelist: [],
|
|
|
+ showdeleteflag: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ components: {
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(["permission"]),
|
|
|
- permissionListShip() {
|
|
|
- return {
|
|
|
- addBtn: this.vaildData(this.permission.ship_add, false),
|
|
|
- viewBtn: this.vaildData(this.permission.ship_view, false),
|
|
|
- delBtn: this.vaildData(this.permission.ship_delete, false),
|
|
|
- editBtn: this.vaildData(this.permission.ship_edit, false)
|
|
|
- };
|
|
|
- },
|
|
|
- idsShip() {
|
|
|
- let ids = [];
|
|
|
- this.selectionList.forEach(ele => {
|
|
|
- ids.push(ele.id);
|
|
|
- });
|
|
|
- return ids.join(",");
|
|
|
- }
|
|
|
},
|
|
|
+ watch: {},
|
|
|
+ created () {
|
|
|
+
|
|
|
+ },
|
|
|
+ mounted () { },
|
|
|
methods: {
|
|
|
- rowSaveShip(row, done, loading) {
|
|
|
- addShip(row).then(() => {
|
|
|
- this.onLoad(this.page);
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- done();
|
|
|
- }, error => {
|
|
|
- loading();
|
|
|
- window.console.log(error);
|
|
|
- });
|
|
|
- },
|
|
|
- rowUpdateShip(row, index, done, loading) {
|
|
|
- updateShip(row).then(() => {
|
|
|
- this.onLoad(this.page);
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- done();
|
|
|
- }, error => {
|
|
|
- loading();
|
|
|
- console.log(error);
|
|
|
- });
|
|
|
+
|
|
|
+ showWheeldrawBtn(item) {
|
|
|
+ const that = this
|
|
|
+ that.wheeldrawmodel = true
|
|
|
+ that.broadcastDetailData = item
|
|
|
+ that.getPrizeList()
|
|
|
},
|
|
|
- rowDelShip(row) {
|
|
|
- this.$confirm("确定将选择数据删除?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- return removeShip(row.id);
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.onLoad(this.page);
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- });
|
|
|
+
|
|
|
+ showInput() {
|
|
|
+ let tempArr = new Array();
|
|
|
+ tempArr = this.wheelPrizelist;
|
|
|
+ let tmpprize = {}
|
|
|
+ tmpprize.index = this.dynamicTags
|
|
|
+ tmpprize.prizeid = this.prizeItemData.id
|
|
|
+ tmpprize.prizename = this.prizeItemData.name
|
|
|
+ tmpprize.prizecode = this.prizeItemData.code
|
|
|
+ tmpprize.prizelevel = this.prizeItemData.level
|
|
|
+ tmpprize.prizenum = this.wheeldrawformItem.prizenum
|
|
|
+ tmpprize.lotteryprobability1 = this.wheeldrawformItem.lotteryprobability1
|
|
|
+ tmpprize.lotteryprobability2 = 100
|
|
|
+ tmpprize.roomid = this.broadcastDetailData.room_id
|
|
|
+ tmpprize.sort = 1
|
|
|
+ // console.log(tmpprize)
|
|
|
+ tempArr.push(tmpprize);
|
|
|
+ this.wheelPrizelist = tempArr;
|
|
|
+ console.log(this.wheelPrizelist)
|
|
|
+ this.dynamicTags++;
|
|
|
+ // this.prizeItemData.id = ''
|
|
|
+ // this.prizeItemData.name = ''
|
|
|
+ // this.prizeItemData.code = ''
|
|
|
+ // this.prizeItemData.level = ''
|
|
|
+ // this.wheeldrawformItem.prizenum = 1
|
|
|
+ // this.wheeldrawformItem.lotteryprobability1 = 1
|
|
|
+ // this.wheeldrawformItem.lotteryprobability2 = 1
|
|
|
},
|
|
|
- handleDeleteShip() {
|
|
|
- if (this.selectionList.length === 0) {
|
|
|
- this.$message.warning("请选择至少一条数据");
|
|
|
- return;
|
|
|
+
|
|
|
+ reducePrizeOption(listindex) {
|
|
|
+ if(this.dynamicTags.length == this.wheelPrizelist) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ let tempArr = new Array();
|
|
|
+ tempArr = this.wheelPrizelist;
|
|
|
+ let tmpprize = {}
|
|
|
+ tmpprize.index = this.dynamicTags
|
|
|
+ tmpprize.prizeid = this.prizeItemData.id
|
|
|
+ tmpprize.prizename = this.prizeItemData.name
|
|
|
+ tmpprize.prizecode = this.prizeItemData.code
|
|
|
+ tmpprize.prizelevel = this.prizeItemData.level
|
|
|
+ tmpprize.prizenum = this.wheeldrawformItem.prizenum
|
|
|
+ tmpprize.lotteryprobability1 = this.wheeldrawformItem.lotteryprobability1
|
|
|
+ tmpprize.lotteryprobability2 = 100
|
|
|
+ tmpprize.roomid = this.broadcastDetailData.room_id
|
|
|
+ tmpprize.sort = 1
|
|
|
+ tempArr.push(tmpprize);
|
|
|
+ this.wheelPrizelist = tempArr;
|
|
|
}
|
|
|
- this.$confirm("确定将选择数据删除?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
+ console.log(this.wheeldrawformItem.prizenum)
|
|
|
+ // console.log(listindex)
|
|
|
+ // console.log(this.wheelPrizelist)
|
|
|
+ this.wheelPrizelist.map((item,index,arr) => {
|
|
|
+ if (item.index == (listindex+1)) {
|
|
|
+ this.wheelPrizelist.splice(listindex, 1)
|
|
|
+ }
|
|
|
+ return;
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- return removeShip(this.ids);
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.onLoadShip(this.page);
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- this.$refs.crudShip.toggleSelection();
|
|
|
- });
|
|
|
+
|
|
|
+ this.dynamicTags--;
|
|
|
},
|
|
|
- beforeOpenShip(done, type) {
|
|
|
- if (["edit", "view"].includes(type)) {
|
|
|
- getDetailShip(this.form.id).then(res => {
|
|
|
- this.form = res.data.data;
|
|
|
- });
|
|
|
- }
|
|
|
- done();
|
|
|
+
|
|
|
+ clearBothPrize() {
|
|
|
+ // this.dynamicTags = 1
|
|
|
+ // this.wheelPrizelist = []
|
|
|
+ // tmpprize.prizeid = this.prizeItemData.id
|
|
|
+ // tmpprize.prizename = this.prizeItemData.name
|
|
|
+ // tmpprize.prizecode = this.prizeItemData.code
|
|
|
+ // tmpprize.prizelevel = this.prizeItemData.level
|
|
|
+ // this.prizeItemData = ''
|
|
|
+ // this.wheeldrawformItem.prizenum = 1
|
|
|
+ // this.wheeldrawformItem.lotteryprobability1 = 1
|
|
|
+ // this.wheeldrawformItem.lotteryprobability2 = 1
|
|
|
},
|
|
|
- searchResetShip() {
|
|
|
- this.query = {};
|
|
|
- this.onLoadShip(this.page);
|
|
|
+
|
|
|
+ wheeldrawswitchchange(status) {
|
|
|
+ this.wheeldrawformItem.switch = status
|
|
|
+ // this.$Message.info('开关状态:' + status);
|
|
|
},
|
|
|
- searchChangeShip(params, done) {
|
|
|
- this.queryShip = params;
|
|
|
- this.pageShip.currentPage = 1;
|
|
|
- this.onLoadShip(this.pageShip, params);
|
|
|
- done();
|
|
|
+
|
|
|
+ getPrizeList() {
|
|
|
+ const tmpdata = {
|
|
|
+ "pageNo": this.prizeCurrentPage,
|
|
|
+ "pageSize": this.prizePageSize,
|
|
|
+ "city": this.city
|
|
|
+ }
|
|
|
+ this.$http.post("/live/wheel/prize/getByCity", this.common.request(tmpdata)).then(response => {
|
|
|
+ if (response.data.body.status.statusCode == 0) {
|
|
|
+ let data = response.data.body.data
|
|
|
+ if (data.list) {
|
|
|
+ this.prizeList = data.list
|
|
|
+ this.prizeTotalPage = data.totalNum;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$Message.error(response.data.body.status.errorDesc);
|
|
|
+ }
|
|
|
+ }, response => {
|
|
|
+ this.$Message.error(response.data.body.status.errorDesc);
|
|
|
+ });
|
|
|
},
|
|
|
- selectionChangeShip(list) {
|
|
|
- this.selectionListShip = list;
|
|
|
+
|
|
|
+ handlePageName(e) {
|
|
|
+ this.prizeCurrentPage = e
|
|
|
},
|
|
|
- selectionClearShip() {
|
|
|
- this.selectionListShip = [];
|
|
|
- this.$refs.crudShip.toggleSelection();
|
|
|
+
|
|
|
+ prizeSelect(value) {
|
|
|
+ const that = this
|
|
|
+ let tmpprizeitem = ''
|
|
|
+ that.prizeList.map((item,index,arr)=>{
|
|
|
+ if (item.id == value) {
|
|
|
+ tmpprizeitem = item
|
|
|
+ return
|
|
|
+ }
|
|
|
+ })
|
|
|
+ that.prizeItemData = tmpprizeitem
|
|
|
+ // console.log(that.prizeItemData)
|
|
|
+ // console.log(tmpprizeitem)
|
|
|
+ // this.wheeldrawformItem.prizecode = value
|
|
|
},
|
|
|
- currentChangeShip(currentPage){
|
|
|
- this.pageShip.currentPage = currentPage;
|
|
|
+
|
|
|
+ handlePrizeNum(value) {
|
|
|
+ // console.log(value)
|
|
|
+ this.wheeldrawformItem.prizenum = value
|
|
|
+ },
|
|
|
+
|
|
|
+ handlePrizeGL1(value) {
|
|
|
+ // console.log(value)
|
|
|
+ this.wheeldrawformItem.lotteryprobability1 = value
|
|
|
},
|
|
|
- sizeChangeShip(pageSize){
|
|
|
- this.pageShip.pageSize = pageSize;
|
|
|
+
|
|
|
+ handlePrizeGL2(value) {
|
|
|
+ // console.log(value)
|
|
|
+ this.wheeldrawformItem.lotteryprobability2 = value
|
|
|
+ // let tempArr = new Array();
|
|
|
+ // tempArr = this.wheelPrizelist;
|
|
|
+ // let tmpprize = {}
|
|
|
+ // tmpprize.prizeid = this.prizeItemData.id
|
|
|
+ // tmpprize.prizename = this.prizeItemData.name
|
|
|
+ // tmpprize.prizecode = this.prizeItemData.code
|
|
|
+ // tmpprize.prizelevel = this.prizeItemData.level
|
|
|
+ // tmpprize.prizenum = this.wheeldrawformItem.prizenum
|
|
|
+ // tmpprize.lotteryprobability1 = this.wheeldrawformItem.lotteryprobability1
|
|
|
+ // tmpprize.lotteryprobability2 = this.wheeldrawformItem.lotteryprobability2
|
|
|
+ // tmpprize.roomid = this.broadcastDetailData.room_id
|
|
|
+ // tmpprize.sort = 1
|
|
|
+ // // console.log(tmpprize)
|
|
|
+ // tempArr.push(tmpprize);
|
|
|
+ // this.wheelPrizelist = tempArr;
|
|
|
+ // console.log(this.wheelPrizelist)
|
|
|
},
|
|
|
- refreshChangeShip() {
|
|
|
- this.onLoadShip(this.pageShip, this.queryShip);
|
|
|
+
|
|
|
+ wheeldrawok() {
|
|
|
+ // console.log(this.$refs.kkk.querySelector('.inputnum'))
|
|
|
+ // let tmpwheelprizelist = []
|
|
|
+ // console.log(this.wheelPrizelist)
|
|
|
+ if(this.dynamicTags.length == this.wheelPrizelist) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ let tempArr = new Array();
|
|
|
+ tempArr = this.wheelPrizelist;
|
|
|
+ let tmpprize = {}
|
|
|
+ tmpprize.index = this.dynamicTags
|
|
|
+ tmpprize.prizeid = this.prizeItemData.id
|
|
|
+ tmpprize.prizename = this.prizeItemData.name
|
|
|
+ tmpprize.prizecode = this.prizeItemData.code
|
|
|
+ tmpprize.prizelevel = this.prizeItemData.level
|
|
|
+ tmpprize.prizenum = this.wheeldrawformItem.prizenum
|
|
|
+ tmpprize.lotteryprobability1 = this.wheeldrawformItem.lotteryprobability1
|
|
|
+ tmpprize.lotteryprobability2 = 100
|
|
|
+ tmpprize.roomid = this.broadcastDetailData.room_id
|
|
|
+ tmpprize.sort = 1
|
|
|
+ console.log(tmpprize)
|
|
|
+ tempArr.push(tmpprize);
|
|
|
+ this.wheelPrizelist = tempArr;
|
|
|
+ console.log(this.wheelPrizelist)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ // let tmpprize = {}
|
|
|
+ // tmpprize.prizeid = this.prizeItemData.id
|
|
|
+ // tmpprize.prizename = this.prizeItemData.name
|
|
|
+ // tmpprize.prizecode = this.prizeItemData.code
|
|
|
+ // tmpprize.prizelevel = this.prizeItemData.level
|
|
|
+ // tmpprize.prizenum = this.wheeldrawformItem.prizenum
|
|
|
+ // tmpprize.lotteryprobability1 = this.wheeldrawformItem.lotteryprobability1
|
|
|
+ // tmpprize.lotteryprobability2 = this.wheeldrawformItem.lotteryprobability2
|
|
|
+ // tmpprize.roomid = this.broadcastDetailData.room_id
|
|
|
+ // tmpprize.sort = 1
|
|
|
+ // console.log(tmpprize)
|
|
|
+ // this.wheelPrizelist.push(tmpprize)
|
|
|
+ // console.log(this.wheelPrizelist)
|
|
|
},
|
|
|
- onLoadShip(page, params = {}) {
|
|
|
- this.loadingShip = true;
|
|
|
- getListShip(page.currentPage, page.pageSize, Object.assign(params, this.queryShip)).then(res => {
|
|
|
- const data = res.data.data;
|
|
|
- this.pageShip.total = data.total;
|
|
|
- this.dataShip = data.records;
|
|
|
- this.loadingShip = false;
|
|
|
- this.selectionClearShip();
|
|
|
- });
|
|
|
+
|
|
|
+ wheeldrawcancel() {
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
- };
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
+<style lang='less'>
|
|
|
+
|
|
|
</style>
|