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

修改项目清单列表字段

parent e3b47bbf
......@@ -27,6 +27,10 @@ export default {
url: '/vue/task/delete'
},
closeTask: {
url: '/vue/task/close'
},
// ---项目列表---
getTaskGroupList: {
url: '/vue/task/list-group'
......@@ -46,6 +50,6 @@ export default {
},
stopTaskGroup: {
url: '/vue/task/close-group'
url: '/vue/task/stop-group'
}
}
......@@ -28,8 +28,8 @@
<el-date-picker
size="small"
v-model="model.target_completed_at"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
type="date"
value-format="yyyy-MM-dd"
@change="targetCompletedAtChange"
placeholder="选择日期时间">
</el-date-picker>
......
......@@ -39,7 +39,7 @@
v-model.trim="model.title">
</el-input>
</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
:check-group-form-item="model.remindReceivers"
:check-group-options-list="salesOrderRemindReceiversArray"
......
......@@ -4,13 +4,13 @@
<el-col :span="8" :xs="24" class="obear-schedule-left" :style="{background: item.bgcolor}">
<el-row :gutter="10">
<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>
</el-checkbox>
<span>{{ item.title }}</span>
</el-col>
<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-row>
</el-col>
......@@ -52,6 +52,10 @@
</template>
<script>
import {
requestAPI,
api
} from '@/lib/commonMixin'
export default {
name: 'taskItem',
......@@ -61,7 +65,7 @@ export default {
data () {
return {
checked: ''
checked: []
}
},
......@@ -72,11 +76,18 @@ export default {
},
methods: {
},
watch: {
checked (val) {
console.log(val)
checkBoxChange (id) {
let type = ''
if (this.checked.indexOf(id) > -1) {
type = 1
} 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