|
|
|
|
@ -12,98 +12,114 @@
|
|
|
|
|
<slot>
|
|
|
|
|
<header-content :auths="auths_auth_mixin">
|
|
|
|
|
<template #search>
|
|
|
|
|
<div style="display: flex">
|
|
|
|
|
<Select
|
|
|
|
|
v-model="select.filter[0].key"
|
|
|
|
|
style="width: 100px"
|
|
|
|
|
placeholder="搜索条目"
|
|
|
|
|
>
|
|
|
|
|
<Option
|
|
|
|
|
v-for="item in form"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item.field"
|
|
|
|
|
>{{ item.name }}</Option
|
|
|
|
|
>
|
|
|
|
|
<div style="display: flex;">
|
|
|
|
|
<!-- <el-date-picker-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- :clearable="false"-->
|
|
|
|
|
<!-- v-model="select.filter[3].value"-->
|
|
|
|
|
<!-- value-format="yyyy-MM-dd"-->
|
|
|
|
|
<!-- placeholder="日期选择"-->
|
|
|
|
|
<!-- format="yyyy-MM-dd"-->
|
|
|
|
|
<!-- style="width: 130px;"-->
|
|
|
|
|
<!-- ></el-date-picker>-->
|
|
|
|
|
<Select clearable v-model="select.filter[2].value" placeholder="请选择类别" style="width: 140px;margin-left: 6px;">
|
|
|
|
|
<Option v-for="item in abilities" :value="item.value">{{ item.key }}</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
<Select
|
|
|
|
|
v-model="select.filter[0].op"
|
|
|
|
|
style="width: 100px; margin-left: 10px"
|
|
|
|
|
placeholder="搜索条件"
|
|
|
|
|
>
|
|
|
|
|
<Option
|
|
|
|
|
v-for="item in op"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
>{{ item.label }}</Option
|
|
|
|
|
>
|
|
|
|
|
<Select clearable v-model="select.filter[1].value" placeholder="请选择范围" style="width: 140px;margin-left: 6px;">
|
|
|
|
|
<Option v-for="item in areas" :value="item.value">{{ item.key }}</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
<template
|
|
|
|
|
v-if="
|
|
|
|
|
select.filter[0].op !== 'range' &&
|
|
|
|
|
!columnArrTest(select.filter[0].key)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<Input
|
|
|
|
|
v-model="select.filter[0].value"
|
|
|
|
|
style="width: 150px; margin-left: 10px"
|
|
|
|
|
placeholder="请填写关键词"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
<template
|
|
|
|
|
v-else-if="
|
|
|
|
|
select.filter[0].op !== 'range' &&
|
|
|
|
|
columnArrTest(select.filter[0].key)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<Select
|
|
|
|
|
v-model="select.filter[0].value"
|
|
|
|
|
style="width: 150px; margin-left: 10px"
|
|
|
|
|
placeholder="请选择关键词"
|
|
|
|
|
>
|
|
|
|
|
<Option
|
|
|
|
|
v-for="item in getColumnParams(select.filter[0].key)"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="
|
|
|
|
|
getColumnField(select.filter[0].key)._relations
|
|
|
|
|
? item[
|
|
|
|
|
getColumnField(select.filter[0].key)._relations
|
|
|
|
|
.foreign_key
|
|
|
|
|
]
|
|
|
|
|
: item.value
|
|
|
|
|
"
|
|
|
|
|
>{{
|
|
|
|
|
item.key ||
|
|
|
|
|
item.value ||
|
|
|
|
|
item.name ||
|
|
|
|
|
item.no ||
|
|
|
|
|
item.mingcheng ||
|
|
|
|
|
item.id
|
|
|
|
|
}}</Option
|
|
|
|
|
>
|
|
|
|
|
</Select>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<Input
|
|
|
|
|
:value="select.filter[0].value.split(',')[0]"
|
|
|
|
|
style="width: 150px; margin-left: 10px"
|
|
|
|
|
placeholder="范围开始关键词"
|
|
|
|
|
@input="(e) => inputStartHandler(e, select.filter[0])"
|
|
|
|
|
/>
|
|
|
|
|
<span
|
|
|
|
|
style="
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
"
|
|
|
|
|
>至</span
|
|
|
|
|
>
|
|
|
|
|
<Input
|
|
|
|
|
:value="select.filter[0].value.split(',')[1]"
|
|
|
|
|
style="width: 150px; margin-left: 10px"
|
|
|
|
|
placeholder="范围结束关键词"
|
|
|
|
|
@input="(e) => inputEndHandler(e, select.filter[0])"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
<Input style="width: 140px;margin-left: 6px;" clearable v-model="select.filter[0].value" placeholder="搜索内容"/>
|
|
|
|
|
<!-- <Select-->
|
|
|
|
|
<!-- v-model="select.filter[0].key"-->
|
|
|
|
|
<!-- style="width: 100px"-->
|
|
|
|
|
<!-- placeholder="搜索条目"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <Option-->
|
|
|
|
|
<!-- v-for="item in form"-->
|
|
|
|
|
<!-- :key="item.id"-->
|
|
|
|
|
<!-- :value="item.field"-->
|
|
|
|
|
<!-- >{{ item.name }}</Option-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </Select>-->
|
|
|
|
|
<!-- <Select-->
|
|
|
|
|
<!-- v-model="select.filter[0].op"-->
|
|
|
|
|
<!-- style="width: 100px; margin-left: 10px"-->
|
|
|
|
|
<!-- placeholder="搜索条件"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <Option-->
|
|
|
|
|
<!-- v-for="item in op"-->
|
|
|
|
|
<!-- :key="item.value"-->
|
|
|
|
|
<!-- :value="item.value"-->
|
|
|
|
|
<!-- >{{ item.label }}</Option-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </Select>-->
|
|
|
|
|
<!-- <template-->
|
|
|
|
|
<!-- v-if="-->
|
|
|
|
|
<!-- select.filter[0].op !== 'range' &&-->
|
|
|
|
|
<!-- !columnArrTest(select.filter[0].key)-->
|
|
|
|
|
<!-- "-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <Input-->
|
|
|
|
|
<!-- v-model="select.filter[0].value"-->
|
|
|
|
|
<!-- style="width: 150px; margin-left: 10px"-->
|
|
|
|
|
<!-- placeholder="请填写关键词"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- <template-->
|
|
|
|
|
<!-- v-else-if="-->
|
|
|
|
|
<!-- select.filter[0].op !== 'range' &&-->
|
|
|
|
|
<!-- columnArrTest(select.filter[0].key)-->
|
|
|
|
|
<!-- "-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <Select-->
|
|
|
|
|
<!-- v-model="select.filter[0].value"-->
|
|
|
|
|
<!-- style="width: 150px; margin-left: 10px"-->
|
|
|
|
|
<!-- placeholder="请选择关键词"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <Option-->
|
|
|
|
|
<!-- v-for="item in getColumnParams(select.filter[0].key)"-->
|
|
|
|
|
<!-- :key="item.id"-->
|
|
|
|
|
<!-- :value="-->
|
|
|
|
|
<!-- getColumnField(select.filter[0].key)._relations-->
|
|
|
|
|
<!-- ? item[-->
|
|
|
|
|
<!-- getColumnField(select.filter[0].key)._relations-->
|
|
|
|
|
<!-- .foreign_key-->
|
|
|
|
|
<!-- ]-->
|
|
|
|
|
<!-- : item.value-->
|
|
|
|
|
<!-- "-->
|
|
|
|
|
<!-- >{{-->
|
|
|
|
|
<!-- item.key ||-->
|
|
|
|
|
<!-- item.value ||-->
|
|
|
|
|
<!-- item.name ||-->
|
|
|
|
|
<!-- item.no ||-->
|
|
|
|
|
<!-- item.mingcheng ||-->
|
|
|
|
|
<!-- item.id-->
|
|
|
|
|
<!-- }}</Option-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </Select>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- <template v-else>-->
|
|
|
|
|
<!-- <Input-->
|
|
|
|
|
<!-- :value="select.filter[0].value.split(',')[0]"-->
|
|
|
|
|
<!-- style="width: 150px; margin-left: 10px"-->
|
|
|
|
|
<!-- placeholder="范围开始关键词"-->
|
|
|
|
|
<!-- @input="(e) => inputStartHandler(e, select.filter[0])"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- <span-->
|
|
|
|
|
<!-- style="-->
|
|
|
|
|
<!-- margin-left: 10px;-->
|
|
|
|
|
<!-- display: flex;-->
|
|
|
|
|
<!-- align-items: center;-->
|
|
|
|
|
<!-- "-->
|
|
|
|
|
<!-- >至</span-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <Input-->
|
|
|
|
|
<!-- :value="select.filter[0].value.split(',')[1]"-->
|
|
|
|
|
<!-- style="width: 150px; margin-left: 10px"-->
|
|
|
|
|
<!-- placeholder="范围结束关键词"-->
|
|
|
|
|
<!-- @input="(e) => inputEndHandler(e, select.filter[0])"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<Button
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
type="primary"
|
|
|
|
|
@ -111,126 +127,126 @@
|
|
|
|
|
>查询</Button
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<xy-selectors
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
@reset="reset"
|
|
|
|
|
@search="$refs['xyTable'].getTableData(true)"
|
|
|
|
|
>
|
|
|
|
|
<template>
|
|
|
|
|
<div class="select">
|
|
|
|
|
<div
|
|
|
|
|
class="select__item"
|
|
|
|
|
v-for="(item, index) in select.filter"
|
|
|
|
|
:key="`${item.value}-${index}`"
|
|
|
|
|
>
|
|
|
|
|
<p>条件{{ index + 1 }}</p>
|
|
|
|
|
<Select
|
|
|
|
|
v-model="item.key"
|
|
|
|
|
style="width: 100px"
|
|
|
|
|
placeholder="搜索条目"
|
|
|
|
|
>
|
|
|
|
|
<Option
|
|
|
|
|
v-for="item in form"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item.field"
|
|
|
|
|
>{{ item.name }}</Option
|
|
|
|
|
>
|
|
|
|
|
</Select>
|
|
|
|
|
<Select
|
|
|
|
|
v-model="item.op"
|
|
|
|
|
style="width: 100px; margin-left: 10px"
|
|
|
|
|
placeholder="搜索条件"
|
|
|
|
|
>
|
|
|
|
|
<Option
|
|
|
|
|
v-for="item in op"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
>{{ item.label }}</Option
|
|
|
|
|
>
|
|
|
|
|
</Select>
|
|
|
|
|
<template
|
|
|
|
|
v-if="
|
|
|
|
|
item.op !== 'range' && !columnArrTest(item.key)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<Input
|
|
|
|
|
v-model="item.value"
|
|
|
|
|
style="width: 150px; margin-left: 10px"
|
|
|
|
|
placeholder="请填写关键词"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
<template
|
|
|
|
|
v-else-if="
|
|
|
|
|
item.op !== 'range' && columnArrTest(item.key)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<Select
|
|
|
|
|
v-model="item.value"
|
|
|
|
|
style="width: 150px; margin-left: 10px"
|
|
|
|
|
placeholder="请选择关键词"
|
|
|
|
|
>
|
|
|
|
|
<Option
|
|
|
|
|
v-for="item in getColumnParams(item.key)"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="
|
|
|
|
|
getColumnField(item.key)._relations
|
|
|
|
|
? item[
|
|
|
|
|
getColumnField(item.key)._relations
|
|
|
|
|
.foreign_key
|
|
|
|
|
]
|
|
|
|
|
: item.value
|
|
|
|
|
"
|
|
|
|
|
>{{
|
|
|
|
|
item.key ||
|
|
|
|
|
item.value ||
|
|
|
|
|
item.name ||
|
|
|
|
|
item.no ||
|
|
|
|
|
item.mingcheng ||
|
|
|
|
|
item.id
|
|
|
|
|
}}</Option
|
|
|
|
|
>
|
|
|
|
|
</Select>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<Input
|
|
|
|
|
:value="item.value.split(',')[0]"
|
|
|
|
|
style="width: 150px; margin-left: 10px"
|
|
|
|
|
placeholder="范围开始关键词"
|
|
|
|
|
@input="(e) => inputStartHandler(e, item)"
|
|
|
|
|
/>
|
|
|
|
|
<span style="margin-left: 10px">至</span>
|
|
|
|
|
<Input
|
|
|
|
|
:value="item.value.split(',')[1]"
|
|
|
|
|
style="width: 150px; margin-left: 10px"
|
|
|
|
|
placeholder="范围结束关键词"
|
|
|
|
|
@input="(e) => inputEndHandler(e, item)"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="index !== 0"
|
|
|
|
|
size="small"
|
|
|
|
|
type="danger"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
circle
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
@click="select.filter.splice(index, 1)"
|
|
|
|
|
></el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="add-btn">
|
|
|
|
|
<el-button
|
|
|
|
|
size="small"
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
circle
|
|
|
|
|
@click="
|
|
|
|
|
select.filter.push({ key: '', op: '', value: '' })
|
|
|
|
|
"
|
|
|
|
|
></el-button>
|
|
|
|
|
<span>新增一条</span>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</xy-selectors>
|
|
|
|
|
<!-- <xy-selectors-->
|
|
|
|
|
<!-- style="margin-left: 10px"-->
|
|
|
|
|
<!-- @reset="reset"-->
|
|
|
|
|
<!-- @search="$refs['xyTable'].getTableData(true)"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <template>-->
|
|
|
|
|
<!-- <div class="select">-->
|
|
|
|
|
<!-- <div-->
|
|
|
|
|
<!-- class="select__item"-->
|
|
|
|
|
<!-- v-for="(item, index) in select.filter"-->
|
|
|
|
|
<!-- :key="`${item.value}-${index}`"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <p>条件{{ index + 1 }}</p>-->
|
|
|
|
|
<!-- <Select-->
|
|
|
|
|
<!-- v-model="item.key"-->
|
|
|
|
|
<!-- style="width: 100px"-->
|
|
|
|
|
<!-- placeholder="搜索条目"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <Option-->
|
|
|
|
|
<!-- v-for="item in form"-->
|
|
|
|
|
<!-- :key="item.id"-->
|
|
|
|
|
<!-- :value="item.field"-->
|
|
|
|
|
<!-- >{{ item.name }}</Option-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </Select>-->
|
|
|
|
|
<!-- <Select-->
|
|
|
|
|
<!-- v-model="item.op"-->
|
|
|
|
|
<!-- style="width: 100px; margin-left: 10px"-->
|
|
|
|
|
<!-- placeholder="搜索条件"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <Option-->
|
|
|
|
|
<!-- v-for="item in op"-->
|
|
|
|
|
<!-- :key="item.value"-->
|
|
|
|
|
<!-- :value="item.value"-->
|
|
|
|
|
<!-- >{{ item.label }}</Option-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </Select>-->
|
|
|
|
|
<!-- <template-->
|
|
|
|
|
<!-- v-if="-->
|
|
|
|
|
<!-- item.op !== 'range' && !columnArrTest(item.key)-->
|
|
|
|
|
<!-- "-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <Input-->
|
|
|
|
|
<!-- v-model="item.value"-->
|
|
|
|
|
<!-- style="width: 150px; margin-left: 10px"-->
|
|
|
|
|
<!-- placeholder="请填写关键词"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- <template-->
|
|
|
|
|
<!-- v-else-if="-->
|
|
|
|
|
<!-- item.op !== 'range' && columnArrTest(item.key)-->
|
|
|
|
|
<!-- "-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <Select-->
|
|
|
|
|
<!-- v-model="item.value"-->
|
|
|
|
|
<!-- style="width: 150px; margin-left: 10px"-->
|
|
|
|
|
<!-- placeholder="请选择关键词"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <Option-->
|
|
|
|
|
<!-- v-for="item in getColumnParams(item.key)"-->
|
|
|
|
|
<!-- :key="item.id"-->
|
|
|
|
|
<!-- :value="-->
|
|
|
|
|
<!-- getColumnField(item.key)._relations-->
|
|
|
|
|
<!-- ? item[-->
|
|
|
|
|
<!-- getColumnField(item.key)._relations-->
|
|
|
|
|
<!-- .foreign_key-->
|
|
|
|
|
<!-- ]-->
|
|
|
|
|
<!-- : item.value-->
|
|
|
|
|
<!-- "-->
|
|
|
|
|
<!-- >{{-->
|
|
|
|
|
<!-- item.key ||-->
|
|
|
|
|
<!-- item.value ||-->
|
|
|
|
|
<!-- item.name ||-->
|
|
|
|
|
<!-- item.no ||-->
|
|
|
|
|
<!-- item.mingcheng ||-->
|
|
|
|
|
<!-- item.id-->
|
|
|
|
|
<!-- }}</Option-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </Select>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- <template v-else>-->
|
|
|
|
|
<!-- <Input-->
|
|
|
|
|
<!-- :value="item.value.split(',')[0]"-->
|
|
|
|
|
<!-- style="width: 150px; margin-left: 10px"-->
|
|
|
|
|
<!-- placeholder="范围开始关键词"-->
|
|
|
|
|
<!-- @input="(e) => inputStartHandler(e, item)"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- <span style="margin-left: 10px">至</span>-->
|
|
|
|
|
<!-- <Input-->
|
|
|
|
|
<!-- :value="item.value.split(',')[1]"-->
|
|
|
|
|
<!-- style="width: 150px; margin-left: 10px"-->
|
|
|
|
|
<!-- placeholder="范围结束关键词"-->
|
|
|
|
|
<!-- @input="(e) => inputEndHandler(e, item)"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- v-if="index !== 0"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- type="danger"-->
|
|
|
|
|
<!-- icon="el-icon-delete"-->
|
|
|
|
|
<!-- circle-->
|
|
|
|
|
<!-- style="margin-left: 10px"-->
|
|
|
|
|
<!-- @click="select.filter.splice(index, 1)"-->
|
|
|
|
|
<!-- ></el-button>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- <div class="add-btn">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- icon="el-icon-plus"-->
|
|
|
|
|
<!-- circle-->
|
|
|
|
|
<!-- @click="-->
|
|
|
|
|
<!-- select.filter.push({ key: '', op: '', value: '' })-->
|
|
|
|
|
<!-- "-->
|
|
|
|
|
<!-- ></el-button>-->
|
|
|
|
|
<!-- <span>新增一条</span>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </xy-selectors>-->
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template #create>
|
|
|
|
|
@ -256,6 +272,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<Button type="primary" @click="cloneTransfer">克隆调令</Button>
|
|
|
|
|
<template #distribute>
|
|
|
|
|
<Button type="primary" @click="pickNoDistribute">勾选未下发</Button>
|
|
|
|
|
<Button type="primary" @click="distributeTransfers">批量下发</Button>
|
|
|
|
|
</template>
|
|
|
|
|
</header-content>
|
|
|
|
|
@ -266,6 +283,7 @@
|
|
|
|
|
<!--$refs['drawer'].setId(row.id);
|
|
|
|
|
$refs['drawer'].show();-->
|
|
|
|
|
<xy-table
|
|
|
|
|
:is-page="false"
|
|
|
|
|
:btn-width="300"
|
|
|
|
|
:auths="auths_auth_mixin"
|
|
|
|
|
:delay-req="true"
|
|
|
|
|
@ -305,7 +323,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template #oa="{ row }">
|
|
|
|
|
<Button
|
|
|
|
|
v-if="row.shifouzouliucheng"
|
|
|
|
|
v-if="row.shifouzouliucheng && (row.liuchengzhuangtai == 1 || !row.liuchengzhuangtai)"
|
|
|
|
|
size="small"
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="toOa(row)"
|
|
|
|
|
@ -363,6 +381,7 @@ import { op } from "@/const/op";
|
|
|
|
|
import { download } from "@/utils/downloadRequest";
|
|
|
|
|
import { getparameter } from "@/api/system/dictionary";
|
|
|
|
|
import { show } from "@/api/system/customForm";
|
|
|
|
|
import { show as formFieldShow } from "@/api/system/customFormField"
|
|
|
|
|
import * as XLSX from "xlsx";
|
|
|
|
|
import { saveAs } from "file-saver";
|
|
|
|
|
import { listdept } from "@/api/system/department";
|
|
|
|
|
@ -389,6 +408,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
areas: [],
|
|
|
|
|
abilities: [],
|
|
|
|
|
window: {
|
|
|
|
|
width: 0,
|
|
|
|
|
height: 0,
|
|
|
|
|
@ -401,12 +422,28 @@ export default {
|
|
|
|
|
table_name: "",
|
|
|
|
|
filter: [
|
|
|
|
|
{
|
|
|
|
|
key: "",
|
|
|
|
|
op: "",
|
|
|
|
|
value: "",
|
|
|
|
|
key: "content",
|
|
|
|
|
op: "like",
|
|
|
|
|
value: ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "area",
|
|
|
|
|
op: "eq",
|
|
|
|
|
value: ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "leibie",
|
|
|
|
|
op: "eq",
|
|
|
|
|
value: ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "start_time",
|
|
|
|
|
op: "like",
|
|
|
|
|
value: this.$moment().format('YYYY-MM-DD')
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
sort_name: 'start_time'
|
|
|
|
|
sort_name: 'start_time',
|
|
|
|
|
page_size: 9999,
|
|
|
|
|
},
|
|
|
|
|
selectQuery: [],
|
|
|
|
|
form: [],
|
|
|
|
|
@ -418,6 +455,46 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
pickNoDistribute () {
|
|
|
|
|
this.$refs['xyTable'].getListData()?.forEach(item => {
|
|
|
|
|
console.log(item)
|
|
|
|
|
if (item.status === 1) {
|
|
|
|
|
this.$refs['xyTable'].toggleRowSelection(item)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getArea() {
|
|
|
|
|
const obj = (await formFieldShow({ id: 4 }, false))?.select_item;
|
|
|
|
|
if (obj && typeof obj === "object") {
|
|
|
|
|
let keys = Object.keys(obj);
|
|
|
|
|
if (keys.length > 0) {
|
|
|
|
|
this.areas = keys.map((key) => {
|
|
|
|
|
return {
|
|
|
|
|
key,
|
|
|
|
|
value: /^\d*$/.test(obj[key]) ? Number(obj[key]) : obj[key],
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.$bus.$emit("areas", this.areas);
|
|
|
|
|
},
|
|
|
|
|
async getAbility() {
|
|
|
|
|
const obj = (await formFieldShow({ id: 31 }, false))?.select_item;
|
|
|
|
|
if (obj && typeof obj === "object") {
|
|
|
|
|
let keys = Object.keys(obj);
|
|
|
|
|
if (keys.length > 0) {
|
|
|
|
|
this.abilities = keys.map((key) => {
|
|
|
|
|
return {
|
|
|
|
|
key,
|
|
|
|
|
value: /^\d*$/.test(obj[key]) ? Number(obj[key]) : obj[key],
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.$bus.$emit("yinpaishui", this.abilities);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async toOa (row) {
|
|
|
|
|
if (!this.oaToken) {
|
|
|
|
|
this.oaToken = (await getOaToken()).oatoken
|
|
|
|
|
@ -780,6 +857,8 @@ export default {
|
|
|
|
|
this.window.left = (window.screen.width - 10 - this.window.width) / 2
|
|
|
|
|
|
|
|
|
|
this.getFormDetail();
|
|
|
|
|
this.getArea();
|
|
|
|
|
this.getAbility();
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|