|
@@ -39,11 +39,11 @@
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</dg-col>
|
|
|
- <dg-col :span="12" v-if="isDetail">
|
|
|
+ <!-- <dg-col :span="12" v-if="isDetail">
|
|
|
<el-form-item label="流程编号:" prop="businessCode">
|
|
|
<div>{{ sizeForm.businessCode }}</div>
|
|
|
</el-form-item>
|
|
|
- </dg-col>
|
|
|
+ </dg-col> -->
|
|
|
<dg-col :span="12" v-if="isDetail">
|
|
|
<el-form-item label="审批单编号:" prop="applicantOrdNo">
|
|
|
<div>{{ sizeForm.applicantOrdNo }}</div>
|
|
@@ -98,6 +98,11 @@
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</dg-col>
|
|
|
+ <dg-col :span="12" v-if="isDetail">
|
|
|
+ <el-form-item label="创建时间:">
|
|
|
+ {{ sizeForm.createTime }}
|
|
|
+ </el-form-item>
|
|
|
+ </dg-col>
|
|
|
<dg-col :span="12" v-if="sizeForm.applyType == 'SERVICE_AUTH'">
|
|
|
<el-form-item label="应用方:" prop="applyId">
|
|
|
<div v-if="isDetail">{{ sizeForm.applyId }}</div>
|
|
@@ -107,14 +112,7 @@
|
|
|
</el-form-item>
|
|
|
</dg-col>
|
|
|
</dg-row>
|
|
|
- <dg-row> </dg-row>
|
|
|
- <dg-row>
|
|
|
- <dg-col :span="8" v-if="isDetail">
|
|
|
- <el-form-item label="创建时间:">
|
|
|
- {{ sizeForm.createTime }}
|
|
|
- </el-form-item>
|
|
|
- </dg-col>
|
|
|
- </dg-row>
|
|
|
+
|
|
|
<dg-row>
|
|
|
<dg-col :span="24">
|
|
|
<!-- <component :is="approveComponent"></component> -->
|
|
@@ -350,9 +348,16 @@ export default {
|
|
|
applyContentCom: appFuncForm,
|
|
|
show: false,
|
|
|
applyContentOperateObj: {
|
|
|
- 'function-auth-apply': '申请访问资源:',
|
|
|
- 'service-auth-apply': '申请服务:'
|
|
|
- }
|
|
|
+ 'function-auth-apply': {
|
|
|
+ applyText: '申请访问资源:',
|
|
|
+ cancelText: '申请撤销资源:'
|
|
|
+ },
|
|
|
+ 'service-auth-apply': {
|
|
|
+ applyText: '申请服务:',
|
|
|
+ cancelText: '申请撤销服务:'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ needFilter: true
|
|
|
};
|
|
|
},
|
|
|
components: {},
|
|
@@ -363,8 +368,11 @@ export default {
|
|
|
flowContentStr() {
|
|
|
let str = '';
|
|
|
if (this.sizeForm.flowContent) {
|
|
|
- const { visitorName, visitResourceName } = JSON.parse(this.sizeForm.flowContent);
|
|
|
- str = `${visitorName}${this.applyContentOperateObj[this.sizeForm.businessCode]}${visitResourceName}`;
|
|
|
+ const { visitorName, visitResourceName, cancelResourceName } = JSON.parse(this.sizeForm.flowContent);
|
|
|
+ const { applyText, cancelText } = this.applyContentOperateObj[this.sizeForm.businessCode] || {};
|
|
|
+ const applyContent = visitResourceName ? `${applyText}${visitResourceName}。\n` : '';
|
|
|
+ const cancelContent = cancelResourceName ? `${cancelText}${cancelResourceName}。` : '';
|
|
|
+ str = `${visitorName}${applyContent}${cancelContent}`;
|
|
|
}
|
|
|
return str;
|
|
|
}
|
|
@@ -372,7 +380,6 @@ export default {
|
|
|
watch: {
|
|
|
'sizeForm.applyType': {
|
|
|
handler(val) {
|
|
|
- // this.sizeForm.applicantId = val;
|
|
|
let component;
|
|
|
if (val == 'DATA_AUTH') {
|
|
|
component = dataSourceForm;
|
|
@@ -471,25 +478,25 @@ export default {
|
|
|
// 选择
|
|
|
handleChoice() {
|
|
|
const vm = this;
|
|
|
- const keys = [...this.applySelectKeys, ...this.sizeForm.resourceInfos.map((item) => item.funId)];
|
|
|
+ // const keys = [...this.applySelectKeys, ...this.sizeForm.resourceInfos.map((item) => item.funId)];
|
|
|
const layer = this.$dgLayer({
|
|
|
title: '选择资源',
|
|
|
shadow: [0.4, '#fff'],
|
|
|
props: {
|
|
|
- selectKeys: keys,
|
|
|
- needFilter: true
|
|
|
+ selectKeys: this.applySelectKeys,
|
|
|
+ needFilter: this.needFilter
|
|
|
},
|
|
|
content: this.applyContentCom,
|
|
|
area: ['1200px', '700px'],
|
|
|
on: {
|
|
|
- success(approveContent, selectKeys, resourceInfos = []) {
|
|
|
+ success(visitResourceName, cancelResourceName, selectKeys, resourceInfos = []) {
|
|
|
vm.sizeForm.resourceInfos = resourceInfos;
|
|
|
vm.applySelectKeys = selectKeys;
|
|
|
const visitorName =
|
|
|
vm.sizeForm.applyType !== 'SERVICE_AUTH' ? vm.sizeForm.applicantName : vm.sizeForm.applyId;
|
|
|
- const visitResourceName = approveContent;
|
|
|
- const resourceObj = { visitorName, visitResourceName };
|
|
|
+ const resourceObj = { visitorName, visitResourceName, cancelResourceName };
|
|
|
vm.sizeForm.flowContent = JSON.stringify(resourceObj);
|
|
|
+ vm.needFilter = false;
|
|
|
layer.close(layer.dialogIndex);
|
|
|
},
|
|
|
close() {
|
|
@@ -547,6 +554,7 @@ export default {
|
|
|
resourceInfos,
|
|
|
...otherInfo
|
|
|
};
|
|
|
+ this.applySelectKeys = this.sizeForm.resourceInfos.map((item) => item.funId);
|
|
|
this.show = true;
|
|
|
});
|
|
|
}
|