glj-代码提交
This commit is contained in:
parent
e345ecd257
commit
5890672f90
|
@ -117,7 +117,7 @@ const rules = reactive({
|
||||||
//判断res.data 是否存在 或者等于false 或者空
|
//判断res.data 是否存在 或者等于false 或者空
|
||||||
if (res.data || res.data == false || res.data == "") {
|
if (res.data || res.data == false || res.data == "") {
|
||||||
//提示是否注册
|
//提示是否注册
|
||||||
callback(new Error("The email is not registered"));
|
callback(new Error("This email account cannot be operated"));
|
||||||
} else {
|
} else {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,22 +55,16 @@
|
||||||
</template>
|
</template>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="3">
|
|
||||||
<el-button class="ml10" type="success" style="margin-top:15px" @click="OpenuploadDataRef()">
|
<el-button class="ml10" type="success" style="margin-top:15px" @click="OpenuploadDataRef()">
|
||||||
Upload Img</el-button>
|
Upload Img</el-button>
|
||||||
</el-col>
|
<el-button class="ml10" type="success" style="margin-top:15px; margin-left:15px" @click="approvalDataOpenList()">
|
||||||
<el-col :span="3">
|
|
||||||
<el-button class="ml10" type="success" style="margin-top:15px" @click="approvalDataOpenList()">
|
|
||||||
Batch operation</el-button>
|
Batch operation</el-button>
|
||||||
</el-col>
|
|
||||||
<el-col :span="3" v-auth-role="'admin'" style="margin-left:25px">
|
|
||||||
<el-button size="default" type="danger" v-auth-role="'admin'" class="upload-demo" style="margin-top: 15px; height: 40px;" @click="removeThis">
|
<el-button size="default" type="danger" v-auth-role="'admin'" class="upload-demo" style="margin-top: 15px; height: 40px;" @click="removeThis">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<ele-Delete />
|
<ele-Delete />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
Delete
|
Delete
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -286,10 +286,14 @@ const generateData = () => {
|
||||||
keywords: 'word clouds',
|
keywords: 'word clouds',
|
||||||
}]
|
}]
|
||||||
).then(ret => {
|
).then(ret => {
|
||||||
|
console.log(ret,"retretretret");
|
||||||
|
|
||||||
if (ret == 1042) {
|
if (ret == 1042) {
|
||||||
ElMessage.error("error")
|
ElMessage.error("error")
|
||||||
} else {
|
} else {
|
||||||
landsat(ret[0].disasterId, 30, ret[0].id).then(res => {
|
landsat(ret[0].disasterId, 30, ret[0].id).then(res => {
|
||||||
|
console.log(res,"resresresres");
|
||||||
|
|
||||||
getTableData;
|
getTableData;
|
||||||
ElMessage.success("success")
|
ElMessage.success("success")
|
||||||
})
|
})
|
||||||
|
|
|
@ -107,7 +107,7 @@ const rules = reactive({
|
||||||
//判断res.data 是否存在 或者等于false 或者空
|
//判断res.data 是否存在 或者等于false 或者空
|
||||||
if (res.data || res.data == false || res.data == "") {
|
if (res.data || res.data == false || res.data == "") {
|
||||||
//提示是否注册
|
//提示是否注册
|
||||||
callback(new Error("The email is not registered"));
|
callback(new Error("This email account cannot be operated"));
|
||||||
} else {
|
} else {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
|
|
@ -613,6 +613,14 @@ const cancelApporval = () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
//获取字典数据
|
||||||
|
const getDictBizData = () => {
|
||||||
|
getDictionary({ code: 'disaster' }).then(res => {
|
||||||
|
state.dictList = res;
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const ApproveUserEnd = (row) => {
|
const ApproveUserEnd = (row) => {
|
||||||
state.disasterData = row;
|
state.disasterData = row;
|
||||||
state.emailDialogVisibleNew = true;
|
state.emailDialogVisibleNew = true;
|
||||||
|
@ -819,6 +827,7 @@ const showLatLon = (e) => {
|
||||||
// 页面加载时
|
// 页面加载时
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getTableData();
|
getTableData();
|
||||||
|
getDictBizData();
|
||||||
getDictionary({ code: 'disaster' }).then((res) => {
|
getDictionary({ code: 'disaster' }).then((res) => {
|
||||||
state.disasterTypeList = res;
|
state.disasterTypeList = res;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue