调整
This commit is contained in:
@@ -30,10 +30,10 @@
|
||||
}
|
||||
},
|
||||
created(){
|
||||
this.initWebSocket();
|
||||
// this.initWebSocket();
|
||||
},
|
||||
methods: {
|
||||
initWebSocket() {
|
||||
/* initWebSocket() {
|
||||
this.websocket = new WebSocket(process.env.VUE_APP_WS_URL);
|
||||
this.websocket.onmessage = (event) => {
|
||||
this.uploading = true;
|
||||
@@ -52,8 +52,8 @@
|
||||
}
|
||||
})
|
||||
console.log('this.progressArr=' + this.progressArr);
|
||||
/* let progress = msgStr.substring(msgStr.indexOf("/") + 1, msgStr.length);
|
||||
this.progress = parseInt(msgArr[2])*/
|
||||
/!* let progress = msgStr.substring(msgStr.indexOf("/") + 1, msgStr.length);
|
||||
this.progress = parseInt(msgArr[2])*!/
|
||||
// if (progress === '100%') {
|
||||
// this.websocket.close();
|
||||
// }
|
||||
@@ -61,7 +61,7 @@
|
||||
this.websocket.onclose = () => {
|
||||
console.log('WebSocket connection closed');
|
||||
};
|
||||
},
|
||||
}, */
|
||||
checkDuplicate(docId) {
|
||||
return this.progressArr.findIndex(t => t['docId'] == docId) == -1
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
previewUrl: '',
|
||||
progress: 0,
|
||||
fileList: [],
|
||||
websocket: null,
|
||||
// websocket: null,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
<el-col :span="12"> <el-form-item label="备注">{{detailData.remark}}</el-form-item> </el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="关联工具">
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" v-if="detailData.association != null && detailData.association != '' && detailData.association != undefined" @click="getToolRelationTree">查看</el-button>
|
||||
|
||||
<!-- <span v-if="detailData.association != null && detailData.association != '' && detailData.association != undefined">
|
||||
<el-tag :key="tag.toolId" v-for="tag in JSON.parse(detailData.association)" type="info" style="margin-right: 5px">{{tag.toolName}}</el-tag>
|
||||
</span>-->
|
||||
<span v-if="detailData.association != null && detailData.association != '' && detailData.association != undefined">
|
||||
<el-tag :key="tag.toolId" v-for="tag in detailData.association" type="info" style="margin-right: 5px">{{tag.toolName}}</el-tag>
|
||||
</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
@@ -192,15 +192,15 @@
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="关联工具" prop="association">
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="getToolRelationTree">查看</el-button>
|
||||
<!-- <el-button type="primary" icon="el-icon-search" size="mini" @click="getToolRelationTree">查看</el-button>
|
||||
<el-button type="primary" icon="el-icon-check" size="mini" @click="handleToolSelect">新增关联工具</el-button>
|
||||
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleToolEdit">编辑关联工具</el-button>
|
||||
<!-- <el-select
|
||||
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleToolEdit">编辑关联工具</el-button>-->
|
||||
<el-select
|
||||
:disabled="!editStatus"
|
||||
v-model="form.association"
|
||||
ref="selectHeadTool"
|
||||
multiple
|
||||
value-key="toolId"
|
||||
multiple
|
||||
filterable
|
||||
remote
|
||||
placeholder="请选择关联工具"
|
||||
@@ -211,7 +211,7 @@
|
||||
:label="item.toolName"
|
||||
:value="item">
|
||||
</el-option>
|
||||
</el-select>-->
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -740,6 +740,10 @@ export default {
|
||||
saveForm() {
|
||||
let _this = this
|
||||
_this.$refs["eForm"].validate(valid => {
|
||||
if(_this.attachmentList.length == 0){
|
||||
_this.$message.warning("最少上传一个附件");
|
||||
return;
|
||||
}
|
||||
if (valid) {
|
||||
if (!_this.procDefKey) {
|
||||
_this.$message.warning("尚未进行流程设置,将无法发起流程!");
|
||||
@@ -858,6 +862,10 @@ export default {
|
||||
dialogVisible = false
|
||||
}
|
||||
}
|
||||
if(this.attachmentList.length == 0){
|
||||
_this.$message.warning("最少上传一个附件");
|
||||
return true;
|
||||
}
|
||||
_this.searchQuery.pass = _this.formSubmit.pass
|
||||
let defaultStaff = []
|
||||
this.defaultStaff=defaultStaff
|
||||
@@ -1188,6 +1196,23 @@ export default {
|
||||
self.toolTreeLoading = false;
|
||||
});
|
||||
},
|
||||
toolSelect(){
|
||||
/* this.$refs.selectHeadTool.blur();
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.toolSelect.init(null,null,true)
|
||||
}) */
|
||||
let self = this
|
||||
this.$refs.selectHeadTool.blur();
|
||||
let toolIds = []
|
||||
if(self.form.association && self.form.association.length > 0){
|
||||
self.form.association.forEach(item=>{
|
||||
toolIds.push(item.toolId)
|
||||
})
|
||||
}
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.toolSelect.init(null,null,true, toolIds)
|
||||
})
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user