| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- <template>
- <view class="content">
- <view class="param">
- <view class="proName">项目标题</view>
- <view class="prolittle">{{data.projectName}}</view>
- <view class="proMiao">项目描述</view>
- <view class="prolittle">{{data.projectContent}}</view>
- <view class="proMiao">附件</view>
- <view class="prolittle" v-for="(item,index) in fileList2">
- <view style="color: rgba(0, 97, 255, 1);" @click="navigateToTU(item.name)">{{item.name}}</view>
- </view>
- <!-- <view class="upload-img">
- <uni-file-picker limit="3"
- @select='selectUpload'
- :auto-upload='false'
- file-extname='pdf,docx,xlsx,'
- file-mediatype="all"
- @success='uploadSuccess'
- @fail='uploadFail'
- :list-styles='listStyles'
- v-model='fileList2'
- ></uni-file-picker>
- </view> -->
- <view class="proMiao">主办单位</view>
- <view class="prolittle">{{data.organize}}</view>
- <view class="proMiao">协办单位</view>
- <view class="prolittle">{{data.coOrganize}}</view>
-
- <view class="proMiao">项目级别</view>
- <view class="prolittle">{{data.projectLevel}}</view>
- <view class="proMiao">项目来源</view>
- <view class="prolittle">{{data.projectFrom}}</view>
- <view class="proMiao jindu">完成进度</view>
- <view class="weidu">维度权重40%</view>
- <view class="addRen" @click="addRen">新增任务</view>
- <!-- 任务列表 -->
- <view style="width: 100%;margin: 50rpx 0 0 20rpx;">
- <view class="renwu" v-for="(item,index) in renwu" :key="index">
- <view>{{item.taskName}}</view>
- <view>{{item.createTime}}</view>
- <view style="display: flex;">
- <view class="renwu-bu bianji">编辑</view>
- <view class="renwu-bu delete">删除</view>
- </view>
- </view>
- </view>
-
- <view style="width: 100%;margin: 50rpx 0 0 20rpx;">
- <view class="renwu" v-for="(item,index) in renwu" :key="index">
- <view>{{item.taskName}}</view>
- <view>{{item.createTime}}</view>
- <view>30%</view>
- <view>{{item.scoreLimit}}</view>
- <view style="color: rgba(0, 97, 255, 1);">更新进度</view>
- </view>
- </view>
- <view class="proMiao jindu" v-if="data.progress>0">进度详情</view>
- <!-- 进度 -->
- <view style="margin: 33rpx 0 0 19rpx;">
- <view v-for="(item,index) in rizhi" :key="index" class="jindu-kuang">
- <view style="display: flex;">
- <view class="jindu-circle"></view>
- <view>
- <view style="width: 600rpx;display: flex;justify-content: space-between;margin-top: 20rpx;">
- <view style="display: flex;">
- <view style="margin-left: 28rpx;">{{item.createBy}}</view>
- <view class="jindu-type lixiang">{{item.content}}</view>
- </view>
- <!-- <view class="jindu-type cuiban">已催办</view>
- <view class="jindu-type tijiao">已提交</view> -->
- <view>{{item.createTime}}</view>
- </view>
- <view style="margin:7rpx 0 0 28rpx;">项目名:{{item.projectName}}</view>
- <!-- <view style="margin:7rpx 0 0 28rpx;">任务指派:xxx,xxx,xxx</view>
- <view style="margin:7rpx 0 0 28rpx;">任务指派:xxx,xxx,xxx</view>
- <view style="margin:7rpx 0 0 28rpx;">任务指派:xxx,xxx,xxx</view> -->
- </view>
- </view>
- <view class="jindu-line" v-if="index<(rizhi.length-1)"></view>
-
- </view>
- </view>
- <view style="width: 100%;height: 60rpx;"></view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- data:{},
- fileList2: [],
- fileList22:'',
- listStyles: {
- "borderStyle": {
- "width": "0", // 边框宽度
- },
- "border": false, // 是否显示边框
- "dividline": false
- },
- renwu:[],
- rizhi:[],//日志
- }
- },
- onLoad(option) {
- console.log(JSON.parse(decodeURIComponent(option.data)))
- this.data=JSON.parse(decodeURIComponent(option.data))
- var image=[]
- image=this.data.fileUrl.split(',')
- this.fileList2 =image.map(item =>{
- return {
- name: item
- }
- })
- this.fileList22=image.join(",")
- console.log(this.fileList2)
- this.getRenwu()
- this.getRizhi()
- },
- methods: {
- change(e) {
- console.log("e:", e);
- },
- //跳转页面
- navigateToTU(url) {
- window.location.href = url;
- },
- //新增任务
- addRen(){
- uni.navigateTo({
- url:'/pages/project/addRenwu?proId='+this.data.id
- })
- },
- // 查找任务
- getRenwu(){
- let that = this
- that.renwu=[]
- uni.showLoading({
- title: '加载中',
- mask: true, // 是否显示透明蒙层,防止触摸穿透
- });
- var data={
- "projectId": that.data.id
- }
- that.$Request.postT('/api/sysTask/queryTaskByProject',data).then(res => {
- if (res.code==200) {
- that.renwu=res.data
- console.log(that.renwu,'任务')
- }
- uni.hideLoading();
- });
- },
- //项目日志
- getRizhi(){
- let that = this
- that.rizhi=[]
- uni.showLoading({
- title: '加载中',
- mask: true, // 是否显示透明蒙层,防止触摸穿透
- });
- var data={
- "projectId": that.data.id
- }
- that.$Request.postT('/api/sysProject/queryLogs',data).then(res => {
- if (res.code==200) {
- that.rizhi=res.data
- console.log(that.rizhi,'日志')
- }
- uni.hideLoading();
- });
- }
- }
- }
- </script>
- <style>
- .content {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- }
- .param{
- margin: 20rpx 0 0 0;
- width: 100%;
- background-color: rgba(255, 255, 255, 1);
- font-size: 28rpx;
- font-weight: 400;
- line-height: 41rpx;
- color: rgba(0, 0, 0, 1);
- }
- .proName{
- margin: 23rpx 0 0 20rpx;
- }
- .prolittle{
- margin: 5rpx 0 0 20rpx;
- width: 710rpx;
- }
- .proINname{
- margin: 25rpx 0 0 21rpx;
- width: 709rpx;
- height: 90rpx;
- border-radius: 13rpx;
- background: rgba(245, 248, 252, 1);
- border: 1rpx solid rgba(229, 229, 229, 1);
- font-size: 28rpx;
- line-height: 90rpx;
- color: rgba(179, 179, 179, 1);
- }
- .proIMi{
- height: 315rpx;
- }
- .proMiao{
- margin: 31rpx 0 0 20rpx;
- }
- /* 上传附件 */
- .upload-img{
- /* width: 200rpx;
- height: 80rpx;
- opacity: 1;
- border-radius: 13rpx;
- background: rgba(0, 97, 255, 0.1);
- border: 1rpx solid rgba(0, 97, 255, 1); */
- }
- .jindu{
- font-size: 32rpx;
- font-weight: 500;
- line-height: 46rpx;
- }
- /* 进度 */
- .jindu-kuang{
- font-size: 24rpx;
- line-height: 35rpx;
- color: rgba(128, 128, 128, 1);
- }
- .jindu-circle{
- margin-top: 10rpx;
- width: 100rpx;
- height: 100rpx;
- border-radius: 50%;
- opacity: 1;
- background-color:rgba(204, 204, 204, 1);
- }
- .jindu-type{
- width: 103rpx;
- height: 40rpx;
- border-radius: 71rpx;
- font-size: 24rpx;
- line-height: 40rpx;
- color: rgba(255, 255, 255, 1);
- text-align: center;
- margin: 0 0 0 20rpx;
- }
- .lixiang{
- background: linear-gradient(90deg, rgba(54, 111, 255, 1) 0%, rgba(93, 160, 252, 1) 100%);
- }
- .cuiban{
- background: linear-gradient(90deg, rgba(57, 167, 139, 1) 0%, rgba(126, 224, 203, 1) 100%);
- }
- .tijiao{
- background: linear-gradient(90deg, rgba(255, 112, 69, 1) 0%, rgba(247, 161, 114, 1) 100%);
- }
- .jindu-line{
- width: 4rpx;
- height: 100rpx;
- background-color: rgba(166, 166, 166, 1);
- }
- .weidu{
- margin: 7rpx 0 0 20rpx;
- font-size: 24rpx;
- line-height: 35rpx;
- color: rgba(128, 128, 128, 1);
- }
- .addRen{
- margin: -80rpx 0 0 581rpx;
- width: 149rpx;
- height: 59rpx;
- border-radius: 92rpx;
- background: rgba(0, 97, 255, 1);
- font-size: 28rpx;
- line-height: 59rpx;
- color: rgba(255, 255, 255, 1);
- text-align: center;
- }
- /* 任务列表 */
- .renwu{
- display: flex;
- margin-top: 6rpx;
- width: 709rpx;
- height: 90rpx;
- border-radius: 13rpx;
- background: rgba(245, 248, 252, 1);
- border: 1rpx solid rgba(229, 229, 229, 1);
- font-size: 28rpx;
- justify-content: space-evenly;
- align-items: center;
- }
- .renwu-bu{
- width: 105rpx;
- height: 50rpx;
- border-radius: 110rpx;
- line-height:50rpx;
- text-align: center;
- }
- .bianji{
- border: 1rpx solid rgba(0, 97, 255, 1);
- color: rgba(0, 97, 255, 1);
- }
- .delete{
- margin-left: 20rpx;
- border: 1rpx solid rgba(212, 48, 48, 1);
- color: rgba(212, 48, 48, 1);
- }
- .project{
- display: flex;
- margin: 61rpx 0 0 0;
- justify-content: space-evenly;
- }
- .butt{
- width: 330rpx;
- height: 90rpx;
- border-radius: 117rpx;
- font-size: 32rpx;
- line-height: 90rpx;
- text-align: center;
- }
- .quxiao{
- border: 1rpx solid rgba(0, 97, 255, 1);
- color: rgba(0, 97, 255, 1);
- }
- .queren{
- background: rgba(0, 97, 255, 1);
- color: rgba(255, 255, 255, 1);
- }
- </style>
|