Commit 5686d5c7 by 无尘

fix: 测试 刷新

parent 5291decf
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:47:17
* @LastEditors: 无尘
* @LastEditTime: 2020-11-30 11:06:29
* @LastEditTime: 2020-12-01 17:34:07
-->
<template>
<div class="common-app-right" style="padding: 20px 0;color: #303133">
......@@ -161,8 +161,6 @@ export default {
}
// 禁用判断
that.disableSetting = checkDisEdit(that.$route.query.performanceYm);
const { staffName, staffId, wxEnterpriseId } = JSON.parse(localStorage.getItem('haoBanUser'));
that.haoban = { submitStaffName: staffName, submitStaffId: staffId, wxEnterpriseId };
// 修改面包屑
const { tab, applicationId, performanceYm, flag } = that.$route.query;
......@@ -173,7 +171,10 @@ export default {
that.$emit('change-nav', bread);
that.$emit('showTab', '/target-list');
that.init();
that.$nextTick(()=> {
const { staffName, staffId, wxEnterpriseId } = localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')) : { staffName: '', staffId: '', wxEnterpriseId: '' };
that.haoban = { submitStaffName: staffName, submitStaffId: staffId, wxEnterpriseId };
});
},
beforeDestroy() {
this.$store.dispatch('clearStoreData');
......@@ -199,7 +200,7 @@ export default {
// 初始化表格
init() {
const that = this;
if (that.$store.state.storeInfo.length) {
if (that.$store.state?.storeInfo.length) {
that.form.storeName = JSON.parse(JSON.stringify(that.$store.state.storeInfo)).map(ele=>ele.storeName).join(',');
that.form.storeInfoIds = JSON.parse(JSON.stringify(that.$store.state.storeInfo)).map(ele=>ele.storeInfoId).join(',');
delete that.form.storeInfoId;
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-09 10:05:27
* @LastEditors: 无尘
* @LastEditTime: 2020-12-01 14:32:50
* @LastEditTime: 2020-12-01 17:26:13
-->
<!-- -->
<template>
......@@ -63,6 +63,8 @@ export default {
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
that.$emit('showTab', '/target-set');
that.$emit('change-nav', [ { name: '指标管理' } ]);
for (let index = 15; index < 29; index++) {
that.options.push({
value: index,
......
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