【修改】修改权限

This commit is contained in:
zhoulingpo
2023-05-10 17:59:37 +08:00
parent 70d154a9ec
commit ecdee79675
4 changed files with 44 additions and 62 deletions
+4 -4
View File
@@ -11,10 +11,10 @@
userId: this.$store.getters.userInfo.usid, userId: this.$store.getters.userInfo.usid,
userName:this.$store.getters.userInfo.usname, userName:this.$store.getters.userInfo.usname,
processTypeList: [ processTypeList: [
{ {
label: '下载申请', label: '下载申请',
value: '3' value: '3'
}, },
{ {
label: '预览申请', label: '预览申请',
value: '1' value: '1'
+19 -23
View File
@@ -13,8 +13,8 @@
:disabled="formControl"> :disabled="formControl">
<el-row> <el-row>
<el-col :span="9"> <el-col :span="9">
<el-form-item label="上传人:" prop="applyReason"> <el-form-item label="上传人:" prop="createUserName">
<el-input v-model="applicationForm.applyReason" placeholder="请输入申请原因"></el-input> <el-input v-model="applicationForm.createUserName" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -22,7 +22,7 @@
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="内容摘要:" prop="mainContent"> <el-form-item label="内容摘要:" prop="mainContent">
<el-input v-model="applicationForm.mainContent" placeholder="请输入内容摘要"></el-input> <el-input v-model="applicationForm.mainContent" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -30,12 +30,12 @@
<el-row> <el-row>
<el-col :span="9"> <el-col :span="9">
<el-form-item label="报告涉密等级:" prop="applyReason"> <el-form-item label="报告涉密等级:" prop="applyReason">
<el-input v-model="applicationForm.confidentialLevel" placeholder="请输入报告涉密等级"></el-input> <el-input v-model="applicationForm.confidentialLevel" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="9"> <el-col :span="9">
<el-form-item label="报告隐私等级:" prop="privacyLevel"> <el-form-item label="报告隐私等级:" prop="privacyLevel">
<el-input v-model="applicationForm.privacyLevel" placeholder="请输入报告隐私等级"></el-input> <el-input v-model="applicationForm.privacyLevel" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@@ -51,15 +51,15 @@
<el-row> <el-row>
<el-col :span="9"> <el-col :span="9">
<el-form-item label="申请原因:" prop="applyReason"> <el-form-item label="申请原因:" prop="applyReason">
<el-input v-model="applicationForm.applyReason" ></el-input> <el-input v-model="applicationForm2.applyReason" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="9">
<el-form-item label="申请权限:" prop="power"> <el-form-item label="申请权限:" prop="powerName">
<el-input v-model="applicationForm.power" placeholder="请输入申请原因"></el-input> <el-input v-model="applicationForm2.powerName" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@@ -79,16 +79,6 @@
<!-- v-if="$route.query.type !=='yiban'"--> <!-- v-if="$route.query.type !=='yiban'"-->
</div> </div>
<process-footer
v-if="!disabled"
showCancel
:show-transfer="isShowTran"
:show-submit="isShowSubmit"
:submitLoading="isSubmit"
:TransferLoading="tranLoading"
@transfer="handleTransfer"
@submit="handleSubmit"
></process-footer>
<!-- <process-choose-tree--> <!-- <process-choose-tree-->
<!-- dialog-model--> <!-- dialog-model-->
<!-- :visible.sync="visibleTree"--> <!-- :visible.sync="visibleTree"-->
@@ -105,6 +95,7 @@
</template> </template>
<script> <script>
import processHeader from '@/components/ProcessHeader' import processHeader from '@/components/ProcessHeader'
import processFooter from '@/components/ProcessFooter' import processFooter from '@/components/ProcessFooter'
import processChooseTree from '../../components/OrgTable' import processChooseTree from '../../components/OrgTable'
@@ -126,6 +117,7 @@ export default {
}, },
data () { data () {
return { return {
PERMISSION,
applicationForm2:{ applicationForm2:{
power:'', power:'',
applyReason:'' applyReason:''
@@ -148,7 +140,6 @@ export default {
pageSize: 10000, pageSize: 10000,
pageNo: 1 pageNo: 1
}, },
PERMISSION,
submitjson:{}, submitjson:{},
prcType:1 prcType:1
} }
@@ -159,7 +150,6 @@ export default {
this.prcId=this.$store.getters.handleProcess.prcId this.prcId=this.$store.getters.handleProcess.prcId
this.prcName=this.$store.getters.handleProcess.prcName this.prcName=this.$store.getters.handleProcess.prcName
this.$set(this.processForm,'prcName',this.prcName) this.$set(this.processForm,'prcName',this.prcName)
let params={ let params={
prcId: this.prcId, prcId: this.prcId,
prcType: this.prcType prcType: this.prcType
@@ -169,12 +159,18 @@ export default {
} }
this.getProcessDetail(params).then(res=>{ this.getProcessDetail(params).then(res=>{
this.tableData = JSON.parse(this.processOld.dataJson) this.tableData = JSON.parse(this.processOld.dataJson)
this.$set(this.applicationForm2,'power',this.tableData.power) let powerName=''
this.PERMISSION.forEach(item=>{
if(item.value== this.tableData.power ){
powerName=item.label
}
})
this.$set(this.applicationForm2,'powerName',powerName)
this.$set(this.applicationForm2,'applyReason',this.tableData.applyReason) this.$set(this.applicationForm2,'applyReason',this.tableData.applyReason)
this.$set(this.applicationForm,'mainContent',this.tableData.mainContent) this.$set(this.applicationForm,'mainContent',this.tableData.mainContent)
this.$set(this.applicationForm,'privacyLevel',this.tableData.privacyLevel) this.$set(this.applicationForm,'privacyLevel',this.tableData.privacyLevel)
this.$set(this.applicationForm,'confidentialLevel',this.tableData.confidentialLevel) this.$set(this.applicationForm,'confidentialLevel',this.tableData.confidentialLevel)
this.$set(this.applicationForm,'applyReason',this.tableData.applyReason) this.$set(this.applicationForm,'createUserName',this.tableData.createUserName)
this.disabled=false this.disabled=false
this.formControl= true this.formControl= true
if(this.$route.query.type=='yiban'){ if(this.$route.query.type=='yiban'){
+18 -32
View File
@@ -158,7 +158,13 @@ export default {
this.showTableD = true this.showTableD = true
this.$set(this.processForm,'prcName', this.prcName) this.$set(this.processForm,'prcName', this.prcName)
this.getProcessDetail().then((res) => { this.getProcessDetail().then((res) => {
let dataJson = JSON.parse(this.processOld.dataJson)
let submitJson = JSON.parse(this.processOld.submitJson)
this.tableData[0]=dataJson
this.tableData[0].oneApproveName=submitJson.oneApproveName
this.tableData[0].twoApproveName=submitJson.twoApproveName
this.$set(this,'tableData',this.tableData)
}) })
} }
}, },
@@ -236,7 +242,6 @@ export default {
createUser:this.userId, createUser:this.userId,
createUserName:this.userName, createUserName:this.userName,
userId:this.userId, userId:this.userId,
submitIson:'',
dataJson:'', dataJson:'',
bpnId: this.$store.getters.handleProcess?.id, bpnId: this.$store.getters.handleProcess?.id,
reportId: item.reportId reportId: item.reportId
@@ -246,6 +251,7 @@ export default {
oneApproveName:item.oneApproveName, oneApproveName:item.oneApproveName,
twoApprove:item.twoApprove, twoApprove:item.twoApprove,
twoApproveName:item.twoApproveName, twoApproveName:item.twoApproveName,
userId:this.userId,
} }
delete item['oneApprove'] delete item['oneApprove']
delete item['oneApproveName'] delete item['oneApproveName']
@@ -253,7 +259,7 @@ export default {
delete item['twoApproveName'] delete item['twoApproveName']
let dataJson=item let dataJson=item
obj.submitJson=JSON.stringify(submitJson) obj.submitJson=JSON.stringify(submitJson)
obj.dataJson=JSON.stringify(dataJson) obj.dataJson=JSON.stringify({...dataJson, createUser:this.userId, createUserName:this.userName})
return obj return obj
}) })
this.params=newParams this.params=newParams
@@ -296,7 +302,6 @@ export default {
}, },
// 提交 // 提交
handleSubmit() { handleSubmit() {
// 过了校验 需要把数据都整合 this.tableData this.applicationForm this.assignForm // 过了校验 需要把数据都整合 this.tableData this.applicationForm this.assignForm
// 表格数据没有不能提交 需要提示 // 表格数据没有不能提交 需要提示
if (this.tableData.length == 0) { if (this.tableData.length == 0) {
@@ -310,34 +315,16 @@ export default {
if (this.initShow) { if (this.initShow) {
let flag= this.JuggleSub(this.taskId) let flag= this.JuggleSub(this.taskId)
if(flag){ if(flag){
console.log(this.delData,"flagflagflagflag") this.organizeData()
let dataJson = JSON.stringify(this.tableData)
if(this.delData){ let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
this.delDatas().then(()=>{ this.completeProcess({
this.organizeData() dataJson,
let dataJson = JSON.stringify(this.tableData) submitJson,
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark}) taskId: this.taskId,
this.completeProcess({ userId: this.$store.getters.userInfo.usid,
dataJson, prcType: this.prcType
submitJson, })
taskId: this.taskId,
userId: this.$store.getters.userInfo.usid,
prcType: this.prcType
})
})
}else{
this.organizeData()
let dataJson = JSON.stringify(this.tableData)
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
this.completeProcess({
dataJson,
submitJson,
taskId: this.taskId,
userId: this.$store.getters.userInfo.usid,
prcType: this.prcType
})
}
} }
} else { } else {
if(this.JuggleTableAll()){ if(this.JuggleTableAll()){
@@ -379,7 +366,6 @@ export default {
//把表单都整合到form中 //把表单都整合到form中
this.$api.process.startProcessALL(this.params).then((res) => { this.$api.process.startProcessALL(this.params).then((res) => {
debugger
let data=res.data.result.split(',') let data=res.data.result.split(',')
this.params=this.params.map((item,index)=>{ this.params=this.params.map((item,index)=>{
item.taskId=data[index] item.taskId=data[index]
+3 -3
View File
@@ -33,8 +33,8 @@
</div> </div>
<el-row class="agreeBtn" v-if="isShowbtn"> <el-row class="agreeBtn" v-if="isShowbtn">
<el-button @click="allAgree('yes')">批量同意</el-button> <el-button size="small" type="primary" @click="allAgree('yes')">批量同意</el-button>
<el-button @click="allAgree('no')">批量不同意</el-button> <el-button size="small" type="primary" @click="allAgree('no')">批量不同意</el-button>
</el-row> </el-row>
<div class="tabs"> <div class="tabs">
@@ -167,7 +167,7 @@ import tabs from '../userCenter/processCenter/tabs.vue'
margin: 10px 0 0 13px; margin: 10px 0 0 13px;
} }
.agreeBtn{ .agreeBtn{
margin: 10px 20px 0; margin: 20px 20px 0;
} }
} }