|
@@ -2,7 +2,7 @@
|
|
|
* @Author : yuanrunwei
|
|
|
* @Date : 2021-12-04 14:23:58
|
|
|
* @LastEditors : yuanrunwei
|
|
|
- * @LastEditTime : 2021-12-28 14:49:37
|
|
|
+ * @LastEditTime : 2021-12-28 18:25:07
|
|
|
* @FilePath : \spfm-market-front\src\pages\main\performance\components\sheet.vue
|
|
|
-->
|
|
|
|
|
@@ -174,6 +174,8 @@ export default {
|
|
|
form: {
|
|
|
charge: [{ value: "" }],
|
|
|
},
|
|
|
+ issued_id: null,
|
|
|
+ template_id: null,
|
|
|
visible: false,
|
|
|
row_list: [],
|
|
|
column_list: [],
|
|
@@ -199,6 +201,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleAllow({ row, column }) {
|
|
|
+ console.log(
|
|
|
+ row,
|
|
|
+ this.row_list,
|
|
|
+ column,
|
|
|
+ this.column_list,
|
|
|
+ this.row_list.includes(row) && this.column_list.includes(column)
|
|
|
+ );
|
|
|
return (
|
|
|
this.row_list.includes(row) && this.column_list.includes(column)
|
|
|
);
|
|
@@ -221,7 +230,13 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
const {
|
|
|
- data: { templateContent, templateName, list },
|
|
|
+ data: {
|
|
|
+ templateContent,
|
|
|
+ templateName,
|
|
|
+ issuedId,
|
|
|
+ templateId,
|
|
|
+ list,
|
|
|
+ },
|
|
|
} = await this.$http({
|
|
|
url,
|
|
|
method: "post",
|
|
@@ -232,6 +247,8 @@ export default {
|
|
|
[key]: this.id,
|
|
|
},
|
|
|
});
|
|
|
+ this.template_id = templateId;
|
|
|
+ this.issued_id = issuedId;
|
|
|
if (list && list.length) {
|
|
|
const [{ type, allowEditingColumns, rowNum }] = list;
|
|
|
this.form = {
|
|
@@ -403,9 +420,10 @@ export default {
|
|
|
"Content-Type": "application/json",
|
|
|
},
|
|
|
data: {
|
|
|
- id: this.id,
|
|
|
+ id: this.template_id,
|
|
|
templateContent: JSON.stringify(data),
|
|
|
templateName: workbook_name,
|
|
|
+ issuedId: this.issued_id,
|
|
|
},
|
|
|
});
|
|
|
// 新增时添加权限
|