Merge branch 'develop' into 'test'

Develop

See merge request LAWS/laws-system-front-FOTON!150
This commit is contained in:
王夏晖
2021-09-22 09:14:54 +08:00
5 changed files with 46 additions and 63 deletions
@@ -44,7 +44,7 @@
class="common-button-primary"
icon="el-icon-s-promotion"
@click="handleTransfer"
:loading="transferLoading"
:loading="submitLoading"
v-if="showTransfer"
>转办</el-button>
<el-button
@@ -389,47 +389,22 @@ export default {
if (this.data.length < 1) {
this.$message.warning("请输入征求意见搞");
} else {
var a = 0;
var b = 0;
// var c = 0
for (let s1 = 0; s1 < this.data.length; s1++) {
if (!this.data[s1].chapterNumber) {
a++;
this.isSubmit = true;
var json = this.json;
json.oldinfo = this.oldData;
json.commentText = this.commentText;
json.introduce = true;
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.success) {
this.$message.success("提交成功");
this.$router.push("/processCenter");
}
if (!this.data[s1].chapterName) {
b++;
}
// if (!this.data[s1].commentText) {
// c++
// }
}
if (a > 0) {
this.$message.warning("请输入章节编号");
} else if (b > 0) {
this.$message.warning("请输入章节名称");
}
// else if (c > 0) {
// this.$message.warning('请输入意见内容')
// }
else {
this.isSubmit = true;
var json = this.json;
json.oldinfo = this.oldData;
json.commentText = this.commentText;
json.introduce = true;
console.log(json);
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.success) {
this.$message.success("提交成功");
this.$router.push("/processCenter");
}
this.isSubmit = false;
});
}
this.isSubmit = false;
});
}
},
getData() {
@@ -729,17 +729,21 @@ export default {
this.standModel = false;
} else {
if (this.standList.length >= 1) {
this.pastProject.forEach(item => {
this.standList.map(items => {
if( item.productLine === items.productLine){
items.distributePersonId = item.distributePersonId
items.distributePerson = item.distributePerson
}
if (this.pastProject === null){
this.dataList = this.standList;
}else {
this.pastProject.forEach(item => {
this.standList.map(items => {
if( item.productLine === items.productLine){
items.distributePersonId = item.distributePersonId
items.distributePerson = item.distributePerson
}
})
})
})
this.dataList = this.standList;
this.roleForm.directorUser = this.dataList[0].uname;
this.dataList = this.standList
}
this.listForm.dataList = this.standList;
this.roleForm.directorUser = this.dataList[0].uname;
this.standModel = false;
} else {
this.$message.warning("请选择一条数据进行添加");
@@ -704,17 +704,21 @@ export default {
this.standModel = false;
} else {
if (this.standList.length >= 1) {
this.pastProject.forEach(item => {
this.standList.map(items => {
if( item.productLine === items.productLine){
items.distributePersonId = item.distributePersonId
items.distributePerson = item.distributePerson
}
if (this.pastProject === null){
this.dataList = this.standList;
}else {
this.pastProject.forEach(item => {
this.standList.map(items => {
if( item.productLine === items.productLine){
items.distributePersonId = item.distributePersonId
items.distributePerson = item.distributePerson
}
})
})
})
this.dataList = this.standList;
this.roleForm.directorUser = this.dataList[0].uname;
this.dataList = this.standList
}
this.listForm.dataList = this.standList;
this.roleForm.directorUser = this.dataList[0].uname;
this.standModel = false;
} else {
this.$message.warning("请选择一条数据进行添加");
+4 -4
View File
@@ -4,10 +4,10 @@
* @date: 2018-09-04 17:47:46
*/
// 服务器地址
const devIp = '62.234.136.153'
const devInterfacePORT = '8033'
// const devIp = '10.5.103.101'
// const devInterfacePORT = '9999'
// const devIp = '62.234.136.153'
// const devInterfacePORT = '8033'
const devIp = '192.168.10.247'
const devInterfacePORT = '9999'
// 云端端口号
const DEV_CLOUD_RES_INTERFACE_PORT = '7777'
const simpleFilePath = 'att/attFile/upload'