Commit 1beecf1c authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 947f021a 421d923a
...@@ -474,11 +474,14 @@ export default { ...@@ -474,11 +474,14 @@ export default {
icon: "exclamation-circle", icon: "exclamation-circle",
maskClosable: true, maskClosable: true,
onOk() { onOk() {
_this.$refs.form.resetFields();
_this.isTimely = undefined; // 是否及时办理 _this.isTimely = undefined; // 是否及时办理
_this.isPromise = undefined; // 承诺是否及时办理 _this.isPromise = undefined; // 承诺是否及时办理
_this.isLinked = undefined; // 是否有联办机构 _this.isLinked = undefined; // 是否有联办机构
_this.form.deptName = ""; _this.baseform.deptName = "";
_this.$refs.form.resetFields(); _this.baseform.deptCode = "";
_this.baseform.matterNo = "";
_this.curDpt = undefined;
}, },
onCancel() { onCancel() {
console.log("Cancel"); console.log("Cancel");
......
...@@ -234,7 +234,7 @@ export default { ...@@ -234,7 +234,7 @@ export default {
let { code, msg } = res.data; let { code, msg } = res.data;
if (code === 1) { if (code === 1) {
_this.$message.success(msg); _this.$message.success(msg);
this.selectedRowKeys = []; _this.selectedRowKeys = [];
_this.getCategoryList(); _this.getCategoryList();
} }
}, },
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
<div class="search-box"> <div class="search-box">
<a-input-group compact> <a-input-group compact>
<a-select style="min-width: 100px" v-model="fieldCode"> <a-select style="min-width: 100px" v-model="fieldCode">
<a-select-option value=""> 全部 </a-select-option>
<a-select-option <a-select-option
v-for="v in appTemplate" v-for="v in appTemplate"
:key="v.id" :key="v.id"
...@@ -214,6 +213,9 @@ export default { ...@@ -214,6 +213,9 @@ export default {
this.appTemplate = data.sort((a, b) => { this.appTemplate = data.sort((a, b) => {
return a.fieldOrderNo - b.fieldOrderNo; return a.fieldOrderNo - b.fieldOrderNo;
}); });
if (this.appTemplate.length) {
this.fieldCode = this.appTemplate[0].fieldCode;
}
} }
}, },
// 获取数据列表 // 获取数据列表
...@@ -224,7 +226,7 @@ export default { ...@@ -224,7 +226,7 @@ export default {
size: this.size, size: this.size,
appId: this.appId, appId: this.appId,
fieldCode: this.fieldCode, fieldCode: this.fieldCode,
fieldValue: this.searchVal, fieldValue: `%${this.searchVal}%`,
}); });
this.loading = false; this.loading = false;
if (res.data.code === 1) { if (res.data.code === 1) {
...@@ -354,4 +356,4 @@ video { ...@@ -354,4 +356,4 @@ video {
width: 50px; width: 50px;
cursor: pointer; cursor: pointer;
} }
</style> </style>
\ No newline at end of file
...@@ -181,15 +181,23 @@ ...@@ -181,15 +181,23 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
</div> </div>
<div class="in"> <a-space>
<a-select v-model="searchType" style="width: 120px">
<a-select-option :value="1">
按姓名
</a-select-option>
<a-select-option :value="2">
按工号
</a-select-option>
</a-select>
<a-input-search <a-input-search
placeholder="请输入姓名或者工号搜索" placeholder="请输入关键字搜索"
v-model="searchVal" v-model="searchVal"
enter-button="搜索" enter-button="搜索"
allowClear allowClear
@search="onSearch" @search="onSearch"
/> />
</div> </a-space>
</div> </div>
<div class="table-content"> <div class="table-content">
<!-- 表格 --> <!-- 表格 -->
...@@ -408,6 +416,7 @@ export default { ...@@ -408,6 +416,7 @@ export default {
WorkmanData: [], // 工作人员列表 WorkmanData: [], // 工作人员列表
deptSearch: "", //部门搜索 deptSearch: "", //部门搜索
windowSearch: "", // 窗口搜索 windowSearch: "", // 窗口搜索
searchType: 1, // 搜索类型
searchVal: "", searchVal: "",
visibleAll: false, visibleAll: false,
page: 1, page: 1,
...@@ -458,9 +467,9 @@ export default { ...@@ -458,9 +467,9 @@ export default {
async getWorkmanData(search = {}) { async getWorkmanData(search = {}) {
this.loading = true; this.loading = true;
let obj = {}; let obj = {};
if (/^[\u4e00-\u9fa5]+$/.test(this.searchVal)) { if (this.searchType == 1) {
obj.name = `%${this.searchVal}%`; obj.name = `%${this.searchVal}%`;
} else if (/^[a-zA-z0-9]+$/.test(this.searchVal)) { } else if (this.searchType == 2) {
obj.number = `%${this.searchVal}%`; obj.number = `%${this.searchVal}%`;
} }
let res = await getWorkmanList({ let res = await getWorkmanList({
......
...@@ -232,8 +232,9 @@ export default { ...@@ -232,8 +232,9 @@ export default {
size: 10, size: 10,
total: 0, total: 0,
searchForm: { searchForm: {
search: "", status: "", // 状态
check_real: "-1", title: "",
sectionid: "", // 部门
time: [ time: [
this.$moment().format("YYYY-MM-DD"), this.$moment().format("YYYY-MM-DD"),
this.$moment().format("YYYY-MM-DD"), this.$moment().format("YYYY-MM-DD"),
......
...@@ -256,6 +256,9 @@ export default { ...@@ -256,6 +256,9 @@ export default {
async getDataList(searchForm) { async getDataList(searchForm) {
let list = []; let list = [];
let listTotal = 0; let listTotal = 0;
this.searchForm.keyword
? ""
: (this.searchForm.keyword = this.searchForm.info);
let res = await getWLLZList({ let res = await getWLLZList({
page: this.current, page: this.current,
size: this.size, size: this.size,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment