centaline-data-driven 1.3.53 → 1.3.56
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/package.json +1 -1
- package/src/Form.vue +2 -2
- package/src/centaline/dynamicFile/src/dynamicFile.vue +8 -8
- package/src/centaline/dynamicForm/src/dynamicForm.vue +1 -1
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +9 -3
- package/src/centaline/loader/src/ctl/Form.js +1 -3
- package/src/main.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/PropertyRealLook/getLayoutOfNew'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
apiParam:{
|
|
15
|
-
chanceID: "
|
|
15
|
+
chanceID: "1526015051042000896", actionType: 2
|
|
16
16
|
},
|
|
17
17
|
topHeight:10,
|
|
18
18
|
}
|
|
@@ -100,11 +100,12 @@ export default {
|
|
|
100
100
|
methods: {
|
|
101
101
|
load(data) {
|
|
102
102
|
this.model = data;
|
|
103
|
-
|
|
103
|
+
this.classifyClickHandle()
|
|
104
104
|
},
|
|
105
105
|
handleExceed() {
|
|
106
106
|
this.validMessage = "附件数量最多" + this.model.max + "张";
|
|
107
107
|
this.valid = false;
|
|
108
|
+
this.$message.error(this.validMessage);
|
|
108
109
|
},
|
|
109
110
|
//删除
|
|
110
111
|
handleRemove(file) {
|
|
@@ -199,7 +200,6 @@ export default {
|
|
|
199
200
|
return "";
|
|
200
201
|
},
|
|
201
202
|
handleDownload(file) {
|
|
202
|
-
console.log(file);
|
|
203
203
|
},
|
|
204
204
|
handleChange(file, fileList) {
|
|
205
205
|
this.changeHandler(this.model.value);
|
|
@@ -312,15 +312,14 @@ export default {
|
|
|
312
312
|
});
|
|
313
313
|
},
|
|
314
314
|
classifySelectedClickHandle: function (classify) {
|
|
315
|
-
classify.file.mediaLabelName =
|
|
316
|
-
|
|
317
|
-
classify.file.mediaLabelID =
|
|
318
|
-
classify.option[this.model.optionModel.optionAttrs.value];
|
|
315
|
+
classify.file.mediaLabelName = classify.option[this.model.optionModel.optionAttrs.label];
|
|
316
|
+
classify.file.mediaLabelID = classify.option[this.model.optionModel.optionAttrs.value];
|
|
319
317
|
this.model.setClassify(classify);
|
|
320
318
|
if (!this.validFileClass()) {
|
|
321
319
|
this.validMessage = "请选择附件分类";
|
|
322
320
|
this.valid = false;
|
|
323
|
-
}
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
324
323
|
this.valid = true;
|
|
325
324
|
}
|
|
326
325
|
},
|
|
@@ -332,7 +331,8 @@ export default {
|
|
|
332
331
|
if (!this.validFileClass()) {
|
|
333
332
|
this.validMessage = "请选择附件分类";
|
|
334
333
|
this.valid = false;
|
|
335
|
-
}
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
336
|
this.valid = true;
|
|
337
337
|
}
|
|
338
338
|
},
|
|
@@ -159,11 +159,17 @@
|
|
|
159
159
|
return false;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
+
|
|
162
163
|
//是否是取消操作
|
|
163
164
|
if (!isCancel) {
|
|
164
|
-
if (app.model.currentRow.isNew)
|
|
165
|
-
|
|
165
|
+
if (app.model.currentRow.isNew) {
|
|
166
|
+
app.model.tableData.splice(index, 1);
|
|
167
|
+
}
|
|
168
|
+
row.isSet = !row.isSet;
|
|
169
|
+
app.itemKey = Math.random();
|
|
170
|
+
return ;
|
|
166
171
|
}
|
|
172
|
+
|
|
167
173
|
//提交数据
|
|
168
174
|
if (row.isSet) {//保存
|
|
169
175
|
if (app.fieldsValidExcute()) {
|
|
@@ -194,7 +200,7 @@
|
|
|
194
200
|
app.model.currentRow.isNew = false;
|
|
195
201
|
app.model.currentRow.index = index;
|
|
196
202
|
app.model.currentRow.isSet = true;
|
|
197
|
-
row.isSet = true;
|
|
203
|
+
row.isSet = true;
|
|
198
204
|
app.itemKey = Math.random();
|
|
199
205
|
}
|
|
200
206
|
},
|
|
@@ -122,9 +122,7 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
122
122
|
source.links.forEach((v) => {
|
|
123
123
|
var button = Router(v);
|
|
124
124
|
button.is = "ct-btn";
|
|
125
|
-
|
|
126
|
-
rtn._links.push(button);
|
|
127
|
-
}
|
|
125
|
+
rtn._links.push(button);
|
|
128
126
|
});
|
|
129
127
|
}
|
|
130
128
|
return rtn._links;
|
package/src/main.js
CHANGED
|
@@ -41,8 +41,8 @@ Vue.use(centaline, {
|
|
|
41
41
|
// 获取请求头
|
|
42
42
|
getRequestHeaders: function () {
|
|
43
43
|
return {
|
|
44
|
-
oldToken: '
|
|
45
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
44
|
+
oldToken: '77791819-ac7d-4a5d-bd16-5278b9f0b5d7',
|
|
45
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOgzAQRO-yNSt58Xpt6BJDmhwCATYSqSI-UqIod4-jQEefV4xGr5l5wbx2UILdwIPYaYoNPIidhogLS1LjqbAeWVijI-_Qs3i-VLX25woyiI87lCRCbNnYPIOxXX5CO0dfsc5xusbnP87dljHN6hCCUkGhtDxg-tljF1MzuTJ5P3RGWoL3BwAA__8.FzLOuskp7kNb-SJX74wAXbH9D0zkINhgIIGiew1y8XU',
|
|
46
46
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
47
47
|
EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
|
|
48
48
|
estateId: '20210729104021C49F04B55C50F6AF58',
|