eoss-ui 0.8.26 → 0.8.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/eoss-ui.common.js +162 -155
- package/lib/flow-list.js +96 -96
- package/lib/flow.js +44 -44
- package/lib/index.js +1 -1
- package/lib/login.js +11 -4
- package/lib/main.js +5 -5
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/button-group/src/main.vue +346 -346
- package/packages/calogin/.DS_Store +0 -0
- package/packages/calogin/src/main.vue +412 -412
- package/packages/clients/src/main.vue +151 -151
- package/packages/date-picker/.DS_Store +0 -0
- package/packages/date-picker/src/.DS_Store +0 -0
- package/packages/dialog/.DS_Store +0 -0
- package/packages/flow/.DS_Store +0 -0
- package/packages/flow/src/.DS_Store +0 -0
- package/packages/flow/src/component/CommonOpinions.vue +376 -376
- package/packages/flow/src/component/FileList.vue +97 -97
- package/packages/flow/src/component/SendMsg.vue +242 -242
- package/packages/flow/src/component/SortFlow.vue +110 -110
- package/packages/flow/src/form.vue +123 -123
- package/packages/flow/src/processForm.vue +3 -3
- package/packages/flow/src/table.vue +58 -58
- package/packages/flow-list/.DS_Store +0 -0
- package/packages/flow-list/src/main.vue +2337 -2337
- package/packages/form/.DS_Store +0 -0
- package/packages/form/src/table.vue +1512 -1512
- package/packages/icon/.DS_Store +0 -0
- package/packages/icon/src/main.vue +104 -104
- package/packages/login/.DS_Store +0 -0
- package/packages/login/src/main.vue +7 -2
- package/packages/login/src/resetPassword.vue +557 -557
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/public/online.vue +89 -89
- package/packages/main/src/public/search.vue +464 -464
- package/packages/main/src/public/settings.vue +273 -273
- package/packages/main/src/simplicity/apps.vue +388 -388
- package/packages/main/src/simplicity/avatar.vue +82 -82
- package/packages/main/src/simplicity/handler.vue +158 -158
- package/packages/main/src/simplicity/menu-list.vue +135 -135
- package/packages/main/src/simplicity/message.vue +293 -293
- package/packages/main/src/simplicity/notice.vue +222 -222
- package/packages/main/src/simplicity/sub-menu.vue +276 -276
- package/packages/main/src/simplicity/user.vue +259 -259
- package/packages/main/src/simplicityTop/apps.vue +388 -388
- package/packages/main/src/simplicityTop/avatar.vue +82 -82
- package/packages/main/src/simplicityTop/handler.vue +215 -215
- package/packages/main/src/simplicityTop/lists.vue +84 -84
- package/packages/main/src/simplicityTop/menu-list.vue +135 -135
- package/packages/main/src/simplicityTop/message.vue +293 -293
- package/packages/main/src/simplicityTop/notice.vue +222 -222
- package/packages/main/src/simplicityTop/router-page.vue +45 -45
- package/packages/main/src/simplicityTop/sub-menu.vue +274 -274
- package/packages/main/src/simplicityTop/user.vue +259 -259
- package/packages/menu/.DS_Store +0 -0
- package/packages/nav/src/main.vue +351 -351
- package/packages/select/.DS_Store +0 -0
- package/packages/selector/.DS_Store +0 -0
- package/packages/selector/src/main.vue +761 -761
- package/packages/selector-panel/.DS_Store +0 -0
- package/packages/selector-panel/src/main.vue +1036 -1036
- package/packages/selector-panel/src/selection.vue +174 -174
- package/packages/switch/src/main.vue +170 -170
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/src/.DS_Store +0 -0
- package/packages/theme-chalk/src/data-table.scss +297 -297
- package/packages/theme-chalk/src/flow-list.scss +55 -55
- package/packages/theme-chalk/src/handler.scss +148 -148
- package/packages/theme-chalk/src/icon.scss +3452 -3452
- package/packages/theme-chalk/src/login.scss +1006 -1006
- package/packages/theme-chalk/src/main.scss +664 -664
- package/packages/theme-chalk/src/menu.scss +224 -224
- package/packages/theme-chalk/src/selector.scss +114 -114
- package/packages/theme-chalk/src/simplicity-top.scss +1845 -1845
- package/packages/theme-chalk/src/simplicity.scss +1403 -1403
- package/packages/theme-chalk/src/upload.scss +172 -172
- package/packages/tips/src/main.vue +141 -141
- package/packages/upload/.DS_Store +0 -0
- package/packages/wujie/src/main.vue +146 -146
- package/src/.DS_Store +0 -0
- package/src/index.js +163 -163
- package/src/utils/.DS_Store +0 -0
- package/src/utils/rules.js +18 -18
- package/packages/form/src/1.json +0 -17
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="flow-sort-box"
|
|
4
|
-
style="height: 100%;overflow-y: auto;"
|
|
5
|
-
v-loading="loading"
|
|
6
|
-
element-loading-text="加载中..."
|
|
7
|
-
element-loading-spinner="el-icon-loading"
|
|
8
|
-
element-loading-background="rgba(255, 255,255, 0.8)">
|
|
9
|
-
<Draggable
|
|
10
|
-
class="flow-sort-draggable"
|
|
11
|
-
:list="sortList"
|
|
12
|
-
>
|
|
13
|
-
<es-button style="margin-top: 10px;" v-for="item in sortList" :key="item.id" plain>{{
|
|
14
|
-
item.name
|
|
15
|
-
}}</es-button></Draggable
|
|
16
|
-
>
|
|
17
|
-
<div class="flow-sort-btn">
|
|
18
|
-
<es-button type="primary" @click="saveSort(true)">保存</es-button>
|
|
19
|
-
<es-button @click="saveSort(false)">取消</es-button>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script>
|
|
25
|
-
import util from 'eoss-ui/src/utils/util';
|
|
26
|
-
import Draggable from 'vuedraggable';
|
|
27
|
-
import { toDefinitionChangeSort,setSort } from 'eoss-ui/src/config/api';
|
|
28
|
-
export default {
|
|
29
|
-
name: 'SortFlow',
|
|
30
|
-
components: {
|
|
31
|
-
Draggable
|
|
32
|
-
},
|
|
33
|
-
props: {
|
|
34
|
-
flowTypeCode: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: ''
|
|
37
|
-
},
|
|
38
|
-
defaultProcessKey: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: ''
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
data() {
|
|
44
|
-
return {
|
|
45
|
-
sortList: [],
|
|
46
|
-
loading:false
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
mounted() {
|
|
50
|
-
this.getSortInfo();
|
|
51
|
-
},
|
|
52
|
-
methods: {
|
|
53
|
-
saveSort(type){
|
|
54
|
-
if(type){
|
|
55
|
-
let arr = [];
|
|
56
|
-
this.sortList.map((item,index)=>{
|
|
57
|
-
arr.push({
|
|
58
|
-
id:item.id,
|
|
59
|
-
processDefId:item.processDefId,
|
|
60
|
-
sort:this.sortList.length - index
|
|
61
|
-
})
|
|
62
|
-
});
|
|
63
|
-
const params = {
|
|
64
|
-
url: setSort,
|
|
65
|
-
method: 'post',
|
|
66
|
-
format: false,
|
|
67
|
-
headers: {
|
|
68
|
-
Accept: 'application/json,text/plain',
|
|
69
|
-
'Content-Type': 'application/json;charset=UTF-8'
|
|
70
|
-
},
|
|
71
|
-
data: arr
|
|
72
|
-
};
|
|
73
|
-
this.loading=true;
|
|
74
|
-
util.ajax(params).then((res) => {
|
|
75
|
-
this.loading=false;
|
|
76
|
-
if (res.rCode === 0 || res.status=== 'success') {
|
|
77
|
-
this.$message.success('保存成功');
|
|
78
|
-
this.$emit('success',this.sortList)
|
|
79
|
-
}
|
|
80
|
-
}).catch(() => {
|
|
81
|
-
this.loading=false;
|
|
82
|
-
});
|
|
83
|
-
}else{
|
|
84
|
-
this.$emit('close')
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
getSortInfo() {
|
|
88
|
-
const params = {
|
|
89
|
-
url: toDefinitionChangeSort,
|
|
90
|
-
method: 'get',
|
|
91
|
-
params: {
|
|
92
|
-
flowTypeCode: this.flowTypeCode,
|
|
93
|
-
defaultProcessKey: this.defaultProcessKey
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
this.loading=true;
|
|
97
|
-
util.ajax(params).then((res) => {
|
|
98
|
-
this.loading=false;
|
|
99
|
-
if (res.rCode === 0) {
|
|
100
|
-
this.sortList = res.results.definitionList || [];
|
|
101
|
-
}
|
|
102
|
-
}).catch(() => {
|
|
103
|
-
this.loading=false;
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
</script>
|
|
109
|
-
|
|
110
|
-
<style></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="flow-sort-box"
|
|
4
|
+
style="height: 100%;overflow-y: auto;"
|
|
5
|
+
v-loading="loading"
|
|
6
|
+
element-loading-text="加载中..."
|
|
7
|
+
element-loading-spinner="el-icon-loading"
|
|
8
|
+
element-loading-background="rgba(255, 255,255, 0.8)">
|
|
9
|
+
<Draggable
|
|
10
|
+
class="flow-sort-draggable"
|
|
11
|
+
:list="sortList"
|
|
12
|
+
>
|
|
13
|
+
<es-button style="margin-top: 10px;" v-for="item in sortList" :key="item.id" plain>{{
|
|
14
|
+
item.name
|
|
15
|
+
}}</es-button></Draggable
|
|
16
|
+
>
|
|
17
|
+
<div class="flow-sort-btn">
|
|
18
|
+
<es-button type="primary" @click="saveSort(true)">保存</es-button>
|
|
19
|
+
<es-button @click="saveSort(false)">取消</es-button>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
import util from 'eoss-ui/src/utils/util';
|
|
26
|
+
import Draggable from 'vuedraggable';
|
|
27
|
+
import { toDefinitionChangeSort,setSort } from 'eoss-ui/src/config/api';
|
|
28
|
+
export default {
|
|
29
|
+
name: 'SortFlow',
|
|
30
|
+
components: {
|
|
31
|
+
Draggable
|
|
32
|
+
},
|
|
33
|
+
props: {
|
|
34
|
+
flowTypeCode: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: ''
|
|
37
|
+
},
|
|
38
|
+
defaultProcessKey: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: ''
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
data() {
|
|
44
|
+
return {
|
|
45
|
+
sortList: [],
|
|
46
|
+
loading:false
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
mounted() {
|
|
50
|
+
this.getSortInfo();
|
|
51
|
+
},
|
|
52
|
+
methods: {
|
|
53
|
+
saveSort(type){
|
|
54
|
+
if(type){
|
|
55
|
+
let arr = [];
|
|
56
|
+
this.sortList.map((item,index)=>{
|
|
57
|
+
arr.push({
|
|
58
|
+
id:item.id,
|
|
59
|
+
processDefId:item.processDefId,
|
|
60
|
+
sort:this.sortList.length - index
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
const params = {
|
|
64
|
+
url: setSort,
|
|
65
|
+
method: 'post',
|
|
66
|
+
format: false,
|
|
67
|
+
headers: {
|
|
68
|
+
Accept: 'application/json,text/plain',
|
|
69
|
+
'Content-Type': 'application/json;charset=UTF-8'
|
|
70
|
+
},
|
|
71
|
+
data: arr
|
|
72
|
+
};
|
|
73
|
+
this.loading=true;
|
|
74
|
+
util.ajax(params).then((res) => {
|
|
75
|
+
this.loading=false;
|
|
76
|
+
if (res.rCode === 0 || res.status=== 'success') {
|
|
77
|
+
this.$message.success('保存成功');
|
|
78
|
+
this.$emit('success',this.sortList)
|
|
79
|
+
}
|
|
80
|
+
}).catch(() => {
|
|
81
|
+
this.loading=false;
|
|
82
|
+
});
|
|
83
|
+
}else{
|
|
84
|
+
this.$emit('close')
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
getSortInfo() {
|
|
88
|
+
const params = {
|
|
89
|
+
url: toDefinitionChangeSort,
|
|
90
|
+
method: 'get',
|
|
91
|
+
params: {
|
|
92
|
+
flowTypeCode: this.flowTypeCode,
|
|
93
|
+
defaultProcessKey: this.defaultProcessKey
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
this.loading=true;
|
|
97
|
+
util.ajax(params).then((res) => {
|
|
98
|
+
this.loading=false;
|
|
99
|
+
if (res.rCode === 0) {
|
|
100
|
+
this.sortList = res.results.definitionList || [];
|
|
101
|
+
}
|
|
102
|
+
}).catch(() => {
|
|
103
|
+
this.loading=false;
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
</script>
|
|
109
|
+
|
|
110
|
+
<style></style>
|
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="es-from" v-loading="loading">
|
|
3
|
-
<el-form
|
|
4
|
-
ref="dynamicValidateForm"
|
|
5
|
-
:label-position="labelPosition"
|
|
6
|
-
:model="newData"
|
|
7
|
-
:label-width="labelWidth"
|
|
8
|
-
class="demo-dynamic"
|
|
9
|
-
>
|
|
10
|
-
<el-form-item
|
|
11
|
-
prop="sort"
|
|
12
|
-
label="排序号"
|
|
13
|
-
:rules="[{ required: true, message: `请输入排序号`, trigger: 'blur' }]"
|
|
14
|
-
>
|
|
15
|
-
<el-input
|
|
16
|
-
v-model="newData.sort"
|
|
17
|
-
:placeholder="`请输入入排序号`"
|
|
18
|
-
></el-input>
|
|
19
|
-
</el-form-item>
|
|
20
|
-
<el-form-item
|
|
21
|
-
prop="content"
|
|
22
|
-
label="内容"
|
|
23
|
-
:rules="[{ required: true, message: `请输入内容`, trigger: 'blur' }]"
|
|
24
|
-
>
|
|
25
|
-
<el-input
|
|
26
|
-
v-model="newData.content"
|
|
27
|
-
type="textarea"
|
|
28
|
-
:rows="3"
|
|
29
|
-
:placeholder="`请输入内容`"
|
|
30
|
-
></el-input>
|
|
31
|
-
</el-form-item>
|
|
32
|
-
<!-- <el-form-item> -->
|
|
33
|
-
<!-- </el-form-item> -->
|
|
34
|
-
</el-form>
|
|
35
|
-
<div style="text-align: right">
|
|
36
|
-
<el-button
|
|
37
|
-
v-show="showSubBtn"
|
|
38
|
-
type="primary"
|
|
39
|
-
size="small"
|
|
40
|
-
@click="submitForm('dynamicValidateForm')"
|
|
41
|
-
>
|
|
42
|
-
保存
|
|
43
|
-
</el-button>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
<script>
|
|
49
|
-
import { addCommonOpion, editCommonOpion } from 'eoss-ui/src/config/api';
|
|
50
|
-
import util from 'eoss-ui/src/utils/util';
|
|
51
|
-
export default {
|
|
52
|
-
name: 'ideas',
|
|
53
|
-
componentName: 'ideas',
|
|
54
|
-
props: {
|
|
55
|
-
data: {
|
|
56
|
-
type: Object,
|
|
57
|
-
default: () => {}
|
|
58
|
-
},
|
|
59
|
-
formItemList: {
|
|
60
|
-
type: Array,
|
|
61
|
-
default: () => []
|
|
62
|
-
},
|
|
63
|
-
labelWidth: {
|
|
64
|
-
type: String,
|
|
65
|
-
default: '100px'
|
|
66
|
-
},
|
|
67
|
-
showSubBtn: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: true
|
|
70
|
-
},
|
|
71
|
-
labelPosition: {
|
|
72
|
-
type: String,
|
|
73
|
-
default: 'left'
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
data() {
|
|
77
|
-
return {
|
|
78
|
-
formList: [],
|
|
79
|
-
loading: false,
|
|
80
|
-
newData: {},
|
|
81
|
-
index: 0
|
|
82
|
-
};
|
|
83
|
-
},
|
|
84
|
-
mounted() {
|
|
85
|
-
this.data.id ? this.add(this.data.id) : this.add();
|
|
86
|
-
},
|
|
87
|
-
methods: {
|
|
88
|
-
add(id) {
|
|
89
|
-
this.loading = true;
|
|
90
|
-
util
|
|
91
|
-
.ajax({
|
|
92
|
-
url: id ? editCommonOpion : addCommonOpion,
|
|
93
|
-
params: { id }
|
|
94
|
-
})
|
|
95
|
-
.then((res) => {
|
|
96
|
-
const { status, message, data } = res;
|
|
97
|
-
if (status == 'success') {
|
|
98
|
-
this.newData = data.bean;
|
|
99
|
-
} else {
|
|
100
|
-
this.$message.error(message || '系统错误,请联系管理员!');
|
|
101
|
-
}
|
|
102
|
-
this.loading = false;
|
|
103
|
-
})
|
|
104
|
-
.catch((err) => {
|
|
105
|
-
this.loading = false;
|
|
106
|
-
if (err.message && err.message !== 'canceled') {
|
|
107
|
-
this.$message.error(err.message);
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
},
|
|
111
|
-
submitForm(formName) {
|
|
112
|
-
this.$refs[formName].validate((valid) => {
|
|
113
|
-
if (valid) {
|
|
114
|
-
this.$emit('subMit', { addVisible: false, data: this.newData });
|
|
115
|
-
this.$emit('sub-mit', { addVisible: false, data: this.newData });
|
|
116
|
-
} else {
|
|
117
|
-
return false;
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="es-from" v-loading="loading">
|
|
3
|
+
<el-form
|
|
4
|
+
ref="dynamicValidateForm"
|
|
5
|
+
:label-position="labelPosition"
|
|
6
|
+
:model="newData"
|
|
7
|
+
:label-width="labelWidth"
|
|
8
|
+
class="demo-dynamic"
|
|
9
|
+
>
|
|
10
|
+
<el-form-item
|
|
11
|
+
prop="sort"
|
|
12
|
+
label="排序号"
|
|
13
|
+
:rules="[{ required: true, message: `请输入排序号`, trigger: 'blur' }]"
|
|
14
|
+
>
|
|
15
|
+
<el-input
|
|
16
|
+
v-model="newData.sort"
|
|
17
|
+
:placeholder="`请输入入排序号`"
|
|
18
|
+
></el-input>
|
|
19
|
+
</el-form-item>
|
|
20
|
+
<el-form-item
|
|
21
|
+
prop="content"
|
|
22
|
+
label="内容"
|
|
23
|
+
:rules="[{ required: true, message: `请输入内容`, trigger: 'blur' }]"
|
|
24
|
+
>
|
|
25
|
+
<el-input
|
|
26
|
+
v-model="newData.content"
|
|
27
|
+
type="textarea"
|
|
28
|
+
:rows="3"
|
|
29
|
+
:placeholder="`请输入内容`"
|
|
30
|
+
></el-input>
|
|
31
|
+
</el-form-item>
|
|
32
|
+
<!-- <el-form-item> -->
|
|
33
|
+
<!-- </el-form-item> -->
|
|
34
|
+
</el-form>
|
|
35
|
+
<div style="text-align: right">
|
|
36
|
+
<el-button
|
|
37
|
+
v-show="showSubBtn"
|
|
38
|
+
type="primary"
|
|
39
|
+
size="small"
|
|
40
|
+
@click="submitForm('dynamicValidateForm')"
|
|
41
|
+
>
|
|
42
|
+
保存
|
|
43
|
+
</el-button>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<script>
|
|
49
|
+
import { addCommonOpion, editCommonOpion } from 'eoss-ui/src/config/api';
|
|
50
|
+
import util from 'eoss-ui/src/utils/util';
|
|
51
|
+
export default {
|
|
52
|
+
name: 'ideas',
|
|
53
|
+
componentName: 'ideas',
|
|
54
|
+
props: {
|
|
55
|
+
data: {
|
|
56
|
+
type: Object,
|
|
57
|
+
default: () => {}
|
|
58
|
+
},
|
|
59
|
+
formItemList: {
|
|
60
|
+
type: Array,
|
|
61
|
+
default: () => []
|
|
62
|
+
},
|
|
63
|
+
labelWidth: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: '100px'
|
|
66
|
+
},
|
|
67
|
+
showSubBtn: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: true
|
|
70
|
+
},
|
|
71
|
+
labelPosition: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: 'left'
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
data() {
|
|
77
|
+
return {
|
|
78
|
+
formList: [],
|
|
79
|
+
loading: false,
|
|
80
|
+
newData: {},
|
|
81
|
+
index: 0
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
mounted() {
|
|
85
|
+
this.data.id ? this.add(this.data.id) : this.add();
|
|
86
|
+
},
|
|
87
|
+
methods: {
|
|
88
|
+
add(id) {
|
|
89
|
+
this.loading = true;
|
|
90
|
+
util
|
|
91
|
+
.ajax({
|
|
92
|
+
url: id ? editCommonOpion : addCommonOpion,
|
|
93
|
+
params: { id }
|
|
94
|
+
})
|
|
95
|
+
.then((res) => {
|
|
96
|
+
const { status, message, data } = res;
|
|
97
|
+
if (status == 'success') {
|
|
98
|
+
this.newData = data.bean;
|
|
99
|
+
} else {
|
|
100
|
+
this.$message.error(message || '系统错误,请联系管理员!');
|
|
101
|
+
}
|
|
102
|
+
this.loading = false;
|
|
103
|
+
})
|
|
104
|
+
.catch((err) => {
|
|
105
|
+
this.loading = false;
|
|
106
|
+
if (err.message && err.message !== 'canceled') {
|
|
107
|
+
this.$message.error(err.message);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
},
|
|
111
|
+
submitForm(formName) {
|
|
112
|
+
this.$refs[formName].validate((valid) => {
|
|
113
|
+
if (valid) {
|
|
114
|
+
this.$emit('subMit', { addVisible: false, data: this.newData });
|
|
115
|
+
this.$emit('sub-mit', { addVisible: false, data: this.newData });
|
|
116
|
+
} else {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
</script>
|
|
@@ -545,7 +545,7 @@ export default {
|
|
|
545
545
|
radioList: [],
|
|
546
546
|
nextCurrentOrgselectUserList: [],
|
|
547
547
|
showCustomLimitTimeText: false,
|
|
548
|
-
activeNames: '',
|
|
548
|
+
activeNames: '1',
|
|
549
549
|
selectUserList: [],
|
|
550
550
|
defaultNextNode: '',
|
|
551
551
|
presetUserJson: [],
|
|
@@ -1137,7 +1137,7 @@ export default {
|
|
|
1137
1137
|
if (this.isHideOtherOrg) {
|
|
1138
1138
|
params.nextOtherOrgObj = nextOtherOrgObj;
|
|
1139
1139
|
}
|
|
1140
|
-
if (this.activeNames != '1') delete params.customPresetUserJson;
|
|
1140
|
+
if (this.activeNames != '1' || !this.isCustomPreset) delete params.customPresetUserJson;
|
|
1141
1141
|
if (this.isFreeStartFlow || this.formType === 'readTransfer') {
|
|
1142
1142
|
let newParm = {};
|
|
1143
1143
|
newParm.copyHistory =
|
|
@@ -1275,7 +1275,7 @@ export default {
|
|
|
1275
1275
|
if (this.isHideOtherOrg) {
|
|
1276
1276
|
params.nextOtherOrgObj = nextOtherOrgObj;
|
|
1277
1277
|
}
|
|
1278
|
-
if (this.activeNames != '1') delete params.customPresetUserJson;
|
|
1278
|
+
if (this.activeNames != '1' || !this.isCustomPreset) delete params.customPresetUserJson;
|
|
1279
1279
|
if (this.isFreeStartFlow || this.formType === 'readTransfer') {
|
|
1280
1280
|
let newParm = {};
|
|
1281
1281
|
newParm.copyHistory = this.copyHistory === 'needCopyPendedHistory';
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-table
|
|
3
|
-
:data="dataList"
|
|
4
|
-
border
|
|
5
|
-
stripe
|
|
6
|
-
style="width: 100%; margin-top: 10px"
|
|
7
|
-
>
|
|
8
|
-
<el-table-column
|
|
9
|
-
v-for="item of tableHead"
|
|
10
|
-
:key="item.id"
|
|
11
|
-
align="center"
|
|
12
|
-
:prop="item.prop"
|
|
13
|
-
:label="item.lable"
|
|
14
|
-
:width="item.prop != 'content' && 180"
|
|
15
|
-
v-bind="$attrs"
|
|
16
|
-
></el-table-column>
|
|
17
|
-
<el-table-column label="操作" width="100" align="center">
|
|
18
|
-
<template v-if="scope.row.userid" slot-scope="scope">
|
|
19
|
-
<el-button type="text" size="small" @click="handleClick(scope.row)"
|
|
20
|
-
>编辑</el-button
|
|
21
|
-
>
|
|
22
|
-
<el-button type="text" size="small" @click="delClick(scope.row)"
|
|
23
|
-
>删除</el-button
|
|
24
|
-
>
|
|
25
|
-
</template>
|
|
26
|
-
</el-table-column>
|
|
27
|
-
</el-table>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<script>
|
|
31
|
-
export default {
|
|
32
|
-
name: 'Table',
|
|
33
|
-
componentName: 'Table',
|
|
34
|
-
props: {
|
|
35
|
-
dataList: {
|
|
36
|
-
type: Array,
|
|
37
|
-
default: () => []
|
|
38
|
-
},
|
|
39
|
-
tableHead: {
|
|
40
|
-
type: Array,
|
|
41
|
-
default: () => [
|
|
42
|
-
{ id: 0, lable: '内容', prop: 'content' },
|
|
43
|
-
{ id: 1, lable: '用户', prop: 'username' }
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
methods: {
|
|
48
|
-
handleClick(val) {
|
|
49
|
-
this.$emit('upDateClick', val);
|
|
50
|
-
this.$emit('up-date-click', val);
|
|
51
|
-
},
|
|
52
|
-
delClick(val) {
|
|
53
|
-
this.$emit('delClick', val);
|
|
54
|
-
this.$emit('del-click', val);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<el-table
|
|
3
|
+
:data="dataList"
|
|
4
|
+
border
|
|
5
|
+
stripe
|
|
6
|
+
style="width: 100%; margin-top: 10px"
|
|
7
|
+
>
|
|
8
|
+
<el-table-column
|
|
9
|
+
v-for="item of tableHead"
|
|
10
|
+
:key="item.id"
|
|
11
|
+
align="center"
|
|
12
|
+
:prop="item.prop"
|
|
13
|
+
:label="item.lable"
|
|
14
|
+
:width="item.prop != 'content' && 180"
|
|
15
|
+
v-bind="$attrs"
|
|
16
|
+
></el-table-column>
|
|
17
|
+
<el-table-column label="操作" width="100" align="center">
|
|
18
|
+
<template v-if="scope.row.userid" slot-scope="scope">
|
|
19
|
+
<el-button type="text" size="small" @click="handleClick(scope.row)"
|
|
20
|
+
>编辑</el-button
|
|
21
|
+
>
|
|
22
|
+
<el-button type="text" size="small" @click="delClick(scope.row)"
|
|
23
|
+
>删除</el-button
|
|
24
|
+
>
|
|
25
|
+
</template>
|
|
26
|
+
</el-table-column>
|
|
27
|
+
</el-table>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script>
|
|
31
|
+
export default {
|
|
32
|
+
name: 'Table',
|
|
33
|
+
componentName: 'Table',
|
|
34
|
+
props: {
|
|
35
|
+
dataList: {
|
|
36
|
+
type: Array,
|
|
37
|
+
default: () => []
|
|
38
|
+
},
|
|
39
|
+
tableHead: {
|
|
40
|
+
type: Array,
|
|
41
|
+
default: () => [
|
|
42
|
+
{ id: 0, lable: '内容', prop: 'content' },
|
|
43
|
+
{ id: 1, lable: '用户', prop: 'username' }
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
methods: {
|
|
48
|
+
handleClick(val) {
|
|
49
|
+
this.$emit('upDateClick', val);
|
|
50
|
+
this.$emit('up-date-click', val);
|
|
51
|
+
},
|
|
52
|
+
delClick(val) {
|
|
53
|
+
this.$emit('delClick', val);
|
|
54
|
+
this.$emit('del-click', val);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
</script>
|
|
Binary file
|