🎉 1.3.3.RELEASE

master
ssc 4 years ago
parent 4c9e833d7a
commit bf875f26ee
  1. 6
      public/cdn/wf-design/index.umd.min.js
  2. 2
      src/router/axios.js
  3. 2
      src/views/plugin/workflow/components/wf-user-select/index.vue
  4. 8
      src/views/plugin/workflow/design/form.vue
  5. 3
      src/views/plugin/workflow/design/index.vue
  6. 23
      src/views/plugin/workflow/design/model.vue
  7. 9
      src/views/plugin/workflow/mixins/ex-form.js
  8. 25
      src/views/plugin/workflow/process/components/examForm.vue
  9. 16
      src/views/plugin/workflow/process/done.vue
  10. 10
      src/views/plugin/workflow/process/send.vue
  11. 2
      src/views/plugin/workflow/process/start.vue

File diff suppressed because one or more lines are too long

@ -17,7 +17,7 @@ import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
//默认超时时间
axios.defaults.timeout = 10000;
axios.defaults.timeout = 60000;
//返回其他状态码
axios.defaults.validateStatus = function (status) {
return status >= 200 && status <= 500;

@ -215,7 +215,7 @@ export default {
const name = []
if (this.checkType == 'checkbox') {
this.selectionClear()
// this.selectionClear()
const checks = defaultChecked.split(",")
if (checks.length > 0) {
setTimeout(() => {

@ -56,7 +56,7 @@
</el-container>
<el-dialog :visible.sync="formVisible"
append-to-body
title="表单设计"
:title="title"
fullscreen>
<avue-form-design v-if="formVisible"
style="height: 88vh"
@ -272,7 +272,8 @@ export default {
label: 'name',
value: 'id'
}
}
},
title: '表单设计'
};
},
computed: {
@ -384,6 +385,7 @@ export default {
this.row = row
this.isCopy = false
this.formVisible = true
this.title = `表单设计 - ${row.name}`
},
handleCopy(row) {
this.options = this.deepClone(row.content || '{column: []}')
@ -500,7 +502,7 @@ export default {
searchChange(params, done) {
this.query = params;
this.onLoad(this.page, params);
if (done) done()
if (done && typeof done == 'function') done()
},
selectionChange(list) {
this.selectionList = list;

@ -221,7 +221,8 @@ export default {
}
},
rules: [{ required: true, message: '请选择表单' }],
display: true
display: true,
filterable: true,
}, {
labelWidth: 0,
prop: 'tip',

@ -58,6 +58,11 @@
size="mini"
icon="el-icon-time"
@click="handleScope(row)">权限</el-button>
<el-button v-if="permission.wf_design_model_copy"
type="text"
size="mini"
icon="el-icon-document-copy"
@click="handleCopy(row)">拷贝</el-button>
</template>
</avue-crud>
</el-main>
@ -78,7 +83,7 @@
</template>
<script>
import { getList, remove, deploy, changeCategory } from "@/api/plugin/workflow/model";
import { getList, remove, deploy, changeCategory, getDetail } from "@/api/plugin/workflow/model";
import { getList as scopeList, submit as scopeSubmit } from '@/api/plugin/workflow/model-scope'
import { tree } from '@/api/plugin/workflow/category';
@ -113,7 +118,7 @@ export default {
dialogType: 'drawer',
align: 'center',
searchMenuSpan: 6,
menuWidth: 320,
menuWidth: 350,
column: [
{
label: "模型key",
@ -196,6 +201,18 @@ export default {
this.getCategoryList()
},
methods: {
handleCopy(row) {
getDetail(row.id).then(res => {
const { xml } = res.data.data
this.$Clipboard({
text: xml
}).then(() => {
this.$message.success('拷贝xml成功')
}).catch(() => {
})
})
},
handleChangeCategory() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
@ -327,7 +344,7 @@ export default {
searchChange(params, done) {
this.query = params;
this.onLoad(this.page, params);
done()
if (done && typeof done == 'function') done()
},
selectionChange(list) {
this.selectionList = list;

@ -329,10 +329,19 @@ export default {
},
handleResolveFlows(flow) {
const flows = []
// 更改待办节点颜色
flow.reverse()
const lastUserEvent = flow.find(f => f.historyActivityType == 'userTask')
const endEvent = flow.find(f => f.historyActivityType == 'endEvent')
if (lastUserEvent && !endEvent) lastUserEvent.class = 'nodePrimary'
flow.reverse()
flow.forEach(f => {
const { assigneeName, createTime, comments } = f
const ff = {
id: f.historyActivityId,
class: f.class
}
let tooltip = ''
if (assigneeName) {

@ -19,22 +19,13 @@ export default {
process: {
handler(val) {
if (!val) return
if (val.hideComment) {
this.findObject(this.examineOption.column, 'comment').display = false
this.findObject(this.examineOption.column, 'attachment').display = false
}
if (val.hideCopy) {
this.findObject(this.examineOption.column, '$copyUser').display = false
}
if (val.hideExamine) {
this.findObject(this.examineOption.column, '$assignee').display = false
}
if (val.copyUser) {
this.$set(this.examineForm, 'copyUser', val.copyUser)
}
if (val.copyUserName) {
this.$set(this.examineForm, '$copyUser', val.copyUserName)
}
const { hideComment, hideAttachment, hideCopy, hideExamine, copyUser, copyUserName } = val
if (hideComment) this.findObject(this.examineOption.column, 'comment').display = false //
if (hideComment || hideAttachment) this.findObject(this.examineOption.column, 'attachment').display = false //
if (hideCopy) this.findObject(this.examineOption.column, '$copyUser').display = false //
if (hideExamine) this.findObject(this.examineOption.column, '$assignee').display = false //
if (copyUser) this.$set(this.examineForm, 'copyUser', val.copyUser) //
if (copyUserName) this.$set(this.examineForm, '$copyUser', val.copyUserName) //
},
deep: true,
immediate: true
@ -88,7 +79,7 @@ export default {
}, {
label: '指定审批人',
prop: '$assignee',
placeholder: '请选择 下一级审批人,如不选择则使用默认处理人,驳回时无效。多选时若下一节点为多实例则按选择顺序赋值,若不是择只有第一个生效。',
placeholder: '指定下一级审批人,如不选择则使用默认处理人,驳回时无效。多选时若下一节点为多实例并行则会进行动态加减签,若不是则只有第一个生效。',
readonly: true,
append: '+',
span: 24,

@ -124,6 +124,22 @@ export default {
format: 'yyyy-MM-dd HH:mm',
width: 165,
},
{
label: '流程状态',
prop: 'processIsFinished',
dicData: [{
label: '已完成',
value: 'finished'
}, {
label: '已终结',
value: 'terminate'
}, {
label: '已撤销',
value: 'withdraw'
}],
type: 'select',
search: true
},
]
},
data: [],

@ -120,10 +120,10 @@ export default {
width: 165,
},
{
label: '状态',
label: '流程状态',
prop: 'processIsFinished',
dicData: [{
label: '未完成',
label: '进行中',
value: 'unfinished'
}, {
label: '已完成',
@ -134,6 +134,12 @@ export default {
}, {
label: '已撤销',
value: 'withdraw'
}, {
label: '已撤回',
value: 'recall'
}, {
label: '被驳回',
value: 'reject'
}],
type: 'select',
search: true

@ -177,7 +177,7 @@ export default {
searchChange(params, done) {
this.query = params;
this.onLoad(this.page, params);
done()
if (done && typeof done == 'function') done()
},
selectionChange(list) {
this.selectionList = list;

Loading…
Cancel
Save