centaline-data-driven 1.1.53 → 1.1.57

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.
Files changed (32) hide show
  1. package/build/centaline/webpack.centaline.conf.js +1 -1
  2. package/package.json +1 -1
  3. package/src/Edit.vue +36 -2
  4. package/src/Form.vue +6 -21
  5. package/src/SearchList.vue +1 -1
  6. package/src/SearchTree.vue +6 -2
  7. package/src/centaline/css/common.css +10 -0
  8. package/src/centaline/css/max.css +2 -2
  9. package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +3 -3
  10. package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +3 -3
  11. package/src/centaline/dynamicFile/src/dynamicFile.vue +11 -5
  12. package/src/centaline/dynamicForm/src/dynamicForm.vue +2 -2
  13. package/src/centaline/dynamicHyperLink/index.js +1 -1
  14. package/src/centaline/dynamicL/src/dynamicL.vue +1 -1
  15. package/src/centaline/dynamicPlaceHolder/index.js +1 -1
  16. package/src/centaline/dynamicSearchList/src/dynamicTableStatistics.vue +11 -11
  17. package/src/centaline/dynamicSo/src/dynamicSo.vue +1 -0
  18. package/src/centaline/dynamicSos/src/dynamicSos.vue +1 -0
  19. package/src/centaline/imgPreview/src/imgPreview.vue +2 -2
  20. package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
  21. package/src/main.js +4 -12
  22. package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
  23. package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
  24. package/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache +0 -0
  25. package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/db.lock +0 -0
  26. package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/storage.ide +0 -0
  27. package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +0 -73
  28. package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +0 -29
  29. package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.targets +0 -15
  30. package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.AssemblyInfo.cs +0 -23
  31. package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.RazorAssemblyInfo.cs +0 -20
  32. package/obj/project.assets.json +0 -11907
@@ -79,7 +79,7 @@ module.exports = {
79
79
  amd: 'vue'
80
80
  },
81
81
  'element-ui': 'Element',
82
- 'element-ui/packages/image/src/image-viewer': 'image-viewer'
82
+ // 'element-ui/packages/image/src/image-viewer': 'image-viewer'
83
83
  },
84
84
  devtool: '#eval-source-map'
85
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.1.53",
3
+ "version": "1.1.57",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Edit.vue CHANGED
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div id="app">
3
- <formListTable></formListTable>
3
+ <!-- <formListTable></formListTable> -->
4
+ <el-button @click="copyField">test</el-button>
4
5
  </div>
5
6
 
6
7
  </template>
@@ -21,7 +22,40 @@
21
22
  TestEdit() {
22
23
  this.$api.post('http://10.88.22.52:2828//api/values/edit', { content: this.template }, (data) => {
23
24
  });
24
- }
25
+ },
26
+ copyField()
27
+ {
28
+ debugger;
29
+ var self = this;
30
+ var dialogOption = {
31
+ title: "复制控件",
32
+ content: [
33
+ {
34
+ component: "ct-form",
35
+ attrs: {
36
+ showTitle: false,
37
+ api: "/forminfo/readTargetDetail",
38
+ apiParam: {
39
+ formId: "1ae27876-a938-4ea5-aeab-fb2a7b067a2f",
40
+ actionType: 3,
41
+ },
42
+ width: "1300px",
43
+ height: "650px",
44
+ },
45
+ on: {
46
+ submit(ev) {
47
+ self.$common.closeDialog(dialogOption.dialog);
48
+ },
49
+ closeDialog() {
50
+
51
+ },
52
+ },
53
+ },
54
+ ],
55
+ };
56
+ self.$common.openDialog(dialogOption);
57
+
58
+ },
25
59
  },
26
60
  created() {
27
61
  //this.$api.get('http://10.88.22.52:2828//api/values/test', null, (data) => {
package/src/Form.vue CHANGED
@@ -1,39 +1,24 @@
1
1
  <template>
2
2
  <div id="app-form" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
- <!-- <ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form> -->
3
+ <ct-form :api="'/property/readDetail'" :apiParam="apiParam"></ct-form>
4
4
  <!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
5
5
  <!--:api="'FormSample/formdata'"-->
6
6
  <!--<ct-form :source="formdata.content"></ct-form>-->
7
7
  <!--<ct-form :api="'/api/form/formdata/contractDetail'" :apiParam="apiParam"></ct-form>-->
8
8
  <!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
9
- <!-- <ct-form :api="'/forminfo/readDetail'" :apiParam="apiParam"></ct-form> -->
10
- <!-- <ct-form :api="'PropertyKey/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
11
- <ct-form :api="'Worklist/getLayoutOfAudit'" :apiParam="apiParam"></ct-form>
12
- <!-- <ct-form :api="'/api/distribution/transaction/add'" :apiParam="apiParam"></ct-form> -->
13
9
  <ct-dialog-list></ct-dialog-list>
14
10
  </div>
15
11
  </template>
16
12
 
17
13
  <script>
18
14
  export default {
19
- name: 'DataDrivenForm',
15
+ name: 'App',
20
16
  data() {
21
17
  return {
22
- // apiParam: {originalTraId: "1481454808274235394", actionType: 3, pageTitle: "成交报告", pageOnly: true} ,
23
- // apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
24
- // apiParam: {SN: "13557_132", UserID: "wuhan3"},
25
- // apiParam: {actionType: 3,formId: "2c12649f-09c5-4aa9-8011-b6d1c7b56a41"} ,
26
- // apiParam: {chanceID: "1", actionType: 2} ,
27
- apiParam: {worklistID: "1491261975253094400", actionType: 2}
28
- // apiParam: {
29
- // actionType: 2,
30
- // agentId: "1450283160825425922",
31
- // estateId: "B6E6B3D8-FDF2-4AF8-91E6-B348D637E993",
32
- // pageOnly: true,
33
- // pageStyle: 2,
34
- // propertyId: "14102015-0736-9265-205A-451687BF7062",
35
- // relProId: "1475708315466829833",
36
- // }
18
+ apiParam: {
19
+ actionType: 2,
20
+ jsonData: {searchFields: {fields: []}}
21
+ } ,
37
22
  }
38
23
  },
39
24
  methods: {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="app-search" style="height:100%;position: fixed;">
3
3
  <!-- <ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'" :searchDataApi="'/api/third-dept-tran/tran-list'"></ct-searchlist> -->
4
- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist>
4
+ <ct-searchlist :searchConditionApi="'/system/menulist/getLayoutOfSearch'" :searchDataApi="'/system/menulist/getList'"></ct-searchlist>
5
5
  <!--<ct-searchlist :searchConditionApi="'/api/invoice-info/search-condition'" :searchDataApi="'/api/invoice-info/list'" :searchDataStatisticsApi="'api/ContractList/GetLayoutOfStatisticsTool'" :apiParam="para"></ct-searchlist>-->
6
6
  <ct-dialog-list></ct-dialog-list>
7
7
  </div>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="app-Tree" style="height:100%;position: fixed;width:100%">
3
3
  <ct-treelist :flagsearch="true" :apiParam="apiParam"
4
- :searchConditionApi="'/SystemParameterCatalogList/getLayoutOfSearch'"
4
+ :searchConditionApi="'/SystemParameterCatalogList/getListOfSearchModel'"
5
5
  :searchDataApi="'/SystemParameterCatalogList/getListOfSearchModel'" @loaded="loaded"></ct-treelist>
6
6
  <ct-dialog-list></ct-dialog-list>
7
7
  </div>
@@ -14,7 +14,11 @@
14
14
  data() {
15
15
  return {
16
16
  isShowSearchlist: false,
17
- apiParam: {}
17
+ apiParam: {
18
+ flagSearch: true,
19
+ searchFields: {},
20
+ pageAttribute: {pageIndex: 1}
21
+ }
18
22
  }
19
23
  },
20
24
  methods: {
@@ -736,8 +736,18 @@ html {
736
736
  .ct-dialog_body .el-card__body{
737
737
  padding: 0px 3px 10px 10px!important;
738
738
  }
739
+ .ct-text .ct-font-size-mini{
740
+ padding-left: 5px!important;
741
+ }
739
742
  .ct-text .ct-font-size-mini span{
740
743
  display: inline-block;
741
744
  margin-top: 1px;
742
745
  color: #388cd3;
746
+ }
747
+ .lableinput .el-input__inner{
748
+ border: none !important;
749
+ }
750
+ /* 重置弹层引用列表样式居上高度 */
751
+ .ct-dialog_content .ct-searchtable{
752
+ margin-top: 0px!important;
743
753
  }
@@ -146,7 +146,7 @@
146
146
  width:4px;
147
147
  height:6px;
148
148
  }
149
- .ct-table .cell:last-child{
149
+ .ct-table-auto{
150
150
  white-space: nowrap;
151
151
  }
152
152
  .max-cover-list-item .el-input__icon{
@@ -205,4 +205,4 @@
205
205
  .el-input-group__append, .el-input-group__prepend {
206
206
  color: #666;
207
207
  border-color:#cecece;
208
- }
208
+ }
@@ -33,7 +33,7 @@
33
33
 
34
34
  <div class="head-but">
35
35
  <button type="button" class="el-button f-wb el-button--default el-button--mini max-default">去出租 &gt;&gt;</button>
36
- <button type="button" class="el-button el-button--info el-button--mini max-report">
36
+ <button type="button" class="el-button el-button--info el-button--mini max-report rel">
37
37
  <img src="../../../assets/dian.png" alt="" class="report">
38
38
  <ul class="report-cont">
39
39
  <li>举报房源</li>
@@ -753,14 +753,14 @@
753
753
  }
754
754
  .report-cont{
755
755
  display: none;
756
- width: 80px;
756
+ width: 115px;
757
757
  background: #fff;
758
758
  -webkit-box-shadow: 0 0 10px 0 rgb(0 0 0 / 15%);
759
759
  box-shadow: 0 0 10px 0 rgb(0 0 0 / 15%);
760
760
  border-radius: 5px;
761
761
  list-style: none;
762
762
  position: absolute;
763
- left: -22px;
763
+ left: -61px;
764
764
  top: 26px;
765
765
  padding: 5px 0;
766
766
  color: #333;
@@ -38,7 +38,7 @@
38
38
  :is="model.actionRouters[1].is" :vmodel="model.actionRouters[1]" :api="model.optionApi"></component>
39
39
  </div>
40
40
  <div class="mt5">
41
- <button type="button" class="el-button el-button--info el-button--mini max-report"
41
+ <button type="button" class="el-button el-button--info el-button--mini max-report rel"
42
42
  v-if="model.actionRoutersMoreList !== null">
43
43
  <img src="../../../assets/dian.png" alt="" class="report">
44
44
  <ul class="report-cont">
@@ -765,14 +765,14 @@
765
765
  }
766
766
  .report-cont{
767
767
  display: none;
768
- width: 80px;
768
+ width: 115px;
769
769
  background: #fff;
770
770
  -webkit-box-shadow: 0 0 10px 0 rgb(0 0 0 / 15%);
771
771
  box-shadow: 0 0 10px 0 rgb(0 0 0 / 15%);
772
772
  border-radius: 5px;
773
773
  list-style: none;
774
774
  position: absolute;
775
- left: -22px;
775
+ left: -61px;
776
776
  top: 26px;
777
777
  padding: 5px 0;
778
778
  color: #333;
@@ -13,9 +13,10 @@
13
13
  :headers="headers"
14
14
  :before-upload="beforeUploadProcess"
15
15
  :on-success="handleAvatarSuccess"
16
- :on-progress="uploadProcess">
16
+ :on-progress="uploadProcess"
17
+ >
17
18
  <i slot="default" class="el-icon-plus"></i>
18
- <div slot="tip" class="el-upload__tip errorMessage" v-show="!valid">{{validMessage}}</div>
19
+ <div slot="tip" class="el-upload__tip errorMessage" v-show="!imgValid">{{validMessage}}</div>
19
20
  <div slot="file" slot-scope="{file}" :title="file.fileName">
20
21
  <div class="cover-list-item">
21
22
  <el-image fit="fill" :src="file.url"
@@ -27,7 +28,7 @@
27
28
  <span class="cover-list-item-span-delete" v-if="!model.lock && file.rightDel">
28
29
  <i class="el-icon-delete" @click="handleRemove(file)"></i>
29
30
  </span>
30
- <span class="cover-list-item-span">
31
+ <span class="cover-list-item-span" v-if="model.paramName">
31
32
  <!--锁定-->
32
33
  <span v-if="model.lock || !file.rightEdit" class="el-dropdown-link">
33
34
  &nbsp;{{file.mediaLabelName}}
@@ -65,6 +66,7 @@
65
66
  },
66
67
  data() {
67
68
  return {
69
+ imgValid:true,
68
70
  };
69
71
  },
70
72
  computed: {
@@ -107,7 +109,7 @@
107
109
  },
108
110
  handlePictureCardPreview(file) {
109
111
  if (this.$common.isAssetTypeAnImage(this.getSuffix(file))) {
110
- //this.$openPreview([file.mediaUrl]);
112
+ // this.$openPreview([file.mediaUrl]);
111
113
  }
112
114
  else {
113
115
  if (file.rightDownload) {
@@ -153,10 +155,14 @@
153
155
  },
154
156
  //上传之前的钩子
155
157
  beforeUploadProcess(files) {
158
+ let that=this;
156
159
  if (this.model.max) {
157
160
  if (this.model.getfileListLength() >= this.model.max) {
158
161
  this.validMessage = "附件最多" + this.model.max + "个";
159
- this.valid = false;
162
+ this.imgValid = false;
163
+ setTimeout(() => {
164
+ that.imgValid = true;
165
+ }, 3000)
160
166
  return false;
161
167
  }
162
168
  }
@@ -33,7 +33,7 @@
33
33
  </el-tabs>
34
34
  <!--分组-->
35
35
  <el-collapse v-else v-model="collapseActiveNames" @change="collapseHandleChange">
36
- <el-collapse-item v-for="(item, index) in collapse" v-if="item.show !== false" :key="index" :title="item.label" :name="index">
36
+ <el-collapse-item v-for="(item, index) in collapse" v-if="item.show !== false" :key="index" :title="item.label" :name="index" :disabled="item.lock">
37
37
  <template slot="title">
38
38
  <i class="sign"></i>
39
39
  {{item.label}}
@@ -167,7 +167,7 @@
167
167
  }
168
168
  else if (v.is === 'ct-group') {
169
169
  self.collapse.push(v);
170
- if (v.isExpand) {
170
+ if (v.lock || v.isExpand) {
171
171
  realCollapseActiveNames.push(self.collapse.length - 1);
172
172
  }
173
173
  self.collapseActiveNames.push(self.collapse.length - 1);
@@ -8,4 +8,4 @@ if (typeof window !== 'undefined' && window.Vue) {
8
8
  window.Vue.use(dynamicHyperLink);
9
9
  }
10
10
 
11
- export default dynamicHyperLink
11
+ export default dynamicHyperLink
@@ -2,7 +2,7 @@
2
2
  <div class="field-top">
3
3
  <div class="ct-text" style="width:100%;display:flex" v-if="model !== null">
4
4
  <el-input v-model="model.labelValue" v-bind="model.attrs"
5
- :class="[model.showLabel?'showLabel':'',!valid?'inputError':'']"
5
+ :class="[model.showLabel?'showLabel':'',!valid?'inputError':'','lableinput']"
6
6
  :type="model.showLabel? 'text':'textarea'"
7
7
  style="flex:1" autosize :readonly="true" :disabled="model.lock" autocomplete="on">
8
8
  <div v-if="model.showLabel && model.label" slot="prepend" class="" :class="[model.labelClass]">
@@ -8,4 +8,4 @@ if (typeof window !== 'undefined' && window.Vue) {
8
8
  window.Vue.use(dynamicPlaceHolder);
9
9
  }
10
10
 
11
- export default dynamicPlaceHolder
11
+ export default dynamicPlaceHolder
@@ -16,17 +16,17 @@
16
16
  data() {
17
17
  return {
18
18
  activeName: '1',
19
- editableTabs: [
20
- { name: '1', title: '用户管理' },
21
- { name: '2', title: '配置管理' },
22
- { name: '3', title: '角色管理' },
23
- { name: '4', title: '定时任务补偿' },
24
- { name: '5', title: '定时任务补偿2' },
25
- { name: '6', title: '定时任务补偿3' },
26
- { name: '7', title: '定时任务补偿4' },
27
- { name: '8', title: '定时任务补偿5' },
28
- { name: '9', title: '定时任务补偿6' },
29
- { name: '10', title: '定时任务补偿7' }
19
+ editableTabs: [
20
+ { name: '1', title: '用户管理' },
21
+ { name: '2', title: '配置管理' },
22
+ { name: '3', title: '角色管理' },
23
+ { name: '4', title: '定时任务补偿' },
24
+ { name: '5', title: '定时任务补偿2' },
25
+ { name: '6', title: '定时任务补偿3' },
26
+ { name: '7', title: '定时任务补偿4' },
27
+ { name: '8', title: '定时任务补偿5' },
28
+ { name: '9', title: '定时任务补偿6' },
29
+ { name: '10', title: '定时任务补偿7' }
30
30
  ],
31
31
  }
32
32
  },
@@ -26,6 +26,7 @@
26
26
  </span>
27
27
  </div>
28
28
  </div>
29
+ <span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
29
30
  <transition name="el-fade-in">
30
31
  <span v-show="!valid" class="errorMessage">
31
32
  {{validMessage}}
@@ -29,6 +29,7 @@
29
29
  </span>
30
30
  </div>
31
31
  </div>
32
+ <span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
32
33
  <transition name="el-fade-in">
33
34
  <span v-show="!valid" class="errorMessage">
34
35
  {{validMessage}}
@@ -5,7 +5,7 @@
5
5
  </template>
6
6
  <script>
7
7
  //该组件打包被排除(会导致包大很多),不排除的话无法使用,todo待更新
8
- //import ElImageViewer from "element-ui/packages/image/src/image-viewer";
8
+ // import ElImageViewer from "element-ui/packages/image/src/image-viewer";
9
9
  export default {
10
10
  name: 'ctImgPreview',
11
11
  data() {
@@ -15,7 +15,7 @@
15
15
  };
16
16
  },
17
17
  components: {
18
- //ElImageViewer
18
+ // ElImageViewer
19
19
  },
20
20
  methods: {
21
21
  closeViewer() {
@@ -1,5 +1,5 @@
1
1
  import base from '../../index';
2
- import Base from './Base';
2
+ import Base from './Base';
3
3
 
4
4
  const PlaceHolder = function (source) {
5
5
  var rtn = {
@@ -14,4 +14,4 @@ const PlaceHolder = function (source) {
14
14
  return rtn;
15
15
  };
16
16
 
17
- export default PlaceHolder;
17
+ export default PlaceHolder;
package/src/main.js CHANGED
@@ -12,8 +12,7 @@ Vue.use(ElementUI, { size: 'mini'});
12
12
  // 关闭生产模式下给出的提示
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
- baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
- // baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
15
+ baseUrl: 'http://10.88.23.22:9999/v1/form/router',
17
16
  zindex: 999,
18
17
  showRequestErrorMessage: true,
19
18
  handler: {
@@ -21,12 +20,6 @@ Vue.use(centaline, {
21
20
  openTab: function (action) {
22
21
  alert("打开tab页:" + action)
23
22
  },
24
- openDetail: function (action) {
25
- alert("打开tab页:" + action)
26
- },
27
- openPropertyDetailRET: function (submitData, pageTitle, parentModel) {
28
- alert("打开tab页:" + pageTitle)
29
- },
30
23
  // 关闭当前tab
31
24
  closeTab: function () {
32
25
  alert("关闭当前tab")
@@ -34,10 +27,9 @@ Vue.use(centaline, {
34
27
  // 获取请求头
35
28
  getRequestHeaders: function () {
36
29
  return {
37
- oldToken: '3007e478-86db-4d5a-8ce0-7253afb746b2',
38
- estateId: '20210729104021C49F04B55C50F6AF58',
39
- originalRequestURL: 'http://10.88.22.67:8080',
40
- Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE0NmU5ZjEzLTVjMmYtNGVlMy1hM2U5LWIxM2QyZThjZTBhZSJ9.Gl8K5lbG7t5DyCqouu7Ux7Oh9xuAxqdOXr4JnoHCN-YwC3b2zPO-C2sHbYJUZHYQPa7kTNRmg1xJiwugpVo5Xw',
30
+ Authorization: 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjFiNTBiODcyLTdhZDAtNDIzZC05MDBhLTU1NzUwOTA0OTMyNSJ9.yQA99wDa3a-dZKSemFOrWZxyKZ6NtWmYVehf10OSUK8eO8Par7aZqboxCNMfEjIlXDGu5NH9u0KFcHQ7_17YMg',
31
+ originalRequestURL: 'http://10.88.23.22:9999',
32
+ EstateInfo: '{"estateId":"201509230915485D942241BBA30FF49F","estateName":"A-%E7%88%B1%E7%90%B4%E6%B5%B7B%E7%BB%84"}'
41
33
  };
42
34
  },
43
35
  // 请求完成事件,可判断是否登录过期执行响应操作