Browse Source

修改

wangqin
hui 10 months ago
parent
commit
5f6c1ca774
  1. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/components/AddNEditDialog.vue
  2. 7
      ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/data.js
  3. 20
      ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/index.vue

4
ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/components/AddNEditDialog.vue

@ -1,7 +1,7 @@
<template> <template>
<Dialog v-model="modelVisible" :title="data ? '修改' : '新增'"> <Dialog v-model="modelVisible" :title="data ? '修改' : '新增'">
<div class='AddNEditDialog'> <div class='AddNEditDialog'>
<Form :value="formData" class="form" ref="FormConfigRef" :formList="formList" column="1" labelWidth="120px" /> <Form :value="formData" class="form" ref="FormConfigRef" :formList="formList" column="1" labelWidth="80px" />
</div> </div>
<template #footer> <template #footer>
@ -101,7 +101,7 @@ export default {
if (result.code != 200) return Message.error(`提交失败!`); if (result.code != 200) return Message.error(`提交失败!`);
Message.success(`提交成功!`); Message.success(`提交成功!`);
this.$emit("afterSubmit"); this.$emit("onSuccess");
this.modelVisible = false; this.modelVisible = false;

7
ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/data.js

@ -13,5 +13,12 @@ export const addEditFormList = [
label: "关键词:", label: "关键词:",
key: "word", key: "word",
required: true, required: true,
options: {
type: "textarea",
autosize: true,
// maxlength: 50,
autosize: { minRows: 1, maxRows: 20 },
showWordLimit: true,
}
} }
]; ];

20
ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/index.vue

@ -22,8 +22,7 @@
</ButtonGradient> </ButtonGradient>
</div> </div>
<InputSearch style="width: 402px;" :formList="searchFormList" :formConfigOptions="{ labelWidth: '90px' }" <InputSearch style="width: 402px;" :formList="searchFormList" :formConfigOptions="{ labelWidth: '90px' }" :placeholder="searchText" @handleSearch="handleSearch" />
@handleSearch="handleSearch" />
</div> </div>
@ -79,6 +78,7 @@ export default {
}, },
data() { data() {
return { return {
searchText:"关键词搜索",
searchFormList, searchFormList,
keyMap: [ keyMap: [
{ {
@ -106,13 +106,16 @@ export default {
}, },
methods: { methods: {
getSearchData() { getSearchData() {
let result = { let params = {
...this.searchData, word: this.searchData?.word,
pageSize: 1000000,
pageNum: 1
}; };
if(!result.word){ // params = {
result = {}; // pageSize: 1000000,
} // pageNum: 1
return result // };
return params
}, },
async handleDelete(data) { async handleDelete(data) {
await confirm({ message: "是否要删除该辖段信息?" }); await confirm({ message: "是否要删除该辖段信息?" });
@ -156,6 +159,7 @@ export default {
method: "get", method: "get",
params: this.getSearchData() params: this.getSearchData()
}).then(result => { }).then(result => {
this.searchText = this.searchData?.word || "关键词搜索";
if (result.code != 200) return; if (result.code != 200) return;
this.data = result.rows; this.data = result.rows;
// this.data = [ // this.data = [

Loading…
Cancel
Save