|
@@ -20,7 +20,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table border :data="infoList" @selection-change="handleSelectionChange">
|
|
|
+ <el-table v-loading="loading" border :data="infoList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column label="序号" type="index" width="130" align="center"></el-table-column>
|
|
|
<el-table-column label="流程名称" width="180" align="center" prop="taskName"/>
|
|
|
<el-table-column label="标题" align="center" prop="title"/>
|
|
@@ -125,7 +125,7 @@
|
|
|
<!-- 删除原因 -->
|
|
|
<el-dialog :visible.sync="qsshow" width="500px" append-to-body>
|
|
|
|
|
|
- <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" v-loading="xxloading" >
|
|
|
+ <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" >
|
|
|
<el-form-item label="删除原因" prop="cause">
|
|
|
<el-input
|
|
|
type="textarea"
|
|
@@ -166,11 +166,8 @@
|
|
|
cause: [
|
|
|
{ required: true, message: '删除原因不能为空', trigger: 'blur' },
|
|
|
]},
|
|
|
-
|
|
|
// 删除原因弹出层弹出层
|
|
|
qsshow: false,
|
|
|
- //删除原因
|
|
|
-
|
|
|
//流程遮罩层
|
|
|
actOpen: false,
|
|
|
//传入到下一页面的值
|
|
@@ -192,23 +189,7 @@
|
|
|
multiple: true,
|
|
|
// 总条数
|
|
|
total: 0,
|
|
|
- // 【请填写功能名称】表格数据
|
|
|
- infoList: [
|
|
|
- {
|
|
|
- title:'',
|
|
|
- taskName:'',
|
|
|
- applyUser:'',
|
|
|
- createUserName :'',
|
|
|
- taskid: '',
|
|
|
- fwtitle: '',
|
|
|
- fwdept: '',
|
|
|
- create_time: '',
|
|
|
- dispose: '',
|
|
|
- definitionId:'',
|
|
|
- businessKey:''
|
|
|
- }
|
|
|
-
|
|
|
- ],
|
|
|
+ infoList: [],
|
|
|
//审批历史
|
|
|
historyExamine: [
|
|
|
{
|
|
@@ -255,7 +236,7 @@
|
|
|
this.getAllList();
|
|
|
},
|
|
|
methods: {
|
|
|
- /*我的申请进度查看*/
|
|
|
+ /*进度查看*/
|
|
|
planLook(row,businessKey) {
|
|
|
var formdata = new FormData
|
|
|
formdata.append('pProcessInstanceId', row)
|
|
@@ -263,13 +244,10 @@
|
|
|
recordImg(formdata).then(response => {
|
|
|
this.picUrl = window.URL.createObjectURL(response)
|
|
|
})
|
|
|
-
|
|
|
examineHistory(row,businessKey).then(response => {
|
|
|
-
|
|
|
this.historyExamine = response.rows;
|
|
|
console.log(response.rows)
|
|
|
})
|
|
|
-
|
|
|
this.dialogVisible = true
|
|
|
},
|
|
|
detern(actkey,id) {
|
|
@@ -284,15 +262,14 @@
|
|
|
this.actOpen = true
|
|
|
return vue.actForm = this.actForm
|
|
|
},
|
|
|
- deleteTask(actkey,id,dispose) {
|
|
|
|
|
|
+ deleteTask(actkey,id,dispose) {
|
|
|
this.qsshow=true;
|
|
|
this.$refs["ruleForm"].resetFields();
|
|
|
this.deleteActkey=actkey;
|
|
|
this.deleteId=id,
|
|
|
this.deleteDispose=dispose;
|
|
|
this.cause='';
|
|
|
-
|
|
|
},
|
|
|
confirm(formName){
|
|
|
this.$refs[formName].validate((valid) => {
|
|
@@ -320,15 +297,13 @@
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
/** 所有申请流程列表 */
|
|
|
getAllList() {
|
|
|
this.loading = true
|
|
|
ActManager(this.queryParams).then(response => {
|
|
|
this.infoList = response.rows
|
|
|
- this.total = response.total
|
|
|
+ this.total = response.rows[0].total
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|
|
@@ -373,49 +348,8 @@
|
|
|
this.single = selection.length != 1
|
|
|
this.multiple = !selection.length
|
|
|
},
|
|
|
- /** 新增按钮操作 */
|
|
|
- handleAdd() {
|
|
|
- this.reset()
|
|
|
- this.open = true
|
|
|
- this.title = '添加【请填写功能名称】'
|
|
|
- },
|
|
|
- /** 修改按钮操作 */
|
|
|
- handleUpdate(row) {
|
|
|
- this.reset()
|
|
|
- const mailGuid = row.mailGuid || this.ids
|
|
|
- getInfo(mailGuid).then(response => {
|
|
|
- this.form = response.data
|
|
|
- this.open = true
|
|
|
- this.title = '修改'
|
|
|
- })
|
|
|
- },
|
|
|
- handleUpdate1(row) {
|
|
|
- this.reset()
|
|
|
- const mailGuid = row.mailGuid || this.ids
|
|
|
- this.$router.push({ path: '/email/draftList/draftinfo', query: { id: mailGuid } })
|
|
|
- getInfo(mailGuid).then(response => {
|
|
|
- this.form = response.data
|
|
|
- // this.open = true;
|
|
|
- // this.title = "修改";
|
|
|
- })
|
|
|
- },
|
|
|
- /** 删除按钮操作 */
|
|
|
- handleDelete(row) {
|
|
|
- const mailGuids = row.mailGuid || this.ids
|
|
|
- const flg = row.flg || this.ids
|
|
|
- let len = flg.length
|
|
|
- this.$confirm('是否确认删除这' + len + '封邮件?', '警告', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(function() {
|
|
|
- return delInfo(mailGuids)
|
|
|
- }).then(() => {
|
|
|
- this.getAllList()
|
|
|
- this.msgSuccess('删除成功')
|
|
|
- }).catch(function() {
|
|
|
- })
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|