提交 4c302947 authored 作者: jinrongbin's avatar jinrongbin

判断条件处理

上级 6abc3a8a
......@@ -52,7 +52,7 @@
<a-select-option value="一类和二类混合用地">一类和二类混合用地</a-select-option>
<a-select-option value="其他">其他</a-select-option>
</a-select>
<a-input v-model:value="qt" v-show="model['dkghytqtlx'] == '其他'" placeholder="填写对应的具体用地信息" />
<a-input v-model:value="qt" placeholder="填写对应的具体用地信息" />
</div>
<span v-else> <a-input v-model:value="qt" disabled="true" /> </span>
</div>
......
......@@ -216,7 +216,7 @@
function handleAdd() {
let arr = getDataSource();
const record: any = arr[0];
if (record.provinceStatus == 2) {
if (record && record.provinceStatus == 2) {
createMessage.info('数据已提交,不能添加新数据');
return;
}
......
......@@ -201,7 +201,7 @@
function handleAdd() {
let arr = getDataSource();
const record: any = arr[0];
if (record.cityStatus == 2) {
if (record && record.cityStatus == 2) {
createMessage.info('数据已提交,不能添加新数据');
return;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论