Commit b5ca9327 by lianyang

letopn公共页面Docpan.vue中detail按钮弹出页中的supress/active按钮

parent d109df65
......@@ -218,7 +218,7 @@
width="60%"
center
>
<el-form label-width="100px" :model="dialog">
<el-form label-width="100px" :model="dialog" :disabled="suppress">
<c-row>
<c-col :span="12">
<c-col>
......@@ -423,12 +423,12 @@
</el-date-picker
></el-form-item>
</c-col>
<c-col
<c-col v-if="this.suppress!=true"
><el-form-item label="Contact"
><el-input v-model="dialog.ptcnam"
/></el-form-item>
</c-col>
<c-col :span="22"
<c-col :span="22" v-if="this.suppress!=true"
><el-form-item
:label="
title == 'MT799'
......@@ -453,7 +453,7 @@
</div>
</el-form-item>
</c-col>
<c-col :span="2">
<c-col :span="2" v-if="this.suppress!=true">
<c-button size="mini" icon="el-icon-more"> </c-button>
</c-col>
</c-row>
......@@ -463,6 +463,15 @@
<c-button type="primary" @click="saveDialog"
>确 定</c-button
>
<c-button type="primary" @click="activateDialog" v-if="dialog.delflg=='D'"
>应用</c-button
>
<c-button type="primary" @click="suppressDialog" v-else-if="dialog.lev=='1'||dialog.mliflg!=''"
>禁用</c-button
>
<c-button type="primary" @click="activateDialog" v-else
>删除</c-button
>
<c-button @click="centerDialogVisible = false"
>取 消</c-button
>
......@@ -505,6 +514,7 @@ export default {
],
data: [],
},
suppress:false,
};
},
watch: {
......@@ -535,6 +545,26 @@ export default {
}
})
},
activateDialog() {
this.executeRule("trnmod.trndoc.doccur.butdel").then(res => {
if(res.respCode==SUCCESS){
//TODO
}else{
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
},
suppressDialog() {
this.executeRule("trnmod.trndoc.doccur.butdel").then(res => {
if(res.respCode==SUCCESS){
//TODO
this.suppress=true;
}else{
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
},
async handleDisplay(index, row,doceot){
//后续要根据快照模式切换请求方式
let cortyp = row.cortyp
......
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