提交 928dfa85 作者: wk

组织切换

父级 d0b38113
...@@ -166,7 +166,7 @@ const params = { ...@@ -166,7 +166,7 @@ const params = {
method: "post" method: "post"
}, },
getMessages: { getMessages: {
url: "/plat/api/v1/common_check/msg_notify/list", url: "/ydt/warnRecord/getMsg",
method: "get" method: "get"
}, },
/* 数据智管 */ /* 数据智管 */
...@@ -247,8 +247,12 @@ const params = { ...@@ -247,8 +247,12 @@ const params = {
method: "get" method: "get"
}, },
getOrgTree: { getOrgTree: {
url: "/api/v1/org/node/get_org_tree", url: "/plat/api/v1/screen/org_project_tree",
method: "post" method: "get"
},
getCompany: {
url: "/api/v1/org/o_comp_user/user_comp_list",
method: "get"
} }
} }
......
...@@ -424,61 +424,57 @@ ...@@ -424,61 +424,57 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }, {
,{ "path": "pages/gallery/app/modeList/modeList",
"path" : "pages/gallery/app/modeList/modeList", "style": {
"style" :
{
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }, {
,{ "path": "pages/gallery/app/processFormDetail/processFormDetail",
"path" : "pages/gallery/app/processFormDetail/processFormDetail", "style": {
"style" :
{
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }, {
,{ "path": "pages/mine/changeOrg/changeOrg",
"path" : "pages/mine/changeOrg/changeOrg", "style": {
"style" :
{
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
} }, {
,{ "path": "pages/gallery/app/editAloneForm/editAloneForm",
"path" : "pages/gallery/app/editAloneForm/editAloneForm", "style": {
"style" :
{
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }, {
,{ "path": "pages/gallery/app/editRecordDetail/editRecordDetail",
"path" : "pages/gallery/app/editRecordDetail/editRecordDetail", "style": {
"style" :
{
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }, {
,{ "path": "pages/gallery/app/selectUserPage/selectUserPage",
"path" : "pages/gallery/app/selectUserPage/selectUserPage", "style": {
"style" :
{
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, {
"path": "pages/mine/changeCompany/changeCompany",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
} }
], ],
"globalStyle": { "globalStyle": {
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<view class="header-content"> <view class="header-content">
<image src="../../static/home-head.png" class="header-image"></image> <image src="../../static/home-head.png" class="header-image"></image>
<navbar :title="title" :showBack="false"></navbar> <navbar :title="title" :showBack="false"></navbar>
<view class="project-content" :style="{top:statusBarHeight+45+'px'}"> <view class="project-content" :style="{top:statusBarHeight+45+'px'}" @click="toChangeOrg">
<view class="name">XXX市高薪区府城写字楼二期改造项目</view> <view class="name">{{orgName}}</view>
<image class="image" src="../../static/down-arrow.png"></image> <image class="image" src="../../static/down-arrow.png"></image>
</view> </view>
<view class="message-content" :style="{top:statusBarHeight+78+'px'}"> <view class="message-content" :style="{top:statusBarHeight+78+'px'}">
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
is_publish: 1, is_publish: 1,
app_sort: 1 app_sort: 1
}, },
orgName: ""
} }
}, },
onLoad() { onLoad() {
...@@ -97,8 +98,31 @@ ...@@ -97,8 +98,31 @@
onShow() { onShow() {
this.getMessages() this.getMessages()
this.getNeedDo() this.getNeedDo()
uni.$once("refreshOrg", res => {
this.orgName = uni.getStorageSync("org_name")
})
this.getOrgTree()
}, },
methods: { methods: {
getOrgTree() {
Api.getOrgTree({
data: {
company_id: uni.getStorageSync("company_id"),
org_no: getApp().globalData.userInfo.user.org_no
}
}).then((result) => {
console.log("组织树", result);
if (result.code == 0) {
this.trees = result.data.list[0].children_list
this.orgName = uni.getStorageSync("org_name") || result.data.list[0].name
}
})
},
toChangeOrg() {
uni.navigateTo({
url: "/pages/mine/changeOrg/changeOrg"
})
},
toIndex(model) { toIndex(model) {
this.$mta(model.app_id) this.$mta(model.app_id)
this.getAppDetail(model) this.getAppDetail(model)
...@@ -172,9 +196,8 @@ ...@@ -172,9 +196,8 @@
getMessages() { getMessages() {
Api.getMessages({ Api.getMessages({
data: { data: {
"page": 1, "pageNum": 1,
"page_size": 5, "pageSize": 5,
"is_page": 1
} }
}).then((result) => { }).then((result) => {
console.log("消息列表", result); console.log("消息列表", result);
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<titleBar title="消息中心"></titleBar> <titleBar title="消息中心"></titleBar>
<v-tabs :tabs="tabs" :scroll="true" :value="current" @change="tabChange"></v-tabs> <v-tabs :tabs="tabs" :scroll="true" :value="current" @change="tabChange"></v-tabs>
<view class="list-content"> <view class="list-content">
<view v-for="(item,index) in list" :key="index" class="list-item"> <view v-for="(item,index) in list" :key="index" class="list-item" @click="itemClick(index,item)">
<view class="red-dot"></view> <view class="red-dot" v-if="!item.readStatus"></view>
<view class="item-content "> <view class="item-content ">
<view class="title">塔机告警</view> <view class="title">塔机告警</view>
<view class="desc-content"> <view class="desc-content">
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
page: 1, page: 1,
pageSize: 20, pageSize: 20,
totalPage: 1, totalPage: 1,
isHasMore: false
} }
}, },
onLoad() { onLoad() {
...@@ -46,6 +47,10 @@ ...@@ -46,6 +47,10 @@
} }
}, },
methods: { methods: {
itemClick(index, item) {
item.readStatus = true
this.$set(this.list, index, item)
},
tabChange(e) { tabChange(e) {
console.log("tab切换", e); console.log("tab切换", e);
this.current = e this.current = e
...@@ -56,8 +61,8 @@ ...@@ -56,8 +61,8 @@
Api.getMessages({ Api.getMessages({
data: { data: {
"page": this.page, "page": this.page,
"page_size": this.pageSize, "pageSize": this.pageSize,
"is_page": 1 "msgType": this.current
} }
}).then((result) => { }).then((result) => {
console.log("消息列表", result); console.log("消息列表", result);
......
...@@ -144,7 +144,8 @@ ...@@ -144,7 +144,8 @@
pageTemplateComponent: [], pageTemplateComponent: [],
isWeatherShow: true, isWeatherShow: true,
role: "VISITOR", role: "VISITOR",
nowTime: "" nowTime: "",
project: {}
} }
}, },
onLoad() { onLoad() {
...@@ -177,11 +178,12 @@ ...@@ -177,11 +178,12 @@
success(res) { success(res) {
//获取用户信息 //获取用户信息
that.getUserInfo() that.getUserInfo()
// that.getNews() that.getNews()
that.getSetting() that.getSetting()
that.getMyScore() that.getMyScore()
that.getHomeComp() that.getHomeComp()
that.getWeather() that.getWeather()
that.loadProject()
if (that.isCommonSel) { if (that.isCommonSel) {
that.getCommonApp() that.getCommonApp()
} else { } else {
...@@ -195,6 +197,50 @@ ...@@ -195,6 +197,50 @@
} }
}) })
}, },
loadProject: function() {
let that = this
this.$http.get({
url: "/api/v1/project/project_list",
data: {
is_all: 1,
org_no: uni.getStorageSync("org_no")
},
header: {
"access_token": this.getToken()
}
}).then(res => {
let result = res.data
console.log("项目列表:", result);
if (result.code === 0) {
this.project = result.data.list[0]
}
this.getGoodsList()
})
},
getGoodsList() {
Api.getGoodsList({
data: {
is_page: 0,
project_id: this.project.project_id
}
}).then(res => {
if (res.code === 0) {
this.shopList = res.data.list || []
this.shopList.map(item => {
let userScore = this.scoreDetail.integral || 0
let goodsScore = item.goods_integral || 0
item.percent = userScore / goodsScore
item.percent = item.percent >= 1 ? 1 : 0
if (item.percent >= 100) {
item.tip = '可以兑换啦'
} else {
item.tip = `还差${goodsScore-userScore}分`
}
})
}
})
},
add0(text) { add0(text) {
if (text < 10) { if (text < 10) {
return "0" + text return "0" + text
...@@ -329,9 +375,7 @@ ...@@ -329,9 +375,7 @@
}, },
toLink(app) { toLink(app) {
this.$mta(app.app_id) this.$mta(app.app_id)
uni.navigateTo({ this.getAppDetail(app)
url: "/pages/mine/myScore/myScore"
})
}, },
getHomeComp() { getHomeComp() {
Api.getHomeComp({ Api.getHomeComp({
...@@ -488,7 +532,55 @@ ...@@ -488,7 +532,55 @@
}, },
nameLengthDeal(name) { nameLengthDeal(name) {
return StringUtils.stringLength(name, 5) return StringUtils.stringLength(name, 5)
},
getAppDetail(model) {
Api.getAppDetail({
data: {
"check_tpl_id": model.source_id
}
}).then((result) => {
console.log("应用信息", result);
uni.setStorageSync("business_name", result.data.tpl_name)
if (result.code == 0) {
if (!result.data.business_type) {
uni.navigateTo({
url: `/pages/gallery/app/originalIndex/originalIndex?check_tpl_id=${model.source_id}&title=${result.data.tpl_name}`
})
} else if (result.data.business_type ==
2) { //独立模式 需要获取模块数量 如果只有一个模块 自动跳转表单页面 "体验嘛 呵呵"
this.toAlone(model, result.data)
} else if (result.data.business_type == 3 || result.data.business_type == 4) { //流程模式
this.models = result.data.tpl_config
uni.navigateTo({
url: `/pages/gallery/app/modeFormList/modeFormList?check_tpl_id=${model.source_id}&business_type=${result.data.business_type}&title=${result.data.tpl_name}&showCfg=${JSON.stringify(this.models[0].show_cfg)}`
})
} else if (result.data.business_type == 5) {
this.currentModel = result.data.tpl_config[0]
console.log(this.currentModel);
this.$refs.bottomDialog.handleShow()
} else { //之前的默认
uni.navigateTo({
url: `/pages/gallery/app/originalIndex/originalIndex?check_tpl_id=${model.source_id}&title=${result.data.tpl_name}`
})
}
} else {
this.$toast.showToast(result.msg)
} }
})
},
toAlone(model, info) {
this.models = info.tpl_config
if (this.models.length == 1) {
let is_model_edit = this.models[0].is_edit
uni.navigateTo({
url: `/pages/gallery/app/modeFormList/modeFormList?business_type=2&check_tpl_id=${model.source_id}&check_module_id=${this.models[0].check_module_id}&title=${this.models[0].module_name}&is_edit=${is_model_edit}&showCfg=${JSON.stringify(this.models[0].show_cfg)}`
})
} else {
uni.navigateTo({
url: `/pages/gallery/app/modeList/modeList?check_tpl_id=${model.source_id}&title=${info.tpl_name}`
})
}
},
} }
} }
</script> </script>
......
...@@ -134,6 +134,7 @@ ...@@ -134,6 +134,7 @@
this.setToken(result.data.access_token) this.setToken(result.data.access_token)
uni.setStorageSync("user_info", result.data) uni.setStorageSync("user_info", result.data)
uni.setStorageSync("company_id", result.data.comp_id) uni.setStorageSync("company_id", result.data.comp_id)
uni.setStorageSync("org_no", result.data.org_no)
uni.showToast({ uni.showToast({
title: "授权登录成功", title: "授权登录成功",
icon: 'none' icon: 'none'
...@@ -281,6 +282,8 @@ ...@@ -281,6 +282,8 @@
uni.setStorageSync("short_token", result.data.short_token) uni.setStorageSync("short_token", result.data.short_token)
uni.setStorageSync("token", result.data.access_token) uni.setStorageSync("token", result.data.access_token)
uni.setStorageSync("user_info", result.data) uni.setStorageSync("user_info", result.data)
uni.setStorageSync("org_no", result.data.org_no)
uni.setStorageSync("company_id", result.data.comp_id)
uni.showToast({ uni.showToast({
title: "授权登录成功", title: "授权登录成功",
icon: 'none' icon: 'none'
...@@ -308,6 +311,7 @@ ...@@ -308,6 +311,7 @@
uni.setStorageSync("token", result.data.access_token) uni.setStorageSync("token", result.data.access_token)
uni.setStorageSync("user_info", result.data) uni.setStorageSync("user_info", result.data)
uni.setStorageSync("company_id", result.data.comp_id) uni.setStorageSync("company_id", result.data.comp_id)
uni.setStorageSync("org_no", result.data.org_no)
uni.showToast({ uni.showToast({
title: "授权登录成功", title: "授权登录成功",
icon: 'none' icon: 'none'
...@@ -348,6 +352,7 @@ ...@@ -348,6 +352,7 @@
uni.setStorageSync("short_token", result.data.short_token) uni.setStorageSync("short_token", result.data.short_token)
uni.setStorageSync("user_info", result.data) uni.setStorageSync("user_info", result.data)
uni.setStorageSync("company_id", result.data.comp_id) uni.setStorageSync("company_id", result.data.comp_id)
uni.setStorageSync("org_no", result.data.org_no)
uni.setStorageSync("refresh_token", result.data.refresh_token) uni.setStorageSync("refresh_token", result.data.refresh_token)
uni.showToast({ uni.showToast({
title: "登录成功", title: "登录成功",
...@@ -387,6 +392,7 @@ ...@@ -387,6 +392,7 @@
uni.setStorageSync("short_token", result.data.short_token) uni.setStorageSync("short_token", result.data.short_token)
uni.setStorageSync("user_info", result.data) uni.setStorageSync("user_info", result.data)
uni.setStorageSync("company_id", result.data.comp_id) uni.setStorageSync("company_id", result.data.comp_id)
uni.setStorageSync("org_no", result.data.org_no)
uni.setStorageSync("refresh_token", result.data.refresh_token) uni.setStorageSync("refresh_token", result.data.refresh_token)
uni.showToast({ uni.showToast({
title: "登录成功", title: "登录成功",
......
<template>
<view class="content">
<titleBar title="切换组织"></titleBar>
<view class="org-content">
<view class="org-list">
<view class="org-item" v-for="(item,index) in list" :key="index">
<view class="org">
<view class="name">{{item.company_name}}</view>
<view class=" enter" @click="itemClick(item)">{{isCurrent(item)?"当前组织":"进入"}}</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import Api from "../../../api/api.js"
export default {
data() {
return {
list: []
}
},
onLoad() {
this.getCompany()
},
methods: {
getCompany() {
Api.getCompany({
data: {
is_page: 0,
}
}).then((result) => {
console.log("单位列表", result);
if (result.code == 0) {
this.list = result.data.list
}
})
},
isCurrent(item) {
return item.company_id == uni.getStorageSync("company_id")
},
itemClick: function(item) {
if (this.isCurrent()) {
return
}
let that = this
uni.showModal({
title: '提示',
content: '确定切换到该单位?',
showCancel: true,
confirmText: "切换",
confirmColor: '#1890FF',
success: res => {
if (res.confirm) {
that.switchCompany(item)
}
}
})
},
switchCompany: function(company) {
this.$http.consolePut({
url: "/api/v1/user/user/switch_company",
data: {
company_id: company.company_id
},
header: {
access_token: this.getToken()
}
}).then((res) => {
let result = res.data
if (result.code == 0) {
uni.setStorageSync("token", result.data.access_token)
uni.setStorageSync("refresh_token", result.data.refresh_token)
uni.setStorageSync("company_id", company.company_id)
this.currentCompany = company
uni.setStorageSync("user_info", result.data)
this.getUserInfo()
} else {
this.$toast.showToast(result.msg)
}
})
},
getUserInfo() {
Api.getUserInfo().then((result) => {
if (result.code == 0) {
getApp().globalData.userInfo = result.data
uni.navigateBack({
delta: 1
})
} else {
this.$toast.showToast(result.msg)
}
})
},
}
}
</script>
<style lang="scss">
.content {
display: flex;
flex-direction: column;
.org-content {
display: flex;
flex-direction: column;
margin: 30rpx;
}
.org-item {
padding: 30rpx 0 30rpx 30rpx;
display: flex;
flex-direction: column;
border-radius: 30rpx;
background-color: #fff;
}
.org {
display: flex;
flex-direction: row;
align-items: center;
image {
width: 48rpx;
height: 24rpx;
}
.name {
font-size: 28rpx;
color: #333;
margin-left: 20rpx;
flex: 1;
font-weight: 500;
}
.enter {
font-size: 28rpx;
margin-right: 30rpx;
color: #3B73FE;
font-weight: 600;
}
}
}
</style>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<view v-if="tree.isOpen" style="margin-top: 20rpx;"> <view v-if="tree.isOpen" style="margin-top: 20rpx;">
<view class="org-item" v-for="(oneLevel,oneIndex) in tree.children_list" :key="oneIndex"> <view class="org-item" v-for="(oneLevel,oneIndex) in tree.children_list" :key="oneIndex">
<view class="org"> <view class="org">
<image <image v-if="!oneLevel.project_id"
:src="oneLevel.isOpen?'../../../static/icon_up_arrow.png':'../../../static/icon_drop_arrow.png'" :src="oneLevel.isOpen?'../../../static/icon_up_arrow.png':'../../../static/icon_drop_arrow.png'"
class="image" @click="toNextChild(index,oneLevel,oneIndex)"></image> class="image" @click="toNextChild(index,oneLevel,oneIndex)"></image>
<view class="name" @click="toNextChild(index,oneLevel,oneIndex)">{{oneLevel.name}} <view class="name" @click="toNextChild(index,oneLevel,oneIndex)">{{oneLevel.name}}
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
:key="twoIndex"> :key="twoIndex">
<view class="org"> <view class="org">
<view class="name">{{twoLevel.name}}</view> <view class="name">{{twoLevel.name}}</view>
<view class="enter" @click="itemClick(oneLevel)">进入</view> <view class="enter" @click="itemClick(twoLevel)">进入</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -51,11 +51,26 @@ ...@@ -51,11 +51,26 @@
this.getOrgTree() this.getOrgTree()
}, },
methods: { methods: {
dealProject(list) {
var projects = []
list.forEach((item) => {
if (item.dept_type == 2) {
projects = projects.concat(item.children_list)
}
})
console.log("项目列表", projects);
return projects
},
getOrgTree() { getOrgTree() {
Api.getOrgTree().then((result) => { Api.getOrgTree({
data: {
company_id: uni.getStorageSync("company_id"),
org_no: getApp().globalData.userInfo.user.org_no
}
}).then((result) => {
console.log("组织树", result); console.log("组织树", result);
if (result.code == 0) { if (result.code == 0) {
this.trees = result.data this.trees = result.data.list[0].children_list
} }
}) })
}, },
...@@ -86,7 +101,7 @@ ...@@ -86,7 +101,7 @@
} }
this.$set(this.trees[index].children_list, oneIndex, item) this.$set(this.trees[index].children_list, oneIndex, item)
}, },
itemClick: function(item) { itemClick: function(item, isProject) {
let that = this let that = this
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
...@@ -96,46 +111,22 @@ ...@@ -96,46 +111,22 @@
confirmColor: '#1890FF', confirmColor: '#1890FF',
success: res => { success: res => {
if (res.confirm) { if (res.confirm) {
that.switchCompany(item) that.switchOrg(item)
} }
} }
}) })
}, },
switchCompany: function(company) { switchOrg: function(item) {
this.$http.consolePut({ uni.setStorageSync("org_no", item.org_no)
url: "/api/v1/user/user/switch_company", uni.setStorageSync("org_name", item.name)
data: { uni.setStorageSync("org_id", item.id)
company_id: company.company_id if (item.project_id) {
}, uni.setStorageSync("project_id", item.project_id)
header: { }
access_token: this.getToken() uni.$emit("refreshOrg")
}
}).then((res) => {
let result = res.data
if (result.code == 0) {
uni.setStorageSync("token", result.data.access_token)
uni.setStorageSync("refresh_token", result.data.refresh_token)
uni.setStorageSync("company_id", company.company_id)
uni.setStorageSync("org_no", company.org_no)
this.currentCompany = company
uni.setStorageSync("user_info", result.data)
this.getUserInfo()
} else {
this.$toast.showToast(result.msg)
}
})
},
getUserInfo() {
Api.getUserInfo().then((result) => {
if (result.code == 0) {
getApp().globalData.userInfo = result.data
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}) })
} else {
this.$toast.showToast(result.msg)
}
})
}, },
} }
} }
...@@ -152,12 +143,17 @@ ...@@ -152,12 +143,17 @@
margin: 30rpx; margin: 30rpx;
} }
.org-item { .org-list {
padding: 30rpx 0 30rpx 30rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border-radius: 30rpx; border-radius: 30rpx;
background-color: #fff; background-color: #fff;
}
.org-item {
padding: 30rpx 0 30rpx 30rpx;
display: flex;
flex-direction: column;
} }
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<view class="version-content"> <view class="version-content">
<text class="text">当前版本:v1.0.0</text> <text class="text">当前版本:v1.0.0</text>
</view> </view>
<view class="btn-org" @click="linkTo('/pages/mine/changeOrg/changeOrg')"> <view class="btn-org" @click="linkTo('/pages/mine/changeCompany/changeCompany')">
<text class="text">切换组织</text> <text class="text">切换组织</text>
</view> </view>
<view class="btn-logout" @click="toLinkLogin"> <view class="btn-logout" @click="toLinkLogin">
......
...@@ -85,25 +85,47 @@ ...@@ -85,25 +85,47 @@
this.requestParam.time = year + '-' + month + '-' + day this.requestParam.time = year + '-' + month + '-' + day
this.requestParam.worker_id = this.userInfo.worker_id || '' this.requestParam.worker_id = this.userInfo.worker_id || ''
this.requestParam.project_id = this.project.project_id || '' this.requestParam.project_id = this.project.project_id || ''
this.getScoreDetail() this.loadProject()
}, },
methods: { methods: {
getScoreDetail() { getScoreDetail() {
Api.getUserScore({ Api.getUserScore({
data: this.requestParam data: {
project_id: this.project.project_id,
worker_id: getApp().globalData.userInfo.user.user_id
}
}).then(res => { }).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.scoreDetail = res.data this.scoreDetail = res.data
} }
}) })
}, },
loadProject: function() {
let that = this
this.$http.get({
url: "/api/v1/project/project_list",
data: {
is_all: 1,
org_no: uni.getStorageSync("org_no")
},
header: {
"access_token": this.getToken()
}
}).then(res => {
let result = res.data
console.log("项目列表:", result);
if (result.code === 0) {
this.project = result.data.list[0]
}
this.getGoodsList()
this.getScoreDetail()
})
},
getGoodsList() { getGoodsList() {
Api.getGoodsList({ Api.getGoodsList({
data: { data: {
is_page: 0, is_page: 0,
project_id: this.project.project_id, project_id: this.project.project_id
content: this.requestParam.content
} }
}).then(res => { }).then(res => {
if (res.code === 0) { if (res.code === 0) {
...@@ -120,7 +142,6 @@ ...@@ -120,7 +142,6 @@
item.tip = `还差${goodsScore-userScore}分` item.tip = `还差${goodsScore-userScore}分`
} }
}) })
this.getGoodsList()
} }
}) })
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
Please register or to comment