Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
schedule
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
schedule
Commits
78a9fb5b
Commit
78a9fb5b
authored
5 years ago
by
xiexiaoqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: task complete button disabled status
parent
e10bad17
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
taskPanel.axml
components/taskPanel/taskPanel.axml
+2
-2
taskPanel.js
components/taskPanel/taskPanel.js
+2
-6
meetingDetail.acss
pages/meetingDetail/meetingDetail.acss
+6
-6
No files found.
components/taskPanel/taskPanel.axml
View file @
78a9fb5b
<import src="../../template/avater/index.axml"/>
<import src="../../template/deleteBtn/index.axml"/>
<import src="../../template/checkbox/index.axml"/>
<view a:if="{{action == 'create'}}" class="picker-complete {{
disabled
? 'btn-disabled' : ''}}" onTap='complete'>完成</view>
<view a:if="{{action == 'create'}}" class="picker-complete {{
!currentTask.taskInfos.taskTitle
? 'btn-disabled' : ''}}" onTap='complete'>完成</view>
<view class="task-column edit-column">
<template a:if="{{action == 'update'}}" is="checkbox" data="{{status: currentTask.taskStatus, id:currentTask.id}}"></template>
<input onInput="inputChange" value="{{currentTask.taskInfos.taskTitle}}" placeholder="请输入任务标题"/>
...
...
@@ -10,7 +10,7 @@
<view class="task-column participator-top" data-acceptorId="{{currentTask.acceptorId}}" onTap="handleExcutorChange">
<text class="iconicon_attender iconfont icon"></text>
<text class="participator-title">{{currentTask.acceptorInfo ? '执行人' : '设置执行人'}}</text>
<text class="iconright iconfont icon"</text>
<text class="iconright iconfont icon"
>
</text>
</view>
<view class="participator-bottom" a:if="{{currentTask.acceptorInfo}}">
<view class="people" data-acceptorId="{{currentTask.acceptorId}}" onTap="handleExcutorChange">
...
...
This diff is collapsed.
Click to expand it.
components/taskPanel/taskPanel.js
View file @
78a9fb5b
...
...
@@ -5,8 +5,7 @@ create.Component({
store
:
pageStore
,
mixins
:
[],
data
:
{
currentTask
:
null
,
//store
disabled
:
true
currentTask
:
null
//store
},
props
:
{
action
:
''
...
...
@@ -31,9 +30,6 @@ create.Component({
},
inputChange
:
debounce
(
function
(
e
)
{
const
value
=
e
.
detail
.
value
;
this
.
setData
({
disabled
:
!
value
})
this
.
store
.
data
.
currentTask
.
taskInfos
=
{
taskTitle
:
value
};
this
.
update
();
},
100
),
...
...
@@ -51,7 +47,7 @@ create.Component({
complete
:
throttle
(
function
()
{
const
{
currentTask
}
=
this
.
store
.
data
;
if
(
this
.
data
.
disabled
)
{
if
(
!
currentTask
.
taskInfos
.
taskTitle
)
{
return
}
this
.
props
.
onComplete
()
...
...
This diff is collapsed.
Click to expand it.
pages/meetingDetail/meetingDetail.acss
View file @
78a9fb5b
...
...
@@ -9,20 +9,19 @@ page {
margin-top: 16rpx;
}
.affair-list>view {
margin-bottom: 48rpx;
}
.simple-column {
color: rgba(25, 31, 37, 0.4);
font-size: 26rpx;
line-height:
68rpx
;
line-height:
1.5
;
text-align: center;
margin-bottom: 48rpx;
}
.compose-column {
position: relative;
padding-left: 104rpx;
margin-bottom: 48rpx;
padding-top: 16rpx;
}
.compose-column>.avater {
...
...
@@ -32,7 +31,7 @@ page {
border-radius: 50%;
position: absolute;
left: 0;
top:
0
;
top:
16rpx
;
}
.compose-column>.task-avater {
...
...
@@ -498,6 +497,7 @@ input {
.affair-list-title {
font-size: 40rpx;
color: rgba(25, 31, 37, 1);
margin-bottom: 64rpx;
}
.permissionContant {
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment