Browse Source

fix: 解决冲突

test2
xuesinan 4 years ago
parent
commit
c4c78c864a
  1. 48
      .drone.yml
  2. 22
      App.vue
  3. 1
      CHANGELOG.md
  4. 3
      README.md
  5. 5
      common/styles/theme/default.scss
  6. 2
      components/Plugin/Plugin.vue
  7. 22
      components/Render/Render.vue
  8. 42
      components/TimeLine/component/TimeBox.vue
  9. 4
      pages/project/project.vue
  10. 56
      plugins/p-deliver-check/p-deliver-check.vue
  11. 11
      plugins/p-deliver/p-deliver.vue
  12. 12
      plugins/p-delivery-history/p-delivery-history.vue
  13. 149
      plugins/p-delivery-history/p-delivery-history1.vue
  14. 11
      plugins/p-manage-member/p-manage-member.vue
  15. 11
      plugins/p-manage-project/p-manage-project.vue
  16. 11
      plugins/p-manage-role/p-manage-role.vue
  17. 11
      plugins/p-manage-task/p-manage-task.vue
  18. 11
      plugins/p-subproject/p-subproject.vue
  19. 11
      plugins/p-subtasks/p-subtasks.vue
  20. 11
      plugins/p-task-countdown/p-task-countdown.vue
  21. 11
      plugins/p-task-description/p-task-description.vue
  22. 11
      plugins/p-task-duration-delay/p-task-duration-delay.vue
  23. 11
      plugins/p-task-start-time-delay/p-task-start-time-delay.vue
  24. 13
      plugins/p-task-title/p-task-title.vue
  25. 11
      plugins/p-upload-deliverable/p-upload-deliverable.vue
  26. 11
      plugins/p-wbs-import/p-wbs-import.vue

48
.drone.yml

@ -17,36 +17,36 @@ volumes:
path: /var/lib/data path: /var/lib/data
steps: steps:
- name: restore-cache # - name: restore-cache
image: drillster/drone-volume-cache # image: drillster/drone-volume-cache
volumes: # volumes:
- name: cache # - name: cache
path: /cache # path: /cache
settings: # settings:
restore: true # restore: true
mount: # mount:
- ./node_modules # - ./node_modules
- name: build - name: build
image: node:latest image: node:latest
pull: if-not-exists # default always pull: if-not-exists # default always
volumes: # volumes:
- name: cache # - name: cache
path: /root/.m2 # path: /root/.m2
commands: commands:
- npm config set registry http://registry.npm.taobao.org - npm config set registry http://registry.npm.taobao.org
- npm i - npm i
- npm run build:dev - npm run test
- name: rebuild-cache # - name: rebuild-cache
image: drillster/drone-volume-cache # image: drillster/drone-volume-cache
volumes: # volumes:
- name: cache # - name: cache
path: /cache # path: /cache
settings: # settings:
rebuild: true # rebuild: true
mount: # mount:
- ./node_modules # - ./node_modules
- name: deploy-scp - name: deploy-scp
image: appleboy/drone-scp image: appleboy/drone-scp
@ -61,7 +61,7 @@ steps:
key_path: /root/.ssh/id_rsa key_path: /root/.ssh/id_rsa
rm: true # true则会删除目标目录重建 rm: true # true则会删除目标目录重建
target: /home/tall/v4.0.0 target: /home/tall/v4.0.0
source: dist/**/* source: dist/*
strip_components: 1 # 去除的目录层数,如果没有该选项,则拷贝过去是 target/xxx.jar,1代表去除target strip_components: 1 # 去除的目录层数,如果没有该选项,则拷贝过去是 target/xxx.jar,1代表去除target
# - name: run-ssh # - name: run-ssh
@ -124,7 +124,7 @@ steps:
- success - success
trigger: trigger:
branch: develop branch: feat
# - name: notify-dingtalk # - name: notify-dingtalk
# image: lddsb/drone-dingtalk-message # image: lddsb/drone-dingtalk-message
# environment: # environment:

22
App.vue

@ -43,19 +43,18 @@ export default {
if (token && tokenIsAvailable) { if (token && tokenIsAvailable) {
// 1.1 storetoken 使storetoken // 1.1 storetoken 使storetoken
return token; return token;
} else { }
// 2. userIdtoken // 2. userIdtoken
if (userId) { if (userId) {
try { try {
const { token } = await this.$store.dispatch('user/getTokenByUserId', userId); const { token } = await this.$store.dispatch('user/getTokenByUserId', userId);
return token; return token;
} catch (error) { } catch (error) {
console.error('error: ', error); console.error('error: ', error);
return null;
}
} else {
return null; return null;
} }
} else {
return null;
} }
}, },
@ -166,4 +165,5 @@ export default {
page { page {
height: 100%; height: 100%;
} }
</style> </style>

1
CHANGELOG.md

@ -11,6 +11,7 @@
- | 时间轴页面 | [e926b75](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/e926b75) - | 时间轴页面 | [e926b75](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/e926b75)
- | 时间轴展示 | [8b1b380](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8b1b380) - | 时间轴展示 | [8b1b380](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8b1b380)
- | 使用uview完成api请求 | [1b3efd8](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/1b3efd8) - | 使用uview完成api请求 | [1b3efd8](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/1b3efd8)
- | 手机号登录 | [a198527](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/a198527)
- | 手机号登录 | [8f455da](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8f455da) - | 手机号登录 | [8f455da](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8f455da)
- | 手机号登录 | [565585b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/565585b) - | 手机号登录 | [565585b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/565585b)
- | 添加 timeline | [72dad2b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/72dad2b) - | 添加 timeline | [72dad2b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/72dad2b)

3
README.md

@ -0,0 +1,3 @@
# 时物链条
[![Build Status](http://101.201.226.163:3001/api/badges/TALL/TALL-MUI-4/status.svg)](http://101.201.226.163:3001/TALL/TALL-MUI-4)

5
common/styles/theme/default.scss

@ -1,7 +1,7 @@
// 默认主题文件 // 默认主题文件
.theme-default { .theme-default {
background-color: #007aff; background-color: #007aff;
color: #fff; // color: #fff;
.u-card { .u-card {
font-size: 24px !important; font-size: 24px !important;
color: #0f0; color: #0f0;
@ -13,4 +13,7 @@
color: #fff !important; color: #fff !important;
} }
} }
button{
border: none!important;
}
} }

2
components/Plugin/Plugin.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="u-font-14" style="height: 100%"> <view class="u-font-14" style="height: 100%">
<view @click="setStorage" class="grid gap-3"> <view @click="setStorage">
<Render :task="task" :pluginId="pluginId" :styleType="styleType" :pluginTaskId="pluginTaskId" :param="param" /> <Render :task="task" :pluginId="pluginId" :styleType="styleType" :pluginTaskId="pluginTaskId" :param="param" />
<!-- <plugin-default /> --> <!-- <plugin-default /> -->
<!-- <component :task="task" :is="pluginComponent"></component> --> <!-- <component :task="task" :is="pluginComponent"></component> -->

22
components/Render/Render.vue

@ -1,8 +1,9 @@
<template> <template>
<view> <view class="render-box shadow-lg" v-if="show">
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
<view <view
class="content" class="content"
style="border-radius: 8px;"
id="project" id="project"
:data-did="task.detailId" :data-did="task.detailId"
:data-param="param" :data-param="param"
@ -40,7 +41,7 @@
</template> </template>
<script setup> <script setup>
import { computed } from 'vue'; import { computed, reactive } from 'vue';
import { useStore } from 'vuex'; import { useStore } from 'vuex';
defineProps({ defineProps({
@ -51,6 +52,8 @@ defineProps({
param: { type: String, default: '' }, param: { type: String, default: '' },
}); });
const data = reactive({ show: true });
const store = useStore(); const store = useStore();
const roleId = computed(() => store.state.role.roleId); const roleId = computed(() => store.state.role.roleId);
const token = computed(() => store.state.user.token); const token = computed(() => store.state.user.token);
@ -64,6 +67,7 @@ export default {
return { return {
pluginContent: null, pluginContent: null,
pluginJs: null, pluginJs: null,
show: false,
}; };
}, },
@ -83,6 +87,7 @@ export default {
} else { } else {
if (!res || !res.id) return; if (!res || !res.id) return;
if (res.html && res.js) { if (res.html && res.js) {
this.show = true;
this.$nextTick(() => { this.$nextTick(() => {
this.init(res); this.init(res);
}); });
@ -102,3 +107,16 @@ export default {
}, },
}; };
</script> </script>
<style scoped lang="scss">
.render-box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
button{
border: none!important;
}
</style>

42
components/TimeLine/component/TimeBox.vue

@ -15,13 +15,14 @@
</view> </view>
<view class="plugin"> <view class="plugin">
<view class="h-3" v-if="task.process === 4"></view> <view class="h-3" v-if="task.process === 4"></view>
<view class="ml-3 overflow-hidden shadow-lg task-box"> <!-- <view class="ml-3 overflow-hidden shadow-lg task-box"> -->
<view class="ml-3">
<u-card :show-foot="false" :show-head="false" :style="{ height: setHeight(task.panel) }" class="h-16" margin="0" v-if="showSkeleton"> <u-card :show-foot="false" :show-head="false" :style="{ height: setHeight(task.panel) }" class="h-16" margin="0" v-if="showSkeleton">
<view slot="body"> <view slot="body">
<view><skeleton :banner="false" :loading="true" :row="4" animate class="mt-2 u-line-2 skeleton"></skeleton></view> <view><skeleton :banner="false" :loading="true" :row="4" animate class="mt-2 u-line-2 skeleton"></skeleton></view>
</view> </view>
</u-card> </u-card>
<u-card <!-- <u-card
@click="onClickTask(task.planStart - 0, task.id)" @click="onClickTask(task.planStart - 0, task.id)"
:style="{ height: setHeight(task.panel) }" :style="{ height: setHeight(task.panel) }"
:show-foot="false" :show-foot="false"
@ -30,25 +31,27 @@
margin="0" margin="0"
v-if="tasks && tasks.length && task.process !== 4 && !showSkeleton" v-if="tasks && tasks.length && task.process !== 4 && !showSkeleton"
> >
<template v-slot:body> <template v-slot:body> -->
<view class="p-0 u-col-between"> <view class="h-16" v-if="tasks && tasks.length && task.process !== 4 && !showSkeleton" @click="onClickTask(task.planStart - 0, task.id)">
<view :key="pIndex" v-for="(row, pIndex) in task.plugins"> <view class="p-0 u-col-between grid gap-3">
<view class="grid gap-2 grid-cols-1" v-if="row.length"> <view :key="pIndex" v-for="(row, pIndex) in task.plugins">
<Plugin <view class="grid gap-2 grid-cols-1" v-if="row.length">
:class="[`row-span-${plugin.row}`, `col-span-${plugin.col}`]" <Plugin
:task="task" :class="[`row-span-${plugin.row}`, `col-span-${plugin.col}`]"
:key="plugin.pluginTaskId" :task="task"
:plugin-task-id="plugin.pluginTaskId" :key="plugin.pluginTaskId"
:plugin-id="plugin.pluginId" :plugin-task-id="plugin.pluginTaskId"
:param="plugin.param" :plugin-id="plugin.pluginId"
:style-type="data.styleType || 0" :param="plugin.param"
v-for="plugin in row" :style-type="data.styleType || 0"
/> v-for="plugin in row"
</view> />
</view> </view>
</view> </view>
</template> </view>
</u-card> </view>
<!-- </template>
</u-card> -->
</view> </view>
</view> </view>
</view> </view>
@ -65,7 +68,6 @@ import TimeStatus from './TimeStatus.vue';
import TaskTools from './TaskTools.vue'; import TaskTools from './TaskTools.vue';
import Skeleton from '@/components/Skeleton/Skeleton.vue'; import Skeleton from '@/components/Skeleton/Skeleton.vue';
const data = reactive({ const data = reactive({
currentComponent: '', currentComponent: '',
styleType: 0, styleType: 0,

4
pages/project/project.vue

@ -1,5 +1,5 @@
<template> <template>
<view :style="{ height: height }" class="flex flex-col overflow-hidden u-font-14"> <theme :style="{ height: height }" class="flex flex-col overflow-hidden u-font-14">
<!-- 标题栏 --> <!-- 标题栏 -->
<Title /> <Title />
@ -16,7 +16,7 @@
<!-- TODO: DEBUG: --> <!-- TODO: DEBUG: -->
<u-button @click="$store.commit('setTheme', 'theme-test')">测试切换主题</u-button> <u-button @click="$store.commit('setTheme', 'theme-test')">测试切换主题</u-button>
</view> </view>
</view> </theme>
</template> </template>
<script setup> <script setup>

56
plugins/p-deliver-check/p-deliver-check.vue

@ -1,5 +1,6 @@
<template> <template>
<!-- 上传交付物 --> <!-- 上传交付物 -->
<view class="box shadow-lg">
<view class="px-3 py-6 bg-white"> <view class="px-3 py-6 bg-white">
<u-input :auto-height="autoHeight" :border="border" :height="height" :type="type" placeholder="输入备注" v-model="remark" /> <u-input :auto-height="autoHeight" :border="border" :height="height" :type="type" placeholder="输入备注" v-model="remark" />
<view class="flex flex-row-reverse text-xs text-gray-400 mt-2">{{ wordNum }}/140</view> <view class="flex flex-row-reverse text-xs text-gray-400 mt-2">{{ wordNum }}/140</view>
@ -14,49 +15,56 @@
<u-button @click="$emit('closeScore')" class="mt-2" size="medium">取消</u-button> <u-button @click="$emit('closeScore')" class="mt-2" size="medium">取消</u-button>
</view> </view>
</view> </view>
</view>
</template> </template>
<script setup> <script setup>
import { reactive, watchEffect } from 'vue'; import { reactive, watchEffect } from 'vue';
const data = reactive({ const data = reactive({
remark: '', remark: '',
type: 'textarea', type: 'textarea',
border: true, border: true,
height: 100, height: 100,
autoHeight: true, autoHeight: true,
wordNum: 0, wordNum: 0,
score: 0, score: 0,
type1: 'number', type1: 'number',
}); });
const emit = defineEmits(['submit']); const emit = defineEmits(['submit']);
watchEffect(() => { watchEffect(() => {
if(remark) { if (remark) {
data.wordNum = remark.value.length; data.wordNum = remark.value.length;
} }
if(score) { if (score) {
data.score1 = score.value; data.score1 = score.value;
} }
}); });
// //
function submit() { function submit() {
emit('submit', this.remark, this.score); emit('submit', this.remark, this.score);
} }
function sliderChange(e) { function sliderChange(e) {
data.score = e.detail.value; data.score = e.detail.value;
} }
function changeNumber(e) { function changeNumber(e) {
if (e > 100) { if (e > 100) {
data.score = 100; data.score = 100;
} }
} }
</script> </script>
<style></style> <style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

11
plugins/p-deliver/p-deliver.vue

@ -1,9 +1,18 @@
<template> <template>
<view class="box shadow-lg">
<view class="deliver-container">p-deliver</view> <view class="deliver-container">p-deliver</view>
</view>
</template> </template>
<script setup> <script setup>
</script> </script>
<style lang="scss"></style> <style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

12
plugins/p-delivery-history/p-delivery-history.vue

@ -1,5 +1,6 @@
<template> <template>
<!-- 交付物 --> <!-- 交付物 -->
<view class="box shadow-lg">
<view class="mt-3"> <view class="mt-3">
<view v-if="data.lists && data.lists.length"> <view v-if="data.lists && data.lists.length">
<view :key="list.id" v-for="list in data.lists"> <view :key="list.id" v-for="list in data.lists">
@ -39,6 +40,7 @@
<!-- 评分 --> <!-- 评分 -->
<!-- <uni-popup :maskClick="false" background-color="#fff" ref="popup" type="bottom"><PDeliverCheck @closeScore="closeScore" @submit="submit"></PDeliverCheck></uni-popup> --> <!-- <uni-popup :maskClick="false" background-color="#fff" ref="popup" type="bottom"><PDeliverCheck @closeScore="closeScore" @submit="submit"></PDeliverCheck></uni-popup> -->
</view> </view>
</view>
</template> </template>
<script setup> <script setup>
@ -128,4 +130,12 @@ function CheckUrl(url) {
} }
</script> </script>
<style></style> <style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

149
plugins/p-delivery-history/p-delivery-history1.vue

@ -1,149 +0,0 @@
<template>
<!-- 交付物 -->
<view class="mt-3">
<view v-if="lists && lists.length">
<view :key="list.id" v-for="list in lists">
<view class="text-gray-400 u-font-12 font-thin leading-none">
<span class="mr-2">{{ list.name }}</span>
<span>{{ $moment(+list.time).format('YYYY-MM-DD HH:mm:ss') }}</span>
</view>
<view class="mt-2 py-1 px-2.5 border border-gray-200 rounded flex flex-wrap overflow-hidden break-all" v-if="list.content">
<a :href="list.content" class="text-blue-500 u-font-12 font-thin" target="_blank" v-if="CheckUrl(list.content)">{{
list.content
}}</a>
<span v-else>{{ list.content }}</span>
</view>
<view :class="index === 0 ? 'mt-4' : 'mt-3'" v-for="(checker, index) in list.checkerList" :key="index">
<view class="flex justify-between leading-none">
<view>
{{ checker.checkerName }}
<span v-if="checker.isMine">()</span>
</view>
<view>
<span class="text-blue-500" v-if="checker.status === 1">通过</span>
<span class="text-red-500" v-if="checker.status === 2">驳回</span>
<span class="ml-4" v-if="checker.status !== 0">{{ checker.score }}</span>
<span class="text-gray-400" v-if="checker.status === 0 && !checker.isMine">未审核</span>
<view v-if="checker.status === 0 && checker.isMine">
<u-button class="action-btn mr-2" @click="showScore(checker.checkId, 1)" size="mini" shape="circle" type="primary">
通过
</u-button>
<u-button class="action-btn" @click="showScore(checker.checkId, 2)" size="mini" shape="circle" type="error">驳回</u-button>
</view>
</view>
</view>
<view class="text-gray-400 text-xs mt-1">{{ checker.remark }}</view>
</view>
</view>
</view>
<u-empty icon-size="90" mode="history" text="暂未上传交付物" v-else></u-empty>
<!-- 评分 -->
<uni-popup :maskClick="false" background-color="#fff" ref="popup" type="bottom">
<PDeliverCheck @closeScore="closeScore" @submit="submit"></PDeliverCheck>
</uni-popup>
</view>
</template>
<script>
import { mapGetters } from 'vuex';
import UniPopup from '../../components/uni-popup/uni-popup.vue';
import PDeliverCheck from '../p-deliver-check/p-deliver-check.vue';
export default {
name: 'p-delivery-history',
props: { task: { type: Object, default: null } },
components: { PDeliverCheck, UniPopup },
data() {
return {
lists: [],
show: false,
options: null,
loading: true, //
};
},
computed: mapGetters('project', ['projectId']),
mounted() {
this.getDeliverOfTask();
},
methods: {
async getDeliverOfTask() {
try {
const { projectId, task } = this;
const params = { projectId, taskSubId: task.id };
const data = await this.$u.api.queryDeliverOfTask(params);
this.lists = data;
} catch (error) {
console.error('p-delivery-history.vue getDeliverOfTask error: ', error);
this.$t.ui.showToast(error.msg || '提交失败');
}
},
showScore(checkId, status) {
// refuni-popup , type ['top','left','bottom','right','center']
this.$refs.popup.open('bottom');
this.options = { checkId, status };
},
closeScore() {
this.$refs.popup.close('bottom');
},
async submit(remark, score) {
try {
await this.checkDeliver(remark, score);
this.closeScore();
} catch (error) {
console.error('error: ', error);
}
},
/**
* 检查交付物
* @param {string} checkId 检查记录id
* @param {string} projectId 项目id
* @param {string} remark 评论
* @param {number} score 分数
* @param {number} status 检查状态(1-通过,2-驳回)
*/
async checkDeliver(remark, score) {
try {
this.show = true;
const { projectId, options } = this;
const { checkId, status } = options;
const params = { checkId, projectId, status, remark, score };
await this.$u.api.checkDeliver(params);
this.$t.ui.showToast('交付物检查成功');
this.options = null;
this.getDeliverOfTask();
} catch (error) {
console.error('p-delivery-history.vue checkDeliver error: ', error);
this.$t.ui.showToast('交付物检查失败,请稍后重试');
this.options = null;
}
},
//
CheckUrl(url) {
var reg = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(.)+$/;
if (!reg.test(url)) {
return false;
} else {
return true;
}
},
},
};
</script>
<style scoped>
.action-btn {
padding: 0;
width: 80rpx;
height: 40rpx;
line-height: 40rpx;
}
</style>

11
plugins/p-manage-member/p-manage-member.vue

@ -1,6 +1,17 @@
<template> <template>
<view class="box shadow-lg">
<view>成员管理</view> <view>成员管理</view>
</view>
</template> </template>
<script setup> <script setup>
</script> </script>
<style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

11
plugins/p-manage-project/p-manage-project.vue

@ -1,6 +1,17 @@
<template> <template>
<view class="box shadow-lg">
<view>项目管理</view> <view>项目管理</view>
</view>
</template> </template>
<script setup> <script setup>
</script> </script>
<style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

11
plugins/p-manage-role/p-manage-role.vue

@ -1,6 +1,17 @@
<template> <template>
<view class="box shadow-lg">
<view>角色管理</view> <view>角色管理</view>
</view>
</template> </template>
<script setup> <script setup>
</script> </script>
<style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

11
plugins/p-manage-task/p-manage-task.vue

@ -1,6 +1,17 @@
<template> <template>
<view class="box shadow-lg">
<view>任务管理</view> <view>任务管理</view>
</view>
</template> </template>
<script setup> <script setup>
</script> </script>
<style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

11
plugins/p-subproject/p-subproject.vue

@ -1,6 +1,6 @@
<template> <template>
<!-- 子项目插件 --> <!-- 子项目插件 -->
<view> <view class="box shadow-lg">
<view v-for="item in data.sonProject" :key="item.detailId"> <view v-for="item in data.sonProject" :key="item.detailId">
<span class="text-xs text-blue-500" @click="openProject(item)">{{ item.name }}</span> <span class="text-xs text-blue-500" @click="openProject(item)">{{ item.name }}</span>
</view> </view>
@ -51,4 +51,11 @@ function openProject(project) {
} }
</script> </script>
<style></style> <style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

11
plugins/p-subtasks/p-subtasks.vue

@ -1,5 +1,5 @@
<template> <template>
<view> <view class="box shadow-lg">
<view v-for="item in data.sonTask" :key="item.detailId"> <view v-for="item in data.sonTask" :key="item.detailId">
<span class="text-xs text-gray-500">{{ item.name }}</span> <span class="text-xs text-gray-500">{{ item.name }}</span>
</view> </view>
@ -28,4 +28,11 @@ async function getSonTask() {
getSonTask(); getSonTask();
</script> </script>
<style></style> <style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

11
plugins/p-task-countdown/p-task-countdown.vue

@ -1,10 +1,19 @@
<template> <template>
<!-- 任务倒计时插件 --> <!-- 任务倒计时插件 -->
<view class="box shadow-lg">
<view>任务倒计时插件</view> <view>任务倒计时插件</view>
</view>
</template> </template>
<script setup> <script setup>
</script> </script>
<style></style> <style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

11
plugins/p-task-description/p-task-description.vue

@ -1,9 +1,20 @@
<template> <template>
<!-- 任务描述 --> <!-- 任务描述 -->
<view class="box shadow-lg">
<view>{{ task.description }}</view> <view>{{ task.description }}</view>
</view>
</template> </template>
<script setup> <script setup>
defineProps({ task: { default: () => {}, type: Object } }); defineProps({ task: { default: () => {}, type: Object } });
</script> </script>
<style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

11
plugins/p-task-duration-delay/p-task-duration-delay.vue

@ -1,5 +1,5 @@
<template> <template>
<view v-if="realDuration && planDuration"> <view v-if="realDuration && planDuration" class="box shadow-lg">
<!-- 任务时长延迟插件 --> <!-- 任务时长延迟插件 -->
<!-- 超时 --> <!-- 超时 -->
<span class="font-bold text-green-500" v-if="realDuration - 0 > planDuration - 0"> <span class="font-bold text-green-500" v-if="realDuration - 0 > planDuration - 0">
@ -21,3 +21,12 @@ const realDuration = computed(() => props.task.realDuration);
const planDuration = computed(() => props.task.planDuration); const planDuration = computed(() => props.task.planDuration);
</script> </script>
<style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

11
plugins/p-task-start-time-delay/p-task-start-time-delay.vue

@ -1,10 +1,12 @@
<template> <template>
<view class="box shadow-lg">
<!-- <view>任务开始时间延迟插件</view> --> <!-- <view>任务开始时间延迟插件</view> -->
<view v-if="realStart && planStart"> <view v-if="realStart && planStart">
<!-- 任务开始时间延迟插件 --> <!-- 任务开始时间延迟插件 -->
<!-- 超时 --> <!-- 超时 -->
<span>{{ $time.formatDuration(+realStart - +planStart) }}</span> <span>{{ $time.formatDuration(+realStart - +planStart) }}</span>
</view> </view>
</view>
</template> </template>
<script setup> <script setup>
@ -16,3 +18,12 @@ const realStart = computed(() => props.task.realStart);
const planStart = computed(() => props.task.planStart); const planStart = computed(() => props.task.planStart);
</script> </script>
<style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

13
plugins/p-task-title/p-task-title.vue

@ -1,10 +1,19 @@
<template> <template>
<!-- 任务名插件 --> <!-- 任务名插件 -->
<theme> <view class="box shadow-lg">
<view>{{ task.name }}</view> <view>{{ task.name }}</view>
</theme> </view>
</template> </template>
<script setup> <script setup>
defineProps({ task: { type: Object, default: () => {} } }); defineProps({ task: { type: Object, default: () => {} } });
</script> </script>
<style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

11
plugins/p-upload-deliverable/p-upload-deliverable.vue

@ -1,6 +1,6 @@
<template> <template>
<!-- 上传交付物 --> <!-- 上传交付物 -->
<view class="py-2"> <view class="box shadow-lg py-2">
<u-input :auto-height="data.autoHeight" :border="data.border" :height="data.height" :type="data.type" v-model="data.content" width="100" /> <u-input :auto-height="data.autoHeight" :border="data.border" :height="data.height" :type="data.type" v-model="data.content" width="100" />
<!-- 选择检查人 --> <!-- 选择检查人 -->
@ -87,4 +87,11 @@ async function submit() {
} }
</script> </script>
<style scoped lang="scss"></style> <style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

11
plugins/p-wbs-import/p-wbs-import.vue

@ -1,5 +1,5 @@
<template> <template>
<view> <view class="box shadow-lg">
<view @click="handleUpload" v-if="task.name === '导入WBS新建项目'">{{ task.name }}</view> <view @click="handleUpload" v-if="task.name === '导入WBS新建项目'">{{ task.name }}</view>
<view @click="handleUpdate" v-if="task.name === '导入WBS更新项目'">{{ task.name }}</view> <view @click="handleUpdate" v-if="task.name === '导入WBS更新项目'">{{ task.name }}</view>
<!-- 全局提示框 --> <!-- 全局提示框 -->
@ -69,3 +69,12 @@ async function handleUpload() {
} }
} }
</script> </script>
<style scoped lang="scss">
.box{
border-radius: 8px;
background: #fff;
padding: 16px;
overflow: hidden;
}
</style>

Loading…
Cancel
Save