Commit 6978a0e9 authored by huai.li's avatar huai.li

修改项目清单列表字段

parent e3b47bbf
...@@ -27,6 +27,10 @@ export default { ...@@ -27,6 +27,10 @@ export default {
url: '/vue/task/delete' url: '/vue/task/delete'
}, },
closeTask: {
url: '/vue/task/close'
},
// ---项目列表--- // ---项目列表---
getTaskGroupList: { getTaskGroupList: {
url: '/vue/task/list-group' url: '/vue/task/list-group'
...@@ -46,6 +50,6 @@ export default { ...@@ -46,6 +50,6 @@ export default {
}, },
stopTaskGroup: { stopTaskGroup: {
url: '/vue/task/close-group' url: '/vue/task/stop-group'
} }
} }
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
<el-date-picker <el-date-picker
size="small" size="small"
v-model="model.target_completed_at" v-model="model.target_completed_at"
type="datetime" type="date"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd"
@change="targetCompletedAtChange" @change="targetCompletedAtChange"
placeholder="选择日期时间"> placeholder="选择日期时间">
</el-date-picker> </el-date-picker>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
v-model.trim="model.title"> v-model.trim="model.title">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="提醒人" prop="remindReceivers" class="ec-clear-left ec-form-item-lg is-required"> <el-form-item label="成员" prop="remindReceivers" class="ec-clear-left ec-form-item-lg is-required">
<multiple-check-group <multiple-check-group
:check-group-form-item="model.remindReceivers" :check-group-form-item="model.remindReceivers"
:check-group-options-list="salesOrderRemindReceiversArray" :check-group-options-list="salesOrderRemindReceiversArray"
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
<el-col :span="8" :xs="24" class="obear-schedule-left" :style="{background: item.bgcolor}"> <el-col :span="8" :xs="24" class="obear-schedule-left" :style="{background: item.bgcolor}">
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="24"> <el-col :span="24">
<el-checkbox v-model="checked"> <el-checkbox v-model="checked" :label="item.id" @change="checkBoxChange(item.id)">
<span class="obear-schedule-left__checkbox">普通</span> <span class="obear-schedule-left__checkbox">普通</span>
</el-checkbox> </el-checkbox>
<span>{{ item.title }}</span> <span>{{ item.title }}</span>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<span class="obear-app-frame__white">剩余时间 {{ item. remain_time }}</span> <span class="obear-app-frame__white">剩余时间 {{ item.remain_time }}</span>
</el-col> </el-col>
</el-row> </el-row>
</el-col> </el-col>
...@@ -52,6 +52,10 @@ ...@@ -52,6 +52,10 @@
</template> </template>
<script> <script>
import {
requestAPI,
api
} from '@/lib/commonMixin'
export default { export default {
name: 'taskItem', name: 'taskItem',
...@@ -61,7 +65,7 @@ export default { ...@@ -61,7 +65,7 @@ export default {
data () { data () {
return { return {
checked: '' checked: []
} }
}, },
...@@ -72,11 +76,18 @@ export default { ...@@ -72,11 +76,18 @@ export default {
}, },
methods: { methods: {
}, checkBoxChange (id) {
let type = ''
watch: { if (this.checked.indexOf(id) > -1) {
checked (val) { type = 1
console.log(val) } else {
type = 0
}
requestAPI(api.closeTask, { id, type })
.then((res) => {
this.$message.success('操作成功')
this.$parent._reload()
})
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment