Commit 089e420c authored by renjintao's avatar renjintao

reorder ing....

parent e8139db6
<style lang="less"> <style lang="less">
@import "../execute/execute.less"; @import "../execute/execute.less";
</style> </style>
<template> <template>
<div> <div>
<DataGrid <DataGrid
...@@ -35,10 +35,21 @@ ...@@ -35,10 +35,21 @@
<Modal v-model="transModal" title="确认转续" width="900"> <Modal v-model="transModal" title="确认转续" width="900">
<div class="zhuanx mt30"> <div class="zhuanx mt30">
<p class="line_p"> <p class="line_p">
<Input prefix="ios-contact-outline" placeholder="请输入人员编号" style="width: auto" /> <Input
prefix="ios-contact-outline"
v-model="userId"
placeholder="请输入人员编号"
style="width: auto"
/>
</p> </p>
<p class="line_p"> <p class="line_p">
<Input prefix="ios-lock-outline" placeholder="请输入人员密码" style="width: auto" /> <Input
prefix="ios-lock-outline"
type="password"
v-model="userPwd"
placeholder="请输入人员密码"
style="width: auto"
/>
</p> </p>
</div> </div>
<div slot="footer"> <div slot="footer">
...@@ -151,7 +162,7 @@ export default { ...@@ -151,7 +162,7 @@ export default {
"op", "op",
{ {
attrs: { oprate: "edit" }, attrs: { oprate: "edit" },
on: { click: () => this.openTrans(params.row) }, on: { click: () => this.openTrans(params.row.id) },
style: params.row.status == 1 ? "display:none" : "" style: params.row.status == 1 ? "display:none" : ""
}, },
"确认转续" "确认转续"
...@@ -159,7 +170,9 @@ export default { ...@@ -159,7 +170,9 @@ export default {
]); ]);
} }
} }
] ],
userId: "",
userPwd: ""
}; };
}, },
created() { created() {
...@@ -181,21 +194,27 @@ export default { ...@@ -181,21 +194,27 @@ export default {
this.easySearch.keys.value = this.easySearch.keys.value.trim(); this.easySearch.keys.value = this.easySearch.keys.value.trim();
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
}, },
openTrans() { openTrans(val) {
if (val&&val>0) {
this.$refs.grid.selectAll(false);
this.arrayIds = [];
this.arrayIds.push(val);
}
this.transModal = true; this.transModal = true;
}, },
transOk() { transOk() {
alert("确定转续"); let params={
ids:this.arrayIds,
user:this.userId,
pwd:this.userPwd
}
alert(JSON.stringify(params));
}, },
onSelect(a, b) { onSelect(a, b) {
//alert(JSON.stringify(a));
//批量选择 //批量选择
let selectRows = a; let selectRows = a;
this.arrayIds = []; this.arrayIds = [];
this.rowDataArry = a; this.arrayIds = selectRows.map(e => e.id);
selectRows.forEach(e => {
this.arrayIds.push(e.id);
});
}, },
l(key) { l(key) {
let vkey = "mes_plan" + "." + key; let vkey = "mes_plan" + "." + key;
......
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