|
|
|
@ -23,18 +23,19 @@ |
|
|
|
|
<!-- <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" 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"> |
|
|
|
@ -101,34 +102,33 @@ |
|
|
|
|
<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" /> |
|
|
|
|
|
|
|
|
|
<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" /> |
|
|
|
|
|
|
|
|
|
<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" /> |
|
|
|
|
<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"> |
|
|
|
@ -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,8 +260,7 @@ export default { |
|
|
|
|
this.$refs.treeList.setCheckedNodes([data.id]) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
changetree(data,lst) |
|
|
|
|
{ |
|
|
|
|
changetree(data, lst) { |
|
|
|
|
if (lst, checkedKeys.lenght == 0) |
|
|
|
|
this.$refs.treeList.setCheckedNodes([data.id]) |
|
|
|
|
}, |
|
|
|
@ -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属性!"); |
|
|
|
|