yujialong 9 months ago
parent ad4113d1f1
commit 03ce15ee99
  1. 11
      src/utils/http.js
  2. 13
      src/views/Home.vue
  3. 9
      src/views/Program.vue
  4. 400
      src/views/ProgramOptions.vue
  5. 8
      src/views/Transaction.vue

@ -18,7 +18,7 @@ if(isKd){
host = 'http://124.71.12.62:9000'; // 巢湖版
} else if (dev) {
host = 'http://121.37.12.51';
host = 'http://192.168.31.217:9000';
// host = 'http://192.168.31.217:9000';
}
}
@ -35,10 +35,9 @@ service.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8'
// 请求拦截器
service.interceptors.request.use(config => {
// if (sessionStorage.getItem('token')) {
// 存在将token写入 request header
config.headers.token = store.state.token
// }
const { token } = router.currentRoute.query
config.headers.token = token ? atob(decodeURI(token)) : localStorage.getItem('token')
return config;
}, err => {
Message.error({
@ -106,7 +105,11 @@ function logouts(){
let referrer = store.state.referrer
store.replaceState({})
sessionStorage.removeItem('kd_client_username')
if (referrer) {
location.href = referrer
} else {
window.history.back()
}
}
let tokenStatus = {
0: '用户未登录,请登录后操作!',

@ -135,15 +135,12 @@ export default {
},
},
mounted () {
console.log('当前地址=', location.host);
console.log("token=", this.$route.query.token)
console.log("systemId=", this.$route.query.systemId)
this.isProcess = this.systemId == 11 || this.systemId == 12 || this.systemId == 19
// sessionStorage.setItem('token',this.$route.query.token)
this.$route.query.token && this.$store.commit('setParam', {
token: atob(decodeURI(this.$route.query.token)),
referrer: atob(decodeURI(this.$route.query.referrer))
})
const { token, referrer } = this.$route.query
if (token) {
localStorage.setItem('token', atob(decodeURI(token)))
localStorage.setItem('referrer', atob(decodeURI(referrer)))
}
this.initData();
},

@ -206,10 +206,11 @@ export default {
};
},
mounted () {
this.$route.query.token && this.$store.commit('setParam', {
token: atob(decodeURI(this.$route.query.token)),
referrer: atob(decodeURI(this.$route.query.referrer))
});
const { token, referrer } = this.$route.query
if (token) {
localStorage.setItem('token', atob(decodeURI(token)))
localStorage.setItem('referrer', atob(decodeURI(referrer)))
}
if (this.$route.query.bcId) {
this.bcId = this.$route.query.bcId;
this.getInfoData(this.$route.query.bcId);

@ -2,16 +2,16 @@
<!-- 编程类 -->
<div class="content">
<div class="header flex">
<i
class="back el-icon-arrow-left"
<i class="back el-icon-arrow-left"
@click="Back()"
style="cursor: pointer"
>
style="cursor: pointer">
<span>Back</span>
</i>
<p>判分点设置</p>
<el-button class="btn" type="primary" @click="Savejump('ruleForm')">保存</el-button>
<el-button class="btn"
type="primary"
@click="Savejump('ruleForm')">保存</el-button>
</div>
<div class="footer">
<div>
@ -20,48 +20,49 @@
<p>基本信息</p>
</div>
<el-form
:model="ruleForm"
<el-form :model="ruleForm"
:rules="rules"
ref="ruleForm"
label-width="150px"
>
<el-form-item label="请输入判分点名称" prop="judgmentPointsName">
label-width="150px">
<el-form-item label="请输入判分点名称"
prop="judgmentPointsName">
<el-input v-model="ruleForm.judgmentPointsName"></el-input>
</el-form-item>
<el-form-item label="实验要求" prop="experimentalRequirements">
<quill :border="true" v-model="ruleForm.experimentalRequirements" :minHeight="150" :height="150" />
<el-form-item label="实验要求"
prop="experimentalRequirements">
<quill :border="true"
v-model="ruleForm.experimentalRequirements"
:minHeight="150"
:height="150" />
</el-form-item>
</el-form>
<div class="flex footer_b">
<div class="black"></div>
<p>判分规则</p>
<el-button class="btn" type="primary" :disabled="isAdd" @click="AddListRow()"
>新增</el-button
>
<el-button class="btn"
type="primary"
:disabled="isAdd"
@click="AddListRow()">新增</el-button>
</div>
</div>
<el-row>
<el-col :span="24">
<el-card shadow="hover">
<el-table
:data="tableData"
<el-table :data="tableData"
:stripe="true"
:cell-style="rowClass"
:header-cell-style="headClass"
header-align="center"
ref="editTable"
>
<el-table-column
prop="decisionPointRule"
ref="editTable">
<el-table-column prop="decisionPointRule"
type="index"
label="序号"
align="center"
width="80"
></el-table-column>
<el-table-column label="流程判分正确答案" align="center">
width="80"></el-table-column>
<el-table-column label="流程判分正确答案"
align="center">
<template slot-scope="scope">
<template v-if="scope.row.isInput">
<p class="p">
@ -71,18 +72,14 @@
<div class="line">
<span class="label">一级栏目</span>
<div class="action">
<el-select
v-model="scope.row.levelOne"
<el-select v-model="scope.row.levelOne"
placeholder="请选择"
size="mini"
@change="getSubject(scope.row)"
>
<el-option
v-for="(item, index) in stepList"
@change="getSubject(scope.row)">
<el-option v-for="(item, index) in stepList"
:key="index"
:label="item.stepName"
:value="item.id"
></el-option>
:value="item.id"></el-option>
</el-select>
</div>
</div>
@ -90,18 +87,13 @@
<span class="label">子级栏目</span>
<div class="action steps">
{{ scope.row.stepName }}
<el-radio-group
class="radio-wrap"
<el-radio-group class="radio-wrap"
v-model="scope.row.levelTwo"
size="mini"
@change="getOption(scope.row)"
>
<el-radio
v-for="(item, index) in scope.row.subjectList"
@change="getOption(scope.row)">
<el-radio v-for="(item, index) in scope.row.subjectList"
:key="index"
:label="item.id"
>{{ item.kdSubjectName }}</el-radio
>
:label="item.id">{{ item.kdSubjectName }}</el-radio>
<!-- <div class="child">
<el-radio :label="9">备选项</el-radio>
<el-radio :label="10">备选项</el-radio>
@ -113,29 +105,25 @@
</template>
</template>
</el-table-column>
<el-table-column align="center" width="150">
<el-table-column align="center"
width="150">
<template slot-scope="scope">
<el-button
v-if="scope.row.isInput"
<el-button v-if="scope.row.isInput"
type="primary"
:disabled="scope.row.isShow"
style="cursor: pointer; border-radius: 50%"
circle
@click="getPerhaps(scope.row)"
>{{ scope.row.operatorOne == 1 ? "且" : "或" }}</el-button
>
<el-button
v-else
@click="getPerhaps(scope.row)">{{ scope.row.operatorOne == 1 ? "且" : "或" }}</el-button>
<el-button v-else
type="primary"
:disabled="scope.row.isShow"
style="cursor: pointer; border-radius: 50%"
circle
@click="getPerhapsColumn(scope.row)"
>{{ operatorTwo == 1 ? "且" : "或" }}</el-button
>
@click="getPerhapsColumn(scope.row)">{{ operatorTwo == 1 ? "且" : "或" }}</el-button>
</template>
</el-table-column>
<el-table-column label="交易结果正确答案" align="center">
<el-table-column label="交易结果正确答案"
align="center">
<template slot-scope="scope">
<template v-if="scope.row.isInput">
<p class="p">
@ -145,24 +133,21 @@
<template v-if="scope.row.levelTwo">
<template v-if="scope.row.type == 1 && scope.row.subjectName">
<div class="line">
<span class="label" style="width: auto;text-align: left">{{scope.row.subjectName}}</span>
<span class="label"
style="width: auto;text-align: left">{{scope.row.subjectName}}</span>
</div>
<div class="line">
<span class="label mini">正确答案</span>
<div class="action">
<el-select
multiple
<el-select multiple
v-model="scope.row.levelFour"
placeholder="请选择"
size="mini"
style="width: 100%"
>
<el-option
v-for="(item, index) in scope.row.optionList"
style="width: 100%">
<el-option v-for="(item, index) in scope.row.optionList"
:key="index"
:label="item.itemDescription"
:value="item.id"
></el-option>
:value="item.id"></el-option>
</el-select>
</div>
</div>
@ -172,29 +157,25 @@
<span class="label">交易指标区间</span>
<div class="action">
<div class="inputs">
<el-select
v-model="scope.row.symbolInput1"
<el-select v-model="scope.row.symbolInput1"
placeholder="请选择"
size="mini"
>
<el-option label="(" value="("></el-option>
<el-option label="[" value="["></el-option>
size="mini">
<el-option label="("
value="("></el-option>
<el-option label="["
value="["></el-option>
</el-select>
<el-input
v-model="scope.row.symbolInput2"
size="mini"
></el-input>
<el-input
v-model="scope.row.symbolInput3"
size="mini"
></el-input>
<el-select
v-model="scope.row.symbolInput4"
<el-input v-model="scope.row.symbolInput2"
size="mini"></el-input>
<el-input v-model="scope.row.symbolInput3"
size="mini"></el-input>
<el-select v-model="scope.row.symbolInput4"
placeholder="请选择"
size="mini"
>
<el-option label=")" value=")"></el-option>
<el-option label="]" value="]"></el-option>
size="mini">
<el-option label=")"
value=")"></el-option>
<el-option label="]"
value="]"></el-option>
</el-select>
</div>
</div>
@ -204,28 +185,21 @@
<div class="line">
<span class="label">
<el-checkbox v-model="scope.row.numOfWords">字数要求</el-checkbox>
</span
>
</span>
<div class="action a-line">
<el-select
v-model="scope.row.symbol"
<el-select v-model="scope.row.symbol"
placeholder="请选择"
size="mini"
>
<el-option
v-for="(item, index) in symbolList"
size="mini">
<el-option v-for="(item, index) in symbolList"
:key="index"
:label="item.name"
:value="item.id"
></el-option>
:value="item.id"></el-option>
</el-select>
<el-input
type="number"
<el-input type="number"
min="0"
style="margin-left: 5px"
size="mini"
v-model="scope.row.numDes"
></el-input>
v-model="scope.row.numDes"></el-input>
</div>
</div>
<div class="line">
@ -233,13 +207,11 @@
<el-checkbox v-model="scope.row.fieldOfReq">字段要求</el-checkbox>
</span>
<div class="action">
<el-input
class="mini-textarea"
<el-input class="mini-textarea"
type="textarea"
cols="3"
size="mini"
v-model="scope.row.levelFour"
></el-input>
v-model="scope.row.levelFour"></el-input>
</div>
</div>
</template>
@ -247,17 +219,13 @@
<div class="line">
<span class="label">选择指标</span>
<div class="action">
<el-select
v-model="scope.row.levelThree"
<el-select v-model="scope.row.levelThree"
placeholder="请选择"
size="mini"
>
<el-option
v-for="(item, index) in scope.row.optionList"
size="mini">
<el-option v-for="(item, index) in scope.row.optionList"
:key="index"
:label="item.itemDescription"
:value="item.id"
></el-option>
:value="item.id"></el-option>
</el-select>
</div>
</div>
@ -265,31 +233,27 @@
<span class="label">交易指标区间</span>
<div class="action">
<div class="inputs">
<el-select
v-model="scope.row.symbolInput1"
<el-select v-model="scope.row.symbolInput1"
placeholder="请选择"
size="mini"
>
<el-option label="(" value="("></el-option>
<el-option label="[" value="["></el-option>
size="mini">
<el-option label="("
value="("></el-option>
<el-option label="["
value="["></el-option>
</el-select>
<el-input
type="number"
<el-input type="number"
v-model="scope.row.symbolInput2"
size="mini"
></el-input>
<el-input
type="number"
size="mini"></el-input>
<el-input type="number"
v-model="scope.row.symbolInput3"
size="mini"
></el-input>
<el-select
v-model="scope.row.symbolInput4"
size="mini"></el-input>
<el-select v-model="scope.row.symbolInput4"
placeholder="请选择"
size="mini"
>
<el-option label=")" value=")"></el-option>
<el-option label="]" value="]"></el-option>
size="mini">
<el-option label=")"
value=")"></el-option>
<el-option label="]"
value="]"></el-option>
</el-select>
</div>
</div>
@ -300,41 +264,31 @@
</template>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="300">
<el-table-column label="操作"
align="center"
width="300">
<template slot-scope="scope">
<template v-if="scope.row.isInput">
<el-link
size="mini"
<el-link size="mini"
type="primary"
:underline="false"
v-show="scope.row.isShow"
@click="getHandleEdit(scope.row)"
>编辑</el-link
>
<el-link
type="primary"
@click="getHandleEdit(scope.row)">编辑</el-link>
<el-link type="primary"
size="mini"
:underline="false"
v-show="!scope.row.isShow"
@click="getRule(scope.row)"
>保存</el-link
>
<el-link
size="mini"
@click="getRule(scope.row)">保存</el-link>
<el-link size="mini"
type="primary"
:underline="false"
v-show="!scope.row.isShow && !scope.row.id"
@click="dialogFormVisible(scope.$index, scope.row)"
>取消</el-link
>
<el-link
size="mini"
@click="dialogFormVisible(scope.$index, scope.row)">取消</el-link>
<el-link size="mini"
type="primary"
:underline="false"
v-show="!scope.row.isShow"
@click="getRuleDelete(scope.$index, scope.row)"
>删除</el-link
>
@click="getRuleDelete(scope.$index, scope.row)">删除</el-link>
</template>
</template>
</el-table-column>
@ -349,7 +303,7 @@
<script>
import quill from '@/components/quill'
export default {
data() {
data () {
return {
ruleList: [],
ruleForm: {
@ -404,19 +358,23 @@ export default {
pattern: this.$route.query.pattern
};
},
components: {quill},
mounted() {
this.$route.query.token && this.$store.commit('setParam',{token: atob(decodeURI(this.$route.query.token)),referrer: atob(decodeURI(this.$route.query.referrer))})
components: { quill },
mounted () {
const { token, referrer } = this.$route.query
if (token) {
localStorage.setItem('token', atob(decodeURI(token)))
localStorage.setItem('referrer', atob(decodeURI(referrer)))
}
this.getData()
},
methods: {
getPerhaps(a) {
getPerhaps (a) {
a.operatorOne = a.operatorOne == 1 ? 2 : 1
},
getPerhapsColumn() {
getPerhapsColumn () {
this.operatorTwo = this.operatorTwo == 1 ? 2 : 1
},
getMesg() {
getMesg () {
if (this.id) {
this.$get(this.api.queryDetailsTrading, {
tradingJudgmentPointsId: this.id,
@ -429,8 +387,8 @@ export default {
let ruleList = []
let len = rules.length
let result = []
rules.map((e,i) => {
e.isInput= true
rules.map((e, i) => {
e.isInput = true
e.isShow = false
e.levelOne = Number(e.levelOne)
e.levelTwo = Number(e.levelTwo)
@ -457,50 +415,50 @@ export default {
levelFour: e.levelFour
})
this.getSubject(e)
if(e.type == 1){
if (e.type == 1) {
let levelFour = e.levelFour.split(',')
levelFour = levelFour.map(n => Number(n))
this.$set(e,'levelFour',levelFour)
}else if(e.type == 2){
this.$set(e, 'levelFour', levelFour)
} else if (e.type == 2) {
let levelThree = e.levelThree
e.symbolInput1 = levelThree[0]
e.symbolInput2 = levelThree.substring(1,levelThree.indexOf('-'))
e.symbolInput3 = levelThree.substring(levelThree.indexOf('-') + 1,levelThree.length - 1)
e.symbolInput2 = levelThree.substring(1, levelThree.indexOf('-'))
e.symbolInput3 = levelThree.substring(levelThree.indexOf('-') + 1, levelThree.length - 1)
e.symbolInput4 = levelThree[levelThree.length - 1]
}else if(e.type == 3){
if(e.levelThree === ''){
} else if (e.type == 3) {
if (e.levelThree === '') {
e.numOfWords = false
}else{
e.symbol = this.symbolList.find(n => n.name == e.levelThree.replace(/,\d+/g,'')).id
e.numDes = e.levelThree.replace(/\D+/g,'')
} else {
e.symbol = this.symbolList.find(n => n.name == e.levelThree.replace(/,\d+/g, '')).id
e.numDes = e.levelThree.replace(/\D+/g, '')
}
if(e.levelFour === '') e.fieldOfReq = false
}else if(e.type == 4){
if (e.levelFour === '') e.fieldOfReq = false
} else if (e.type == 4) {
e.levelThree = Number(e.levelThree)
let levelFour = e.levelFour
e.symbolInput1 = levelFour[0]
e.symbolInput2 = levelFour.substring(1,levelFour.indexOf('~'))
e.symbolInput3 = levelFour.substring(levelFour.indexOf('~') + 1,levelFour.length - 1)
e.symbolInput2 = levelFour.substring(1, levelFour.indexOf('~'))
e.symbolInput3 = levelFour.substring(levelFour.indexOf('~') + 1, levelFour.length - 1)
e.symbolInput4 = levelFour[levelFour.length - 1]
}
result.push(e)
if(len > 1 && i != len - 1) result.push({})
if (len > 1 && i != len - 1) result.push({})
})
this.operatorTwo = rules[0].operatorTwo
this.ruleList = ruleList
this.tableData = result
}).catch((err) => {})
}).catch((err) => { })
}
},
getData() {
getData () {
// pattern: 01
this.$post(`${this.api.queryPoint}?challenge=${this.pattern}`)
.then((res) => {
this.stepList = res.subject
this.getMesg()
}).catch((err) => {})
}).catch((err) => { })
},
getSubject(row) {
getSubject (row) {
row.stepName = this.stepList.find((n) => n.id == row.levelOne).stepName
let data = row.levelOne;
this.$post(this.api.querySubject, data)
@ -509,15 +467,15 @@ export default {
row.type = row.subjectList[0].isChallenge
row.isFirst || (row.levelTwo = '')
row.isFirst && row.id && this.getOption(row)
}).catch((err) => {})
}).catch((err) => { })
},
getOption(row) {
getOption (row) {
row.subjectName = row.subjectList.find((n) => n.id == row.levelTwo).kdSubjectDescipription
let data = row.levelTwo;
this.$post(this.api.queryItem, data)
.then((res) => {
row.optionList = res.subject
if(!row.isFirst){
if (!row.isFirst) {
row.levelThree = ''
row.levelFour = ''
row.symbolInput1 = ''
@ -531,9 +489,9 @@ export default {
row.reqDes = ''
}
row.isFirst = false
}).catch((err) => {})
}).catch((err) => { })
},
Savejump(formName) {
Savejump (formName) {
if (this.ruleList.length && this.tableData.length) {
this.$refs[formName].validate((valid) => {
if (valid) {
@ -549,7 +507,7 @@ export default {
this.$post(this.api.updateTrading, data)
.then((res) => {
this.$router.back()
}).catch((err) => {})
}).catch((err) => { })
} else {
let data = {
tradingJudgmentPoints: {
@ -564,7 +522,7 @@ export default {
this.$post(this.api.addTrading, data)
.then((res) => {
this.$router.back()
}).catch((err) => {})
}).catch((err) => { })
}
} else {
return false;
@ -575,7 +533,7 @@ export default {
this.$message.error("错了哦,判分规则不能为空")
}
},
getCookie(cookie_name) {
getCookie (cookie_name) {
//cookiekeyvalue
var allcookies = document.cookie; //
var cookie_pos = allcookies.indexOf(cookie_name); // cookie,
@ -593,49 +551,49 @@ export default {
}
return value;
},
Back() {
Back () {
this.$router.back();
},
headClass() {
headClass () {
return "text-align: center;";
},
rowClass() {
rowClass () {
return "text-align: center;";
},
getRule(row) {
if(!row.levelOne) return this.$message.warning('一级栏目不能为空')
if(!row.levelTwo) return this.$message.warning('子级栏目不能为空')
if(!row.levelFour.length && row.type == 1){
getRule (row) {
if (!row.levelOne) return this.$message.warning('一级栏目不能为空')
if (!row.levelTwo) return this.$message.warning('子级栏目不能为空')
if (!row.levelFour.length && row.type == 1) {
return this.$message.warning(`正确答案不能为空`)
}
if(!row.levelThree && row.type == 4){
if (!row.levelThree && row.type == 4) {
return this.$message.warning(`选择指标不能为空`)
}
if(row.type == 3){
if(row.numOfWords && (!row.symbol || !row.numDes)) return this.$message.warning(`字数要求不能为空`)
if(row.fieldOfReq && !row.fieldOfReq) return this.$message.warning(`字段要求不能为空`)
if (row.type == 3) {
if (row.numOfWords && (!row.symbol || !row.numDes)) return this.$message.warning(`字数要求不能为空`)
if (row.fieldOfReq && !row.fieldOfReq) return this.$message.warning(`字段要求不能为空`)
}
if((row.type == 2 || row.type == 4) && (!row.symbolInput1 || !row.symbolInput2 || !row.symbolInput3 || !row.symbolInput4)) return this.$message.warning('交易指标区间不能为空')
if ((row.type == 2 || row.type == 4) && (!row.symbolInput1 || !row.symbolInput2 || !row.symbolInput3 || !row.symbolInput4)) return this.$message.warning('交易指标区间不能为空')
let levelThree = row.levelThree
if(row.type != 1) levelThree = levelThree + ''
if (row.type != 1) levelThree = levelThree + ''
let levelFour = row.levelFour
if(row.type == 1){
if (row.type == 1) {
levelThree = row.levelTwo
levelFour = levelFour.join(',')
}else if(row.type == 2){
} else if (row.type == 2) {
levelThree = row.symbolInput1 + row.symbolInput2 + '-' + row.symbolInput3 + row.symbolInput4
}else if(row.type == 3){
if(row.numOfWords){
if(row.numDes < 0) return this.$message.warning(`字数要求必须大于0`)
} else if (row.type == 3) {
if (row.numOfWords) {
if (row.numDes < 0) return this.$message.warning(`字数要求必须大于0`)
levelThree = this.symbolList.find((n) => n.id == row.symbol).name + ',' + row.numDes
if(row.symbol == 6) levelThree = '无限制'
}else{
if (row.symbol == 6) levelThree = '无限制'
} else {
levelThree = ''
}
levelFour = row.fieldOfReq ? row.levelFour : ''
}else if(row.type == 4){
if(row.symbolInput2 >= row.symbolInput3) return this.$message.warning(`第一个指标必须小于第二个指标`)
} else if (row.type == 4) {
if (row.symbolInput2 >= row.symbolInput3) return this.$message.warning(`第一个指标必须小于第二个指标`)
levelFour = row.symbolInput1 + row.symbolInput2 + '~' + row.symbolInput3 + row.symbolInput4
}
let data = {
@ -649,12 +607,12 @@ export default {
}
if (row.id) {
data.id = row.id
this.$post(this.api.updateRuleTrading,data)
this.$post(this.api.updateRuleTrading, data)
.then((res) => {
this.isAdd = false
row.isShow = true
}).catch((err) => {})
}else{
}).catch((err) => { })
} else {
this.ruleList.push({
operatorOne: row.operatorOne,
operatorTwo: this.operatorTwo,
@ -664,28 +622,28 @@ export default {
levelThree,
levelFour
})
if(this.id){
if (this.id) {
data.tradingJudgmentPointsId = this.id
this.$post(this.api.addRule,data)
this.$post(this.api.addRule, data)
.then((res) => {
this.isAdd = false
row.isShow = true
this.getMesg()
}).catch((err) => {})
}).catch((err) => { })
}
this.isAdd = false;
row.isShow = true;
}
},
dialogFormVisible(index, row) {
dialogFormVisible (index, row) {
this.isAdd = false
row.isShow = true
},
getHandleEdit(row) {
getHandleEdit (row) {
this.isAdd = true
row.isShow = false
},
getRuleDelete(index, row) {
getRuleDelete (index, row) {
if (!row.id) {
this.tableData.splice(index, 1)
index ? this.tableData.splice(index - 1, 1) : this.tableData.splice(0, 1)
@ -710,12 +668,12 @@ export default {
message: "删除成功!"
})
})
.catch((err) => {})
.catch((err) => { })
})
}
},
AddListRow() {
AddListRow () {
this.isAdd = true;
this.tableData.length && this.tableData.push({})
this.tableData.push({
@ -744,7 +702,7 @@ export default {
this.scrollToTop();
});
},
scrollToTop() {
scrollToTop () {
const c = document.documentElement.scrollHeight || document.body.scrollHeight;
window.scrollTo(0, c);
},
@ -775,7 +733,7 @@ export default {
/deep/ .el-input__inner {
border: 1px solid #9278ff;
&[type=number]{
&[type='number'] {
padding-right: 0;
}
}
@ -972,7 +930,7 @@ export default {
margin-right: 10px;
text-align: right;
font-size: 12px;
&.mini{
&.mini {
width: auto;
}
}

@ -563,9 +563,11 @@ export default {
})
},
mounted () {
this.$route.query.token && this.$store.commit("setParam", {
token: atob(decodeURI(this.$route.query.token))
});
const { token, referrer } = this.$route.query
if (token) {
localStorage.setItem('token', atob(decodeURI(token)))
localStorage.setItem('referrer', atob(decodeURI(referrer)))
}
if (this.isSt) {
this.leftSymbols = [
{

Loading…
Cancel
Save