Browse Source

工单

master
蔡玲玲 1 week ago
parent
commit
6fd72eb8f2
  1. BIN
      base-vue/src/assets/img/login.png
  2. 33
      base-vue/src/views/common/login.vue
  3. 40
      base-vue/src/views/modules/deploy/flwdeployprodef.vue
  4. 88
      base-vue/src/views/modules/tickets/tickets.vue

BIN
base-vue/src/assets/img/login.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

33
base-vue/src/views/common/login.vue

@ -113,18 +113,20 @@
right: 0;
bottom: 0;
left: 0;
background-color: rgba(38, 50, 56, .6);
background: linear-gradient(225deg,#f9fbff,#e4e9f0);
// background-image: url(~@/assets/img/bg_login.jpg);
// background-size: cover;
overflow: hidden;
&:before {
&:after {
position: fixed;
top: 0;
left: 0;
z-index: -1;
width: 100%;
top: 0%;
left: 15%;
z-index: 1;
width: 30%;
height: 100%;
max-width: 579px;
content: "";
background-image: url(~@/assets/img/login.jpg);
background-size: cover;
background: center / 100% auto url(~@/assets/img/login.png) no-repeat;
}
.site-content__wrapper {
position: absolute;
@ -160,12 +162,15 @@
}
.login-main {
position: absolute;
top: 0;
right: 0;
padding: 150px 60px 180px;
width: 470px;
min-height: 100%;
background-color: #fff;
top: 50%;
transform: translateY(-50%);
right: 15%;
width: 380px;
padding: 20px 40px;
background: #fff9;
border-radius: 8px;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
.login-title {
font-size: 16px;

40
base-vue/src/views/modules/deploy/flwdeployprodef.vue

@ -232,24 +232,24 @@
this.flowForm.id = this.id
//
this.$http({
url: this.$http.adornUrl(`/flw/instance/startFlowInstance`),
method: 'get',
params: this.$http.adornParams(this.flowForm)
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.dialogFormVisible = false
this.flowForm = {}
}
})
} else {
this.$message.error(data.msg)
url: this.$http.adornUrl(`/flw/instance/startFlowInstance`),
method: 'get',
params: this.$http.adornParams(this.flowForm)
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.dialogFormVisible = false
this.flowForm = {}
}
})
} else {
this.$message.error(data.msg)
}
})
},
//
selectionChangeHandle (val) {
@ -265,11 +265,11 @@
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.dynamiForm = data.data
this.users = data.users
this.roles = data.roles
this.dynamiForm = [...data.data]
this.users = [...data.users]
this.roles = [...data.roles]
// flowForm
// for( var item of this.dynamiForm){
// for( var item of data.data){
// this.flowForm[item.key] = item.value
// }
this.dialogFormVisible = true

88
base-vue/src/views/modules/tickets/tickets.vue

@ -122,6 +122,7 @@
<template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.ticketsId)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.ticketsId)">删除</el-button>
<el-button type="text" size="small" @click="startFlowHandle(scope.row.ticketsId)">指派</el-button>
</template>
</el-table-column>
</el-table>
@ -136,6 +137,48 @@
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" :dictData="dictData" @refreshDataList="getDataList"></add-or-update>
<el-dialog
title="发起流程"
:visible.sync="dialogFormVisible"
width="30%">
<el-form :model="flowForm" label-width="100px" class="demo-dynamic">
<el-form-item
v-for="(form) in dynamiForm"
:label="form.name"
:key="form.key"
:prop="form.key"
>
<el-select v-if="form.type == 'assignee'" v-model="flowForm[form.key]" placeholder="请选择">
<el-option
v-for="item in users"
:key="item.userId"
:label="item.nickname+'['+item.username+']'"
:value="item.userId">
</el-option>
</el-select>
<el-select v-if="form.type == 'candidateUsers'" v-model="flowForm[form.key]" placeholder="请选择">
<el-option
v-for="item in users"
:key="item.userId"
:label="item.nickname+'['+item.username+']'"
:value="item.userId">
</el-option>
</el-select>
<el-select v-if="form.type == 'candidateGroups'" v-model="flowForm[form.key]" placeholder="请选择">
<el-option
v-for="item in roles"
:key="item.roleId"
:label="item.roleName"
:value="item.roleId">
</el-option>
</el-select>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="mini" @click="dialogFormVisible = false">取消</el-button>
<el-button size="mini" type="primary" @click="submitStartFlow()">提交</el-button>
</span>
</el-dialog>
</div>
</template>
@ -156,7 +199,12 @@
dataListSelections: [],
addOrUpdateVisible: false,
dictConfigs: [{url: '/car/car/list', type: 'list', value: 'carId', label: 'carName'}, {type: 'dict', code: 'error_type'}, {url: '/flow/contract/list', type: 'list', value: 'contractId', label: 'contractNumber'}, {url: '/client/client/list', type: 'list', value: 'clientId', label: 'clientName'}],
dictData: []
dictData: [],
dialogFormVisible: false,
flowForm:{id: 'Process_1:2:05cb9af4-03a2-11f0-8846-e40d36456f42', ticketsId: null},
dynamiForm:[],
users: [],
roles: []
}
},
mixins: [apiUtils],
@ -240,6 +288,44 @@
}
})
}).catch(() => {})
},
startFlowHandle(id){
this.flowForm = {}
this.flowForm.ticketsId = id
this.$http({
url: this.$http.adornUrl(`/flow/deploy/flowDef/${id}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.dynamiForm = [...data.data]
this.users = [...data.users]
this.roles = [...data.roles]
this.dialogFormVisible = true
}
})
},
submitStartFlow(){
//
this.$http({
url: this.$http.adornUrl(`/flw/instance/startFlowInstance`),
method: 'get',
params: this.$http.adornParams(this.flowForm)
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.dialogFormVisible = false
this.flowForm = {}
}
})
} else {
this.$message.error(data.msg)
}
})
}
}
}

Loading…
Cancel
Save