|
|
|
@ -12,29 +12,30 @@ |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="任务层级" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="level"> |
|
|
|
|
<!-- <j-dict-select-tag v-model="model.level" placeholder="请选择任务层级"--> |
|
|
|
|
<!-- dict-code="task_type_level" style="width: 100%">--> |
|
|
|
|
<!-- </j-dict-select-tag>--> |
|
|
|
|
<!-- <j-dict-select-tag v-model="model.level" placeholder="请选择任务层级"--> |
|
|
|
|
<!-- dict-code="task_type_level" style="width: 100%">--> |
|
|
|
|
<!-- </j-dict-select-tag>--> |
|
|
|
|
<j-dict-select-tag v-model="model.level" type="radio" style="width: 100%" dictCode="task_type_level"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="任务类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="typeId"> |
|
|
|
|
<!-- <j-dict-select-tag v-model="model.typeId" placeholder="请选择任务类型"--> |
|
|
|
|
<!-- dict-code="task_type,type_name,id" :disabled="model.level==null">--> |
|
|
|
|
<!-- </j-dict-select-tag>--> |
|
|
|
|
<!-- <j-dict-select-tag v-model="model.typeId" type="radio" style="width: 100%" dict-code="task_type,type_name,id"/>--> |
|
|
|
|
|
|
|
|
|
<el-tree |
|
|
|
|
:props="typeId" |
|
|
|
|
ref="treeList" |
|
|
|
|
:load="this.loadData2" |
|
|
|
|
check-strictly |
|
|
|
|
show-checkbox |
|
|
|
|
node-key='id' |
|
|
|
|
@check ='changetree' |
|
|
|
|
@check-change="handleCheckChange"> |
|
|
|
|
</el-tree> |
|
|
|
|
<!-- <j-dict-select-tag v-model="model.typeId" placeholder="请选择任务类型"--> |
|
|
|
|
<!-- dict-code="task_type,type_name,id" :disabled="model.level==null">--> |
|
|
|
|
<!-- </j-dict-select-tag>--> |
|
|
|
|
<j-dict-select-tag v-model="model.typeId" type="radio" style="width: 100%" |
|
|
|
|
dict-code="task_type,type_name,id"/> |
|
|
|
|
<!----> |
|
|
|
|
<!-- <el-tree--> |
|
|
|
|
<!-- :props="typeId"--> |
|
|
|
|
<!-- ref="treeList"--> |
|
|
|
|
<!-- :load="this.loadData2"--> |
|
|
|
|
<!-- check-strictly--> |
|
|
|
|
<!-- show-checkbox--> |
|
|
|
|
<!-- node-key='id'--> |
|
|
|
|
<!-- @check ='changetree'--> |
|
|
|
|
<!-- @check-change="handleCheckChange">--> |
|
|
|
|
<!-- </el-tree>--> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
@ -85,7 +86,7 @@ |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="任务等级" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="workLevel"> |
|
|
|
|
<!-- <a-input-number :min="1" :max="16" v-model="model.workLevel" placeholder="请输入任务等级" style="width: 100%" />--> |
|
|
|
|
<j-dict-select-tag v-model="model.workLevel" type="radio" placeholder="请选择任务等级" |
|
|
|
|
<j-dict-select-tag v-model="model.workLevel" type="radio" placeholder="请选择任务等级" |
|
|
|
|
dict-code="workLevel" style="width: 100%"> |
|
|
|
|
</j-dict-select-tag> |
|
|
|
|
</a-form-model-item> |
|
|
|
@ -100,35 +101,34 @@ |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="发布时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="publishTime"> |
|
|
|
|
<!-- <j-date placeholder="请选择发布时间" v-model="model.publishTime" style="width: 100%"/>--> |
|
|
|
|
<a-date-picker showTime valueFormat="YYYY-MM-DD HH:mm:ss" v-model="model.punchTime" /> |
|
|
|
|
|
|
|
|
|
<!-- <j-date placeholder="请选择发布时间" v-model="model.publishTime" style="width: 100%"/>--> |
|
|
|
|
<a-date-picker showTime valueFormat="YYYY-MM-DD HH:mm:ss" v-model="model.publishTime"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="开始时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="startTime"> |
|
|
|
|
<!-- <j-date placeholder="请选择开始时间" v-model="model.startTime" style="width: 100%"/>--> |
|
|
|
|
<a-date-picker showTime valueFormat="YYYY-MM-DD HH:mm:ss" v-model="model.punchTime" /> |
|
|
|
|
|
|
|
|
|
<!-- <j-date placeholder="请选择开始时间" v-model="model.startTime" style="width: 100%"/>--> |
|
|
|
|
<a-date-picker showTime valueFormat="YYYY-MM-DD HH:mm:ss" v-model="model.startTime"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="预计结束时间" :labelCol="labelCol" :wrapperCol="wrapperCol" |
|
|
|
|
prop="expectedEndTime"> |
|
|
|
|
<!-- <j-date placeholder="请选择预计结束时间" v-model="model.expectedEndTime" style="width: 100%"/>--> |
|
|
|
|
<a-date-picker showTime valueFormat="YYYY-MM-DD HH:mm:ss" v-model="model.punchTime" /> |
|
|
|
|
<!-- <j-date placeholder="请选择预计结束时间" v-model="model.expectedEndTime" style="width: 100%"/>--> |
|
|
|
|
<a-date-picker showTime valueFormat="YYYY-MM-DD HH:mm:ss" v-model="model.expectedEndTime"/> |
|
|
|
|
|
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="预计任务时长(天)" :labelCol="labelCol" :wrapperCol="wrapperCol" |
|
|
|
|
<a-form-model-item label="预计任务时长" :labelCol="labelCol" :wrapperCol="wrapperCol" |
|
|
|
|
prop="expectedDuration"> |
|
|
|
|
<a-input-number v-model="model.expectedDuration" placeholder="请输入预计任务时长" style="width: 100%"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="提交时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="submitTime"> |
|
|
|
|
<j-date placeholder="请选择提交时间" v-model="model.submitTime" style="width: 100%"/> |
|
|
|
|
<!-- <j-date placeholder="请选择提交时间" v-model="model.submitTime" style="width: 100%"/>--> |
|
|
|
|
<a-date-picker showTime valueFormat="YYYY-MM-DD HH:mm:ss" v-model="model.submitTime"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
@ -148,7 +148,7 @@ |
|
|
|
|
<a-form-model-item label="任务描述" style="width: 700px" prop="taskDescribe"> |
|
|
|
|
<a-input type="textarea" v-model="model.taskDescribe" :rows="2"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
</a-form-model> |
|
|
|
|
</j-form-container> |
|
|
|
@ -182,8 +182,8 @@ export default { |
|
|
|
|
model: { |
|
|
|
|
workLevel: 2, |
|
|
|
|
workStatus: 0, |
|
|
|
|
startTime: new Date(), |
|
|
|
|
expectedEndTime: new Date(), |
|
|
|
|
startTime: new Date(+new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, ''), |
|
|
|
|
expectedEndTime: new Date(+new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, ''), |
|
|
|
|
expectedDuration: 1, |
|
|
|
|
// curryUserName: '', |
|
|
|
|
}, |
|
|
|
@ -247,6 +247,7 @@ export default { |
|
|
|
|
formDisabled() { |
|
|
|
|
return this.disabled |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
//备份model原始值 |
|
|
|
@ -259,9 +260,8 @@ export default { |
|
|
|
|
this.$refs.treeList.setCheckedNodes([data.id]) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
changetree(data,lst) |
|
|
|
|
{ |
|
|
|
|
if(lst,checkedKeys.lenght==0) |
|
|
|
|
changetree(data, lst) { |
|
|
|
|
if (lst, checkedKeys.lenght == 0) |
|
|
|
|
this.$refs.treeList.setCheckedNodes([data.id]) |
|
|
|
|
}, |
|
|
|
|
fillTaskName() { |
|
|
|
@ -344,8 +344,42 @@ export default { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
, |
|
|
|
|
}, |
|
|
|
|
// currentTime() { |
|
|
|
|
// var date = new Date(); |
|
|
|
|
// var year = date.getFullYear(); //月份从0~11,所以加一 |
|
|
|
|
// let month = date.getMonth(); |
|
|
|
|
// // console.log("month",month); |
|
|
|
|
// var dateArr = [ |
|
|
|
|
// date.getMonth() + 1, |
|
|
|
|
// date.getDate(), |
|
|
|
|
// date.getHours(), |
|
|
|
|
// date.getMinutes(), |
|
|
|
|
// date.getSeconds(), |
|
|
|
|
// ]; |
|
|
|
|
// //如果格式是MM则需要此步骤,如果是M格式则此循环注释掉 |
|
|
|
|
// for (var i = 0; i < dateArr.length; i++) { |
|
|
|
|
// if (dateArr[i] >= 1 && dateArr[i] <= 9) { |
|
|
|
|
// dateArr[i] = "0" + dateArr[i]; |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// var strDate = |
|
|
|
|
// year + |
|
|
|
|
// "-" + |
|
|
|
|
// dateArr[0] + |
|
|
|
|
// "-" + |
|
|
|
|
// dateArr[1] + |
|
|
|
|
// " " + |
|
|
|
|
// dateArr[2] + |
|
|
|
|
// ":" + |
|
|
|
|
// dateArr[3] + |
|
|
|
|
// ":" + |
|
|
|
|
// dateArr[4]; |
|
|
|
|
// //此处可以拿外部的变量接收 strDate:2022-05-01 13:25:30 |
|
|
|
|
// this.model.startTime = strDate; |
|
|
|
|
// this.model.expectedEndTime = strDate; |
|
|
|
|
// console.log("strDate", strDate); |
|
|
|
|
// }, |
|
|
|
|
loadData2() { |
|
|
|
|
// if (!this.url.list) { |
|
|
|
|
// this.$message.error("请设置url.list属性!"); |
|
|
|
|