vue2-client 1.11.4 → 1.11.6-alpha
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/.babelrc +3 -0
- package/babel.config.js +18 -21
- package/jest.config.js +22 -21
- package/package.json +5 -4
- package/src/base-client/components/common/CitySelect/CitySelect.vue +366 -342
- package/src/base-client/components/common/Upload/Upload.vue +322 -322
- package/src/base-client/components/common/XDescriptions/XDescriptionsGroup.vue +314 -304
- package/src/base-client/components/common/XDescriptions/demo.vue +51 -50
- package/src/base-client/components/common/XFormGroup/demo.vue +39 -46
- package/src/base-client/components/common/XFormTable/demo.vue +60 -60
- package/src/components/STable/index.js +426 -426
- package/src/expression/ExpressionRunner.js +26 -0
- package/src/expression/TestExpression.js +508 -0
- package/src/expression/core/Delegate.js +113 -0
- package/src/expression/core/Expression.js +1323 -0
- package/src/expression/core/Program.js +933 -0
- package/src/expression/core/Token.js +27 -0
- package/src/expression/enums/ExpressionType.js +81 -0
- package/src/expression/enums/TokenType.js +11 -0
- package/src/expression/exception/BreakWayException.js +2 -0
- package/src/expression/exception/ContinueWayException.js +2 -0
- package/src/expression/exception/ExpressionException.js +28 -0
- package/src/expression/exception/ReturnWayException.js +14 -0
- package/src/expression/exception/ServiceException.js +22 -0
- package/src/expression/instances/JSONArray.js +48 -0
- package/src/expression/instances/JSONObject.js +122 -0
- package/src/expression/instances/LogicConsole.js +45 -0
- package/src/expression/ts/ExpressionRunner.ts +28 -0
- package/src/expression/ts/TestExpression.ts +509 -0
- package/src/expression/ts/core/Delegate.ts +114 -0
- package/src/expression/ts/core/Expression.ts +1309 -0
- package/src/expression/ts/core/Program.ts +950 -0
- package/src/expression/ts/core/Token.ts +29 -0
- package/src/expression/ts/enums/ExpressionType.ts +81 -0
- package/src/expression/ts/enums/TokenType.ts +13 -0
- package/src/expression/ts/exception/BreakWayException.ts +2 -0
- package/src/expression/ts/exception/ContinueWayException.ts +2 -0
- package/src/expression/ts/exception/ExpressionException.ts +28 -0
- package/src/expression/ts/exception/ReturnWayException.ts +14 -0
- package/src/expression/ts/exception/ServiceException.ts +22 -0
- package/src/expression/ts/instances/JSONArray.ts +48 -0
- package/src/expression/ts/instances/JSONObject.ts +109 -0
- package/src/expression/ts/instances/LogicConsole.ts +32 -0
- package/src/logic/LogicRunner.js +67 -0
- package/src/logic/TestLogic.js +13 -0
- package/src/logic/plugins/common/DateTools.js +32 -0
- package/src/logic/plugins/index.js +5 -0
- package/src/logic/ts/LogicRunner.ts +67 -0
- package/src/logic/ts/TestLogic.ts +13 -0
- package/src/pages/LogicCallExample/index.vue +30 -0
- package/src/router/async/router.map.js +4 -2
- package/src/services/user.js +2 -0
- package/src/store/mutation-types.js +1 -0
- package/src/utils/EncryptUtil.js +23 -0
- package/src/utils/indexedDB.js +234 -234
- package/src/utils/request.js +382 -362
- package/test/request.test.js +17 -0
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import XDescriptionsGroup from '@vue2-client/base-client/components/common/XDescriptions/XDescriptionsGroup.vue'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
methods: {
|
|
18
|
-
open () {
|
|
19
|
-
runLogic('querySingleUserDetail', {
|
|
20
|
-
|
|
21
|
-
}, 'af-revenue').then(res => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1
|
+
<script>
|
|
2
|
+
import XDescriptionsGroup from '@vue2-client/base-client/components/common/XDescriptions/XDescriptionsGroup.vue'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: 'Demo',
|
|
6
|
+
components: { XDescriptionsGroup },
|
|
7
|
+
data () {
|
|
8
|
+
return {
|
|
9
|
+
visible: false,
|
|
10
|
+
userinfo: {
|
|
11
|
+
f_userinfo_code: '143400000003',
|
|
12
|
+
f_gasbrand: '测试表品牌',
|
|
13
|
+
f_address: '11'
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
methods: {
|
|
18
|
+
open () {
|
|
19
|
+
// runLogic('querySingleUserDetail', {
|
|
20
|
+
// f_userinfo_code: '143400000003'
|
|
21
|
+
// }, 'af-revenue').then(res => {
|
|
22
|
+
// this.userinfo = res
|
|
23
|
+
// this.visible = true
|
|
24
|
+
// })
|
|
25
|
+
this.visible = true
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<div>
|
|
33
|
+
<a-button @click="open">
|
|
34
|
+
展开详情
|
|
35
|
+
</a-button>
|
|
36
|
+
<a-drawer
|
|
37
|
+
title="描述列表详情"
|
|
38
|
+
placement="right"
|
|
39
|
+
width="65vw"
|
|
40
|
+
:body-style="{height:'92%'}"
|
|
41
|
+
:visible="visible"
|
|
42
|
+
@close="()=>{visible = false}"
|
|
43
|
+
>
|
|
44
|
+
<x-descriptions-group config-name="测试Config" :showLeftTab="true" :data="userinfo" service-name="af-system"/>
|
|
45
|
+
</a-drawer>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<style scoped lang="less">
|
|
50
|
+
|
|
51
|
+
</style>
|
|
@@ -1,46 +1,39 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import XFormGroup from '@vue2-client/base-client/components/common/XFormGroup/XFormGroup.vue'
|
|
3
|
-
import { getConfigByNameAsync } from '@vue2-client/services/api/common'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
name: 'Demo',
|
|
7
|
-
components: { XFormGroup },
|
|
8
|
-
data () {
|
|
9
|
-
return {
|
|
10
|
-
visible: true
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
created () {
|
|
14
|
-
getConfigByNameAsync('
|
|
15
|
-
this.$refs.xFormGroupDemo.init({
|
|
16
|
-
...res,
|
|
17
|
-
serviceName: 'af-revenue',
|
|
18
|
-
showLeftTab: true,
|
|
19
|
-
})
|
|
20
|
-
})
|
|
21
|
-
},
|
|
22
|
-
methods: {
|
|
23
|
-
submitForm () {
|
|
24
|
-
this.$refs.xFormGroupDemo.onSubmit().then(res => {
|
|
25
|
-
console.log('所有表单的结果', res)
|
|
26
|
-
})
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
</script>
|
|
31
|
-
|
|
32
|
-
<template>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<x-form-group ref="xFormGroupDemo"></x-form-group>
|
|
41
|
-
</a-modal>
|
|
42
|
-
</template>
|
|
43
|
-
|
|
44
|
-
<style scoped lang="less">
|
|
45
|
-
|
|
46
|
-
</style>
|
|
1
|
+
<script>
|
|
2
|
+
import XFormGroup from '@vue2-client/base-client/components/common/XFormGroup/XFormGroup.vue'
|
|
3
|
+
import { getConfigByNameAsync } from '@vue2-client/services/api/common'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
name: 'Demo',
|
|
7
|
+
components: { XFormGroup },
|
|
8
|
+
data () {
|
|
9
|
+
return {
|
|
10
|
+
visible: true
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
created () {
|
|
14
|
+
getConfigByNameAsync('testFormGroup', 'af-revenue').then(res => {
|
|
15
|
+
this.$refs.xFormGroupDemo.init({
|
|
16
|
+
...res,
|
|
17
|
+
serviceName: 'af-revenue',
|
|
18
|
+
showLeftTab: true,
|
|
19
|
+
})
|
|
20
|
+
})
|
|
21
|
+
},
|
|
22
|
+
methods: {
|
|
23
|
+
submitForm () {
|
|
24
|
+
this.$refs.xFormGroupDemo.onSubmit().then(res => {
|
|
25
|
+
console.log('所有表单的结果', res)
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
|
|
34
|
+
<x-form-group ref="xFormGroupDemo"></x-form-group>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<style scoped lang="less">
|
|
38
|
+
|
|
39
|
+
</style>
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-card :bordered="false">
|
|
3
|
-
<!-- <a-button @click="()=>{queryParamsName = 'MeterBookUnallocatedUserCRUD'}">测试1</a-button>-->
|
|
4
|
-
<!-- <a-button @click="()=>{queryParamsName = 'MeterBookUnallocatedAreaCRUD'}">测试2</a-button>-->
|
|
5
|
-
<x-form-table
|
|
6
|
-
title="示例表单"
|
|
7
|
-
:queryParamsName="queryParamsName"
|
|
8
|
-
:fixedAddForm="fixedAddForm"
|
|
9
|
-
service-name="af-system"
|
|
10
|
-
@action="action"
|
|
11
|
-
@columnClick="columnClick"
|
|
12
|
-
ref="xFormTable">
|
|
13
|
-
</x-form-table>
|
|
14
|
-
</a-card>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
|
|
19
|
-
import { microDispatch } from '@vue2-client/utils/microAppUtils'
|
|
20
|
-
export default {
|
|
21
|
-
name: 'Demo',
|
|
22
|
-
components: {
|
|
23
|
-
XFormTable
|
|
24
|
-
},
|
|
25
|
-
data () {
|
|
26
|
-
return {
|
|
27
|
-
// 查询配置文件名
|
|
28
|
-
queryParamsName: 'ceshiCRUD',
|
|
29
|
-
// 查询配置左侧tree
|
|
30
|
-
// xTreeConfigName: 'addressType',
|
|
31
|
-
// 新增表单固定值
|
|
32
|
-
fixedAddForm: {},
|
|
33
|
-
// 是否显示详情抽屉
|
|
34
|
-
detailVisible: false,
|
|
35
|
-
// 当前记录
|
|
36
|
-
record: {}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
methods: {
|
|
40
|
-
columnClick (key, value, record) {
|
|
41
|
-
microDispatch({ type: 'v3route', path: '/bingliguanli/dianzibingliluru', props: { selected: arguments[0].his_f_admission_id } })
|
|
42
|
-
},
|
|
43
|
-
action (record, id, actionType) {
|
|
44
|
-
this.detailVisible = true
|
|
45
|
-
console.log('触发了详情操作', record, id, actionType)
|
|
46
|
-
},
|
|
47
|
-
onClose () {
|
|
48
|
-
this.detailVisible = false
|
|
49
|
-
// 关闭详情之后重新查询表单
|
|
50
|
-
this.$refs.xFormTable.refreshTable(true)
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
computed: {
|
|
54
|
-
},
|
|
55
|
-
}
|
|
56
|
-
</script>
|
|
57
|
-
|
|
58
|
-
<style scoped>
|
|
59
|
-
|
|
60
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<a-card :bordered="false">
|
|
3
|
+
<!-- <a-button @click="()=>{queryParamsName = 'MeterBookUnallocatedUserCRUD'}">测试1</a-button>-->
|
|
4
|
+
<!-- <a-button @click="()=>{queryParamsName = 'MeterBookUnallocatedAreaCRUD'}">测试2</a-button>-->
|
|
5
|
+
<x-form-table
|
|
6
|
+
title="示例表单"
|
|
7
|
+
:queryParamsName="queryParamsName"
|
|
8
|
+
:fixedAddForm="fixedAddForm"
|
|
9
|
+
service-name="af-system"
|
|
10
|
+
@action="action"
|
|
11
|
+
@columnClick="columnClick"
|
|
12
|
+
ref="xFormTable">
|
|
13
|
+
</x-form-table>
|
|
14
|
+
</a-card>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
|
|
19
|
+
import { microDispatch } from '@vue2-client/utils/microAppUtils'
|
|
20
|
+
export default {
|
|
21
|
+
name: 'Demo',
|
|
22
|
+
components: {
|
|
23
|
+
XFormTable
|
|
24
|
+
},
|
|
25
|
+
data () {
|
|
26
|
+
return {
|
|
27
|
+
// 查询配置文件名
|
|
28
|
+
queryParamsName: 'ceshiCRUD',
|
|
29
|
+
// 查询配置左侧tree
|
|
30
|
+
// xTreeConfigName: 'addressType',
|
|
31
|
+
// 新增表单固定值
|
|
32
|
+
fixedAddForm: {},
|
|
33
|
+
// 是否显示详情抽屉
|
|
34
|
+
detailVisible: false,
|
|
35
|
+
// 当前记录
|
|
36
|
+
record: {}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
columnClick (key, value, record) {
|
|
41
|
+
microDispatch({ type: 'v3route', path: '/bingliguanli/dianzibingliluru', props: { selected: arguments[0].his_f_admission_id } })
|
|
42
|
+
},
|
|
43
|
+
action (record, id, actionType) {
|
|
44
|
+
this.detailVisible = true
|
|
45
|
+
console.log('触发了详情操作', record, id, actionType)
|
|
46
|
+
},
|
|
47
|
+
onClose () {
|
|
48
|
+
this.detailVisible = false
|
|
49
|
+
// 关闭详情之后重新查询表单
|
|
50
|
+
this.$refs.xFormTable.refreshTable(true)
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
computed: {
|
|
54
|
+
},
|
|
55
|
+
}
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<style scoped>
|
|
59
|
+
|
|
60
|
+
</style>
|