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

页面修改

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