|
@@ -6,16 +6,17 @@
|
|
|
:show-dialog="false"
|
|
|
is-succes
|
|
|
:title="titleName"
|
|
|
- width="400px"
|
|
|
+ width="45%"
|
|
|
@succes="updateModule"
|
|
|
>
|
|
|
- <el-form label-width="100px" style="padding-right: 20px">
|
|
|
+ <el-form label-width="100px" style="padding-right: 20px;padding-left: 20px">
|
|
|
<el-form-item label="问题">
|
|
|
<el-input
|
|
|
v-model="normalAreaName"
|
|
|
autocomplete="off"
|
|
|
- size="mini"
|
|
|
- maxlength="100"
|
|
|
+ size="small"
|
|
|
+ type="textarea"
|
|
|
+ :autosize="{ minRows: 2, maxRows: 30 }"
|
|
|
show-word-limit
|
|
|
placeholder="请输入问题"
|
|
|
/>
|
|
@@ -68,6 +69,8 @@ export default {
|
|
|
callBack: null,
|
|
|
columns: null,
|
|
|
cascaderValue: null,
|
|
|
+ headerTitle: null,
|
|
|
+ subTitles: null,
|
|
|
multiplePeople: null
|
|
|
}
|
|
|
},
|
|
@@ -81,13 +84,15 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
uuid10,
|
|
|
- openModal({ title, scope, columns, normalAreaName }) {
|
|
|
- console.log({ title, scope, columns, normalAreaName })
|
|
|
+ openModal(params) {
|
|
|
+ const { title, scope, columns, normalAreaName, subTitles, headerTitle } = params
|
|
|
this.titleName = title
|
|
|
if (scope) this.menuData = scope.row
|
|
|
if (columns) this.columns = columns
|
|
|
this.$refs.normalDialog.visible = true
|
|
|
this.modalShow = true
|
|
|
+ this.subTitles = subTitles
|
|
|
+ this.headerTitle = headerTitle
|
|
|
if (normalAreaName) this.normalAreaName = normalAreaName
|
|
|
this.setDefaultValues()
|
|
|
},
|
|
@@ -95,16 +100,52 @@ export default {
|
|
|
setDefaultValues() {
|
|
|
this.columns &&
|
|
|
this.columns.forEach((elm) => {
|
|
|
+ // 线上问题
|
|
|
+ if (elm.name === '定级' && this.headerTitle === '线上问题' && this.normalAreaName.search(/级线上问题/) < 0) {
|
|
|
+ this.normalAreaName = `${this.menuData[elm.headerKey]}级线上问题:${this.normalAreaName}`
|
|
|
+ }
|
|
|
if (elm.name === '问题') {
|
|
|
- this.normalAreaName = this.menuData[elm.headerKey]
|
|
|
+ this.normalAreaName += this.menuData[elm.headerKey]
|
|
|
}
|
|
|
- if (elm.name === '归属团队') {
|
|
|
+ if (elm.name.search(/团队/) > -1) {
|
|
|
this.cascaderValue = this.menuData[elm.headerKey]
|
|
|
}
|
|
|
if (elm.name === '负责人') {
|
|
|
this.multiplePeople = [this.menuData[elm.headerKey]]
|
|
|
}
|
|
|
})
|
|
|
+ // 延期
|
|
|
+ if (this.headerTitle.search(/延期 - |提测打回/) > -1) {
|
|
|
+ this.normalAreaName = ''
|
|
|
+ // elm.name === '延期类型'
|
|
|
+ const headerKeyYQ = this.columns.filter(elm => elm.name.search(/类型/) > -1)[0]
|
|
|
+ const headerKeyMC = this.columns.filter(elm => elm.name === '项目名称')[0]
|
|
|
+ this.normalAreaName = `${this.menuData[headerKeyYQ.headerKey]}${this.menuData[headerKeyYQ.headerKey] && this.menuData[headerKeyMC.headerKey] && ':'}${this.menuData[headerKeyMC.headerKey]}`
|
|
|
+ }
|
|
|
+ // 线下缺陷:
|
|
|
+ if (this.headerTitle === '线下缺陷') {
|
|
|
+ this.normalAreaName = ''
|
|
|
+ this.subTitles && this.subTitles.forEach((elm, index) => {
|
|
|
+ // this.normalAreaName += `${elm.copywriter}:${elm.label}`
|
|
|
+ if (index < 3) {
|
|
|
+ this.normalAreaName += `${elm.copywriter}:${elm.label}个${index === 2 ? ';' : ','}`
|
|
|
+ }
|
|
|
+ if (index === 3 && elm.label !== '--') {
|
|
|
+ this.normalAreaName += `${elm.copywriter}:${elm.label}h;`
|
|
|
+ }
|
|
|
+ if (index === 4 && elm.label !== '--') {
|
|
|
+ this.normalAreaName += `${elm.copywriter}:${elm.label}%;`
|
|
|
+ }
|
|
|
+ if (index === 5) {
|
|
|
+ this.normalAreaName += `${elm.copywriter}:${elm.label}。`
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ // 发布&回滚
|
|
|
+ if (this.headerTitle.search(/发布&回滚/) > -1) {
|
|
|
+ const headerKeyMK = this.columns.filter(elm => elm.name.search(/模块/) > -1)[0]
|
|
|
+ this.normalAreaName = this.menuData[headerKeyMK.headerKey] && `${this.menuData[headerKeyMK.headerKey]}模块一次全量回滚`
|
|
|
+ }
|
|
|
},
|
|
|
updateModule() {
|
|
|
this.$store.commit('monthlyReportEdit/MARK_ISSUES', {
|
|
@@ -122,4 +163,10 @@ export default {
|
|
|
/deep/ .el-form-item__label {
|
|
|
text-align: left!important;
|
|
|
}
|
|
|
+.el-form-item{
|
|
|
+ margin-bottom: 10px;
|
|
|
+}
|
|
|
+/deep/.el-dialog__body{
|
|
|
+ padding-bottom: 0
|
|
|
+}
|
|
|
</style>
|