Commit 862afe58 authored by 李苏's avatar 李苏 💬

wcs立库新增 提升优先级

parent 52db1a89
......@@ -159,7 +159,7 @@
save(){
/* 判定是否勾选*/
let list =this.$refs.basePage.$refs.TablePager.selectedList
let list =this.$refs.basePage.$refs.TablePager.selectedList
if(list.length!=0){
if(this.app.form.bglx=='411_E'){
list.forEach(item=>{
......
......@@ -7,6 +7,7 @@
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="start(ctx.basePage)" size='mini' type="primary">开始</el-button>
<el-button @click="close(ctx.basePage)" size='mini' type="primary">关闭</el-button>
<el-button @click="tsyxj(ctx.basePage)" size='mini' type="primary">提升优先级</el-button>
<div style="float:right;line-height:28px;font-size:12px;margin-right:18px" > 自动刷新:<el-switch
v-model="doQuery"
active-color="#13ce66"
......@@ -50,8 +51,8 @@
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
showSelection: true,
saveSelected: true
},
config: {
cellStyle({
......@@ -273,6 +274,29 @@
},
methods: {
tsyxj(ctx){
let list =ctx.$refs.TablePager.selectedList
let elist=list.filter(item=>item.zt=='WW')
if(elist.length==0){
this.$warning('请至少勾选一条状态为待WCS执行的任务')
return
}
this.$confirm('操作将忽略非待WCS执行状态的任务,是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$post('lxyl/wcs/lkrw/priority/up', {
ids: elist.map(item=>item.id)
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
},
/* 示例*/
// demo(basePage){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment