修改 法规清单发布时间为N/A的一系列问题
This commit is contained in:
@@ -487,22 +487,26 @@
|
|||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="在产车实施日期" prop="zccssrqgj">
|
<el-form-item label="在产车实施日期" prop="zccssrqgj">
|
||||||
<el-date-picker
|
<!-- <el-date-picker
|
||||||
clearable
|
clearable
|
||||||
v-model.trim="editRowData.zccssrqgj"
|
v-model.trim="editRowData.zccssrqgj"
|
||||||
type="dates"
|
type="dates"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
placeholder="选择日期">
|
placeholder="选择日期">
|
||||||
</el-date-picker>
|
</el-date-picker>-->
|
||||||
|
<custom-date-pick-group class="customDataPicker" style="margin-left: 0px" v-model="editRowData.zccssrqgj" :config="{attrName: '',attrField: 'zccssrqgj'}">
|
||||||
|
</custom-date-pick-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="新车型实施日期" prop="xcxssrqgj">
|
<el-form-item label="新车型实施日期" prop="xcxssrqgj">
|
||||||
<el-date-picker
|
<!-- <el-date-picker-->
|
||||||
clearable
|
<!-- clearable-->
|
||||||
v-model.trim="editRowData.xcxssrqgj"
|
<!-- v-model.trim=""-->
|
||||||
type="dates"
|
<!-- type="dates"-->
|
||||||
value-format="yyyy-MM-dd"
|
<!-- value-format="yyyy-MM-dd"-->
|
||||||
placeholder="选择日期">
|
<!-- placeholder="选择日期">-->
|
||||||
</el-date-picker>
|
<!-- </el-date-picker>-->
|
||||||
|
<custom-date-pick-group class="customDataPicker" style="margin-left: 0px" v-model="editRowData.xcxssrqgj" :config="{attrName: '',attrField: 'xcxssrqgj'}">
|
||||||
|
</custom-date-pick-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="责任部门" prop="zrbm">
|
<el-form-item label="责任部门" prop="zrbm">
|
||||||
<el-input v-model.trim="editRowData.zrbm" disabled/>
|
<el-input v-model.trim="editRowData.zrbm" disabled/>
|
||||||
@@ -1578,11 +1582,17 @@ export default {
|
|||||||
} else if (this.editRowData.zccssrqgj && this.editRowData.zccssrqgj !== "-") {
|
} else if (this.editRowData.zccssrqgj && this.editRowData.zccssrqgj !== "-") {
|
||||||
this.editRowData.zccssrqgj = this.editRowData.zccssrqgj.split(",");
|
this.editRowData.zccssrqgj = this.editRowData.zccssrqgj.split(",");
|
||||||
}
|
}
|
||||||
|
if (this.editRowData.zccssrqgj instanceof Array && this.editRowData.zccssrqgj[0] === 'N/A'){
|
||||||
|
this.editRowData.zccssrqgj = this.editRowData.zccssrqgj.join(',')
|
||||||
|
}
|
||||||
if (this.editRowData.xcxssrqgj === "-") {
|
if (this.editRowData.xcxssrqgj === "-") {
|
||||||
this.editRowData.xcxssrqgj = "";
|
this.editRowData.xcxssrqgj = "";
|
||||||
} else if (this.editRowData.xcxssrqgj && this.editRowData.xcxssrqgj !== "-") {
|
} else if (this.editRowData.xcxssrqgj && this.editRowData.xcxssrqgj !== "-") {
|
||||||
this.editRowData.xcxssrqgj = this.editRowData.xcxssrqgj.split(",");
|
this.editRowData.xcxssrqgj = this.editRowData.xcxssrqgj.split(",");
|
||||||
}
|
}
|
||||||
|
if (this.editRowData.xcxssrqgj instanceof Array && this.editRowData.xcxssrqgj[0] === 'N/A'){
|
||||||
|
this.editRowData.xcxssrqgj = this.editRowData.xcxssrqgj.join(',')
|
||||||
|
}
|
||||||
this.drawerEdit = true;
|
this.drawerEdit = true;
|
||||||
},
|
},
|
||||||
// 抽屉取消按钮
|
// 抽屉取消按钮
|
||||||
@@ -1602,12 +1612,6 @@ export default {
|
|||||||
if (this.editRowData.ssrq !== '' && this.editRowData.ssrq !== null) {
|
if (this.editRowData.ssrq !== '' && this.editRowData.ssrq !== null) {
|
||||||
this.editRowData.ssrq = this.editRowData.ssrq.join(',')
|
this.editRowData.ssrq = this.editRowData.ssrq.join(',')
|
||||||
}
|
}
|
||||||
if (this.editRowData.xcxssrqgj !== '' && this.editRowData.xcxssrqgj !== null) {
|
|
||||||
this.editRowData.xcxssrqgj = this.editRowData.xcxssrqgj.join(',')
|
|
||||||
}
|
|
||||||
if (this.editRowData.zccssrqgj !== '' && this.editRowData.zccssrqgj !== null) {
|
|
||||||
this.editRowData.zccssrqgj = this.editRowData.zccssrqgj.join(',')
|
|
||||||
}
|
|
||||||
this.drawerEdit = false
|
this.drawerEdit = false
|
||||||
},
|
},
|
||||||
// 点击清单条目导入按钮事件
|
// 点击清单条目导入按钮事件
|
||||||
@@ -2498,6 +2502,13 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
.customDataPicker{
|
||||||
|
border: 1px solid #DCDFE6;
|
||||||
|
border-radius: 4px;
|
||||||
|
/deep/ .add-form-item .el-form-item__content{
|
||||||
|
margin-left: 0 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
.list-of-standards-and-regulations-details {
|
.list-of-standards-and-regulations-details {
|
||||||
height: calc(~'100% - 50px');
|
height: calc(~'100% - 50px');
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
|
|||||||
Reference in New Issue
Block a user