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>
<Dialog v-model="modelVisible" :title="data ? '修改' : '新增'">
<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>
<template #footer>
@ -101,7 +101,7 @@ export default {
if (result.code != 200) return Message.error(`提交失败!`);
Message.success(`提交成功!`);
this.$emit("afterSubmit");
this.$emit("onSuccess");
this.modelVisible = false;

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

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

Loading…
Cancel
Save