|
@@ -18,9 +18,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="check_search u-flex">
|
|
<view class="check_search u-flex">
|
|
<view class="check_level u-flex" @click="openLeft()">
|
|
<view class="check_level u-flex" @click="openLeft()">
|
|
- <view class="u-line-1"
|
|
|
|
- >{{ selObj.eName }}:{{ selObj.aliasName }}</view
|
|
|
|
- >
|
|
|
|
|
|
+ <view class="u-line-1">{{ selectName }}</view>
|
|
<u-icon name="arrow-down-fill" color="#333333" size="20"> </u-icon
|
|
<u-icon name="arrow-down-fill" color="#333333" size="20"> </u-icon
|
|
></view>
|
|
></view>
|
|
<view class="line">|</view>
|
|
<view class="line">|</view>
|
|
@@ -437,9 +435,6 @@ export default {
|
|
bList: [],
|
|
bList: [],
|
|
sList: [],
|
|
sList: [],
|
|
selObj: {
|
|
selObj: {
|
|
- eName: "",
|
|
|
|
- pName: "",
|
|
|
|
- bName: "",
|
|
|
|
eId: 0,
|
|
eId: 0,
|
|
bId: 0,
|
|
bId: 0,
|
|
pId: 0,
|
|
pId: 0,
|
|
@@ -455,8 +450,28 @@ export default {
|
|
}, 500);
|
|
}, 500);
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
- console.log("item", this.current);
|
|
|
|
- let eduStr = uni.getStorageSync("eduObj");
|
|
|
|
|
|
+ let eduStr = null;
|
|
|
|
+ // 小程序分享跳转
|
|
|
|
+ if (option.scene) {
|
|
|
|
+ let arrs = decodeURIComponent(option.scene).split("&");
|
|
|
|
+ for (let i = 0; i < arrs.length; i++) {
|
|
|
|
+ option[arrs[i].split("=")[0]] = arrs[i].split("=")[1]*1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // 默认值
|
|
|
|
+ let { bid, pid, eid, cur } = option;
|
|
|
|
+ if (bid && pid && eid) {
|
|
|
|
+ uni.setStorageSync(
|
|
|
|
+ "eduObj",
|
|
|
|
+ JSON.stringify({
|
|
|
|
+ bId: bid * 1,
|
|
|
|
+ pId: pid * 1,
|
|
|
|
+ eId: eid * 1,
|
|
|
|
+ })
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ cur && (this.current = cur);
|
|
|
|
+ eduStr = uni.getStorageSync("eduObj");
|
|
if (eduStr) {
|
|
if (eduStr) {
|
|
this.selObj = JSON.parse(eduStr);
|
|
this.selObj = JSON.parse(eduStr);
|
|
this.subjectList({
|
|
this.subjectList({
|
|
@@ -508,9 +523,6 @@ export default {
|
|
this.selObj.bId = item.id;
|
|
this.selObj.bId = item.id;
|
|
this.show = false;
|
|
this.show = false;
|
|
this.selObj.pId = item.projectId;
|
|
this.selObj.pId = item.projectId;
|
|
- this.selObj.bName = item.businessName;
|
|
|
|
- this.selObj.pName = item.projectName;
|
|
|
|
- this.selObj.aliasName = item.aliasName;
|
|
|
|
uni.setStorageSync("eduObj", JSON.stringify(this.selObj));
|
|
uni.setStorageSync("eduObj", JSON.stringify(this.selObj));
|
|
this.subjectList({
|
|
this.subjectList({
|
|
businessId: item.id,
|
|
businessId: item.id,
|
|
@@ -532,7 +544,6 @@ export default {
|
|
},
|
|
},
|
|
active1(item) {
|
|
active1(item) {
|
|
this.selObj.eId = item.id;
|
|
this.selObj.eId = item.id;
|
|
- this.selObj.eName = item.educationName;
|
|
|
|
this.businessList({ educationId: item.id });
|
|
this.businessList({ educationId: item.id });
|
|
},
|
|
},
|
|
educationList() {
|
|
educationList() {
|
|
@@ -643,7 +654,20 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- computed: { ...mapGetters(["userInfo", "config"]) },
|
|
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapGetters(["userInfo", "config"]),
|
|
|
|
+ selectName() {
|
|
|
|
+ let { eId, bId } = this.selObj;
|
|
|
|
+ if (!eId || !bId) {
|
|
|
|
+ return "";
|
|
|
|
+ }
|
|
|
|
+ let eItem = this.eList.find((e) => e.id === eId);
|
|
|
|
+ let bItem = this.bList.find((e) => e.id === bId);
|
|
|
|
+ return `${eItem ? eItem.educationName : ""}:${
|
|
|
|
+ bItem ? bItem.aliasName : ""
|
|
|
|
+ }`;
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style>
|
|
<style>
|