diff --git a/yxt-as-ui/src/views/basicinformation/technicalTitle/technicalTitle.vue b/yxt-as-ui/src/views/basicinformation/technicalTitle/technicalTitle.vue
index debbe7664e..5a364a9601 100644
--- a/yxt-as-ui/src/views/basicinformation/technicalTitle/technicalTitle.vue
+++ b/yxt-as-ui/src/views/basicinformation/technicalTitle/technicalTitle.vue
@@ -64,7 +64,7 @@
*权重
-
+
@@ -111,6 +111,7 @@ export default {
dialogVisible: false,
titleName_list: [],
formobj: {
+ sid: '',
createBySid: '',
remarks: '',
titleNameValue: '',
@@ -171,6 +172,7 @@ export default {
tableKey: 0,
list: [],
sids: [], // 用于导出的时候保存已选择的SIDs
+ multipleSelection: [],
listLoading: false,
// 翻页
listQuery: {
@@ -235,6 +237,7 @@ export default {
},
// 信息条数 获取点击时当前的sid
handleSelectionChange(row) {
+ this.multipleSelection = row
const aa = []
row.forEach(element => {
aa.push(element.sid)
@@ -313,12 +316,16 @@ export default {
this.$refs['form_obj'].clearValidate()
})
if (this.sids.length === 1) {
- this.dialogVisible = true
- req.fetchBySid(this.sids[0]).then((resp) => {
- if (resp.success) {
- this.formobj = resp.data
- }
- })
+ if (this.multipleSelection[0].state !== '备案中') {
+ this.dialogVisible = true
+ req.fetchBySid(this.sids[0]).then((resp) => {
+ if (resp.success) {
+ this.formobj = resp.data
+ }
+ })
+ } else {
+ this.$message({ showClose: true, type: 'error', message: '该记录正在备案中,无法编辑' })
+ }
} else {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
}
@@ -350,6 +357,7 @@ export default {
this.dialogVisible = false
this.$refs['form_obj'].resetFields()
this.formobj = {
+ sid: '',
createBySid: '',
remarks: '',
titleNameValue: '',