centaline-data-driven 1.2.59 → 1.2.60
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/centaline/css/max.css +6 -0
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +5 -5
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +14 -1
- package/src/centaline/loader/src/ctl/Router.js +3 -0
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<div>{{model.label}}</div>
|
|
35
35
|
<div style="color:red;font-weight:700;">{{model.subText}}</div>
|
|
36
36
|
</el-button>
|
|
37
|
-
<el-button v-else-if="model.isCallTel"
|
|
37
|
+
<el-button v-else-if="model.isCallTel" class="max"
|
|
38
38
|
:type="model.isHyperLink ? 'text' : 'primary'"
|
|
39
39
|
v-bind="model.attrs" @click="clickHandle"
|
|
40
40
|
:style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
|
|
@@ -47,18 +47,18 @@
|
|
|
47
47
|
<div style="color: #388cd3;text-align: center;">{{message}}</div>
|
|
48
48
|
<img v-show="qrCode" :src="qrCode" style="margin-top: 5px;" :style="{'width':width+'px','height':height+'px'}" />
|
|
49
49
|
</div>
|
|
50
|
-
<img v-if="model.imgUrl" slot="reference" :title="model.label
|
|
50
|
+
<img v-if="model.imgUrl" slot="reference" :title="model.label" :src="tellImgUrl?tellImgUrl:model.imgUrl" :height="model.buttonHeight+'px'" />
|
|
51
51
|
<span v-else slot="reference">{{model.label}}</span>
|
|
52
52
|
</el-popover>
|
|
53
53
|
</el-button>
|
|
54
|
-
<el-button v-else
|
|
54
|
+
<el-button v-else class="max"
|
|
55
55
|
:type="model.isHyperLink ? 'text' : 'primary'"
|
|
56
56
|
v-bind="model.attrs" @click="$emit('click',model)"
|
|
57
57
|
:style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
|
|
58
58
|
:icon="model.icon"
|
|
59
59
|
:disabled="model.disabled || model.locked">
|
|
60
|
-
<img v-if="model.imgUrl" :title="model.label" :src="model.imgUrl" height="
|
|
61
|
-
|
|
60
|
+
<img v-if="model.imgUrl" :title="model.label" :src="model.imgUrl" :height="model.buttonHeight+'px'"/>
|
|
61
|
+
<span v-else>{{model.label}}</span>
|
|
62
62
|
</el-button>
|
|
63
63
|
</template>
|
|
64
64
|
<script>
|
|
@@ -593,14 +593,27 @@
|
|
|
593
593
|
}
|
|
594
594
|
},
|
|
595
595
|
clickNextHandler() {
|
|
596
|
-
console.log(this.parentModel);
|
|
597
596
|
if(this.parentModel){
|
|
597
|
+
let oldValue=this.parentModel.listData[this.parentModel.selectIndex][this.parentModel.primaryKey];
|
|
598
598
|
this.parentModel.$vue.rowKeyDownHandle(null,1);
|
|
599
|
+
let newValue=this.parentModel.listData[this.parentModel.selectIndex][this.parentModel.primaryKey];
|
|
600
|
+
if(oldValue!==newValue){
|
|
601
|
+
let parm=this.apiParam;
|
|
602
|
+
parm[this.parentModel.primaryKey]=newValue;
|
|
603
|
+
this.loaderObj.Detail(this.api,parm, this.load);
|
|
604
|
+
}
|
|
599
605
|
}
|
|
600
606
|
},
|
|
601
607
|
clickPrevHandler() {
|
|
602
608
|
if(this.parentModel){
|
|
609
|
+
let oldValue=this.parentModel.listData[this.parentModel.selectIndex][this.parentModel.primaryKey];
|
|
603
610
|
this.parentModel.$vue.rowKeyDownHandle(null,-1);
|
|
611
|
+
let newValue=this.parentModel.listData[this.parentModel.selectIndex][this.parentModel.primaryKey];
|
|
612
|
+
if(oldValue!==newValue){
|
|
613
|
+
let parm=this.apiParam;
|
|
614
|
+
parm[this.parentModel.primaryKey]=newValue;
|
|
615
|
+
this.loaderObj.Detail(this.api,parm, this.load);
|
|
616
|
+
}
|
|
604
617
|
}
|
|
605
618
|
},
|
|
606
619
|
}
|