Browse Source

feat:[模板管理][update]

lkf
luojie 2 months ago
parent
commit
fc46299f8c
3 changed files with 15 additions and 6 deletions
  1. +0
    -1
      src/components/Template/BaseInfoFormPcakge.vue
  2. +12
    -2
      src/components/Template/HandleFormItem.vue
  3. +3
    -3
      src/components/Template/operation/TableOpertaion.vue

+ 0
- 1
src/components/Template/BaseInfoFormPcakge.vue View File

@ -535,7 +535,6 @@ export default {
this.$emit("blur", { key, value: val, ...this.formFields });
},
onValueChangeCompareTo(key, val, compKey) {
console.log(key,val,compKey,"compKey")
// compareTo fillType==="actFill"compareToinput
const currentFieldConfig = this.allFieldsConfig[key];
if (currentFieldConfig && currentFieldConfig.fillType === "actFill" && (currentFieldConfig.compareTo || compKey)) {

+ 12
- 2
src/components/Template/HandleFormItem.vue View File

@ -22,8 +22,13 @@
</el-select>
<el-date-picker v-else-if="type === 'dateTime'" type="datetime" class="flex1"
:class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" v-model="inputValue"
:disabled="getDisabled()" format="yyyy/MM/DD HH:mm:ss" value-format="yyyy/MM/DD HH:mm:ss"
:placeholder="getPlaceholder()" @change="onCommonHandleSaveRecord">
:disabled="getDisabled()" format="yyyy/MM/dd HH:mm:ss"
:placeholder="getPlaceholder()" @change="(val)=>onDateChange(val,'yyyy/MM/DD HH:mm:ss')">
</el-date-picker>
<el-date-picker v-else-if="type === 'datePicker'" class="flex1"
:class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" v-model="inputValue"
:disabled="getDisabled()" format="yyyy/MM/dd"
:placeholder="getPlaceholder()" @change="(val)=>onDateChange(val,'yyyy/MM/DD')">
</el-date-picker>
<div class="clickable"
:class="getFillTypeStyle() + (getDisabled() ? ' disabled' : '') + (orangeBg ? ' orange-bg' : '')"
@ -188,6 +193,11 @@ export default {
mounted() {
},
methods: {
onDateChange(val,format){
this.inputValue = moment(val).format(format);
console.log(this.inputValue,"inputValue")
this.onCommonHandleSaveRecord(this.inputValue);
},
getUserName(record){
const locale = this.$i18n.locale;
if(locale === 'zh_CN'){

+ 3
- 3
src/components/Template/operation/TableOpertaion.vue View File

@ -61,15 +61,15 @@ export default {
methods: {
//
onStartConfig() {
this.$emit("startConfig", this.innerRow,this.rowIndex)
this.$emit("startConfig", {rowData:this.innerRow,rowIndex:this.rowIndex,headerSelectFields:this.columns.headerSelectFields})
},
//
onConfigComplete() {
this.$emit("configComplete", this.innerRow,this.rowIndex)
this.$emit("configComplete", {rowData:this.innerRow,rowIndex:this.rowIndex,headerSelectFields:this.columns.headerSelectFields})
},
//
onPrintLabel() {
this.$emit("printLabel", this.innerRow,this.rowIndex)
this.$emit("printLabel", {rowData:this.innerRow,rowIndex:this.rowIndex,headerSelectFields:this.columns.headerSelectFields})
},
//
onSubPackage() {

Loading…
Cancel
Save