🎉 1.3.3.RELEASE

saber
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'; import 'nprogress/nprogress.css';
//默认超时时间 //默认超时时间
axios.defaults.timeout = 10000; axios.defaults.timeout = 60000;
//返回其他状态码 //返回其他状态码
axios.defaults.validateStatus = function (status) { axios.defaults.validateStatus = function (status) {
return status >= 200 && status <= 500; return status >= 200 && status <= 500;

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

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

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

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

@ -329,10 +329,19 @@ export default {
}, },
handleResolveFlows(flow) { handleResolveFlows(flow) {
const flows = [] 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 => { flow.forEach(f => {
const { assigneeName, createTime, comments } = f const { assigneeName, createTime, comments } = f
const ff = { const ff = {
id: f.historyActivityId, id: f.historyActivityId,
class: f.class
} }
let tooltip = '' let tooltip = ''
if (assigneeName) { if (assigneeName) {

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

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

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

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

Loading…
Cancel
Save