|
|
@@ -19,11 +19,14 @@
|
|
|
<el-input v-model="form.title" placeholder="请输入任务标题" ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="24">
|
|
|
+ <el-col :span="20">
|
|
|
<el-form-item label="关联应用数据:" prop="tableName">
|
|
|
<el-input v-model="form.tableName" placeholder="请选择关联应用数据" ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-button></el-button>
|
|
|
+ </el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="任务内容:" prop="remarks">
|
|
|
<el-input class="normal-margin" v-model="form.remarks" placeholder="输入任务内容" :autosize="{minRows:6}" type="textarea" show-word-limit maxlength="100" size="small"></el-input>
|
|
|
@@ -97,8 +100,8 @@
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<div class="fixed__btn__panel">
|
|
|
- <el-button size="small" style="width:120px" @click="dialogTableVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" size="small" style="width:120px" @click="validateInput">创 建</el-button>
|
|
|
+ <el-button size="small" style="width:120px" @click="onClose">取 消</el-button>
|
|
|
+ <el-button type="primary" size="small" style="width:120px" @click="validateInput">确 定</el-button>
|
|
|
</div>
|
|
|
</el-drawer>
|
|
|
</div>
|
|
|
@@ -169,7 +172,7 @@ export default {
|
|
|
},
|
|
|
methods:{
|
|
|
validateInput () {
|
|
|
- if (!this.form.title) {
|
|
|
+ /*if (!this.form.title) {
|
|
|
this.errormsg = '请输入标题'
|
|
|
return false
|
|
|
} else if (!this.form.starttime) {
|
|
|
@@ -177,7 +180,11 @@ export default {
|
|
|
return false
|
|
|
} else {
|
|
|
this.submit()
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ this.$refs.form.validate((valid)=>{
|
|
|
+ if (!valid) return false
|
|
|
+ this.submit()
|
|
|
+ })
|
|
|
},
|
|
|
setLeader (val) {
|
|
|
this.leader = val[0]
|
|
|
@@ -254,7 +261,13 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- onClose(){}
|
|
|
+ onClose(){
|
|
|
+ this.dialogTableVisible = false
|
|
|
+ this.leader = {}
|
|
|
+ this.assistPerson = ''
|
|
|
+ this.assist = []
|
|
|
+ this.$refs.form.resetFields()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|