| | |
| | | <span>{{task_itm.desc}}</span> |
| | | <div v-for="(type_itm, k_) in task_itm.children" :key="k_" class="right_row_"> |
| | | <span>{{k_+1}}、{{type_itm.name}}</span> |
| | | <el-button size="mini" type="primary" style="float: right; margin-top: 10px;" @click="handleTask(type_itm.id, type_itm.mustAttach)">处理任务</el-button> |
| | | <el-button size="mini" type="primary" style="float: right; margin-top: 10px;" @click="handleTask(type_itm.id, type_itm.mustAttach, type_itm)">处理任务</el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <el-dialog @close="Cancel" width="20%" top="10%" :visible.sync="dialog_1"> |
| | | <el-dialog @close="Cancel" width="40%" top="10%" :visible.sync="dialog_1"> |
| | | <div slot="title" class="dialog-title" style="text-align: left;"> |
| | | <span> 上传交付物 </span> |
| | | </div> |
| | |
| | | class="upload-demo" |
| | | :action="upload_url" |
| | | multiple |
| | | :data="upData" |
| | | :limit="3" |
| | | :file-list="fileList" |
| | | :auto-upload='false' |
| | | ref="upload" |
| | | > |
| | | <el-button size="medium" type="text">点击上传</el-button> |
| | | <el-button size="medium" type="text">选择文件</el-button> |
| | | <div slot="tip" class="el-upload__tip">文件不超过500kb</div> |
| | | </el-upload> |
| | | <div style="text-align: left;"> |
| | | <span>描述</span> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请输入内容" |
| | | v-model="desc_task"> |
| | | </el-input> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 处理完成 --> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="submitUpload">点击上传</el-button> |
| | | <el-button @click="Cancel">取 消</el-button> |
| | | <el-button type="primary" @click="doHandleTask">处理完成</el-button> |
| | | </div> |
| | |
| | | dialog_1: false, |
| | | handleTaskType: {}, |
| | | upload_url: "", |
| | | desc_task: "", |
| | | upData: {}, |
| | | fileList: [], |
| | | } |
| | | }, |
| | |
| | | ); |
| | | }, |
| | | |
| | | handleTask(id, mustAttach) { |
| | | this.handleTaskType.id = id; |
| | | handleTask(id, mustAttach, type_itm) { |
| | | this.handleTaskType = type_itm; |
| | | if(mustAttach) { |
| | | this.dialog_1 = true; |
| | | } |
| | | else { |
| | | this.doHandleTask(); |
| | | } |
| | | |
| | | }, |
| | | |
| | | doHandleTask() { |
| | |
| | | if (this.dialog_1) { |
| | | this.Cancel(); |
| | | } |
| | | }, |
| | | |
| | | submitUpload() { |
| | | this.handleTaskType; //要处理的明细数据 |
| | | |
| | | this.upData = {//设置要传的参数 |
| | | desc_task: this.desc_task, |
| | | |
| | | }, |
| | | this.upload_url = ""; //设置上传接口 |
| | | this.$refs.upload.submit();//开始上传 |
| | | }, |
| | | |
| | | Cancel() { |