提交 e11c0c1f 作者: wk

新闻头条调整处理

父级 46a95b0c
...@@ -18,12 +18,13 @@ const http = (params) => { ...@@ -18,12 +18,13 @@ const http = (params) => {
if (result.code == 0) { if (result.code == 0) {
resolve(result) resolve(result)
} else if (result.code == 10201) { //token失效 } else if (result.code == 10201) { //token失效
getApp().globalData.isLoginAgain = true
uni.navigateTo({ uni.navigateTo({
url: "/pages/wxLogin/wxLogin" url: "/pages/wxLogin/wxLogin"
}) })
} else if (result.code == 33199) { } else if (result.code == 33199) {
resolve(result) resolve(result)
} else {
reject(result)
} }
}, },
fail(err) { fail(err) {
......
...@@ -39,9 +39,7 @@ ...@@ -39,9 +39,7 @@
<uni-grid column="4" class="grid-container"> <uni-grid column="4" class="grid-container">
<uni-grid-item class="grid-item" v-for="(model,modelIndex) in item.data" :key="modelIndex"> <uni-grid-item class="grid-item" v-for="(model,modelIndex) in item.data" :key="modelIndex">
<view class="item" @click="toIndex(model)"> <view class="item" @click="toIndex(model)">
<image <image :src="model.ydt_logo" class="image" />
:src="'https://release-console.oss-cn-hangzhou.aliyuncs.com/intecons/uniimage/'+model.logo+'.png'"
class="image" />
<view class="single-text" style="color: #666666;font-size: 28rpx;margin-top: 10rpx;"> <view class="single-text" style="color: #666666;font-size: 28rpx;margin-top: 10rpx;">
{{nameLengthDeal(model.app_name)}} {{nameLengthDeal(model.app_name)}}
</view> </view>
...@@ -88,12 +86,18 @@ ...@@ -88,12 +86,18 @@
app_sort: 1 app_sort: 1
}, },
orgName: "", orgName: "",
mostUsed: {} mostUsed: {},
role: "PM"
} }
}, },
onLoad() { onLoad() {
const info = uni.getSystemInfoSync() const info = uni.getSystemInfoSync()
this.statusBarHeight = info.statusBarHeight this.statusBarHeight = info.statusBarHeight
this.role = getApp().globalData.userInfo.identity.code
if (this.role == 'WORKER') {
this.orgName = getApp().globalData.userInfo.currentProject.projectName
uni.setStorageSync("org_no", getApp().globalData.userInfo.user.org_no)
}
this.getAppGroup() this.getAppGroup()
this.getMostUsed() this.getMostUsed()
}, },
...@@ -123,7 +127,6 @@ ...@@ -123,7 +127,6 @@
} }
}).then((result) => { }).then((result) => {
console.log("组织树", result); console.log("组织树", result);
console.log("------", uni.getStorageSync("org_name"));
if (result.code == 0) { if (result.code == 0) {
this.trees = result.data.list[0].children_list this.trees = result.data.list[0].children_list
this.orgName = uni.getStorageSync("org_name") || result.data.list[0].name this.orgName = uni.getStorageSync("org_name") || result.data.list[0].name
...@@ -131,6 +134,9 @@ ...@@ -131,6 +134,9 @@
}) })
}, },
toChangeOrg() { toChangeOrg() {
if (this.role != 'PM') {
return
}
uni.navigateTo({ uni.navigateTo({
url: "/pages/mine/changeOrg/changeOrg" url: "/pages/mine/changeOrg/changeOrg"
}) })
......
...@@ -80,27 +80,26 @@ ...@@ -80,27 +80,26 @@
<image src="../../static/right-arrow.png" @click="toLinkScore"></image> <image src="../../static/right-arrow.png" @click="toLinkScore"></image>
</view> </view>
<view class="score-count">剩余:{{scoreDetail.integral||0}}积分</view> <view class="score-count">剩余:{{scoreDetail.integral||0}}积分</view>
<view class="list-content"> <view class="list-content">
<view class="left-content"> <view class="left-content">
<view class="item-content" v-for="(item,index) in leftList()" :key="index"> <view class="item-content" v-for="(item,index) in leftList()" :key="index">
<image class="image" <image class="image" :src="item.goods_img">
src="https://img.alicdn.com/imgextra/i1/27493396/O1CN013NYTVu1axPeymS1yi_!!0-saturn_solar.jpg_468x468q75.jpg_.webp">
</image> </image>
<view class="count">500积分可兑换</view> <view class="count">{{item.goods_integral}}积分可兑换</view>
<view class="name-content"> <view class="name-content">
<view class="name">XXX牌雨伞XXX牌雨伞XXX牌雨伞XXX牌雨伞</view> <view class="name">{{item.goods_name}}</view>
<image src="../../static/exchange.png" class="image" @click="exchange(item)"></image> <image src="../../static/exchange.png" class="image" @click="exchange(item)"></image>
</view> </view>
</view> </view>
</view> </view>
<view class="right-content"> <view class="right-content">
<view class="item-content" v-for="(item,index) in rightList()" :key="index"> <view class="item-content" v-for="(item,index) in rightList()" :key="index">
<image class="image" <image class="image" :src="item.goods_img">
src="https://bkimg.cdn.bcebos.com/pic/8718367adab44aedf44fb8c1b11c8701a18bfb96?x-bce-process=image/watermark,image_d2F0ZXIvYmFpa2U4MA==,g_7,xp_5,yp_5">
</image> </image>
<view class="count">500积分可兑换</view> <view class="count">{{item.goods_integral}}积分可兑换</view>
<view class="name-content"> <view class="name-content">
<view class="name">XXX牌雨伞XXX牌雨伞XXX牌雨伞XXX牌雨伞</view> <view class="name">{{item.goods_name}}</view>
<image src="../../static/exchange.png" class="image" @click="exchange(item)"></image> <image src="../../static/exchange.png" class="image" @click="exchange(item)"></image>
</view> </view>
</view> </view>
...@@ -139,14 +138,15 @@ ...@@ -139,14 +138,15 @@
}], }],
scoreDetail: {}, scoreDetail: {},
city: "杭州市", city: "杭州市",
address: "浙江省杭州市西湖区", address: "浙江省杭州市",
weather: {}, weather: {},
userInfo: {}, userInfo: {},
pageTemplateComponent: [], pageTemplateComponent: [],
isWeatherShow: true, isWeatherShow: true,
role: "VISITOR", role: "VISITOR",
nowTime: "", nowTime: "",
project: {} project: {},
project_id: ""
} }
}, },
onLoad() { onLoad() {
...@@ -172,6 +172,24 @@ ...@@ -172,6 +172,24 @@
}, },
methods: { methods: {
dealImage(url) {
var newPath = ""
if (url) {
let array = url.split("://")
if (array[0] === "http") {
array[0] = "https"
newPath = array[0] + "://" + array[1]
} else {
newPath = url
}
}
console.log("图片", newPath);
if (newPath.indexOf(',') != -1) {
var urls = newPath.split(",")
return urls[0]
}
return url
},
loginState() { loginState() {
let that = this let that = this
uni.getStorage({ uni.getStorage({
...@@ -179,7 +197,6 @@ ...@@ -179,7 +197,6 @@
success(res) { success(res) {
//获取用户信息 //获取用户信息
that.getUserInfo() that.getUserInfo()
that.getNews()
that.getSetting() that.getSetting()
that.getHomeComp() that.getHomeComp()
that.getWeather() that.getWeather()
...@@ -197,12 +214,16 @@ ...@@ -197,12 +214,16 @@
}) })
}, },
loadProject: function() { loadProject: function() {
let orgNo = uni.getStorageSync("org_no")
if (orgNo == '001') {
orgNo = ""
}
let that = this let that = this
this.$http.get({ this.$http.get({
url: "/api/v1/project/project_list", url: "/api/v1/project/project_list",
data: { data: {
is_all: 1, is_all: 1,
// org_no: uni.getStorageSync("org_no") org_no: orgNo
}, },
header: { header: {
"access_token": this.getToken() "access_token": this.getToken()
...@@ -213,14 +234,13 @@ ...@@ -213,14 +234,13 @@
if (result.code === 0) { if (result.code === 0) {
if (result.data.list.length > 0) { if (result.data.list.length > 0) {
this.project = result.data.list[0] this.project = result.data.list[0]
if (!uni.getStorageSync("project_id")) { this.project_id = this.project.project_id
uni.setStorageSync("org_no", this.project.org_no) uni.setStorageSync("org_no", this.project.org_no)
uni.setStorageSync("org_name", this.project.project_name) uni.setStorageSync("org_name", this.project.project_name)
uni.setStorageSync("org_id", this.project.id) uni.setStorageSync("org_id", this.project.id)
uni.setStorageSync("project_id", this.project.project_id) uni.setStorageSync("project_id", this.project.project_id)
} }
} }
}
if (this.role == 'WORKER') { if (this.role == 'WORKER') {
this.getGoodsList() this.getGoodsList()
this.getMyScore() this.getMyScore()
...@@ -231,7 +251,7 @@ ...@@ -231,7 +251,7 @@
Api.getGoodsList({ Api.getGoodsList({
data: { data: {
is_page: 0, is_page: 0,
project_id: this.project.project_id project_id: this.userInfo.worker.projectId
} }
}).then(res => { }).then(res => {
if (res.code === 0) { if (res.code === 0) {
...@@ -259,7 +279,7 @@ ...@@ -259,7 +279,7 @@
}, },
clickItem() { clickItem() {
uni.navigateTo({ uni.navigateTo({
url: `/pages/index/siteNewList/siteNewList?clientId=1` url: `/pages/index/siteNewList/siteNewList?clientId=1&projectId=` + this.project_id
}) })
}, },
toLinkOther() { toLinkOther() {
...@@ -309,6 +329,7 @@ ...@@ -309,6 +329,7 @@
pageNum: 1, pageNum: 1,
pageSize: 20, pageSize: 20,
clientId: 1, clientId: 1,
projectId: this.project_id,
} }
}).then((result) => { }).then((result) => {
if (result.code == 0) { if (result.code == 0) {
...@@ -324,6 +345,7 @@ ...@@ -324,6 +345,7 @@
pageNum: 1, pageNum: 1,
pageSize: 20, pageSize: 20,
clientId: 2, clientId: 2,
projectId: this.project_id,
} }
}).then((result) => { }).then((result) => {
if (result.code == 0) { if (result.code == 0) {
...@@ -359,14 +381,16 @@ ...@@ -359,14 +381,16 @@
}, },
toLinkNew() { toLinkNew() {
uni.navigateTo({ uni.navigateTo({
url: `/pages/index/siteNewList/siteNewList?clientId=2` url: `/pages/index/siteNewList/siteNewList?clientId=2&projectId=` + this.project_id
}) })
}, },
getMyScore() { getMyScore() {
var date = new Date()
Api.getUserScore({ Api.getUserScore({
data: { data: {
project_id: this.project.project_id, project_id: this.userInfo.worker.projectId,
worker_id: this.userInfo.worker.workerId worker_id: this.userInfo.worker.workerId,
time: date.getFullYear() + "-" + date.getMonth() + 1 + "-" + date.getDate()
} }
}).then(res => { }).then(res => {
console.log("用户积分", res); console.log("用户积分", res);
...@@ -420,9 +444,19 @@ ...@@ -420,9 +444,19 @@
this.userInfo = result.data this.userInfo = result.data
// this.title = "欢迎" + this.userInfo.user.user_name + "访问一点通" // this.title = "欢迎" + this.userInfo.user.user_name + "访问一点通"
this.role = this.userInfo.identity.code this.role = this.userInfo.identity.code
if (!uni.getStorageSync("org_no")) { console.log("当前组织", uni.getStorageSync("org_no"));
this.project_id = uni.getStorageSync("project_id")
if (!this.project_id) {
this.loadProject() this.loadProject()
} else {
if (this.role == 'WORKER') {
this.project_id = this.userInfo.worker.projectId
this.getGoodsList()
this.getMyScore()
}
} }
this.getNews()
this.getBanners()
} else { } else {
this.$toast.showToast(result.msg) this.$toast.showToast(result.msg)
} }
......
<template> <template>
<view class="content"> <view class="content">
<titleBar title="工地头条详情"></titleBar> <titleBar title="新闻详情"></titleBar>
<view class="new-content"> <view class="new-content">
<view class="title-content"> <view class="title-content">
<text class="text">{{dealTitle(newDetail.title) }}</text> <text class="text">{{dealTitle(newDetail.title) }}</text>
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
<text class="text">{{newDetail.updateUserName}}</text> <text class="text">{{newDetail.updateUserName}}</text>
<text class="text" style="margin-left: 30rpx;">{{newDetail.articleTime}}</text> <text class="text" style="margin-left: 30rpx;">{{newDetail.articleTime}}</text>
</view> </view>
<image src="https://img.redocn.com/sheying/20150804/gongdi_4770950.jpg" class="image"></image> <image :src="newDetail.articleImg" class="image"></image>
<view class="text-content"> <view class="text-content">
<text class="text">{{newDetail.content}}</text> <rich-text :nodes="newDetail.content"></rich-text>
</view> </view>
</view> </view>
<view class="other-content"> <view class="other-content">
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
<view class="list-content"> <view class="list-content">
<view v-for="(item,index) in list" :key="index" class="list-item" @click="toLinkDetail(item)"> <view v-for="(item,index) in list" :key="index" class="list-item" @click="toLinkDetail(item)">
<view class="new-content"> <view class="new-content">
<view class="title">关于食堂发放免费午餐的消息通知息通知</view> <view class="title">{{item.title}}</view>
<view class="user">张三 2022/12/14 16:52:56</view> <view class="user">{{item.updateUserName}} {{item.articleTime}}</view>
</view> </view>
<image class="image" src="../../../static/banner.png"></image> <image class="image" :src="dealImage(item.coverImg)"></image>
</view> </view>
</view> </view>
</view> </view>
...@@ -41,13 +41,41 @@ ...@@ -41,13 +41,41 @@
articleTime: "2022/12/14 16:52:56", articleTime: "2022/12/14 16:52:56",
content: "由于工人数量大、居住集中等原因,工地防疫一度是各地面对的难题。此前,不同地区都要求进工地的建筑工人或一天一检,或两天一检,比一般社会面更严格。工地上中老年人多。 在某东部省会工作的基层干部周楠曾负责协调、 监督一些工地与医院对接做核酸。 她注意到, 工地上有一些“ 50 后” 的农民工, 他们没有智能手机, 做核酸时无法扫码, 只能出示身份证。 " content: "由于工人数量大、居住集中等原因,工地防疫一度是各地面对的难题。此前,不同地区都要求进工地的建筑工人或一天一检,或两天一检,比一般社会面更严格。工地上中老年人多。 在某东部省会工作的基层干部周楠曾负责协调、 监督一些工地与医院对接做核酸。 她注意到, 工地上有一些“ 50 后” 的农民工, 他们没有智能手机, 做核酸时无法扫码, 只能出示身份证。 "
}, },
id: "" id: "",
text: ""
} }
}, },
onLoad(options) { onLoad(options) {
this.id = options.id this.id = options.id
this.getNewDetail()
}, },
methods: { methods: {
toLinkDetail(item) {
uni.navigateTo({
url: "/pages/index/newDetail/newDetail?id=" + item.articleLibraryId
})
},
onEditorReady(content) {
//富文本宽度100%
this.text = content.replace(/\<img/g, "<img style='width: 100%;'")
},
dealImage(url) {
var newPath = ""
if (url) {
let array = url.split("://")
if (array[0] === "http") {
array[0] = "https"
newPath = array[0] + "://" + array[1]
} else {
newPath = url
}
}
if (newPath.indexOf(',') != -1) {
var urls = newPath.split(",")
return urls[0]
}
return url
},
dealTitle(text) { dealTitle(text) {
if (text.length > 15) { if (text.length > 15) {
return text.substr(0, 13) + "..." return text.substr(0, 13) + "..."
...@@ -64,7 +92,7 @@ ...@@ -64,7 +92,7 @@
this.list = [] this.list = []
let data = result.data let data = result.data
data.forEach(item => { data.forEach(item => {
if (item.articleLibraryId == id) { if (item.articleLibraryId == this.id) {
this.newDetail = item this.newDetail = item
} else { } else {
this.list.push(item) this.list.push(item)
...@@ -80,6 +108,12 @@ ...@@ -80,6 +108,12 @@
</script> </script>
<style lang="scss"> <style lang="scss">
#editor {
width: 100%;
height: 300px;
background-color: #fff;
}
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
<template> <template>
<view class="content"> <view class="content">
<titleBar title="工地头条"></titleBar> <titleBar :title="title"></titleBar>
<view class="search-content"> <view class="search-content">
<image src="../../../static/ic-search.png" class="image"></image> <image src="../../../static/ic-search.png" class="image"></image>
<input placeholder="搜索" placeholder-class="placeholderStyle" @input="search" class="inputStyle" /> <input placeholder="搜索" placeholder-class="placeholderStyle" @input="search" class="inputStyle" />
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<view class="title">{{item.title}}</view> <view class="title">{{item.title}}</view>
<view class="user">{{item.updateUserName}} {{item.articleTime}}</view> <view class="user">{{item.updateUserName}} {{item.articleTime}}</view>
</view> </view>
<image class="image" src="../../../static/banner.png"></image> <image class="image" :src="dealImage(item.coverImg)"></image>
</view> </view>
</view> </view>
</view> </view>
...@@ -31,12 +31,20 @@ ...@@ -31,12 +31,20 @@
pageSize: 20, pageSize: 20,
isHasMore: true, isHasMore: true,
clientId: 2, clientId: 2,
key: "" key: "",
projectId: "",
title: "工地头条"
} }
}, },
onLoad(option) { onLoad(option) {
this.clientId = option.clientId this.clientId = option.clientId
this.projectId = option.projectId
this.getNews() this.getNews()
if (this.clientId == 1) {
this.title = "banner新闻"
} else {
this.title = "工地头条"
}
}, },
onPullDownRefresh() { onPullDownRefresh() {
this.page = 1 this.page = 1
...@@ -49,9 +57,27 @@ ...@@ -49,9 +57,27 @@
} }
}, },
methods: { methods: {
dealImage(url) {
var newPath = ""
if (url) {
let array = url.split("://")
if (array[0] === "http") {
array[0] = "https"
newPath = array[0] + "://" + array[1]
} else {
newPath = url
}
}
console.log("图片", newPath);
if (newPath.indexOf(',') != -1) {
var urls = newPath.split(",")
return urls[0]
}
return url
},
toLinkDetail(item) { toLinkDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/index/newDetail/newDetail" url: "/pages/index/newDetail/newDetail?id=" + item.articleLibraryId
}) })
}, },
search(e) { search(e) {
...@@ -65,7 +91,8 @@ ...@@ -65,7 +91,8 @@
pageNum: this.page, pageNum: this.page,
pageSize: this.pageSize, pageSize: this.pageSize,
clientId: this.clientId, clientId: this.clientId,
title: this.key title: this.key,
projectId: this.projectId
} }
}).then((result) => { }).then((result) => {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
......
...@@ -99,6 +99,8 @@ ...@@ -99,6 +99,8 @@
icon: 'none' icon: 'none'
}) })
} }
}, (err) => {
this.$toast.showToast(err.msg)
}) })
}, },
showMadel: function() { showMadel: function() {
...@@ -143,6 +145,8 @@ ...@@ -143,6 +145,8 @@
url: "/pages/index/index" url: "/pages/index/index"
}) })
} }
}, (err) => {
this.$toast.showToast(err.msg)
}) })
}, },
sendCode() { sendCode() {
...@@ -180,6 +184,8 @@ ...@@ -180,6 +184,8 @@
icon: 'none' icon: 'none'
}) })
} }
}, (err) => {
this.$toast.showToast(err.msg)
}) })
}, },
timeDown(num) { timeDown(num) {
...@@ -263,6 +269,8 @@ ...@@ -263,6 +269,8 @@
icon: 'none' icon: 'none'
}) })
} }
}, (err) => {
this.$toast.showToast(err.msg)
}) })
}, },
toAuthLogin() { toAuthLogin() {
...@@ -297,6 +305,8 @@ ...@@ -297,6 +305,8 @@
icon: 'none' icon: 'none'
}) })
} }
}, (err) => {
this.$toast.showToast(err.msg)
}) })
}, },
directLogin: function() { directLogin: function() {
...@@ -324,6 +334,8 @@ ...@@ -324,6 +334,8 @@
icon: 'none' icon: 'none'
}) })
} }
}, (err) => {
this.$toast.showToast(err.msg)
}) })
}, },
toLogin() { toLogin() {
...@@ -365,6 +377,8 @@ ...@@ -365,6 +377,8 @@
icon: 'none' icon: 'none'
}) })
} }
}, (err) => {
this.$toast.showToast(err.msg)
}) })
} else { } else {
Api.login({ Api.login({
...@@ -400,6 +414,8 @@ ...@@ -400,6 +414,8 @@
icon: 'none' icon: 'none'
}) })
} }
}, (err) => {
this.$toast.showToast(err.msg)
}) })
} }
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
}, },
scoreDetail: {}, scoreDetail: {},
userInfo: {}, userInfo: {},
project: {} project_id: ""
} }
}, },
onLoad(option) { onLoad(option) {
...@@ -85,14 +85,17 @@ ...@@ -85,14 +85,17 @@
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.loadProject() this.getGoodsList()
this.getScoreDetail()
}, },
methods: { methods: {
getScoreDetail() { getScoreDetail() {
var date = new Date()
Api.getUserScore({ Api.getUserScore({
data: { data: {
project_id: this.project.project_id, project_id: getApp().globalData.userInfo.worker.projectId,
worker_id: getApp().globalData.userInfo.worker.workerId worker_id: getApp().globalData.userInfo.worker.workerId,
time: date.getFullYear() + "-" + date.getMonth() + 1 + "-" + date.getDate()
} }
}).then(res => { }).then(res => {
if (res.code === 0) { if (res.code === 0) {
...@@ -100,32 +103,11 @@ ...@@ -100,32 +103,11 @@
} }
}) })
}, },
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: getApp().globalData.userInfo.worker.projectId
} }
}).then(res => { }).then(res => {
if (res.code === 0) { if (res.code === 0) {
......
...@@ -71,19 +71,26 @@ ...@@ -71,19 +71,26 @@
project: {}, project: {},
showModal: false, showModal: false,
qrcodeSrc: "", qrcodeSrc: "",
curTitle: "" curTitle: "",
role: "PM",
projectId: ""
} }
}, },
onLoad() { onLoad() {
this.role = getApp().globalData.userInfo.identity.code
if (this.role == 'WORKER') {
this.projectId = getApp().globalData.userInfo.worker.projectId
} else {
this.projectId = uni.getStorageSync("project_id")
}
this.getProjectInfo() this.getProjectInfo()
}, },
methods: { methods: {
getProjectInfo() { getProjectInfo() {
let projectId = uni.getStorageSync("project_id") if (this.projectId) {
if (projectId) {
Api.getProjectInfo({ Api.getProjectInfo({
data: { data: {
project_id: uni.getStorageSync("project_id") project_id: this.projectId
} }
}).then((result) => { }).then((result) => {
console.log("项目信息", result); console.log("项目信息", result);
...@@ -110,8 +117,9 @@ ...@@ -110,8 +117,9 @@
}).then((result) => { }).then((result) => {
console.log("项目列表:", result); console.log("项目列表:", result);
if (result.code === 0) { if (result.code === 0) {
this.projectList = result.data.list var projectList = result.data.list
this.project = this.projectList[0] this.projectId = projectList[0].project_id
this.getProjectInfo()
} else { } else {
this.$toast.showToast(result.msg) this.$toast.showToast(result.msg)
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
Please register or to comment