Commit 9f71d95a by wangna

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs…

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