Commit d1db3a24 by taojinrui

cptbat交易

parent 276f7396
...@@ -7,6 +7,10 @@ export default { ...@@ -7,6 +7,10 @@ export default {
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.$message({
type: 'success',
message: '获取成功!'
});
} }
else else
...@@ -16,12 +20,18 @@ export default { ...@@ -16,12 +20,18 @@ export default {
}, },
async onUpload(){ async onUpload(){
let rtnmsg1 = await this.executeRule("init")
let rtnmsg = await this.executeRule("upload") let rtnmsg = await this.executeRule("upload")
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
Utils.copyValueFromVO(this.model, rtnmsg.data);
this.$message({
type: 'success',
message: '上传成功!'
});
this.model.filpth = ''
this.model.newnam = ''
this.model.opefil = ''
} }
else else
{ {
...@@ -33,7 +43,11 @@ export default { ...@@ -33,7 +43,11 @@ export default {
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
Utils.copyValueFromVO(this.model, rtnmsg.data);
this.$message({
type: 'success',
message: '解析成功!'
});
} }
else else
{ {
...@@ -45,6 +59,14 @@ export default { ...@@ -45,6 +59,14 @@ export default {
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
Utils.copyValueFromVO(this.model, rtnmsg.data);
this.$message({
type: 'success',
message: '删除成功!'
});
this.model.filpth = ''
this.model.newnam = ''
this.model.opefil = ''
} }
else else
...@@ -64,18 +86,32 @@ export default { ...@@ -64,18 +86,32 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async row(row, column, event){ async rowcli(row){
console.log(12121) this.flag = true
this.flag = false
// this.$refs.table.setCurrentRow(row); // this.$refs.table.setCurrentRow(row);
// this.$emit("chooseRowEvent", row); // this.$emit("chooseRowEvent", row);
let rtnmsg = await this.executeRule("filstm") let params = {selDst:"filstm",selIds:[row.IDX+1]}
let rtnmsg = await this.executeRule("filstm",params)
//let rtnmsg = await this.executeRule("filstm")
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
//this.model.filpth = rtnmsg.data.params.rows[0].INR
if(this.model.opetye == '1'){
this.model.filpth = rtnmsg.data.filpth this.model.filpth = rtnmsg.data.filpth
this.model.newnam = rtnmsg.data.newnam this.model.newnam = rtnmsg.data.newnam
this.model.opefil = ''
}
if(this.model.opetye == '2'){
this.model.filpth = ''
this.model.newnam = ''
this.model.opefil = rtnmsg.data.opefil
}
if(this.model.opetye == '3'){
this.model.filpth = ''
this.model.newnam = ''
this.model.opefil = ''
}
} }
else else
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
:list="model.filstm.rows||[]" :list="model.filstm.rows||[]"
:columns="stmData.columns" :columns="stmData.columns"
:showButtonFlg="true" :showButtonFlg="true"
@chooseRowEvent="row" @chooseRowEvent="rowcli"
> >
</c-istream-table> </c-istream-table>
</c-col> </c-col>
...@@ -64,24 +64,24 @@ ...@@ -64,24 +64,24 @@
<c-col :span="4" :offset="1"> <c-col :span="4" :offset="1">
<c-col :span="24"> <c-col :span="24">
<c-button type="primary" :disabled="flag" @click="onOpnfil">文件预览</c-button> <c-button type="primary" :disabled="!(this.flag && model.opetye == '1')" @click="onOpnfil">文件预览</c-button>
</c-col> </c-col>
<c-col><br /></c-col> <c-col><br /></c-col>
<c-col :span="24"> <c-col :span="24">
<c-button <c-button
type="primary" type="primary"
:disabled="model.newnam === ''" :disabled="!(this.flag && model.opetye == '1')"
@click="onUpload" @click="onUpload"
>文件上传</c-button >文件上传</c-button
> >
</c-col> </c-col>
<c-col><br /></c-col> <c-col><br /></c-col>
<c-col :span="24"> <c-col :span="24">
<c-button type="primary" :disabled="flag" @click="onReadfil">文件解析</c-button> <c-button type="primary" :disabled="!(this.flag && model.opetye =='2')" @click="onReadfil">文件解析</c-button>
</c-col> </c-col>
<c-col><br /></c-col> <c-col><br /></c-col>
<c-col :span="24"> <c-col :span="24">
<c-button type="primary" :disabled="flag" @click="onDel">文件删除</c-button> <c-button type="primary" :disabled="!(this.flag && (model.opetye == '1'||model.opetye == '2'))" @click="onDel">文件删除</c-button>
</c-col> </c-col>
</c-col> </c-col>
...@@ -196,7 +196,7 @@ export default { ...@@ -196,7 +196,7 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return { return {
flag:true, flag:false,
opetye: [ opetye: [
{ label: "文件上传", value: "1" }, { label: "文件上传", value: "1" },
{ label: "文件解析", value: "2" }, { label: "文件解析", value: "2" },
...@@ -214,12 +214,49 @@ export default { ...@@ -214,12 +214,49 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
// rowClick(row, column, event) {
// console.log(789) },
// this.$refs.table.setCurrentRow(row); watch:{
// this.$emit("chooseRowEvent", row); "model.opetye": {
// this.executerule("") immediate: true,
// }, async handler(val, oldVal) {
if (this.model.opetye == '1' ){
let rtnmsg = await this.executeRule("opetye")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
else if (this.model.opetye == '2' ){
let rtnmsg = await this.executeRule("opetye")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
if (this.model.opetye == '3') {
let rtnmsg = await this.executeRule("opetye")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
},
},
}, },
created: function () {}, created: function () {},
}; };
......
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