优化设置信息的代码
This commit is contained in:
parent
0d7a250e1e
commit
cd41d2d663
|
@ -236,8 +236,9 @@ export default {
|
||||||
this.$models.service.getInstallCate().then((list) => {
|
this.$models.service.getInstallCate().then((list) => {
|
||||||
this.cateList = list;
|
this.cateList = list;
|
||||||
if (this.finishInfo) {
|
if (this.finishInfo) {
|
||||||
|
let cateIds = this.userInfo.worker.cateIds.split(",");
|
||||||
list.forEach((item) => {
|
list.forEach((item) => {
|
||||||
if (this.userInfo.worker.cateIds.split(",").indexOf(item.id + "") >= 0) {
|
if (cateIds.indexOf(item.id + "") >= 0) {
|
||||||
this.currentCateList.push({
|
this.currentCateList.push({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
name: item.name,
|
name: item.name,
|
||||||
|
|
Loading…
Reference in New Issue