update 项目合规评估流程\征求意见流程
This commit is contained in:
@@ -226,7 +226,7 @@
|
||||
class="opinion-select"
|
||||
dict-code="consultation_opinion"
|
||||
:placeholder="$t('pleaseSelect') + $t('workCenter.esInspectionPlan.opinion')"
|
||||
@change="value => {handleOpinionChange(value, index)}" />
|
||||
@change="value => {handleOpinionChange(value, index, record)}" />
|
||||
</template>
|
||||
</j-expand-table>
|
||||
</template>
|
||||
@@ -1191,9 +1191,23 @@ export default {
|
||||
* 修改意见
|
||||
* @param value
|
||||
* @param index
|
||||
* @param record
|
||||
*/
|
||||
handleOpinionChange (value, index) {
|
||||
this.$set(this.dataSource[index], 'isAdopt', value)
|
||||
handleOpinionChange (value, index, record) {
|
||||
record.isAdopt = value
|
||||
// 处理变化之后清空之前的数据
|
||||
const extraFormKeys = Object.keys(this.extraForm)
|
||||
let deleteField = []
|
||||
for (const key of extraFormKeys) {
|
||||
if (key !== value) {
|
||||
const fields = this.extraForm[key].formArr.map(tt => tt.dbFieldName)
|
||||
deleteField = [...deleteField, ...fields]
|
||||
}
|
||||
}
|
||||
for (const fieldName of deleteField) {
|
||||
delete record[fieldName]
|
||||
}
|
||||
this.$set(this.dataSource, index, record)
|
||||
},
|
||||
showContent (text) {
|
||||
this.$refs.textContentModal.open(text)
|
||||
|
||||
Reference in New Issue
Block a user