| | |
| | | <div class="name">{{ $t("安全") }}</div> |
| | | </div> |
| | | </li> --> |
| | | <li @click="aRouter1"> |
| | | <!-- <li @click="aRouter1"> |
| | | <div class="link"> |
| | | <div class="icon"> |
| | | <img |
| | |
| | | </div> |
| | | <div class="name">{{ $t("kf") }}</div> |
| | | </div> |
| | | </li> |
| | | </li> --> |
| | | <!-- <li @click="$router.push('/warehouse')"> |
| | | <div class="link"> |
| | | <div class="icon"> |
| | |
| | | }, |
| | | }, |
| | | |
| | | mounted() { |
| | | async mounted() { |
| | | this.getUserInfo(); |
| | | this.getInfoSite(); |
| | | this.getNewsList(1); |
| | | await this.getNewsList(1); |
| | | this.getArtList(); |
| | | this.getBanner(); |
| | | |
| | |
| | | refreshing: false, |
| | | }; |
| | | }, |
| | | |
| | | beforeDestroy() { |
| | | if (this.Trade) { |
| | | this.Trade.close(); |
| | | console.log('WebSocket disconnected'); |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.listArr = []; |
| | | this.pageNumVal = 1; |
| | |
| | | }); |
| | | }); |
| | | |
| | | const arr = data.data.filter((item) => item.accectType === "ALL"); |
| | | const arr = data.data.filter((item) => item.accectType === "IN"); |
| | | this.asstesAll = arr[0].totalMoney; |
| | | } |
| | | }, |
| | |
| | | </div> |
| | | <div class="hang"> |
| | | <div class="left">{{ $t("倉位(股)") }}</div> |
| | | <div class="right" style="color: rgb(3, 173, 143)"> |
| | | <!-- <div class="right" style="color: rgb(3, 173, 143)"> |
| | | {{ closeSell.orderNum }} |
| | | </div> |
| | | </div> --> |
| | | <input class="input_box" type="number" :max="closeSell.orderNum" :placeholder="$t('hj262')" v-model="ordernum" /> |
| | | </div> |
| | | <div class="hang"> |
| | | <div class="left">{{ $t("類型") }}</div> |
| | |
| | | closeSell: {}, |
| | | show: false, |
| | | actives: 0, |
| | | ordernum:'', |
| | | dataList: [], |
| | | newdataList:[], |
| | | timer: null, |
| | |
| | | }; |
| | | }, |
| | | created(){ |
| | | this.dsq() |
| | | // this.dsq() |
| | | }, |
| | | beforeDestroy() { |
| | | clearInterval(this.timer); // 在组件销毁前清除定时器 |
| | |
| | | // this.dataList = []; |
| | | this.timer = setInterval(() => { |
| | | this.getList(); |
| | | }, 3000); |
| | | }, 1000); |
| | | }, |
| | | pushRouter(item) { |
| | | const obj = { |
| | |
| | | this.loading = true; |
| | | }, |
| | | async confirm() { |
| | | this.$refs.closeDialog.show = false; |
| | | const res = await sell({ |
| | | positionSn: this.closeSell.positionSn, |
| | | number:this.ordernum |
| | | }); |
| | | if (res.status === 0) { |
| | | this.$refs.closeDialog.show = false; |
| | | this.dataList = []; |
| | | this.pageNum = 1; |
| | | this.finished = false; |
| | | Notify({ type: "success", message: res.msg }); |
| | | this.getList(); |
| | | this.$emit("closingPosition"); |
| | | } else { |
| | |
| | | state: this.actives, |
| | | stockType: laber || this.activeObj.laber, |
| | | pageNum: 1, |
| | | pageSize: 100, |
| | | pageSize: 30, |
| | | }); |
| | | |
| | | this.loading = false; |
| | | if (res.status === 0) { |
| | | this.dataList = [] |
| | | this.newdataList = [] |
| | | if(this.actives == 0){ |
| | | this.dataList = res.data.list; |
| | | }else{ |
| | |
| | | close(item) { |
| | | this.closeSell = item; |
| | | this.$refs.closeDialog.show = true; |
| | | this.ordernum = '' |
| | | }, |
| | | |
| | | clickTabs(e) { |
| | | this.dataList = []; |
| | | this.pageNum = 1; |
| | | this.finished = false; |
| | | this.actives = e.key; |
| | | this.$forceUpdate(); // 强制Vue重新渲染 |
| | | // this.newdataList = [] |
| | | // this.dataList = [] |
| | | |
| | | if(e.key==1){ |
| | | clearTimeout(this.timer); |
| | | clearInterval(this.timer); // 在组件销毁前清除定时器 |
| | | // clearTimeout(this.timer); |
| | | // setTimeout(()=>{ |
| | | // clearInterval(this.timer); // 在组件销毁前清除定时器 |
| | | // },3000) |
| | | this.getList() |
| | | |
| | | }else{ |
| | | this.dsq() |
| | | // this.startPolling(); |
| | | // this.dsq() |
| | | }else{ |
| | | clearInterval(this.timer); // 在组件销毁前清除定时器 |
| | | this.getList() |
| | | } |
| | | this.$forceUpdate(); // 强制Vue重新渲染 |
| | | |
| | | // this.getList() |
| | | // if(e.key !=this.actives){ |
| | |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | .input_box{ |
| | | text-align: right; |
| | | font-size: 16px; |
| | | |
| | | padding: 0 4px; |
| | | } |
| | | .sport-tabs { |
| | | // font-family: PingFang SC; |
| | | font-family: "DINPro"; |
| | |
| | | </span> |
| | | </p> |
| | | </div> |
| | | <div v-if="item.withStatus == 0" class="order-foot clearfix"> |
| | | <!-- <div v-if="item.withStatus == 0" class="order-foot clearfix"> |
| | | <div @click="cancle(item.id)" class="foot-btn"> |
| | | <i class="font-icon"></i> |
| | | {{ $t("hjqxtx") }} |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | <!-- <div class="capital"> |
| | | <div class="pro"> |