|
|
@ -64,7 +64,7 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty"><span class="icon">*</span>权重</div> |
|
|
|
<el-form-item prop="weight"><el-input class="addinputInfo addinputw" @keyup.native="formobj.weight = getNumber(formobj.weight, 0)" v-model="formobj.weight" clearable placeholder="请填写零以上数字" /></el-form-item> |
|
|
|
<el-form-item prop="weight"><el-input class="addinputInfo addinputw" :disabled="formobj.sid !== ''" @keyup.native="formobj.weight = getNumber(formobj.weight, 0)" v-model="formobj.weight" clearable placeholder="请填写零以上数字" /></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
@ -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: '', |
|
|
|