Commit e644e1e2 authored by zhengke's avatar zhengke

修改

parent 196ac3db
...@@ -28,4 +28,16 @@ export function GetCenterCommissionStatistics(data) { ...@@ -28,4 +28,16 @@ export function GetCenterCommissionStatistics(data) {
method: 'post', method: 'post',
data data
}) })
} }
\ No newline at end of file
/**
* 首页 今日数据图标数据
*/
export function MarketStatic(data) {
return request({
url: '/UserCenter/MarketStatic',
method: 'post',
data
})
}
...@@ -105,6 +105,8 @@ ...@@ -105,6 +105,8 @@
import { import {
GetEducationReceiptPage, GetEducationReceiptPage,
} from "../../api/teacher/index"; } from "../../api/teacher/index";
import { Encrypt } from '../../utils/encrypt'
import html2canvas from "html2canvas"; import html2canvas from "html2canvas";
export default { export default {
...@@ -305,7 +307,8 @@ ...@@ -305,7 +307,8 @@
tipLoadding.show({ tipLoadding.show({
message: '正在生成图片,请稍后...' message: '正在生成图片,请稍后...'
}) })
var domain = "https://edu.kookaku.com/#/courseRefundH5?Id=" + item.Id; let str=Encrypt(item.Id.toString())
var domain = "https://edu.kookaku.com/#/courseRefundH5?a=" + encodeURIComponent(str);
let msg = { let msg = {
url: domain, url: domain,
width: 430 width: 430
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
class="q-px-md" class="q-px-md"
color="primary" color="primary"
size="12px" size="12px"
label="今日工作" label="今日数据统计"
/> />
<q-btn <q-btn
dense dense
...@@ -144,7 +144,8 @@ ...@@ -144,7 +144,8 @@
/> />
</q-btn-group> </q-btn-group>
</div> </div>
<dasbord></dasbord> <dasbord v-if="viewMode==2"></dasbord>
<todayData v-if="viewMode==1"></todayData>
</div> </div>
</div> </div>
</template> </template>
...@@ -154,10 +155,14 @@ import { mapGetters } from "vuex"; ...@@ -154,10 +155,14 @@ import { mapGetters } from "vuex";
import { queryOKRMyEmployeeList } from "../../api/okr/work"; import { queryOKRMyEmployeeList } from "../../api/okr/work";
import { queryEmployee } from "../../api/users/user"; import { queryEmployee } from "../../api/users/user";
import dasbord from "./dasbord.vue"; import dasbord from "./dasbord.vue";
import todayData from "./todayData.vue"
import { Encrypt,Decrypt} from '../../utils/encrypt' import { Encrypt,Decrypt} from '../../utils/encrypt'
export default { export default {
components: { dasbord }, components: {
dasbord,
todayData
},
data() { data() {
return { return {
usersList: [], usersList: [],
...@@ -165,7 +170,7 @@ export default { ...@@ -165,7 +170,7 @@ export default {
searchText: "", searchText: "",
menuList: [], menuList: [],
activeMenu: "myokr", activeMenu: "myokr",
viewMode: 1 viewMode: 2
}; };
}, },
created() { created() {
......
...@@ -120,6 +120,7 @@ ...@@ -120,6 +120,7 @@
if (this.$route.query.a) { if (this.$route.query.a) {
let ContractId = Decrypt(decodeURIComponent(this.$route.query.a)); let ContractId = Decrypt(decodeURIComponent(this.$route.query.a));
this.msg.ContractId = ContractId; this.msg.ContractId = ContractId;
this.BackMsg.Id = ContractId;
} }
if (this.$route.query.StudentName) { if (this.$route.query.StudentName) {
this.StudentName = this.$route.query.StudentName this.StudentName = this.$route.query.StudentName
...@@ -127,9 +128,6 @@ ...@@ -127,9 +128,6 @@
if (this.$route.query.Money) { if (this.$route.query.Money) {
this.Money = this.$route.query.Money; this.Money = this.$route.query.Money;
} }
if (this.$route.query.Id) {
this.BackMsg.Id = this.$route.query.Id;
}
if (this.$route.query.Type) { if (this.$route.query.Type) {
this.Type = this.$route.query.Type; this.Type = this.$route.query.Type;
} }
...@@ -317,7 +315,7 @@ ...@@ -317,7 +315,7 @@
this.$router.push({ this.$router.push({
path: '/courseRefundH5', path: '/courseRefundH5',
query: { query: {
Id: this.BackMsg.Id a: encodeURIComponent(Encrypt(this.BackMsg.Id.toString()))
} }
}); });
} }
......
...@@ -312,6 +312,7 @@ ...@@ -312,6 +312,7 @@
import { import {
GetBackClassProtocol GetBackClassProtocol
} from '../api/sale/contract' } from '../api/sale/contract'
import { Encrypt,Decrypt} from '../utils/encrypt'
export default { export default {
data() { data() {
...@@ -326,8 +327,9 @@ ...@@ -326,8 +327,9 @@
}; };
}, },
created() { created() {
if (this.$route.query.Id) { if (this.$route.query.a) {
this.gmsg.Id = this.$route.query.Id; let ContractId = Decrypt(decodeURIComponent(this.$route.query.a));
this.gmsg.Id = ContractId
} }
this.getList(); this.getList();
}, },
...@@ -362,7 +364,7 @@ ...@@ -362,7 +364,7 @@
this.$router.push({ this.$router.push({
path: '/contractSign', path: '/contractSign',
query: { query: {
Id: this.gmsg.Id, a: encodeURIComponent(Encrypt(this.gmsg.Id.toString())),
Type: 2 Type: 2
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment