Commit 4c42ca5d authored by 黄奎's avatar 黄奎

页面修改

parent 8596630c
...@@ -42,8 +42,9 @@ ...@@ -42,8 +42,9 @@
</template> </template>
</q-field> </q-field>
</div> </div>
<div class="col-3"> <div class="col-3" v-if="isShowDownLoad">
<q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;" label="下载" @click="downloadMarketChannelStatic" /> <q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;" label="下载"
@click="downloadMarketChannelStatic" />
</div> </div>
</div> </div>
</div> </div>
...@@ -128,10 +129,20 @@ ...@@ -128,10 +129,20 @@
isShowRebate: false //是否显示返佣 isShowRebate: false //是否显示返佣
}, },
loading: false, loading: false,
CurrentUserInfo: {},
isShowDownLoad: false, //是否显示下载按钮
}; };
}, },
created() { created() {
this.CurrentUserInfo = this.getLocalStorage();
if (this.CurrentUserInfo && this.CurrentUserInfo.ActionMenuList && this.CurrentUserInfo.ActionMenuList.length >
0) {
this.CurrentUserInfo.ActionMenuList.forEach((x) => {
if (x.FunctionCode == "DownMarketChannelStatic") {
this.isShowDownLoad = true;
}
});
}
}, },
mounted() { mounted() {
var now = new Date(); var now = new Date();
......
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
</template> </template>
</q-field> </q-field>
</div> </div>
<div class="col-3"> <div class="col-3" v-if="isShowDownLoad">
<q-btn color="accent" class="q-mr-md" size="sm" style="margin-top:15px;" icon="download" label="下载" <q-btn color="accent" class="q-mr-md" size="sm" style="margin-top:15px;" icon="download" label="下载"
@click="downloadMarketChannelStudentStatic" /> @click="downloadMarketChannelStudentStatic" />
</div> </div>
...@@ -208,7 +208,8 @@ ...@@ -208,7 +208,8 @@
IsQueryAuth: false, //是否有查询市场部和课程顾问部人员权限 IsQueryAuth: false, //是否有查询市场部和课程顾问部人员权限
IsShowEmpQuery: false, //是否显示员工下拉框 IsShowEmpQuery: false, //是否显示员工下拉框
tableHeight: 50, tableHeight: 50,
loading:false, loading: false,
isShowDownLoad: false, //否显示下载按钮
}; };
}, },
created() { created() {
...@@ -219,6 +220,9 @@ ...@@ -219,6 +220,9 @@
if (x.FunctionCode == "Query_MarketConsultant") { if (x.FunctionCode == "Query_MarketConsultant") {
this.IsQueryAuth = true; this.IsQueryAuth = true;
} }
if (x.FunctionCode == "MarketChannelStudent") {
this.isShowDownLoad = true;
}
}); });
} }
if (this.IsQueryAuth || (this.CurrentUserInfo.IsManager == 1 && this.CurrentUserInfo.IsCourseConsultant == 1) || ( if (this.IsQueryAuth || (this.CurrentUserInfo.IsManager == 1 && this.CurrentUserInfo.IsCourseConsultant == 1) || (
...@@ -253,12 +257,12 @@ ...@@ -253,12 +257,12 @@
methods: { methods: {
downloadMarketChannelStudentStatic() { downloadMarketChannelStudentStatic() {
var msg = JSON.parse(JSON.stringify(this.msg)); var msg = JSON.parse(JSON.stringify(this.msg));
this.loading=true; this.loading = true;
EduDownLoad( EduDownLoad(
"/UserCenter/DownLoadMarketChannelStudentStatic", "/UserCenter/DownLoadMarketChannelStudentStatic",
msg, msg,
"渠道总表.xls",res=>{ "渠道总表.xls", res => {
this.loading=false; this.loading = false;
} }
); );
}, },
...@@ -281,9 +285,9 @@ ...@@ -281,9 +285,9 @@
prop: "EmployeeName", prop: "EmployeeName",
label: "员工" label: "员工"
}]; }];
this.loading=true; this.loading = true;
MarketChannelStudentStatic(this.msg).then(res => { MarketChannelStudentStatic(this.msg).then(res => {
this.loading=false; this.loading = false;
if (res.Code == 1) { if (res.Code == 1) {
var tempArray = res.Data; var tempArray = res.Data;
if (tempArray && tempArray.length > 0) { if (tempArray && tempArray.length > 0) {
......
...@@ -37,8 +37,9 @@ ...@@ -37,8 +37,9 @@
</template> </template>
</q-field> </q-field>
</div> </div>
<div class="col-3"> <div class="col-3" v-if="isShowDownLoad">
<q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;" label="下载" @click="downloadMarketCreateType" /> <q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;" label="下载"
@click="downloadMarketCreateType" />
</div> </div>
</div> </div>
</div> </div>
...@@ -105,11 +106,21 @@ ...@@ -105,11 +106,21 @@
}, },
allData: [], allData: [],
tableHeight: 50, tableHeight: 50,
loading:false, loading: false,
CurrentUserInfo: {},
isShowDownLoad: false, //是否显示下载按钮
}; };
}, },
created() { created() {
this.CurrentUserInfo = this.getLocalStorage();
if (this.CurrentUserInfo && this.CurrentUserInfo.ActionMenuList && this.CurrentUserInfo.ActionMenuList.length >
0) {
this.CurrentUserInfo.ActionMenuList.forEach((x) => {
if (x.FunctionCode == "DownMarketCreateType") {
this.isShowDownLoad = true;
}
});
}
}, },
mounted() { mounted() {
var now = new Date(); var now = new Date();
...@@ -146,12 +157,12 @@ ...@@ -146,12 +157,12 @@
if (this.msg.top_Check == 4) { if (this.msg.top_Check == 4) {
fileName = "转交渠道.xls"; fileName = "转交渠道.xls";
} }
this.loading=true; this.loading = true;
EduDownLoad( EduDownLoad(
"/UserCenter/DownLoadMarketCreateType", "/UserCenter/DownLoadMarketCreateType",
msg, msg,
fileName,res=>{ fileName, res => {
this.loading=false; this.loading = false;
} }
); );
}, },
...@@ -180,9 +191,9 @@ ...@@ -180,9 +191,9 @@
this.msg.startTime = ""; this.msg.startTime = "";
this.msg.endTime = ""; this.msg.endTime = "";
} }
this.loading=true; this.loading = true;
MarketCreateType(this.msg).then(res => { MarketCreateType(this.msg).then(res => {
this.loading=false; this.loading = false;
if (res.Code == 1) { if (res.Code == 1) {
this.allData = res.Data; this.allData = res.Data;
this.dataList = this.allData.customerDataList; this.dataList = this.allData.customerDataList;
......
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