glj-代码提交

This commit is contained in:
管李杰 2024-03-19 16:07:04 +08:00
parent e345ecd257
commit 5890672f90
5 changed files with 16 additions and 9 deletions

View File

@ -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();
} }

View File

@ -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>

View File

@ -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")
}) })

View File

@ -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();
} }

View File

@ -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;
}); });