|
@@ -191,6 +191,7 @@
|
|
|
:list="infolist"
|
|
|
:requestForm="requestForm"
|
|
|
@updateForm="updateForm"
|
|
|
+ :request_formTitle="request_form.title"
|
|
|
/>
|
|
|
<!-- <div>
|
|
|
<el-form :model="infolist" ref="infolist">
|
|
@@ -420,9 +421,11 @@ export default {
|
|
|
materTypeopt: [],
|
|
|
attList: [],
|
|
|
fileInfo: {
|
|
|
- type: "img",
|
|
|
+ // type: "img",
|
|
|
+ type: "bt1n",
|
|
|
limit: 50,
|
|
|
- url: "/market/ggsj/upload",
|
|
|
+ // url: "/market/ggsj/upload",
|
|
|
+ url: "/market/waf/uploadByMinio",
|
|
|
fileList: [],
|
|
|
},
|
|
|
checkList: [],
|
|
@@ -441,15 +444,17 @@ export default {
|
|
|
request_form: {
|
|
|
userId: "",
|
|
|
userName: "",
|
|
|
- path: this.$router.currentRoute.name,
|
|
|
+ // path: this.$router.currentRoute.name,
|
|
|
+ path: 'advchecks',
|
|
|
userCode: JSON.parse(window.sessionStorage.userInfo).loginNo,
|
|
|
title: "",
|
|
|
businessKey: "",
|
|
|
processDefinitionKey: "ggsj_process",
|
|
|
},
|
|
|
requestForm: {
|
|
|
- fresourceId: "99e7da22-5f04-11ed-b399-e00084564cce", //线上环境
|
|
|
- // fresourceId: "e817fc35-5a51-11ed-8912-00505687dcd3", //测试环境
|
|
|
+ fresourceId: "7f3e39a2-ed7e-11ed-8138-e00084564cce", //线上环境
|
|
|
+
|
|
|
+ // fresourceId: "3886c339-ebe4-11ed-997f-00505687dcd3", //测试环境
|
|
|
// fresourceId: "3c9baf21-3e43-11ed-ad6b-d6cd97160e00",//本地环境
|
|
|
processDefinitionKey: "ggsj_process",
|
|
|
},
|
|
@@ -485,22 +490,54 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- getUserIds() {
|
|
|
- this.$http({
|
|
|
- url: "/market/waf/queryRoleByName",
|
|
|
+ // getUserIds() {
|
|
|
+ // // console.log(this.infolist.need_name)
|
|
|
+ // this.$http({
|
|
|
+ // url: "/market/waf/queryRoleByName",
|
|
|
+ // method: "post",
|
|
|
+ // headers: {
|
|
|
+ // "Content-Type": "application/json",
|
|
|
+ // },
|
|
|
+ // data: {
|
|
|
+ // userCode: JSON.parse(window.sessionStorage.userInfo).loginNo,
|
|
|
+ // },
|
|
|
+ // }).then((res) => {
|
|
|
+ // this.request_form.title = this.infolist.need_name;
|
|
|
+ // this.request_form.userName = res.data.data.rows[0].name;
|
|
|
+ // this.request_form.userId = res.data.data.rows[0].userCode;
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ //获取userID
|
|
|
+ getUserIds() {
|
|
|
+ let id = JSON.parse(window.sessionStorage.userInfo).loginNo
|
|
|
+ this.$http({
|
|
|
+ url: "/market//api/user/info/queryNodePers?params="+ id,
|
|
|
method: "post",
|
|
|
headers: {
|
|
|
- "Content-Type": "application/json",
|
|
|
+ "Content-Type": "application/json",
|
|
|
},
|
|
|
- data: {
|
|
|
- userCode: JSON.parse(window.sessionStorage.userInfo).loginNo,
|
|
|
+ data: {
|
|
|
+ // params: JSON.parse(window.sessionStorage.userInfo).loginNo,
|
|
|
+ },
|
|
|
+ }).then((res) => {
|
|
|
+ this.request_form.userName = res.data[0].children[0].loginNameStr;
|
|
|
+ this.request_form.userId = res.data[0].children[0].loginNoStr;
|
|
|
+ this.request_form.title = '[市场工作台]-'+'广告设计及素材库-'+ this.$refs.infolist.model.need_name;
|
|
|
+ this.$http({
|
|
|
+ url: "/market/ggsj/add",
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
},
|
|
|
+ data: this.infolist,
|
|
|
}).then((res) => {
|
|
|
- this.request_form.title = this.userInfo.need_name;
|
|
|
- this.request_form.userName = res.data.data.rows[0].name;
|
|
|
- this.request_form.userId = res.data.data.rows[0].userCode;
|
|
|
+ this.request_form.businessKey = res.data.body;
|
|
|
+ this.clickHandle(res.data.body);
|
|
|
+ this.$message.success('保存成功')
|
|
|
});
|
|
|
- },
|
|
|
+
|
|
|
+ });
|
|
|
+ },
|
|
|
//保存工单启动工作流
|
|
|
clickSave() {
|
|
|
if (this.spreadchannelzList !== []) {
|
|
@@ -513,18 +550,18 @@ export default {
|
|
|
this.infolist.mkFileShareAttachList = this.attList;
|
|
|
}
|
|
|
this.getUserIds();
|
|
|
- this.$http({
|
|
|
- url: "/market/ggsj/add",
|
|
|
- method: "post",
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/json",
|
|
|
- },
|
|
|
- data: this.infolist,
|
|
|
- }).then((res) => {
|
|
|
- this.request_form.businessKey = res.data.body;
|
|
|
- this.clickHandle(res.data.body);
|
|
|
- this.$message.success('保存成功')
|
|
|
- });
|
|
|
+ // this.$http({
|
|
|
+ // url: "/market/ggsj/add",
|
|
|
+ // method: "post",
|
|
|
+ // headers: {
|
|
|
+ // "Content-Type": "application/json",
|
|
|
+ // },
|
|
|
+ // data: this.infolist,
|
|
|
+ // }).then((res) => {
|
|
|
+ // this.request_form.businessKey = res.data.body;
|
|
|
+ // this.clickHandle(res.data.body);
|
|
|
+ // this.$message.success('保存成功')
|
|
|
+ // });
|
|
|
},
|
|
|
async clickHandle(e) {
|
|
|
let _this = this;
|